Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: PWM not outputting desired waveforms

  1. #1
    Junior Member
    Join Date
    Apr 2021
    Posts
    1

    PWM not outputting desired waveforms

    Hi all,

    I'm currently working on a wavetable synthesizer project at university. I borrowed source code from a project that Gary DeReese developed (https://github.com/gdereese/arduino-wavetable-synth).

    I've uploaded the code to my teensy 3.6 and I can't seem to get the desired output. Right now, the code is set for a sine wave, and I'm getting this as my output:
    Click image for larger version. 

Name:	Capture[22].jpg 
Views:	0 
Size:	112.2 KB 
ID:	24495

    I'm also getting this warning:
    Click image for larger version. 

Name:	Screen Shot 2021-04-19 at 18.30.27.jpg 
Views:	9 
Size:	16.7 KB 
ID:	24496

    Here's my code:
    wavetable-synth.ino

    And here are the libraries I used:
    phase-inc-table.h
    phase-inc-table.h

    wavetables.h
    wavetables.h

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,606
    One million won't fit into a 16-bit unsigned integer.

    Copying the text of the message and pasting it in your message is a lot easier than an image.

    Pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •