Arduino to ADS1115 to INA125 to load cell

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
harsheel
 
Posts: 10
Joined: Mon Mar 03, 2014 3:46 pm

Arduino to ADS1115 to INA125 to load cell

Post by harsheel »

here is the circuit picture. and i am having trouble connecting all four things in one circuit, i have tried adafruit website, no use.

Code: Select all

#include <Wire.h>
#include <Adafruit_ADS1015.h>

// Adafruit_ADS1115 ads;  /* Use this for the 16-bit version */
Adafruit_ADS1015 ads;     /* Use thi for the 12-bit version */

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/ADS1015, 0.1875mV/ADS1115)");
  
  // 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
  
  ads.begin();
}

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

  adc0 = ads.readADC_SingleEnded(0);
  adc1 = ads.readADC_SingleEnded(1);
  adc2 = ads.readADC_SingleEnded(2);
  adc3 = ads.readADC_SingleEnded(3);
  Serial.print("AIN0: "); Serial.println(adc0);
  Serial.print("AIN1: "); Serial.println(adc1);
  Serial.print("AIN2: "); Serial.println(adc2);
  Serial.print("AIN3: "); Serial.println(adc3);
  Serial.println(" ");
  
  delay(1000);
}

harsheel
 
Posts: 10
Joined: Mon Mar 03, 2014 3:46 pm

Re: Arduino to ADS1115 to INA125 to load cell

Post by harsheel »

Here are the circuit pictures.
Attachments
20140311_181933_opt.jpg
20140311_181933_opt.jpg (53.53 KiB) Viewed 1202 times
20140311_181921_opt.jpg
20140311_181921_opt.jpg (56.11 KiB) Viewed 1202 times
pic1_opt.jpg
pic1_opt.jpg (58.11 KiB) Viewed 1202 times

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

Re: Arduino to ADS1115 to INA125 to load cell

Post by adafruit_support_bill »

i have tried adafruit website, no use.
Are you following a tutorial? Please post the link if you are. I don't believe we have one for the INA125.
i am having trouble connecting all four things in one circuit,
What 4 inputs are you trying to connect? I only see 2 inputs to the ADS1115 and 2 wires from the other chip (INA125?) that go out of the photo.

What is the output of your sketch?

harsheel
 
Posts: 10
Joined: Mon Mar 03, 2014 3:46 pm

Re: Arduino to ADS1115 to INA125 to load cell

Post by harsheel »

below schematic diagram is my circuit but i am trying to connect the ADS1115 chip to the circuit to get better resolution for reading from loadcell.
so how to connect the ads1115 chip to this circuit and instead of getting analog reading, i want to get digital reading from arduino.
please help i am not a electrical circuit related majoring but still we have to do it for project in mechanical engineering. i am not aware of the circuit too much.

http://learn.adafruit.com/adafruit-4-ch ... s?view=all
i used this site to get my code. i used singleendeed code from the downloaded folder.
please need help
Attachments
INA125P_ARDUINO_LOADCELL_2.png
INA125P_ARDUINO_LOADCELL_2.png (59.47 KiB) Viewed 1162 times

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

Re: Arduino to ADS1115 to INA125 to load cell

Post by adafruit_support_bill »

So you want to connect the output of the INA125 to the ADS1115?

Connect VrefCOM to ADS1115 GND.
Connect Vo to ADS 1115 A0.

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

Return to “Arduino”