Cover by Shawn Wallace, Matt Richardson

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Appendix C. Analog Input

In this book, you learned about digital inputs and outputs with buttons, switches, LEDs and relays. Each of these components were always either on or off, never anything in between. However, you might want to sense things in the world that are not necessarily one or the other, for instance: temperature, distance, light levels, or the status of a dial.

Unfortunately, you can’t read these types of sensors directly on the Raspberry Pi since there are only digital inputs on the board. But you’re not totally out of luck; there are a few different ways of using additional components to read analog sensors using the Pi’s digital inputs.

Converting Analog to Digital

To convert from analog to digital, this appendix will show you how ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required