This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS1114: Testing Code

Part Number: ADS1114
Other Parts Discussed in Thread: ADS1115

Hi,

Doubt 1.May I get the testing code of ADS1114 (like Arduino or Raspberry Pi )…?

Doubt 2.The slave address of ADS1114 has (0x48 - ADDR connected GND ; 0x49 - ADDR connected to VCC- 5V) Is this the right slave address …?

Doubt 3. I have tested ADS1114 (ref. while browsing ) Arduino : I connected the A0 and A1 pin simultaneously to 5v or Gnd Sometimes I'm getting the data but not constantly and either one pin connect to VCC and another to GND the value doesn't changing. What was the issues in that....?

Blog: github.com/.../ADS1114.ino

  • Hello Thoufiq,

    1. We don't have Arduino or Raspberry Pi specific code. However, on the ADS1114 product page, we do offer some example C code for the ADS1115 that can be used as a starting point for the ADS1114. The main difference between the two parts is that the ADS1115 has more inputs and has an integrated MUX. You can find the example C code under the Support Software section on the product page. https://www.ti.com/product/ADS1114

    2. Yes and no... The first byte sent to the device should be the target address ( total of 7 bits where the last two bits of the address are controllable and will be 00 when ADDR is connected to GND and 01 when ADDR is connected to VDD) and the R/W bit. So if you are connecting ADDR to GND, and wish to write to the device, you will send a byte of 0x90. If you connect ADDR to VDD and wish to send a write command, you will send a byte of 0x92. The address itself will look like 0x48 and 0x49. 

    3. Do you wish to make a single ended measurement? If so, keep AIN1 connected to GND. I if you are applying VDD to AIN0, then you will need to increase your full scale range to +/- 6.144V in the configuration register. You can do this by setting bits 11:9 to 000. Instead of sending bytes of 0x84 and 0x83 to the configuration register, you can send 0x80 and 0x83. 

    The full scale range should be set according to the input level you are providing. The Arduino code had the FSR set to +/- 2.048V. 

    Regards,
    Aaron Estrada