Using PWM to Generate Analog Output

February 16, 2011 | electronics | By: Mark VandeWettering

Analog Devices Microchip has this nice little application note on using pulse width modulation. Seems like it will be useful if you wanted to (for instance) generate some simple sounds using the Arduino.

AN538: Using PWM to Generate Analog Output.

Comments

Comment from madscifi
Time 2/17/2011 at 11:28 am

Analog Devices -> Microchip. Otherwise, yes, it is a nice app note.

Editor’s note: Thanks! For some reason, I saw the AN number and got it into my head that the A stood for Analog. Nice to know someone out there is reading. 🙂

Comment from Matthew
Time 2/18/2011 at 11:34 am

I hadn’t seen the Microchip article.

I have (unsuccessfully so far) tried this to just get a good sounding sine wave for a CW keyer. I am going to keep trying.

Here is a longer article from TI about PWM Digital-to-Analog. It also covers filtering and does some comparison to a DAC. I haven’t absorbed it all yet.

http://focus.ti.com/lit/an/spra490/spra490.pdf