On-Screen Battery Monitor Options

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 905 times

Re: On-Screen Battery Monitor Options

Post by VeteranGamer » Sun Nov 19, 2017 9:57 am

YaYa wrote:
Sun Nov 19, 2017 9:42 am
Sticking here... i must confess that it’s harder to understand than i thought.

I’m really new to the whole stuff.
its not that hard....

as HoolyHoo stated, as long as you wire up the board (ADS1015) correctly and install his script (mintyPi) properly... it should work...

i haven't tried it yet, but i have a few boards ordered (so hopefully soon)

plus because your using HoolyHoo script, it has a safe shutdown feature built into it (i think activated via a tactile), so that should cover you on that front too.....


.

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 688 times
Contact:

Re: On-Screen Battery Monitor Options

Post by YaYa » Sun Nov 19, 2017 10:22 am

I will really appreciate if you post here your testings, i’m really interested in this solution as it will allow me to do almost nothing to solve two functions i need to implement in my future project.
Follow me on instagram Image

User avatar
rodocop
Posts: 1702
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 599 times

Re: On-Screen Battery Monitor Options

Post by rodocop » Sun Nov 19, 2017 10:50 am

I've got some ads1015 on order too. But I assume it will be the same as the minty pi monitor. Wire battery to vcc and gnd on the board. Wire sda and scl to the gpio pins from the battery monitor install guide. Wire the switch as seen in the guides too and then install hoolyhoos script.

I'll post when my parts arrive too and can confirm if that works.

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 688 times
Contact:

Re: On-Screen Battery Monitor Options

Post by YaYa » Sun Nov 19, 2017 10:55 am

Ok thanks all, a bit hard to figure things out as i didn’t built a MintyPi and as i will need to connect the resulting solution directly to the Pi itself (not a gaming related project)
Follow me on instagram Image

User avatar
rodocop
Posts: 1702
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 599 times

Re: On-Screen Battery Monitor Options

Post by rodocop » Sun Nov 19, 2017 10:57 am

Yeah. The minty pi battery monitor is pretty strait forward. Should be similar with the board like this. Hopefully it will work on many situations.

User avatar
erik_gee
Posts: 356
Joined: Thu Jun 16, 2016 12:57 am
Location: United States
Has thanked: 137 times
Been thanked: 193 times

Re: On-Screen Battery Monitor Options

Post by erik_gee » Sun Nov 19, 2017 11:10 am

rodocop wrote:
Sun Nov 19, 2017 10:50 am
I've got some ads1015 on order too. But I assume it will be the same as the minty pi monitor. Wire battery to vcc and gnd on the board. Wire sda and scl to the gpio pins from the battery monitor install guide. Wire the switch as seen in the guides too and then install hoolyhoos script.

I'll post when my parts arrive too and can confirm if that works.
I haven't used the board, but I can say that the ADC is as you say, very straight forward. It communicates via i2c so as long as the data pins are connected, it should behave in the exact same way
GBC AIO kit Sales Thread:https://www.sudomod.com/forum/viewtopic.php?f=38&t=9928

Bunch of different shoulder button kits Sales Thread:viewtopic.php?f=38&t=6233&p=63192#p63192

AIO board for DMG Sales Thread:
viewtopic.php?f=38&t=6431

6 Button Common Ground Board Sales Thread: viewtopic.php?f=38&t=4811

User avatar
wormwoody
Posts: 13
Joined: Mon Feb 20, 2017 7:00 am
Has thanked: 4 times
Been thanked: 1 time

Re: On-Screen Battery Monitor Options

Post by wormwoody » Mon Nov 20, 2017 7:16 am

I'm also interested in this!

Fixmylife
Posts: 28
Joined: Tue May 02, 2017 11:43 pm
Has thanked: 1 time
Been thanked: 3 times

Re: On-Screen Battery Monitor Options

Post by Fixmylife » Tue Nov 21, 2017 9:23 pm

How would it go connected to the ADS1015 using hoolyhoos code?
I wss lucky enough to buy two of his boards beforr they sold oit but i would love to have the option to get other battery monitors

User avatar
rodocop
Posts: 1702
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 599 times

Re: On-Screen Battery Monitor Options

Post by rodocop » Wed Nov 22, 2017 6:12 am

Fixmylife wrote:
Tue Nov 21, 2017 9:23 pm
How would it go connected to the ADS1015 using hoolyhoos code?
I wss lucky enough to buy two of his boards beforr they sold oit but i would love to have the option to get other battery monitors
So you have two battery monitor boards? It's easy then. Connect the battery direct to batt- and batt+ then connect the SCL5 and SDA3 to the pi's gpio pins. Install the function button as well. Then install hoolyhoos combo script. Or just use the minty pi v4 image. (Depending on your controls and screen you may need to tweak some settings.)

If you're talking about a bare ads1015 board I assume it's the same. But you use VCC and GND and SCL and SDA on the ads1015 in place of batt+ and batt- and scl5 and sda3.

The exact wiring can be found on the minty pi battery monitor install guide.

codeman0624
Posts: 109
Joined: Wed Nov 23, 2016 10:19 am
Has thanked: 3 times
Been thanked: 74 times

Re: On-Screen Battery Monitor Options

Post by codeman0624 » Wed Nov 22, 2017 7:13 am

Not to knock all the hard work everyone here is doing, it's great. But doing straight voltage measurement of a lithium battery with an ADC to try to determine the state of charge of the battery is not very accurate. The voltage curves of lithium batteries makes it hard to actually determine the state of charge with just a voltage measurement.

For anyone that's interested:
http://liionbms.com/php/wp_soc_estimate.php
http://batteryuniversity.com/learn/arti ... _of_charge

But there are actual battery monitors/fuel gauges designed to account for this. And many of them use the I2C protocol for communication, so they could fit easily into existing scripts
https://www.sparkfun.com/products/10617

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest