ADS1115 Stops Code

I have an ADS1115 ADC and when I run even the trial code, it always without fail stops at ads.begin. I posted the trial code below, this is what adafruit suggest for example code. I tried 2 different boards that came from the same pack. Same issue with both, I tried a downgraded board manager, I have 4.7k resistors for I2C, I am using and arduino Uno, I think I may have just got unlucky and got 2 bad ADS1115's. Any suggestions would be helpful

#include <Wire.h>
#include <Adafruit_ADS1X15.h>

Adafruit_ADS1015 ads1115;

void setup(void)
{
  Serial.begin(9600);
  Serial.println("Hello!");
  
  Serial.println("Getting single-ended readings from AIN0..3");
  Serial.println("ADC Range: +/- 6.144V (1 bit = 3mV)");
  ads1115.begin();
Serial.println("Hello");
}

void loop(void)
{
  int16_t adc0, adc1, adc2, adc3;

  adc0 = ads1115.readADC_SingleEnded(0);
  Serial.print("AIN0: "); Serial.println(adc0);
  Serial.println(" ");
  
  delay(1000);
}

Fat chance.
Fortunately, the odds of a simple mistake on your end that's entirely correctible is extremely big.

Can you please show a schematic or even wiring diagram of how you've connected everything together, and some clear photographs of the system as built? Thanks!

Are you sing the following Brreakout Board for ADS1115 ADC (Fig-1)?

image
Figure-1:

yes

Update: I tore everything down and restarted and made sure the ONLY thing on my breadboard was the resistors and the only thing on my R3 was the ADS1115. It is working now. Now I just need to figure out why it didn't like when stuff was connected to the board even with no power to it.

Edit: I just realized that I plugged the VCC of the ADS1115 into the Vin and now it works perfectly, I am so confused.

Edit: it was the ground

Please, connect 3.3V at Ch-A0. Adjust your sketch of post #1 to acquire 3.3V and show it on Serial Monitor at 1-sec interval. Operate the ADC from 5V supply of UNO.

Would appreciate to know what you are seeing on the Serial Monitor.

This is what I was doing to test before, so I didn't double dip or I thought it could be issues with the input voltage from my sensor. Please check my solution in the previous reply.

I am worry for the following line when the default gain is 2/3.

Wy have you installed the above resistors? There are 2x10k pull-ups for the I2C Bus on the breakout board.

I did some more experimenting and it turns out that one of my ground pins on the arduino was shot, I had my address pin hooked up to it and it didn't function because of that.

Your experiment would appear as completed when you are able to acquire 3.3V and show it on the Serial Monitor.

It did that successfully with the settings at 6.144V, I need it to run at 6.144V because my sensor is 0-5V.

Good detective work and nice to hear you've been able to resolve the problem so quickly. Stripping down the circuit to just the Arduino and the ADC was a smart move; well done.

Please, post your sketch where you have acquired and displayed 3.3V test volt. I would like to run that sketch in my setup.

#include <Wire.h>
#include <Adafruit_ADS1X15.h>

Adafruit_ADS1115 ads1115;

void setup(void)
{
  Serial.begin(9600);
  Serial.println("Hello!");
  
  Serial.println("Getting single-ended readings from AIN0..3");
  Serial.println("ADC Range: +/- 6.144V (1 bit = .1875mV)");
  ads1115.begin();
Serial.println("Hello");
}

void loop(void)
{
  int16_t adc0, adc1, adc2, adc3;

  adc0 = ads1115.readADC_SingleEnded(0);
  Serial.print("AIN0: "); Serial.println(adc0);
  Serial.println(" ");
  
  delay(1000);
}

I added the following line with your sketch and now my Serial Monior shows: 3.3V. I had problem because my sketch's class name was Adafruit_ADS1015 (old man mistake) instead of Adafruit_ADS1115.

Serial.prinln(adc0*(6.144/32768), 1);