RPi 15, Part1 - I2C-ADC Analog to Digital Converter

Опубликовано: 22 Март 2026
на канале: tsbrownie
1,630
15

Using the I2C-ADC analog to digital converter to read 3 channels. One photo-resistor (read light) and 2 resistors for "baseline" inputs.

MATERIALS:
Raspberry Pi
I2C-ADC analog to digital converter (A2D, ADS7828)
photo resistor
2 resistors (1M ohm, 1 100k ohm)
Breadboard
jumpers
(optional) capacitors for input voltage filtering

SOFTWARE (Raspberry Pi)
sudo apt-get update
sudo apt-get install python-smbus python3-smbus python-dev python3-dev (this include python 3)
sudo apt-get install i2c-tools
sudo raspi-config (do this to activate the I2C bus)

INTERESTING LINKS
http://skpang.co.uk/blog/archives/575
http://openlabtools.eng.cam.ac.uk/Res...
https://learn.sparkfun.com/tutorials/...
http://www.hobbytronics.co.uk/raspber...
http://doc.byvac.com/index.php5?title...
http://wiringpi.com/download-and-inst...
https://www.raspberrypi.org/forums/vi...
https://learn.adafruit.com/adafruits-...
http://www.robot-electronics.co.uk/i2...

WARNING: Warning: mis-wiring or mis-programming your Pi or miswiring of accessories can ruin the Pi and accessories.
Information/drawings offered as is. Use at your own risk. If you don't know, learn first.

Re-edit for annotations.