Introduction: ADC MCP3008 (Raspberry Pi)
Basic tutorial of how to setup an Analog to Digital Converter with the Raspberry Pi.
Step 1: Parts
Step 2: Setup
1. Enable SPI
select interfacing options
2. Check to see if SPI is activated
"lsmod" -> should see something like spi_2835
3. Download Adafruit libraries
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
Adafruit Github: https://github.com/adafruit/Adafruit_Python_MCP300...
Step 4: Additional Info
Online Guide: https://www.piddlerintheroot.com/adc-mcp3008/
We have a be nice policy.
Please be positive and constructive.
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?