Tools for Nessie Circuits energy harvesting recorder
The energy harvesting recorder records voltage and current of two energy harvesters (AC and DC) as well as accelerometer readings.
The tools in this repository are used to convert recorded data to csv or hdf files for analysis and further processing.
There's also a command to convert a harvesting trace to a format compatible with the Nessie Circuits SolarBox.
Installation
Install the python package using either
pip install nessie.recorder
or
pipenv install nessie.recorder
Data extraction
To convert the file REC_001.DAT recorded with an EH recorder to a csv output file:
nessie-recorder extract -i REC_001.DAT -o out.csv
Extracting to csv requires to load all recorded data into memory, which may not work for very large files.
As an alternative, convert the file REC_001.DAT to an hdf5 output file:
nessie-recorder extract -i REC_001.DAT -o out.h5
Plotting
To plot the extracted data:
nessie-recorder plot -i out.csv
If your recording is very long, you won't be able to load all data into memory for plotting. If you extracted your data to hdf5, you can plot the downsampled (e.g., every 100th sample) data with:
nessie-recorder plot -i out.h5 -d 100
Conversion to SolarBox
You can convert an EH recorder trace to a SolarBox trace to replay it to an energy harvesting device.
For this purpose, you will need a mapping of the SolarBox input value (0-100%) to the resulting power of a panel mounted inside.
This mapping must be formatted as a csv file with two columns: solarbox and recorder in percent and watts respectively.
solarbox,recorder
0,8.4833230555061e-08
10,0.00768804210057344
20,0.015250790089624976
30,0.022412615156234474
40,0.029180363344797327
With this mapping stored under mapping.csv, you can convert the recorder trace recorded.csv to a SolarBox trace solarbox.csv using:
nessie-recorder convert -i recorded.csv -o solarbox.csv -m mapping.csv
Example Configuration
This directory also contains an example configuration file ./CONFIG.INI for use with the EH recorder. Adjust it to your needs and store it on the top level of a FAT32-formatted SD Card under the name CONFIG.INI.
Release files for nessie-recorder 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nessie-recorder-1.0.6.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nessie_recorder-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / nessie-recorder-1.0.6.tar.gz
| Download URL | nessie-recorder-1.0.6.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50e1b597871af6c265c6b749d71503a60c7c0c1d05fe109e718dd28e8ddd1c6e
|
|
BLAKE2b-256 checksum How to use checksums |
03ba74153658e87bcdfca594bc2378974e0788d9ce6ea31ea19424024d23e60b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.3
|
Release files / nessie_recorder-1.0.6-py3-none-any.whl
| Download URL | nessie_recorder-1.0.6-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f8936fe54f55994920f4b648fdb6e75e134b7348d58e32abfdf041174bd3383
|
|
BLAKE2b-256 checksum How to use checksums |
10fc015ba4850ff7bd4fbc88b554107b14b2188ce0990412412a1f737a31ef75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.3
|