Skip to content

Getting power usage from a hall sensor using a Python3 script

Notifications You must be signed in to change notification settings

LouisdeLooze/HallSensorCSV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HallSensorCSV

Getting power usage from a hall sensor using a Python3 script

Setup

This is a simple code that changes hall sensor data to power consumption. Here is the schematic. Schematic

Installation

  1. Clone this repository
  2. You will need these dependencies:
    1. numpy
    2. csv
    3. functools
    4. matplotlib

Usage

main.py reads all the csv files from a specific directory (default is demo/data) and outputs them in a single output.csv

plot.py The console will print all the csv files from a specific directory (default is demo/data), you will have to select and index to plot a graph.

Demo

There is a demo available.

demo/data/ is where all the raw data is.

demo/idle-value/ is where the idle (noise) measurement is

Feel free to adapt/change/steal this code as many times as you want. If you have any cool projects feel free to show them to me!

About

Getting power usage from a hall sensor using a Python3 script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages