ADC MCP3008 (Raspberry Pi)

About: the Raspberry Pi is Awesome!

Basic tutorial of how to setup an Analog to Digital Converter with the Raspberry Pi.

Step 1: Parts

RPI 3 – https://goo.gl/CdVNoH

4 Amp Power Adapter – https://goo.gl/js4Uc7

16GB Micro SD – https://goo.gl/FDqZal

120 pcs jumper cable: https://goo.gl/spWoaC

breadboard jumper cables: https://goo.gl/zBWN4z

mcp3008 chips: https://goo.gl/ii8nT6

(optional) touch sensor: https://goo.gl/bupzXR

Step 2: Setup

1. Enable SPI

"sudo raspi-config"

select interfacing options

selet SPI

2. Check to see if SPI is activated

"lsmod" -> should see something like spi_2835

3. Download Adafruit libraries

"

git clone https://github.com/adafruit/Adafruit_Python_MCP30...

cd Adafruit_Python_MCP3008

sudo python setup.py install

"

4. Comment lines 13-17 in simpletest.py

5. Uncomment lines 20-22 in simpletest.py

6. Run simpletest.py and examine output

For more detailed setup instructions: https://learn.adafruit.com/raspberry-pi-analog-to-...

Step 3: Code

Step 4: Additional Info

Share

    Recommendations

    • Toys Contest

      Toys Contest
    • PCB Contest

      PCB Contest
    • Make it Glow Contest 2018

      Make it Glow Contest 2018

    2 Discussions

    0
    None
    PeterS591

    Question 9 months ago

    Hi

    I understand the black and red wiring, but I don't understand the yellow/green/blue/purple going to the Raspberry pi. Why not just one cable like brown cable from the sensor?

    1 more answer