How to monitor battery?

Talk about (almost) anything

How to monitor battery?

Postby Maxpower » Mon Feb 02, 2015 2:51 am

So i think i may have a problem with my battery. Is there a way to monitor my battery to show it's discharge rate and how much is left? Thanks in advance!
Maxpower
 
Posts: 1
Joined: Mon Feb 02, 2015 2:50 am

Re: How to monitor battery?

Postby Skyrunner65 » Thu Feb 05, 2015 12:40 pm

You can check the settings.hex, I believe. If not, I'll have something made.

EDIT: :( Sorry, I couldn't access my computer yesterday. I'll make it soon, I promise.
EDIT #2: Here you go!
Power Checker.zip
(14.36 KiB) Downloaded 285 times
Last edited by Skyrunner65 on Sun Feb 08, 2015 5:12 am, edited 1 time in total.
User avatar
Skyrunner65
 
Posts: 371
Joined: Thu Mar 20, 2014 5:37 pm
Location: NC,USA

Re: How to monitor battery?

Postby rodot » Sun Feb 08, 2015 3:44 pm

The current battery voltage of the Gamebuino is stored in the following variable you can access any time : gb.battery.voltage
You can set gb.battery.show to either true or false for the battery logo to either appear or not in the top right corner
You will find more information on the power consumption page.
The plot of the discharge was made using the Battery logger, included in the Gamebuino Library examples.
I hope that helps :)
User avatar
rodot
Site Admin
 
Posts: 1290
Joined: Mon Nov 19, 2012 11:54 pm
Location: France

Re: How to monitor battery?

Postby erico » Sun Feb 08, 2015 4:11 pm

Thanks, that givea a clear heading on the ´sleep´ mode I proposed some other thread.
So the iddle condition (no backlight/no sound) is what can hold up to 24h.
User avatar
erico
 
Posts: 671
Joined: Thu Mar 27, 2014 9:29 pm
Location: Brazil


Return to General forum

Who is online

Users browsing this forum: No registered users and 19 guests

cron