I suspect the world would be better if that percentage were even greater.
Using PWM to Generate Analog Output
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.
Comments
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.
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. 🙂