Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Trying to read battery voltage from ADS1115 to Raspberry Pi

Discuss robotics applications using FlowStone here

Trying to read battery voltage from ADS1115 to Raspberry Pi

Postby albertalley » Thu Apr 27, 2017 3:15 pm

Hello guys,

I have a solar powered Raspberry Pi setup and I am attempting to read the battery voltage from the battery to the Raspberry Pi. I am told that I should be able to accomplish this with an ADC. Unfortunately I have very little understanding of electronics and wiring so I am hoping to get a few pointers.

The main question I have is exactly where in my setup the ADC will fit. At the moment I have the following:
- 3.7V battery connected via 2-pin JST-PH to the USB / DC charger.
- USB / DC solar charger connected via 2-pin JST-PH to PowerBoost 500.
- PowerBoost 500 is powering the Pi via USB cable.

So I am unsure of exactly where the ADC should fit into this setup. Would the ADC need to be wired to the battery, the Pi, and the charger? Would the ADC be between the battery and the charger, and then grounded to the Pi? Or is there perhaps an output from either the solar charger or the PowerBoost that I could connect to the ADC to get the battery input?



I didn't find the right solution from the internet.
References:
- http://www.societyofrobots.com/robotfor ... ic=18556.0
- Mobile explainer video Examples.
albertalley
 
Posts: 1
Joined: Wed Apr 26, 2017 8:56 am

Re: Trying to read battery voltage from ADS1115 to Raspberry

Postby nix » Fri Apr 28, 2017 12:41 pm

You could read voltage with a multi-meter,
but not log it and automate actions.

FS doesn't run on R Pi,
but PureData does

IMO, it is some sort of ADC you need,
check what sort of header pins the R Pi has,
to see what to connect it to.
Be a little careful with wattage out of range.

Like I say, a multi-meter will tell you voltage,
but AFAIK you shouldn't try to read amperes from a battery

edit- an ADC will be between the analog charge and a digital processor,
and convert it to digital data. It is possible that the R Pi can act as your ADC,
with a direct connection to a header pair.
The typical Analog-Digital Converter we are familiar with on this forum is a soundcard,
which receives AC at up to 1v roughly AFAIK
User avatar
nix
 
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am


Return to Robotics

Who is online

Users browsing this forum: No registered users and 13 guests