Back to Browse

Raspberry Pi 5 ADC: ADS1115 Raspberry pi i2c interface

840 views
Jun 17, 2025
9:15

Interfacing adc with raspberry pi 5 with i2c interface. The ADC we used is ads1115 which is 4 channel 16-bit adc. This project demonstrates the Resistor Measurement with the help of Raspberry pi and ADS1115 16-bit ADC.To measure the resistor value attached to channel 3 pin and ground, forming a voltage divider with a 470k pull-up resistor, you'll need to calculate the resistance based on the voltage divider formula. The formula for a voltage divider is: Vout = Vin * (R2 / (R1 + R2)) Where: Vout is the voltage measured at the junction (Average Voltage from your ADC readings), Vin is the supply voltage (assuming it's the same as the ADS1115's supply, typically 3.3V or 5V, but you need to confirm this), R1 is the known pull-up resistor (470k ohms), R2 is the unknown resistor you're trying to measure. Rearranging the formula to solve for R2 gives: R2 = R1 * (Vout / (Vin - Vout)) code : https://gist.github.com/abdul-rehman-2050/d090bd53cf3edd2600344150e0667da6

Download

0 formats

No download links available.

Raspberry Pi 5 ADC: ADS1115 Raspberry pi i2c interface | NatokHD