This is the Adafruit MCP3008 - 8-Channel 10-Bit ADC With SPI Interface Library.
Tested for the following boards using pins shown.
MCP3008 | UNO | FEATHER HUZZAH1 | FEATHER 32u4 | FEATHER M0 |
---|---|---|---|---|
VDD | 5V | 3V | 3V | 3V |
VREF | 5V | 3V | 3V | 3V |
AGND | GND | GND | GND | GND |
CLK | 13 | SCK (14) | SCK | SCK |
DOUT | 12 | MI (12) | MISO | MISO |
DIN | 11 | MO (13) | MOSI | MOSI |
CS | 10 | any2 (15) | any2 | any2 |
DGND | GND | GND | GND | GND |
1also works for non-Feather HUZZAH, use (XX) pins
2use any available digital pin