Caution
Lithium and other batteries are dangerous and must be treated with care. Rechargeable Lithium Ion batteries are potentially hazardous and can present a serious FIRE HAZARD if damaged, defective or improperly used. Do not use this circuit to a lithium ion battery without expertise and training in handling and use of batteries of this type. Use appropriate test equipment and safety protocols during development. There is no warranty, this may not work as expected or at all!
The script in src/jukebox/components/battery_monitor/batt_mon_i2c_ads1015/__init__.py is intended to read out the voltage of a single Cell LiIon Battery using a CY-ADS1015 Board:
3.3V
+
|
.----o----.
___ | | SDA
.--------|___|---o----o---------o AIN0 o------
| 2MΩ | | | | SCL
| .-. | | ADS1015 o------
--- | | --- | |
Battery - 1.5MΩ| | ---100nF '----o----'
2.9V-4.2V| '-' | |
| | | |
=== === === ===
Warning
- the circuit is constantly draining the battery! (leak current up to: 2.1µA)
- the time between sample needs to be a minimum 1sec with this high impedance voltage divider don't use the continuous conversion method!