Good day,
I recently got a couple of ADS1115 that I am wanting to use with a raspberry pi for data logging. However, after following the instructions on how to setup and get my adc working, I am not getting stable results.
I have an old BK Precision DC Power Supply 1610 that I set up to power a simple DC circuit to test the ADS1115. The circuit simply has 2 10k resistors in series to create a high middle and low voltage point. The voltage applied is only 2v to ensure I don't go over the ADC's max of 3.3v. I checked it with a multimeter to ensure that I was getting the appropriate voltage. The gain was left at 1 to measure over the 4v range.
When I run the python code on the pi, even though I only connect A0 to a point on the circuit, the results jump all over the place on all 4 channels. This happens at 0, 1, or 2 volts. I have 2 of the ads 1115, and they are both doing the same thing.
I am stumped. I figured this would be "plug and play", but something is not working right.
ADS 1115
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23910
- Joined: Mon Apr 21, 2008 2:33 pm
Re: ADS 1115
Do you have a ground between the ADS and your test circuit?
- cameron_whitehead
- Posts: 4
- Joined: Fri Mar 25, 2016 4:46 pm
Re: ADS 1115
No. They are separate circuits.
- Franklin97355
- Posts: 23910
- Joined: Mon Apr 21, 2008 2:33 pm
Re: ADS 1115
Can you post a diagram of your test circuit? You should have both A0 and ground connected to the test points.
- cameron_whitehead
- Posts: 4
- Joined: Fri Mar 25, 2016 4:46 pm
Re: ADS 1115
I hope this makes sense to you.
- Franklin97355
- Posts: 23910
- Joined: Mon Apr 21, 2008 2:33 pm
Re: ADS 1115
You need a ground between the power supply and the ADS1115 ground as a reference for the analog reading.
- cameron_whitehead
- Posts: 4
- Joined: Fri Mar 25, 2016 4:46 pm
Re: ADS 1115
Worked like a charm. Thanks.
Please be positive and constructive with your questions and comments.