Battery discharge calculator
This is a simple script that will calculate the discharge curve of a battery. It does this by communicating with a flight controller running INAV (with calibrated voltage and current sensors) with a constant load attached.
It reads the voltage, instant amperage, and Ah consumed, and writes the samples to a CSV file for later plotting.
Installation
Use pipx:
$ pipx install assault_and_battery
And run the script as:
$ assault --help
Usage
Plug an FC with calibrated sensors to USB, making sure to either cut the VCC cable (or put some tape over the VCC pin), or use Bluetooth, USB-Serial, or some other way that doesn't power the FC. Also make sure to not have any ground loops.
Then, run the script and start your load. It will output a CSV file with the current date and all the measurements.
To plot stuff, use assault plot <csv file>. You can delete the first few values if the
load hasn't ramped up, or if you want to get rid of starting noise. This will produce
a graph, that's about it.
Release files for assault-and-battery 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| assault_and_battery-0.1.4.tar.gz | 37.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| assault_and_battery-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.4 kB
Release files / assault_and_battery-0.1.4.tar.gz
| Download URL | assault_and_battery-0.1.4.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
920971a34dcafb108d34e1af4f2f45ed3c974fb728ab6f1ae3bc32370bea7df6
|
|
BLAKE2b-256 checksum How to use checksums |
08c7ae1e4de56fe80f7babec73c712cb5ecda20500d8d3d6dc35b2598a21595e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Release files / assault_and_battery-0.1.4-py3-none-any.whl
| Download URL | assault_and_battery-0.1.4-py3-none-any.whl |
|---|---|
| Size | 38.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56116e9fed5a4210c1d30b26886ada6f319af3877c07848d87518877bcbde681
|
|
BLAKE2b-256 checksum How to use checksums |
657bab8ab752dc1b6b8e63d4701017a2f784512414b234e41cb9da3ee643e495
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|