Skip to main content

A battery discharge curve calculator slash torture test.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

assault_and_battery-0.1.4.tar.gz (37.2 kB view hashes)

Uploaded Source

Built Distribution

assault_and_battery-0.1.4-py3-none-any.whl (38.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page