using ADS1115

RodneyC
2016-09-18
7 days ago
  • RodneyC - 2016-09-18

    I'm wanting to use an ADS1115 16 bit ADC on my project. If anyone else using these? I find the MCP3008 lacking for my needs. I'm having a hard time finding a reasonably detailed writeup on creating a device library from scratch, or even modifying existing device files to create new libraries. I could even use a prebuilt library so I could learn from that.

     
  • alesles - 2016-09-21

    I have written the library a while ago. The library is not fully tested, but it worked for me. You will find the library, device description file and an example inside the archive.

    ADS1115.zip [252.22 KiB]

     
  • RodneyC - 2016-10-22

    alesles hat geschrieben:
    I have written the library a while ago. The library is not fully tested, but it worked for me. You will find the library, device description file and an example inside the archive.

    Hello,

    I've finally made time to tinker with this.

    The ADC is being powered from 5V and my single ended input (potentiometer) is referenced to the same 5v. PGA is set to FSR_6144mV. (2/3)

    With the input held ad VDD, I'm still only getting 4700 max reading. Same with all inputs.

    Any help you could give would be appreciated greatly.

     
  • RodneyC - 2016-10-22

    It looks like a found where the issue was coming from.

    It seems your library has the raw data being converted to a max reading based on the PGA setting. So, FSR_6144mV means that it will only output a max data reading of 6144. For my purposes I need resolution, so I changed all those type presets to 16383. Now I'm reading close to 12600 max reading, which is about right, since I'm still set to 2/3 gain, or +/-6144mV full-scale.

    It would be nice to trade this PGA for an external reference input.

     
  • StefanH90 - 2019-05-18

    alesles hat geschrieben:
    I have written the library a while ago. The library is not fully tested, but it worked for me. You will find the library, device description file and an example inside the archive.

    Hi, i have Downloaded your Library, and i installed it in my program, but i get no Values from it. Maybe you can explain Step by Step how to setup your library and do it working in my program.

     
  • vincentger - 2024-10-28

    Any reason the ADS1115 wouldnt work with SP20.1 and Runtime 10.0.0.0 on the Raspberry Pi . Using Bullseye or Buster i run into the same issue:

    Libary and integration works in general as described above BUT i am seeing "bleeding" between the analog inputs . Specifically consecutive ones: So sometimes the raw from AI1 shows on AI2, AI2 on AI3, .. AI4 on AI1. Even with filtering i cant smoothen that out properly and i feel like something is wrong.

    Almost like the bus is stumbling over itself, or the request from Codesys to the device.

     
  • andrax

    andrax - 7 days ago

    I have the ADS1115 running and have no problems.
    But have you used a level shifter between the ADS1115 and the Raspberry?

     

Log in to post a comment.