Closed razor7877 closed 8 months ago
Here is documentation for using the ADS1115 with CircuitPython: https://learn.adafruit.com/adafruit-4-channel-adc-breakouts/python-circuitpython
Install the required library with pip using sudo pip3 install adafruit-circuitpython-ads1x15
I2C interface needs to be manually enabled on the Raspberry Pi 3B using sudo raspi-config
before it can be used
A multimeter was used to test the voltage of the different pins. Both 3.3V and 5.0V input voltages have been tried. The VDD, ADR, SCA and SDL pins are at the correct voltages. A brand new ADS1115 was used and didn't work either. The GPIO pins of the Raspberry Pi were tested using gpiotest & pigpio and all work correctly. The ADS1115 is still not detected using i2cdetect. The I2C bus was already enabled using raspi-config. An Arduino Uno R3 will be used instead as it already contains analog inputs.
The Raspberry Pi GPIO pins are only digital pins, which means the photoresistor cannot directly be used with it. Therefore, I am trying to use an Adafruit ADS1115 ADC to get a digital signal.