Skip to Main Content
AVR Programming
book

AVR Programming

by Elliot Williams
January 2014
Intermediate to advanced content levelIntermediate to advanced
474 pages
13h 28m
English
Make: Community
Content preview from AVR Programming

Chapter 13. Advanced PWM Tricks

To create audio that’s more interesting than square waves, we’re going to use PWM to create rapidly changing intermediate voltages that’ll trace out arbitrary waveforms. For now, we’ll content ourselves with a few of the traditional synthesizer-type waveforms (sine, sawtooth, and triangle waves), but this project also lays the groundwork for playing back sampled speech. (When we have enough memory at our disposal, in Chapter 18, we’ll use the same techniques to make a talking voltmeter.) We’ll also be able to change the volume of the sounds and mix multiple sounds together. If you like making spacey, droney sounds or just something more musical than the square wave sounds we’ve been making ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Embedded Linux Programming - Third Edition

Mastering Embedded Linux Programming - Third Edition

Frank Vasquez, Chris Simmonds

Publisher Resources

ISBN: 9781449356484Errata PageSupplemental Content