Skip to Content
Circuitera

MCP3008 SPI analog-to-digital converter

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

Microscope photograph of a Microchip MCP3008 ADC die
MCP3008-I SL 03521C6.jpg by Epop · CC0. Resized and encoded as WebP without cropping.

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.

Source: Microchip

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.

Source: Microchip

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.

Source: Microchip

Specifications

ParameterValue or conditionSource
Supply voltage2.7–5.5 V operating rangeMicrochip
Resolution and channels10 bits; eight single-ended channel selectionsMicrochip

Compatibility and practice

Suitable for boards without spare analog inputs, including Raspberry Pi at 3.3 V logic.

Sources and datasheets