/emontx-3phase

emonTx 'approximate' 3-phase firmware. See branch v1.3 for my changes.

Primary LanguageC++

emonTx V3 3-phase Firmware

Build Status

This sketch is a development of the 3-phase ‘discrete sample’ sketch and MartinR’s PLL energy diverter.

It is intended for use on a 3-phase, 4-wire system. It utilises advanced features of the Atmel328P microprocessor to provide continuous monitoring of voltage of one phase and the currents in all three phases, thereby allowing a good estimate of real power to be calculated. The physical quantities are measured continuously, the average values are calculated and transmitted at user-defined intervals.

Pulse counting and temperature monitoring using a single DS18B20 sensor is supported.

By Robert Wall

Key Feautures

  • Continuous monitoring of one voltage channel and up 4 current channels.
  • Gives an accurate measure of rapidly varying loads.
  • 1800 sample sets per second – using 4 channels of an emonTx V3.4 @ 50 Hz
  • Calculates rms voltage, rms current, real & apparent power & power factor.
  • Pulse input for supply meter monitoring.
  • Integrated temperature measurement (one DS18B20 sensor).
  • User-defined reporting interval.
  • Suitable for operation on a three-phase, 4-wire supply at 50 or 60 Hz.
  • Can be calibrated for any voltage and current (default calibration is for emonTx with 100 A CTs & UK a.c. adapter).

Limitations

Because the voltage of only one phase can be measured, the sketch must assume that the voltages of the other two phases are the same. This will, in most cases, not be true, therefore the powers calculated and recorded will be inaccurate. However, this error should normally be limited to a few percent. Voltage imbalance might be the result of unbalanced loads within your installation, or it might result from the actions of other consumers on the same supply.

If you find that one or other phase voltage is consistently wrong, you might want to consider a small adjustment to the current calibration of the affected phase. Because of the additional power required for continuous operation, a 5 V USB power supply is likely to be required, even if only the on-board RFM69CW radio is used. The 5 V power will always be required when the ESP8266 WiFi module is added.

The sketch is not compatible with the RFM12B radio module, nor the Arduino Due.


Resources

Including calibration instructions

Required Hardware

  • emonTx V3.4
  • 3 x Clip on CT sensors
  • 1 x AC-AC adapter
  • USB to UART programmer (to upload firmware)

Upload pre compiled

  • Firmware can be uploaded directly using emonUpload tool to grab latest compiled release and upload via serial.

or

Depending on your ISP

avrdude -uV -c arduino -p ATMEGA328P -P /dev/ttyUSB0 -b 115200 -U flash:w:firmware.hex

Compile & Upload

  • Firmware can be compiled and uploaded with PlatformIO, see User Guide

Or

  • Arduino IDE