
Note: this documentation is for emonTx V2.x for documentation for emonTx V1.4 see here.
A low power wireless energy monitoring node. It's designed to sense data from multiple CT current sensors, optically from a pulse-output utility meter and from multiple one-wire temperature sensors. It can be powered by 2 x AA batteries or 5V USB.
| |
|
|

The emonTx is based on the Atmega328 8-bit micro-controller and is fully compatible with Arduino IDE. A 5V FTDI to USB cable is required for programming.
The design is based on the JeeNode. It's fully open-source and is designed for easy expandability and compatability with JeeLabs plug-shields.

3 cts, 3 phases, why not 3 transformers?
Hi, i was wondering how to measure real power in a 3phase circuit without the mesaure of the 3 phase voltages.
I was reading the source code, and realized that the voltage readings is done at the same phase, without any phase shift compensation. That is correct? Is it a problem or it doesen't matter? Do the calibration procedure compensates the phase shift?
Thanks
3-phase monitoring
http://openenergymonitor.blogspot.com/2012/02/if-you-are-active-member-of.html
was thinking on the same
was thinking on the same thing. My reading is somehow wrong when i have the CT´s on diffrent fase.
Pic:
https://plus.google.com/photos/110635428941804287228/albums/5708684258021400033?authkey=CJW4is6u0O-lVw
Probably what im talking about
If the ct is out of sync with the voltage meter (transformer). it can thing that energy is being generated instead of consumed.
i´ll assemble mine this week and test. If this is true, i think i may have a software solution for this.
AC-AC
today i made a setup with out the ac-ac adapter, just set the ac to 230v
And it worked., So there is a problem with the fase readings.
Now this has been running
Now this has been running for a week, and the readings is right.
So any ideeas on how to make the voltages work on 2 fases?
3xAA batteries
Hello,
I'm using 3xAA batteries to power my emonTx, I dont think it's a problem, or am I wrong?
Revisiting an invasive module?
With the stability of the Tx, GLCD etc, are there any plans to create a "semi" invasive module?
Might be worth combining your experiments from http://openenergymonitor.org/emon/node/27, inspired by Jao and Guo's Powerbox into a modern equivalent? I.e a safe socket, allowing appliances to be plugged in and measured (not necessarily controlled), and reported back to the Base.
Tutus
Tutus
emonTX assembled in the Shop
Hi,
Today, i was unable to find an assembled emonTX in the shop.
For the emonBase, the recommandation was to get a Nanode RFX.
I bought 2 Nanode RFX , one for the emonBase, one for the emonTX.
Am I right in my choice ??
Yann
Re: emonTx
We have not yet officially opened the openenergymonitor shop. We are working towards opening it soon. In the meantime please register your interst on the interest form.
Shop already in activity
Hi Glyn,
In this screen on the right, there is a link going to the shop!!
Is it a fake shop just for tests ??
My Paypal payment seems realistic !!
Yann
Re: Nanode shop
The link you can see is a twitter re-tweet from Ken Boak. The link is to his shop that sells the Nanode boards. The Nanode is an Arduino clone board with on-board Etherent, we use the NanodeRF as our emonBase (web-connected base station). We colaborate closly with Ken and I re-tweeted his link to help promote his shop, this is not the OpenEnergyMonitor shop. We will make a big announcment on the blog and twittter when we do lunch the OEM shop. Sorry for the confusion.
Old Nanode5 firmware for CT, Voltage
Also, is there an old sketch for the Nanode5 knocking around, that receives and posts the data from a one (or two) channel TX, as well as apparent power, Vrms, Irms and PF, or do I need to get a NanodeRF?
Re: Nanode5 Vs. NanodRF
Nanode5 (with JeeLabs RFM12B breakout board) is hardware identical to NanodeRF. Exactly the same sketches will run https://github.com/openenergymonitor/NanodeRF
JeeLib
for Arduino ver 1, remember to read this:
Unpack the archive and rename the result to
JeeLib.Put it in the
librariesfolder in your Arduino sketches area.you find the files here: https://github.com/jcw/jeelib (was getting a bit frustrated until i found out)
Re: Jeelabs libraries
Sorry about this, I have updated the readme in the emonTx exmples github to point to the correct place. Only recently have we moved to Arduino 1.0 and the newer JeeLab example on github. The emonTx examples are overdue to a tidy up. I'll try and get round to it the week
EmonTX Firmware
Hi All,
Ive recently completed a build of the EmonTX (previously using Mains Non-Invasive V3).
After looking through the various firmware options I've been using the following firmware https://github.com/openenergymonitor/emonTxFirmware/tree/master/emonTx_1CT_Voltage
as I wish to monitor both voltage and current (one CT). To do this im using a 9v transformer to measure mains voltage. However, my values are off by quite a bit.....for example the EmonTX output monitored via its serial port (real, apparent, VRMS, IRMS, supplyV)
7.59 82.53 343.41 0.24 3164
In relation to the firmware above - could anybody explain the numbers in the calibration code here...
emon1.calibration(357.6,126.5,0);
emon1.calc(20,2000,vcc );
I think I need to substitute these for my own. Im also confused as the previous V3 firmware had declarations for the number of CT turns, burden resistor value etc. to calculate the scaling factor - none of these are mentioned in the firmware above. Thus, where my mains voltage is 240V (238V at present) the EmonTX is returning 343.41.
In addition, I have the CT connected at present to channel 1 (changed code to reflect this), however there is no wire through it at present so it cannot be reading any current. Yet however, Im showing an apparent and real power measurement. Obviously this would introduce errors into the system at times whereby voltage is being measured byt current consumption is zero or practically zero. Indeed with the above example the current consumption is nearly 0 at 0.24a but still the power calculations are off.
I am using an SCT-013-000 CT - it came with the EmonTX kit. Anybody know how many turns is on this CT?
Thanks in advance for your time - hopefully somebody can shed some light on this - or explain how I can calibrate the EmonTX properly.
Kind regards
Gerard Gallagher
CP2101 problems
Finally yesterday I recived the emonTX EmonBase and FTDI adapter. I builded EmonTX, but I´m still get no success to get programed with the inteface CP2101. I downloaded the drivers from Silabs, but still can´t comunicate with the EmonTx to download Firmware. Just for troubleshooting I´m swapped the Atmega with the Arduino Uno that I have and programed on it, then backswapped to the EmonTx and seems to be working since Led is stays on fir about half a second on power up and blinks ever few secs, but I can´t debug with serial because cant get CP2101 interface cable working.
Any ideas to get the interface working (I runing arduino IDE on MAC)
Thanks in advance
Re: Nanode FTDI (CP2101)
Hi,
Good work building up the kit, sounds like its working fine appart from the FTDI programmer. I don't own I mac but judging from the comment left by 'Arthur' on Ken's blog post about the FTDI adapters it can be made to work on a mac:
Does this work for you? Remember to selectr 'uno' when uploading to the emonTx and 'duemilanove' in the tools>board menu in the Arduino IDE when uploading to a Nanode.
Hi Glyn, unfortunately thi
Hi Glyn, unfortunately thi is what I do it before post it here. I have the drivers from Silabs installed, in fact the serial port is showed in Arduino IDE, and what I noticed If i push the upload icon the Adapter performs a Reset on the EmonTX board, but stil no succes getting comunication.
I will spend the rest of the Day assembling the emonBase kit and will try to download Firmware with the adapter, I will post results.
Thanks for your inputs.
Re: Nanode FTDI on mac
ah right, try posting on the Nanode user group: http://groups.google.com/group/nanode-users
Sorry I can't be more of help, but Im afraid I don't have access to a mac computer to tetst.
Nanode FTDI on mac
Hi Glyn, good news, completed the build of emonBase Kit this afternoon and works fine, I uploaded the NanodeRF sketch with FTDI adapter and works great. I don´t understand what happens with emonTX board, just for troubleshooting I checked the continuity btween the FTDI plug on the board and the Atmega pins both TX,RX RST,+5 and GND where ok. Is the emonTx need to be powered apart from the adapter to get programmed???? For any reason what i don´t know I can´t comunicate with the board, but it seems to be working because of the led stays for a half a second on on power then goes off and blinks after a time.
Thanks for your help and your inputs
Re: emonTx nanode FTDI programmer
That's good new news. Strange why emonTx still refuses to program, emonTx does not need seperate power, when programming the emotx gets 5v power from usb. Have you selected 'uno' from tool>board menu in Arduino IDE when uploading to emotx?
If the green LED comes on for a few seconds then flashes once every 10 seconds the emonTx is working fine.
Could you take a photo of the emonTx and send it to me, that way I can check all the components have been fitted correctly?
EmonTX nanode FTDI programmer
Hi glyn, yes i select the uno on t he board for emonTX. I made a pic of my emonTX assembled, also checked all resistor values, confirmed, tested for resistence btween pins and VCC and GND. I have no more ideas to troubleshoot.
imageshack.us/photo/my-images/543/emonkit.jpg/
Thanks in advance
Re: emonTx programming
Components look fine. Assembly is spot-on. What exactly is the problem with the emonTx, what error do you get when your try and program it? You mentioned eariler that the green LED on the emonTx does come on for a few seconds on power-on then flash once every 10's. This would indicate the programming is sucesfull since the emonTx Atmega328 is shipped blank.
us market
do you have info for the us market please
Re: emonTx sales
Thanks for your interest. We will be opening an online shop next month to sell the emonTx and other OEM units in kit form. We will ship to the US. Please register your interest on the emonTx interest form and We'll get back to you.
RCA Jacks
I am in the States and I have ordered the CTs but I am confused on which jacks to order. The jacks that you have listed are from European distributors. When I look through US distributors I do not find those exact jacks.
I am wondering, will any phono jack work? I got some jacks at Radio Shack but they do not seem to work. So I am confused on what the right jack connectors to get for the CTs.
Thanks,
Paul.
CT jackplug connections
Hi Paul,
To fit on the PCB the sockets (female) need to have the correct footprint. The emonTx V2.0 have been designed for these jacksockets:http://www.rapidonline.com/Cables-Connectors/3-5mm-Compact-Stereo-PCB-Socket-20-0144/?sid=fe7bbb5d-6b28-4b7a-9077-d1f8ec68e841. This is a 3.5mm socket designed for CT's that come with 3.5mm jack plugs, specifically Seedstudio SCT-013-000.
We can supply these components. I dont't think I fully undetstand your question. What is it that your trying to do?
Glen, Thanks for your reply.
Glen,
Thanks for your reply.
I have all of the equipment from the earlier breadboard version. I want to take the breadboard version and solder it to make it more permanent the only problem is finding the right female jack sockets for the CTs. I bought these http://www.radioshack.com/product/index.jsp?productId=2103452 and when I insert the CT into it I do not get a reading. I am wondering if I am doing something wrong or if it is the wrong type of jack and I need a special kind.
Thanks again,
Paul.
re: CT jack plug
That should work fine. Make sure you are connecting the correct connections. Only two out of the three (stereo) jack plug connections will be used.
All wired up and working. Battery and pulse questions.
Al working and sending to the Base.
Question 1 - if i connect power via the USB and batterry, will the battery cut in quick enough to avoid much data loss if USB power is cut?
Question 2 - looks like the pulse counter is using interrupts - how easy is it to substitute one of the CT circuits for a second pulse reader?
emonTx batteries & USB and multiple pulse counting interrupts
Hi Andy,
Good work getting it up an running. We would love to hear a bit more and see some photos showing your setup.
A.1 : The emonTx has been designed to be powered by batteries OR usb, not both at the same time. The emonTx does not contain any changing circuitry. Connected the USB for long periods when batteries are inserted is not recommended as the batteries will be continually subjected to a charging voltage of 3.3V.
A.2: Its would be quite difficult as the Atmega328 only has two hardware interrupts. In the emonTx these are both used by the RFM12B and the pulse counting input. It is possible to use continuous sampling and direct port manipulation Arduino sketch as opposed to interrupt driven counting. We have previously developed a 12-input pulse counter based on this method. See 12-input pulse counter in the input modules section. This method has not bee tested with the RFM12B on the emonTx. It would probably need another Atmega328 dedicated to counting pulses, the emonTx could be used to transmit the serial data.
Good luck, let us know how you get on.
All the best, Glyn.
Interupts
It is possible to have interrupts on other digital inputs, you can use the PinChangeInt library:
http://www.arduino.cc/playground/Main/PinChangeInt
I've used this successfully combined with power saving in this sketch:
https://github.com/MarsFlyer/ArduinoEnergyProjects/blob/master/GasLogMin...
Re: interrupts and gas monitoring
Thanks for this Paul. How does the performance compare with the hardware interrupts? I've just had a look at your gas monitoring code. Its looks fantastic. It would be great to have a gas monitor setup documented under input modules on this site. Do you think you could create a page in the input modules section and write a little bit about what you have done and a link to your GitHub?
There has been a lot of interest in gas monitoring recently, its hard for Trystan and I to do any dev work on since neither of us are on mains gas!
All the best, Glyn.
Pics and code
I'll box it up (need to dremmel the case) and take a few pics.
The data is being successfully logged to the OE test/demo EMONCMS server.
Perhaps I can ask for some help on coding (my posts elsewhere excuse my inability to migrate from COBOL to C, PHP, Visual anything...).
This Tx is for water (or gas) monitoring. Could someone point me in the direction of changing the code to post ONLY the pulse count as litres per (minute or hour), with a running total of litres per 24 hours.
My meter is pulsing 1 litre per pulse.
TIA
Future development
Perhaps a future development of the Tx might look to incorporate more pulse counting, as per the 12-input model, or a combo of multiple ATMega's.
With more smartmeters/pulse enabled devices (water,gas, elec, solar, wind), I think CT's will become obsolete.
Am I correct in thinking, in the short term, that a second Tx, with the sketch ammended to change the node number, will integrate seemlessly with the Base though?
Room for 1 more CT?
I've been absent for a while ... you've been busy! The new design looks great.
Here in the US I needed 4 CTs to measure my home + solar output; 2 CTs on the mains and 2 CTs on the solar feed. Is there room for another CT input channel?
-Eric
4 CT's
Hey Eric, welcome back!
Thanks for the comment. Some people are never satisfied! There is not really much space left for another CT channel, it could be squeezed on if the JeePort sockets were done away with. But I am quite keen to keep them to allow of expandability with JeeLabs hardware.
Probably the best thing for you to do is to make up an extra CT channel on a bit of stripboard and plug it into a free JeePort socket. The analogue input on P3 is used for voltage measurement so if you not using this then P3 could be used to connect in your extra channel.
Good luck, Glyn.
Photovoltaic systems
Today I found you website and this project: absolutely great !!
We work on Apps for photovoltaic systems. We would like to test these devices.
How to start now?
thanks a lot
Inspired by your project I
Inspired by your project I did a home heat pump monitoring system with web UI to monitor the results(something similar to opencms) check it out: http://dl.dropbox.com/u/18771283/heat%20pump.png
One of the ideas I have is to have the emontxs poll the emonbase for configurations (calibration values and so forth) and then have the emonbase equipped with a web UI so that these configurations may be done online and pushed to emontx-s. That should make this whole thing more accessible as users won't need FTDIs to configure it.
Keep up the great work!
Re: emonTx configuration
Hi Fan,
Wow great work with your heatpump monitoring. The graph looks very nice. It would be great if you were to write up some documentation on how your system works for the builds section of the website.
Good idea reagrding the emonTX setup configutation. This is certainly the kind of thing we are aiming at.
All the best, Glyn.
Glyn, This is my first
Glyn,
This is my first Arduino project and I am a complete amateur in electronics. I'd feel embarrassed to show the public the patchwork that this project ended to be.. although it works quite nice. Make a hall of shame and I will post it there :p
here is a outline:
At the DIY heat pump I have
* An Arduino Uno equipped with
* Ethernet shield
* Six I2C temperature sensors for various elements temperature capturing
* Xbee
* I2C relay board (I use it to control the the heat pump set temperature)
* Serial 16x2 LCD for visualizations
* Clamp on current transformer for power sensing
On the software side, I have a web server running on that Arduino to read online all these readings and control the relays. The unit sends the readings to a PHP site every 15 seconds.
at the house electric system I have an Arduino Uno+Xbee+Efergy CT to sense the whole house consumption and send to the unit at the heat pump that is network connected
The data collected is sent to a PHP script that collects it, every 15 seconds
I then have a page that visualizes it for any range that the user selects, combining power and temperatures on a single graph.
That is basically it
Thanks.
Re: home setup
Nothing wrong with that system. It's similar to my home setup. If it works then why change it! It's actually quite impressive. It would be great if you could write a bit about it (with few photos and code) for the 'builds' section of the website.
All the best, Glyn.
Would this be possible with XBEE only, with no 328
I was thinking on ways to cut costs even further, a XBEE does have A/D inputs and can transmit power and 6 temperature readings to a XBEE-enabled NaNode if I am not mistaken.
How does that sound?
Re: energy monitoring with an XBEE
I think this might be possible with an XBEE but I doubt it will be cheaper. In bulk at atmega328 and RFM12 together cost less than £7. Also the atmega is much easier to program and the RFM12 has better range. Using the Arduino boot loader on the Atmega makes re-programming the unit very accessible to people familer with the Arduino.
Emmontx V2
I am interested in this new version, when they intend to publish it.
Best regards from Guatemala, Central America