forked from MiczFlor/RPi-Jukebox-RFID
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract docs for battery monitor (MiczFlor#2257)
* extract battmon docs into markdown * Fix typo * add link to ADS1015
- Loading branch information
Showing
3 changed files
with
43 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Battery Monitor based on a ADS1015 | ||
|
||
> [!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](../../../../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](https://www.adafruit.com/product/1083): | ||
|
||
```text | ||
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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters