Ammeter logging tool - used to receive from micropython serial connection
Project description
Python Ammeter Logger
Works in conjunction with the Micropython ADC Amperage Monitor
View the details of our load testing series here: https://www.learningtopi.com/category/load-testing/
Introduction
This Python module works with the Micropython ADC Amperage Monitor to collect data from a amperage monitor. The module will control the micropython microcontroller to run a baseline of the current sensor or collect data.
The module can be run of the command line or imported into other projects to record amperage data.
CLI Usage
(venv) $ python3 -m ammeter_logger
usage: __main__.py [-h] [--get-config] [--get-status] [--skip-init] [--force-init] [--init-only] [--sample-interval SAMPLE_INTERVAL] [--capture-time CAPTURE_TIME] [--baudrate BAUDRATE] [--log-level LOG_LEVEL]
DEVICE OUTPUT_FILE
__main__.py: error: the following arguments are required: DEVICE, OUTPUT_FILE
(venv) $
The --get-config and --get-status parameters can be used to get the current status of the microcontroller.
It is recommended to run the following the initialize the ammeter (get a baseline 0 reading) with no load on the ammeter before connecting the device you intend to monitor. Initialization can be run using the --force-init option.
After the ammeter is initialized, the capture can be started using the --capture-time interval. Logged data will be stored in the specified output_file (as a CSV).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ammeter_logger-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5603acad5be8fe720b3b916fdb9286bc32d709974d0d5ba4f140d27755395f4 |
|
MD5 | 7fc2bc9a3a6d93ffb7a2f05ec6dcbeb3 |
|
BLAKE2b-256 | 236b9d5426248b4eaf78b3ca6e309b32feecd9d52ac5956631e1fc9ebc3009a9 |