Adafruit_ADS1115 adc problem

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mickib1
 
Posts: 2
Joined: Fri Sep 10, 2021 11:53 pm

Adafruit_ADS1115 adc problem

Post by mickib1 »

Hi
I am using norvi AE-04 Series https://norvi.lk/wp-content/uploads/202 ... et-V10.pdf
I am using this example:
https://github.com/adafruit/Adafruit_A ... ended.ino

ads.begin failed , I tried to intialize the second device 0x49 same result
Any suggestion how to procedd?


Code: Select all

void setup(void)
{
  Serial.begin(115200);
  Serial.println("Hello!");
  // The ADC input range (or gain) can be changed via the following
  // functions, but be careful never to exceed VDD +0.3V max, or to
  // exceed the upper and lower limits if you adjust the input range!
  // Setting these values incorrectly may destroy your ADC!
  //                                                                ADS1015  ADS1115
  //                                                                -------  -------
  // ads.setGain(GAIN_TWOTHIRDS);  // 2/3x gain +/- 6.144V  1 bit = 3mV      0.1875mV (default)
  // ads.setGain(GAIN_ONE);        // 1x gain   +/- 4.096V  1 bit = 2mV      0.125mV
  // ads.setGain(GAIN_TWO);        // 2x gain   +/- 2.048V  1 bit = 1mV      0.0625mV
  // ads.setGain(GAIN_FOUR);       // 4x gain   +/- 1.024V  1 bit = 0.5mV    0.03125mV
  // ads.setGain(GAIN_EIGHT);      // 8x gain   +/- 0.512V  1 bit = 0.25mV   0.015625mV
  // ads.setGain(GAIN_SIXTEEN);    // 16x gain  +/- 0.256V  1 bit = 0.125mV  0.0078125mV

  if (!ads.begin()) {
    Serial.println("Failed to initialize ADS.");
    while (1);
  }
  Serial.println("Failed to initialize ADS.");
}

void loop(void)
{
    //https://github.com/adafruit/Adafruit_ADS1X15/blob/2.2.0/examples/singleended/singleended.ino
    int16_t adc0 = ads.readADC_SingleEnded(0);
    float volts0 = ads.computeVolts(adc0);

    Serial.println("Loop: "); 
    Serial.println(adc0);

  delay(1);
}
Attachments
1.JPG
1.JPG (18.1 KiB) Viewed 94 times

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit_ADS1115 adc problem

Post by adafruit_support_bill »

We are not familiar with the Norvi product. From the spec, it appears that the ADS1115 modules are part of the norvi unit - not Adafruit boards. I'd contact the manufacturer for technical assistance.

User avatar
mickib1
 
Posts: 2
Joined: Fri Sep 10, 2021 11:53 pm

Re: Adafruit_ADS1115 adc problem

Post by mickib1 »

Thanks for the reply, yes I know i am using there board both trying to communicate with ADS1115
Will contact there support
Attachments
1.JPG
1.JPG (65 KiB) Viewed 80 times

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”