Skip to content

Latest commit

 

History

History
17 lines (8 loc) · 610 Bytes

mcp3008.md

File metadata and controls

17 lines (8 loc) · 610 Bytes

MCP3008 8-channel ADC

I've ported and adapted Tony di Cola's CircuitPython code from Adafruit's GitHub repo for use with MicorPython.

It supports single-ended and differential mode on the 3008.

I have no plans to support the 3002/3004 at present.

Here's the fritzing diagram for a test circuit with a potentiometer supplying a variable voltage on analogue Channel 1:

MCP3008 with Potentiometer

mcp3008-demo.py contains the code for a simple demo using SPI channel 0.