TinyCircuits Forum

TinyCircuits Products => TinyDuino Processors & TinyShields => Topic started by: falaroce on April 20, 2017, 03:28:45 AM

Title: Tinyscreen+ Vbat reading
Post by: falaroce on April 20, 2017, 03:28:45 AM
Hello,
I ordered the tinyscreen+ and an lipo battery, and I would like to now if there is a way to read battery voltage, in order to print a % of battery remaining ( and possibly add an auto-shutdown with "save state").
I didn't see anything in the schematic that would let this possible, but I am clearly not an expert.
It is possible?
Title: Re: Tinyscreen+ Vbat reading
Post by: thesko on May 18, 2018, 06:49:11 AM
Hi, I would also like to know how this could be done!

The only information I've found so far are rather complex "hacks" to estimate the data:
https://codebender.cc/sketch:91833#TinyScreen_Smartwatch.ino
(look for the displayBattery() function)
http://forum.tinycircuits.com/index.php?topic=1599.msg3087#msg3087
(more or less the same as above)
http://forum.tinycircuits.com/index.php?topic=1412.msg3419#msg3419
https://gist.github.com/KhanradCoder/d016330a9b69bf7c659a


Is there an achievable way of modifying the TinyScreen+ board to get a voltage readout of the battery and maybe even a charging state?

Can some of the TinyCircuits staff help here?
Title: Re: Tinyscreen+ Vbat reading
Post by: lennevia on June 14, 2018, 05:32:57 PM
Hey guys!

We're working on getting a tutorial up about this right now! Thank you for your patience!
Title: Re: Tinyscreen+ Vbat reading
Post by: thesko on June 15, 2018, 07:19:41 AM
That is awesome news! I can really make use of this for my current project! Thanks for the update  :)
Title: Re: Tinyscreen+ Vbat reading
Post by: lennevia on June 15, 2018, 02:29:07 PM
The tutorial is up! Check it out here: https://tinycircuits.com/blogs/learn/tinyscreen-battery-voltage

If you're interested on how we figured this out, or maybe what hardware we used, I attached a picture of the part of the TinyScreen+ schematic we used! ;)

But it really is some sticky math to get it all figured out, so feel free to save yourself from the frustration and just use our functions in the tutorial!   :)

Title: Re: Tinyscreen+ Vbat reading
Post by: thesko on June 19, 2018, 04:22:32 AM
Works like a charm!! Now I just have to find the fitting values for a battery display with my configuration/power consumption :)

Thanks a lot!