emonTx3 Install Guide

The following guide details how to install an emonTx3 energy monitoring node. Covering an example with 2x CT sensors to monitor two AC circuits in a house and an ACAC Voltage sensor to allow real power calculation as well as power for the emonTx unit itself. The emonTx supports up to 4x CT sensors so the steps below can easily be extended to monitor additional circuits.

In this example the emonTx transmits AC power, voltage and temperature sensor measurements (if connected) every 10s via 433 MHz radio to the emonBase base-station.

The emonBase base-station consists of a RaspberryPi and an RFM69Pi adapter board to receive the 433 MHz radio packets from the emonTx. The emonBase runs our emonSD software including emonCMS for full local data logging and visualisation capability.

  • New 2019: The emonTx firmware now supports higher accuracy continuous monitoring as standard, power from an ACAC adapter or USB power is assumed.

  • Alternative firmware options include: Discrete Sampling firmware - useful when only battery power is available; and 3-phase firmware.

emontx and emonbase

A typical emonTx & emonBase system consists of:

Example emonTx sensor node installation

In this example installation the total house electricity consumption is measured using the CT sensor attached to the brown cable (main feed to the house). Another CT sensor is located inside the main consumer unit, in this case monitoring the electricity supply to a heat pump.

A dedicated socket was installed for the AC-AC Voltage sensor and combined power supply.

A RFM69 433 MHz antennae is attached and also a DS18B20 temperature sensor connected to the emonTx RJ45 Temperature and Pulse input socket.

emontx install

The emonTx transmits real power, cumulative watt-hours, mains voltage and temperature measurements every 10s over RFM69 radio to an emonBase connected via Ethernet to the internet router in the living room.

Installation overview

emonTx

  1. Mount emonTx in desired location, use wall mounts if required, attach antennae.

  2. Plug CT sensors into the emonTx first and then clip around either the Line or Neutral cable of the AC circuits that you wish to measure. If the power reading is negative, reverse the CT sensor orientation. Please read the CT installation guide before installing.

  3. Attach temperature sensors or/and pulse sensor as required. See guides: + Add Temperature Nodes and + Add Optical Pulse Sensor.

  4. Plug in and connect the AC-AC adapter to provide voltage measurement and power. This may require installation of a new outlet or extending an existing one.

emonBase

  1. Connect Ethernet before powering up the emonBase if using Ethernet.

  2. Plug in USB power supply and connect micro-USB cable.

That’s the hardware setup done! The next step is to configure the network connection and setup the emonBase to log data locally or/and post data to a remote server such as emoncms.org.

To setup the software continue to guides:

For advanced emonTx configuration and alternative firmware options see:
emonTx technical guide.

Temperature sensing

A DS18B20 digital temperature sensor can easily be connected to the emonTx V3 by connecting the sensor to the emonTx V3 screw terminal block or RJ45 connector.

The continuous Monitoring firmware (default) supports 3x temperature sensors. The Discrete Sampling firmware (used for battery operation) supports up to 6x temperature sensors.

A DS18B20 sensor can be connected directly to the RJ45 socket, or an RJ45 to terminal block breakout can be used to connect multiple sensors:

EmonTx_RJ45_DS18B20.jpg

Note: The RJ45 socket does not support power supply switching via Dig19 (ADC5).

RJ45 Pinout
The RJ45 implements a standard pinout used by other manufacturers of DS18B20 temperate sensing hardware such as Sheepwalk Electronics.

RJ45-Pin-out.png

Note: The RJ45 socket does not support power supply switching via Dig19 (ADC5) as described above.

Terminal Block Connection
To connect an external DS18B20 to the emonTx V3 screw terminal block, connect the black wire to GND, red to ‘ADC5 / Dig19 / DS18B20 PWR’ and white to ‘Dig 5 / DS18B20 Data / PWM’:

emontx_ds18b20_terminal_block.jpg

EmonTx Power Supply
When using multiple temperature sensors and or an optical pulse sensor with the emonTx it is recommended to power the emonTx via a 5V USB rather than AC-AC adapter due to increased power requirement. An AC-AC adapter can still be used to provide an AC voltage reference.

EmonTx Low power battery mode
In order to save power when running on batteries, the emonTx V3 supports switching off of the DS18B20 in-between readings and performing the temperature conversion while the ATmega328 is sleeping. To do this, power (3.3 V) is supplied to the DS18B20’s power pin from Dig19 (ADC5), this digital pin is switched off between readings. (This facility is available only if the temperature sensors are connected via the terminal block.) The data connection from the DS18B20 is connected to Dig5, this I/O pin has a 4K7 pull-up resistor on-board as required by the DS18B20.

Further reading
If you are using temperature sensors with heating systems such as heat pumps the following blog post by John Cantor provides a number of useful mounting suggestions: John Cantor’s Blog: Temperature sensors for monitoring heat pumps

Pulse counting

The emonTx supports the OpenEnergyMonitor optical pulse counter. The optical pulse counter plugs into the RJ45 socket on the EmonTx.

emontx_optical_pulse.jpg

Alternatively the terminal block can be used for wired pulse counting. Connect the pulse output to IRQ1 Dig3 (4th along from left).

emontx_pulse_input.png

If you are using an optical counter attached to the terminal block, connect the power pin to the 3.3V terminal or 5V if the emonTx is powered via USB (2nd or 1st from the left) and connect ground to GND (3rd from the left).

For isolated volt-free / switch output (SO) pulse output devices, connect across IRQ1 Dig3 and GND. There is an internal pull-up resistor on the pulse input that is enabled in the standard firmware that will pull the signal up when the switched output is open.

In the face of long leads and/or moderate interference, it is advisable to “stiffen” the relatively weak internal pull-up with a parallel 10 kΩ (or possibly less if necessary) resistor wired between the pulse input and the 3.3 V supply.

Alternatively a volt-free / switch output (SO) pulse output device can be connected across 3.3V (or 5V) and IRQ1 Dig3. A pull-down resistor of resistance low enough to overcome the internal pull-up resistor needs to be added in this case, or a higher-value resistor with the firmware modified to disable the internal pull-up.

We recommend powering the emonTx v3 from either a 5V USB or AC-AC adaptor when used for pulse counting operation. Due to the additional power requirements of the optical pulse sensor, battery life will be reduced significantly compared to an emonTx powered by 3 AA batteries for CT operation only.

Emoncms input processing
Pulses and the most recent pulse count are transmitted via RF, as the final variable in the JeeLib packet structure. The emonCMS wh_accumulator input process can be used to log the pulse count. The wh_accumulator input process detects when the pulse count gets reset to zero (after the emonTx is reset) and continues to accumulate, ignoring the reset. A scaler input process can be used to convert number of pulses to kWh. For example: my utility meter outputs 800 pulses per kWh, so each pulse is 0.8Wh. I can multiply the number of pulses by 0.8 to get the number of Wh, or by 0.0008 for the number of kWh accumulated.