Robot Pi Shop

MCP3008 - A/D Converter

$2.99

Shipping calculated at checkout.

Quantity

MCP3008 10-Bit 8-Channel Analog-to-Digital Converter IC – SPI Interface (DIP-16)

The MCP3008 is a low-power, 10-bit Analog-to-Digital Converter (ADC) integrated circuit designed to convert analog voltage signals into digital data for microcontrollers and single-board computers.

Featuring eight analog input channels, an SPI serial interface, and a successive approximation register (SAR) architecture, the MCP3008 provides reliable analog signal acquisition for sensors, measurement equipment, and embedded electronics projects.

Operating from 2.7V to 5.5V, the MCP3008 is particularly useful for Raspberry Pi applications, allowing analog sensors, potentiometers, and other analog-output devices to be connected to boards that do not have built-in analog inputs.

The DIP-16 package makes the IC suitable for breadboards, prototyping, and custom PCB designs.

Key Features

  • 10-Bit ADC Resolution: Converts analog input signals into digital values from 0 to 1023.
  • 8 Analog Input Channels: Supports multiple analog sensors and input signals.
  • Flexible Input Configuration: Supports eight single-ended inputs or four pseudo-differential input pairs.
  • SPI Communication: Compatible with SPI-enabled microcontrollers and development boards.
  • High Sampling Speed: Supports up to 200,000 samples per second at 5V.
  • Wide Operating Voltage: Operates from 2.7V to 5.5V DC.
  • Low Power Consumption: Suitable for battery-powered and embedded applications.
  • Sample-and-Hold Circuit: Integrated sample-and-hold functionality for analog signal conversion.
  • Configurable Voltage Reference: Allows ADC measurement scaling using an external reference voltage.
  • DIP-16 Package: Suitable for breadboards, prototyping, and through-hole PCB assembly.

Technical Specifications

Parameter Specification
Manufacturer Part Number MCP3008
Component Type Analog-to-Digital Converter (ADC)
ADC Architecture Successive Approximation Register (SAR)
Resolution 10-bit
Analog Input Channels 8 Single-Ended or 4 Pseudo-Differential Pairs
Operating Voltage 2.7V–5.5V DC
Maximum Sampling Rate at 5V 200kSPS
Maximum Sampling Rate at 2.7V 75kSPS
Communication Interface SPI
Supported SPI Modes Mode 0 and Mode 1
Digital Output Range 0–1023
Reference Voltage External VREF Input
Analog Input Range 0V to VREF for Single-Ended Measurements
Typical Standby Current 5nA
Typical Active Current Approximately 425µA at 5V
Differential Nonlinearity (DNL) ±1 LSB Maximum
Integral Nonlinearity (INL) ±1 LSB Maximum
Operating Temperature -40°C to +85°C (industrial-grade versions)
Package Type DIP-16
Mounting Type Through-Hole
Number of Pins 16

Pin Configuration

Pin Name Description
1 CH0 Analog Input Channel 0
2 CH1 Analog Input Channel 1
3 CH2 Analog Input Channel 2
4 CH3 Analog Input Channel 3
5 CH4 Analog Input Channel 4
6 CH5 Analog Input Channel 5
7 CH6 Analog Input Channel 6
8 CH7 Analog Input Channel 7
9 DGND Digital Ground
10 CS/SHDN Chip Select / Shutdown
11 DIN SPI Data Input (MOSI)
12 DOUT SPI Data Output (MISO)
13 CLK SPI Clock Input
14 AGND Analog Ground
15 VREF Reference Voltage Input
16 VDD Power Supply

Raspberry Pi Connection Example

The MCP3008 can be connected to a Raspberry Pi through its SPI interface to read analog sensors.

MCP3008 Pin Raspberry Pi GPIO
VDD (16) 3.3V
VREF (15) 3.3V
AGND (14) GND
DGND (9) GND
CLK (13) GPIO11 (SPI SCLK)
DOUT (12) GPIO9 (SPI MISO)
DIN (11) GPIO10 (SPI MOSI)
CS/SHDN (10) GPIO8 (SPI CE0)
CH0 (1) Analog Sensor Output

Connection Instructions:

  1. Connect the MCP3008 power supply and reference voltage to the Raspberry Pi's 3.3V supply.
  2. Connect AGND and DGND to the Raspberry Pi ground.
  3. Connect the SPI pins according to the wiring table.
  4. Connect an analog sensor output to one of the MCP3008 input channels.
  5. Enable SPI in the Raspberry Pi configuration.
  6. Use a compatible Python library, such as Adafruit CircuitPython MCP3xxx, to read analog values.
  7. Convert the ADC reading into voltage or the required sensor measurement.

ADC Voltage Calculation:

For a single-ended input:

Voltage = (ADC Reading × VREF) / 1024

For example, with a 3.3V reference and an ADC reading of 512:

Voltage = (512 × 3.3) / 1024 = 1.65V

Arduino Connection Example

MCP3008 Pin Arduino UNO
VDD 5V
VREF 5V
AGND GND
DGND GND
CLK D13
DOUT D12
DIN D11
CS/SHDN D10
CH0 Analog Sensor Output

The MCP3008 can be used with Arduino to expand the number of analog input channels available to a project.

Applications

  • Raspberry Pi analog sensor interfacing
  • Arduino and ESP32 projects
  • Analog sensor data acquisition
  • Potentiometer and joystick reading
  • Voltage monitoring circuits
  • Environmental monitoring systems
  • Robotics and automation projects
  • Battery voltage measurement with suitable input conditioning
  • Industrial sensor monitoring
  • Multi-channel data logging
  • Educational electronics projects
  • Custom embedded control systems

Important Notes

  • The MCP3008 is an integrated circuit, not a complete breakout module.
  • External wiring and supporting components are required for operation.
  • The ADC supports analog input voltages within the permitted range defined by VREF and VDD.
  • Do not apply negative voltages or voltages exceeding the device's electrical limits.
  • For Raspberry Pi applications, operate the MCP3008 at 3.3V to maintain GPIO compatibility.
  • When powered at 5V, the SPI outputs may not be directly compatible with 3.3V microcontrollers.
  • The MCP3008 provides 10-bit resolution, corresponding to 1024 digital levels.
  • The reference voltage directly affects the ADC measurement range and accuracy.
  • The device does not measure negative voltages directly in standard single-ended mode.
  • The analog inputs are multiplexed and are not sampled simultaneously.
  • For accurate measurements, use appropriate power supply decoupling, grounding, and signal conditioning.
  • The MCP3008 is not a direct replacement for higher-resolution ADCs when 12-bit, 16-bit, or greater resolution is required.

Package Includes

  • 1 × MCP3008 10-Bit 8-Channel ADC IC (DIP-16)