So, i am trying to connect my ESP32 with ads1115 but its not able to connect for some reason and shows error most of the time. i have also adjusted esp32 on two small breadboard.
.
and my code is
#include <Wire.h>
void setup() {
Serial.begin(115200);
Wire.begin(21, 22); // SDA, SCL
Serial.println("\nI2C Scanner starting...");
}
void loop() {
byte error, address;
int nDevices = 0;
Serial.println("Scanning...");
for (address = 1; address < 127; address++) {
Wire.beginTransmission(address);
error = Wire.endTransmission();
if (error == 0) {
Serial.print("I2C device found at address 0x");
if (address < 16) Serial.print("0");
Serial.println(address, HEX);
nDevices++;
}
}
if (nDevices == 0)
Serial.println("No I2C devices found\n");
else
Serial.println("Done.\n");
delay(3000);
}
Idk what is the problem i looked at the videos and sites but they suggested using resistors or current shunts so yeah... please do help me i am new to these stuff and want to understand properly.
jim-p
March 5, 2026, 1:21pm
2
Did you solder the header pins to the ADS1115 board?
They must be soldered on
yes i did solder them properly
jim-p
March 5, 2026, 1:42pm
4
Use the WireScan from Examples->Wire
Which board do you have selected in the IDE?
Have you compared your code to any of the many known to work examples?
wait wait it worked but got problematic again, do you have any idea how to do proper wiring? because it gave me the result
Scanning...
I2C device found at address 0x43
I2C device found at address 0x44
I2C device found at address 0x45
I2C device found at address 0x46
I2C device found at address 0x47
I2C device found at address 0x48
Done.
but went back to cannot find I2C mostly because of lose wiring or something, do you have idea how to properly fix them?
yeah, it is correct i checked it
jim-p
March 5, 2026, 1:49pm
8
Remove the connection from the ADDR pin.
Run the scanner I suggested.
It should find it at 0x48
Select the ESP32 Dev module
esp32 dev module i have selected
but isn't ADDR pin needed to be connected with GND?
jim-p
March 5, 2026, 1:56pm
11
No, on the board you show it's connected to ground through a resistor, so the default address is 0x48
jim-p
March 5, 2026, 2:03pm
12
If it still does not work, you may have a bad solder connection, a bad breadboard connection or a bad ADS board.
Can you take a close up picture of the board?
i removed the ADDR as you said but before removing ADDR it showed me the results of
Scanning...
I2C device found at address 0x43
I2C device found at address 0x44
I2C device found at address 0x45
I2C device found at address 0x46
I2C device found at address 0x47
I2C device found at address 0x48
Done.
jim-p
March 5, 2026, 2:11pm
14
Can you read what is printed on the ADS1115 IC?
I beginning to think it fake.
Where did you buy it?
16bit I2C ADC+PGA
ADS1115
jim-p
March 5, 2026, 2:16pm
16
Does the IC on the board look like this
oh this, yeah. it does look like that
jim-p
March 5, 2026, 2:22pm
18
With the letters BOGI on it?
Do you have anything else connected to the I2C bus?
yeah BOGI is written in it with something else written above it just your image. And SDA and SCL is only connected with D21 and D22 of esp32 not any other.
jim-p
March 5, 2026, 2:43pm
20
I'm stumped. I can't explain why it's finding those other addresses but it does find 0x48 which is the ADS1115 default address.
install the ADS1x15 by Tillaart and try running the ADS_test_config.ino