Skip to content

Instantly share code, notes, and snippets.

@legap
Last active May 8, 2016 20:47
Show Gist options
  • Save legap/5b704c15222cf06c6a7896917eab05a0 to your computer and use it in GitHub Desktop.
Save legap/5b704c15222cf06c6a7896917eab05a0 to your computer and use it in GitHub Desktop.

MCP3008

MCP3008_Pins

Pin MCPP Mnemonic MCPP Pin Raspberry
16 VDD 3.3V
15 VREF 3.3V
14 AGND GROUND
13 CLK GPIO11 (P1-23)
12 DOUT GPIO9 (P1-21)
11 DIN GPIO10 (P1-19)
10 CS GPIO8 (P1-24)
09 DGND GROUND

Connection to the MCP3008 with wiringPi

See Shaun S Bennetts blog for an example.

Connecting to the MCP3008 with Python

See Raspberry Pi spys instruction for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment