O'Reilly logo

Make: AVR Programming by Elliot Williams

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Analog-to-Digital Conversion II

In Chapter 7, you learned the basics of using the ADC to convert continuous analog voltages into digital numbers that you can use in your AVR code. In this chapter, I’ll go over some of the extra details that you’ll need to work with many real-world devices.

In particular, you’ll find that not everything works on the same 0 V to 5 V range that your AVR’s ADC wants to use, so we’ll have to talk a little bit about input voltage scaling. You may also find that sometimes you want a little bit more accuracy than the AVR’s 10-bit ADC can deliver. When this is the case, you can either buy a separate ADC chip or use a software technique known as oversampling to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required