EMONWRT3: Difference between revisions

From lechacal
Jump to navigation Jump to search
Line 129: Line 129:


[[File:S-l300.jpg | right]]
[[File:S-l300.jpg | right]]
<br>


=Internal Dataflow=
=Internal Dataflow=

Revision as of 13:26, 11 July 2018

Project Progress

Hardware units are now ready and can be purchased here.

Software is operational and new features are continuously being added. This has support for Emoncms and Influxdb and Json requests.
Remote SQL/ Local Save will be integrated soon. Do not hesitate to inform us of the remote service you wish to see included here.

EmonWRT3 Wifi Energy Monitoring Device with OpenWRT

Link to the shop.

EmonWRT3 is a one unit system for energy monitoring. It measures usage of an electrical installation and post data on a server (Emoncms or other). You can then view the data on your computer or phone.

It combines the Arduino based microcontroller and OpenWRT wifi module together. EmonWRT3 interfaces with sensors like Current Transformers/ Temperature and Voltage.

  • Simple to use with web interface for configuration.
  • Connect with Wired or Wifi.
  • Wall mountable.
  • Store and retry send feature.
  • Measures AC current and voltage.
  • Measures Temperature.
  • Computes Vrms, Irms, Real Power, Apparent power, Power Factor.
  • Open source components OpenWRT and Arduino.
  • Emoncms Influxdb support.

Data Storage

Emoncms

From the web interface the user can enter the hostname and apikey of the Emoncms account. More than one service can be added if needed.

Influxdb

The Influxdb details can be setup in the device web interface. More than one service can be added if needed.

Json request

The device can be queried directly to obtain the data locally stored. A simple GET call will return a Json formatted data string. This is an example of the json call

http://OpenWrt/cgi-bin/emonwrt3-json?last=2

will return the last 2 samples read as a json array like

[{"timestamp": 1528977907,"Vrms": 246.71,"P1": 1.83,"P2": 16.00,"P3": 4.16,"Temperature": 19.58},
{"timestamp": 1528977897,"Vrms": 246.82,"P1": 1.42,"P2": 14.44,"P3": 7.36,"Temperature": 19.64}]

Technical Specifications

  • 3 Current Sensor Ports
  • 1 AC/AC Voltage Port
  • 1 Temperature Sensor Port
  • 1 Ethernet Port
  • 1 MicroUSB Power Supply port
  • Operating System: OpenWRT Chaos Calmer
  • Micro Controller Unit: AtMega328 (Arduino)
  • Wifi (internal or external antenna)
  • PCB Dimensions: 55x55mm
  • Enclosure Dimension: 80x60x27mm

Recommended Sensors

Current: SCT-013-000
Temperature: DS18B20
AC/AC Adaptor: 77DB-06-09 77DE-06-09 77DA-10-09

Defaults

IP Address (Wired LAN): 192.168.2.1
Username: root
Password: admin or 'To be set on first use'.

Hardware

Base Board

This is the key central board which

  • host the SKW71 module.
  • hosts the sensor ports.
  • Embed the Arduino microcontroller.
  • Power the system from the micro USB.
  • Avail ethernet connection.

This first unit is CT3V1T1 as for 3 CT 1 Voltage and 1 temperature sensors.

SKW71 Module

The SKW71 module from Skylab runs the operating system OpenWrt.

  • Wifi enabled
  • Runs the Emonwrt3 software
  • Collect acquired data from Arduino
  • Forward to Emoncms/Influxdb/Thingspeak

This unit comes in two antenna version.

  • PCB antenna. The unit does not need any external antenna.
  • External antenna. For extended range requirements.

Enclosure

Enclosure is 3D printed. 60mm square size with 2 wall mount hole. Two M3 screws hold the assembly together.

Overall dimension 80x60x27mm

Wifi Antenna

The SKW71 modules has two antenna options.

PCB Antenna

The antenna is internal and does not require any other parts. This usually a good option if other connecting devices are in a good range.

External Antenna

If a stronger range is needed this can be a good option. Two additional components will be required.

  • 1 U.FL IPX to SMA cable.
  • 1 SMA Antenna.


Internal Dataflow

Internally the Arduino mcu collects data from sensors on the ADC port and transmit them to the OpenWRT module via serial interface.

Then the OpenWRT module transfer all data to the specified web server (Emoncms, InfluxDB etc...) using conventional HTTP protocols.

The configuration of the unit is using the Luci web interface that comes with OpenWRT. One can at easyly configure the EmonWRT to connect to a wireless network.

Configuration

The web interface

All configuration can be done from the luci interface provided by OpenWRT.

Output Channels

All channels are acquired and computed from the Arduino micro-controller. The configuration of the Arduino device is achieved with the web interface shown below.

Stream ouput

The EmonWRT3 aims to output data to various remote services. Emoncms and Influxdb are supported. This can be configured from the page below:

Background Configuration

The actual configuration is saved in a text configuration file /etc/config/emonwrt3.

User Manual

First Use

Emonwrt3 Web Interface

Emonwrt3 Network Configuration

Emonwrt3 Upgrade Software

Files

CT3V1T1 Sketch V1.0

Version History

Sketch

v1.0 - First version.

Package

v1.0.0 - First version