O'Reilly logo

Raspberry Pi Projects For Dummies by Brock Craft, Jonathan Evans, Mike Cook

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 9

Advanced Interfaces

In This Chapter

arrow Converting analog to digital

arrow Building an analog-to-digital converter

arrow Using a potentiometer

arrow Creating an analog temperature sensor

arrow Interfacing with an analog-to-digital microchip

The Raspberry Pi general-purpose input/output (GPIO) pins are capable of detecting digital signals — either high or low. The problem is, the world we live in is a lot less black-and-white than that. For example, what if you want to detect light, sounds, temperature, or pressure? A digital signal isn’t going to cut it. Instead, you need the ability to detect a range of electronic signals, and that’s where analog signals come in.

One of the shortcomings of the Raspberry Pi is that it doesn’t have any analog inputs. But you can easily solve this problem by using an analog-to-digital converter. In this chapter, you build your own converter, learn about different conversion methods, and write software for each. Toward the end of the chapter, we look at a high-precision ...

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