MCP3208 8-channel 12-bit ADC (SPI) with ESP32

Supply 3.3-5 V Bus SPI Measures voltage
CH0CH1CH2CH3CH4CH5CH6CH7DGNDCSDINDOUTCLKAGNDVREFVDD

Pins and ESP32 wiring

PinRoleESP32 pinNotes
CH0Not wired to the ESP32—Analog input 0. Never above VREF
CH1Not wired to the ESP32—
CH2Not wired to the ESP32—
CH3Not wired to the ESP32—
CH4Not wired to the ESP32—
CH5Not wired to the ESP32—
CH6Not wired to the ESP32—
CH7Not wired to the ESP32—
DGNDGroundGND
CSSPI chip selectD5CS/SHDN
DINSPI MOSID23
DOUTSPI MISOD19
CLKSPI clockD18
AGNDGroundGND
VREFNot wired to the ESP32—Reference: tie to VDD for a 0 to 3.3 V range
VDDPower3V3Use 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

Try it in 3D in BoardPilot

BoardPilot Part data (JSON)

Related parts

Part data: CC BY 4.0, free to reuse with credit to BoardPilot.