Book Image

Raspberry Pi Sensors

By : Rushi Gajjar
Book Image

Raspberry Pi Sensors

By: Rushi Gajjar

Overview of this book

Table of Contents (16 chapters)
Raspberry Pi Sensors
About the Author
About the Reviewers

MCP3008 for analog-to-digital conversion

The MCP3008 ADC is based on successive approximation ADC architecture with a resolution of 10 bits. The MCP3008 has eight input channels for interfacing the sensors on the pins. If so many channels are not required, we can select a four-channel input ADC chip known as MCP3004. These chips are the best way to interface sensors because they support the SPI slave mode to be interfaced with the GPIO pins of the RasPi models A+, B, and B+ and RasPi 2 model B. This MCP3008 chip should be purchased in a dual-in-line (DIP) package so that we can easily insert it on a breadboard while preparing for the project:


In the preceding figure, the pin out of MCP3008 is represented. Pins 1 to 8 to the left are CH0 to CH7, which are used for analog input channels 0 to 7 respectively.


If you have had an enough exposure to electronics in the past, you might have heard about differential pair signals. These differential pair signals are used to eliminate the...