Adafruit_MCP3008
Adruino Library for MCP3008 8-Channel 10-Bit ADC with SPI interface. http://www.adafruit.com/products/856
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