Skip to main content

Tools for Nessie Circuit energy harvesting recorder

Project description

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.

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

nessie-recorder-1.0.6.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

nessie_recorder-1.0.6-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file nessie-recorder-1.0.6.tar.gz.

File metadata

  • Download URL: nessie-recorder-1.0.6.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for nessie-recorder-1.0.6.tar.gz
Algorithm Hash digest
SHA256 50e1b597871af6c265c6b749d71503a60c7c0c1d05fe109e718dd28e8ddd1c6e
MD5 0879f8dfb2d11b7c94ce063eec9687d5
BLAKE2b-256 03ba74153658e87bcdfca594bc2378974e0788d9ce6ea31ea19424024d23e60b

See more details on using hashes here.

File details

Details for the file nessie_recorder-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: nessie_recorder-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for nessie_recorder-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8f8936fe54f55994920f4b648fdb6e75e134b7348d58e32abfdf041174bd3383
MD5 1d3c8cc4699d639a6865c01fe4edacf8
BLAKE2b-256 10fc015ba4850ff7bd4fbc88b554107b14b2188ce0990412412a1f737a31ef75

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