MCP3208 8-channel 12-bit ADC (SPI) with ESP32
Supply 3.3-5 V
Bus SPI
Measures voltage
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| CH0 | Not wired to the ESP32 | — | Analog input 0. Never above VREF |
| CH1 | Not wired to the ESP32 | — | |
| CH2 | Not wired to the ESP32 | — | |
| CH3 | Not wired to the ESP32 | — | |
| CH4 | Not wired to the ESP32 | — | |
| CH5 | Not wired to the ESP32 | — | |
| CH6 | Not wired to the ESP32 | — | |
| CH7 | Not wired to the ESP32 | — | |
| DGND | Ground | GND | |
| CS | SPI chip select | D5 | CS/SHDN |
| DIN | SPI MOSI | D23 | |
| DOUT | SPI MISO | D19 | |
| CLK | SPI clock | D18 | |
| AGND | Ground | GND | |
| VREF | Not wired to the ESP32 | — | Reference: tie to VDD for a 0 to 3.3 V range |
| VDD | Power | 3V3 | Use 3.3 V so DOUT is safe for the ESP32 |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- Microchip MCP3204/3208 datasheet, Pin function table (PDIP); supply 2.7 to 5.5 V; SPI modes 0,0 and 1,1
Try it in 3D in BoardPilot
Related parts
ADXL362 ultra-low-power accelerometer (SPI)ArduCAM Mini 2MP camera (OV2640, SPI)AS5048A magnetic angle encoder (SPI)MAX31855 K-type thermocouple breakoutMAX31856 universal thermocouple amplifierMAX31865 PT100/PT1000 RTD amplifier
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.