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

Uploaded Source

Built Distribution

assault_and_battery-0.1.2-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: assault-and-battery-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e3e8c86f724e66698f10794cb5515056d64da5837f6ea06eb12c56b069dd26aa
MD5 5aa3616f12a13e186a696d2a757f9ce5
BLAKE2b-256 3f3fb3e383dc18a6f628faede7eacba62c0878b7d104b094511748fb31ca677a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: assault_and_battery-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 38.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b79740f9c6f8f0f78de6eca04275ce83c5eef5db89fb2a0465f7d196a455ef8b
MD5 a30857cd8440648d518cf375c94b72ca
BLAKE2b-256 ae482c908fb25213192f0498f00b391ed7133388754876b2388340159ad36fb6

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