Giter Site home page Giter Site logo

bmdonline / energymonitor Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 5.0 9.96 MB

Arduino energy monitor, using SCT-013-030 current sensors

License: GNU General Public License v3.0

OpenSCAD 55.41% C++ 44.59%
ampere amperemeter arduino arduino-nano current current-meter design-project diy domoticz energy

energymonitor's Introduction

EnergyMonitor

Arduino energy monitor, using SCT-013-030 current sensors

Project Links :

This is a full energy monitor project :

  • You can manage 1 to 6 sensors.
  • You can configure it through USB (see below).
  • It can communicate through USB, with any homemade software.
  • It can communicate with any Home Automation System supporting MySensors (I'm using Domoticz).
  • Full source is provided, you can customize it.

Needed parts :

Instructions :

  • Before to print case, you can specify how many sensors you have.
    • You can define the exact number of sensors, or plan more. Each socket will be pre-cut for future use.
  • Follow joined scheme for assembly.
    • Each sensor have to be connected to A0, A1 and so on...
  • Upload sketch to the Arduino Nano.
  • Connect it to any computer for configuration (see below).
  • Let's play...

Configuration parameters :

  • Number of sensors,
  • Sensor calibration (Vrms, ICal, IOffset),
  • Sample frequency,
  • Transmission frequency,
  • Toggle MySensors on/off,
  • Toggle serial output on/off.

Configuration will be saved to eeprom.

Using serial console, you can communicate with the sensor. For example, using minicom (? for show help) :

$ minicom -b 115200 -D /dev/ttyUSB0

 __  __       ____
|  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
| |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
| |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
|_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
        |___/                      2.3.1

Energy Sensor has powered up

Energy Sensor (can use up to 6 sensors)
F0: : Sample frequency in seconds (F0:5)
F1: : Send frequency in seconds (F0:60)
E#:[0|1] : Enable Sensor # (E0:1[;E1:1])
V<#:val> : Set Vrms (V0:230[;V1:230])
C<#:val> : Set ICal (I0:29.95[;I1:29.98])
O<#:val> : Set intensity offset (O0:0.05[;I1:0.07])
S[0|1]   : Toggle Serial output
T[0|1]   : Enable MySensors transmission
M<#>     : Sensor mode (1: power, 2: current, 3: power+current)
all commands are case insentitive

F0:2;F1:60
E0:1:V0:230:C0:29.40:O0:0.01
E1:1:V1:230:C1:32.00:O1:0.05
S0;T1
M3

Latest lines show current configuration.

Warning : If you are using SCT-013-000 instead of SCT-013-030, you have to add burden resistor. NRF24L01 may have connection issues. You have to add 10µF capacitor between PWR and GND.

You'll be handling dangerous voltages. I decline any responsibility in case of any incident or accident.

energymonitor's People

Contributors

bmdonline avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.