Pulse Width Modulation (PWM) is a very easy, and often used method to get audio out of your microcontroller. But, there is a lot more going on under the hood besides for just writing values to your timer. We just finished a complete dissection of how PWM works, and what you can do to get the best possible audio from your PWM output. We also put up an Arduino sketch that helps you quickly navigate the possible options, and pick the settings that are best for your application. So follow the links below to learn more!
Open Music Labs
Open Music Labs
2 Comments
nice article i liked it..
An outstanding share! I have just forwarded this onto a coworker who has been doing a little homework on this. And he in fact bought me dinner simply because I found it for him… lol. So allow me to reword this…. Thank YOU for the meal!! But yeah, thanx for spending some time to discuss this subject here on your website.