High Frequency Precision Sine Wave Synthesis for the Arduino by Adrian Freed

While researching something completely different, I found Adrian Freed’s very cool page with code to generate high quality sine waves using PWM on the Arduino. This code could serve as an audio frequency signal generator, or as the basis of a computer music project. It also demonstrates some non-trivial Arduino wizardry in dealing with PWM interrupts and the like. Bookmarked for future reference!

Arduino sketch for high frequency precision sine wave tone sound synthesis | Adrian Freed: arduino, oscillator and open sound control expertise