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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file assault_and_battery-0.1.4.tar.gz.

File metadata

  • Download URL: assault_and_battery-0.1.4.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for assault_and_battery-0.1.4.tar.gz
Algorithm Hash digest
SHA256 920971a34dcafb108d34e1af4f2f45ed3c974fb728ab6f1ae3bc32370bea7df6
MD5 a69c24a29f5cc42a1a01a8b3244f883b
BLAKE2b-256 08c7ae1e4de56fe80f7babec73c712cb5ecda20500d8d3d6dc35b2598a21595e

See more details on using hashes here.

File details

Details for the file assault_and_battery-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for assault_and_battery-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 56116e9fed5a4210c1d30b26886ada6f319af3877c07848d87518877bcbde681
MD5 f1d5b6ecf0e303ec52221a9cc7dc5b9a
BLAKE2b-256 657bab8ab752dc1b6b8e63d4701017a2f784512414b234e41cb9da3ee643e495

See more details on using hashes here.

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