lipocheck

Self-contained bar-graph for LiPo batteries
git clone https://git.mitxela.com/lipocheck.git
Log | Files | Refs | README

Branches

Name Last commit date Author
master2017-11-10 01:57:09 +0000mitxela

File Tree (HEAD)

Name Size
README.md981B
bat.asm1.653K
bat.hex358B
build.bat278B
vbat_schematic.png2.804K

History

* 8fa6670 (HEAD -> master) | mitxela 2017-11-10 01:57 | Add README.md | * 0f3e83b | mitxela 2017-11-10 01:56 | Fix typo | * f3f505b | mitxela 2017-11-08 01:55 | Add schematic image | * 1cbdf16 | mitxela 2017-11-08 01:54 | Add assembled .hex file | * f3c52e6 | mitxela 2017-11-08 01:54 | Add comments | * 31f306c | mitxela 2017-11-07 15:12 | Power reduction register | * c9c77eb | mitxela 2017-11-07 15:02 | Go back to sleep after a few seconds | * c8d509e | mitxela 2017-11-07 14:29 | Disable PWM, use resistors for current limiting and less noise | * db16cf0 | mitxela 2017-11-07 14:20 | Use sleep mode to reduce ADC noise | * 4b99416 mitxela 2017-11-07 13:55 First commit

Contents of README.md:

LiPoCheck

Tiny standalone LED bargraph to indicate battery level.

This simple project recreates a feature often built-in to lithium battery packs: press a button, and a small LED bar graph displays the current charge level for a few seconds. It uses an ATtiny85 and its internal bandgap voltage reference to measure its own power supply and illuminate the correct number of LEDs.

The voltage thresholds for each LED should be set depending on the battery you're using and the application. The discharge curve for LiPo batteries varies based on discharge current, so the safest thing to do is to measure a complete discharge, logging the voltage against the integrated capacity -- if you have a constant-current sink, this will directly be proportional to time. Once you know the voltages at 75% capacity, 50% capacity, etc you can drop these into the macros in the code to get an accurate reading on the bar graph.

More info: https://mitxela.com/projects/lipocheck