MCP3008 SPI analog-to-digital converter
Add eight analog inputs through SPI and set the MCP3008 reference for the expected sensor voltage range.

What it does
The MCP3008 samples analog voltage and returns a 10-bit number to the controller. A command selects a channel and the input configuration on each conversion.
Wiring
Connect chip select, clock, data in and data out to the matching SPI signals. Connect the analog and digital grounds as recommended and cap the highest input and reference voltage to the limits set by the supply and specified operating conditions.
Reference and settling
The reference voltage determines the nominal full-scale range. Source impedance matters because the ADC draws charge into an internal sampling capacitor. Follow the datasheet acquisition guidance before connecting a high-resistance divider directly.
Specifications
| Parameter | Value or condition | Source |
|---|---|---|
| Supply voltage | 2.7–5.5 V operating range | Microchip |
| Resolution and channels | 10 bits; eight single-ended channel selections | Microchip |
Compatibility and practice
Suitable for boards without spare analog inputs, including Raspberry Pi at 3.3 V logic.
Related components
Sources and datasheets
- MCP3004 and MCP3008 Data Sheet · Microchip