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.1.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

assault_and_battery-0.1.1-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

Details for the file assault-and-battery-0.1.1.tar.gz.

File metadata

  • Download URL: assault-and-battery-0.1.1.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.12

File hashes

Hashes for assault-and-battery-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0d67d050aea0f0e51532851a206bddb399791c033a323d9ed1d4fdd4e5e1304e
MD5 7fa5f38cd578ff099643d80c29c98429
BLAKE2b-256 a0b930fa8bfde7f3e1b71c592dc9f774110d04549a006318b1c69e847f30855d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: assault_and_battery-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 37.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.12

File hashes

Hashes for assault_and_battery-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44efea23afd1dc0fb843322698081dd0d7c58738998c0b6375aa7743dd38e29f
MD5 76f93ca8a65e685b6786ecdecb16b777
BLAKE2b-256 84f925e767b2e5651ee5e66c592b9777bdf321f9a6455e76aa332c3a714e6aa2

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