I am looking to build an emonTX with RFM12B or similar wireless link that can monitor the following scenarios and I am not sure if the EmonLib can handle the processing load:
1) 3 CT inputs and 3 AC inputs, to monitor one 3 phase 208VAC load.
2) 4 CT inputs and 2 AC inputs, to monitor two different 240VAC split phase circuits like PV generation and utility power.
I am interested in real and apparent power in both cases, hence the need for AC voltage monitoring on each phase. Any feedback is greatly appreciated. I found the examples in the EmonLib software but I can't find a description of the limitations.
Sincerely,
Kevin
Re: Can emonTx arduino software handle 3 AC and 3 CT inputs?
You'll need to read emonLib.cpp
CalcVI( ) uses voltage and current pins defined by inPinV and inPinI and those are set up by current( ) and voltage( ).
So provided you give those the right pin numbers, it should do the right calculation. Of course, you must have a separate instance of EnergyMonitor for each leg/phase.
A good starting point for the 3-phase unit might be an emonTx V2, which has all the analogue I/O pins available on headers.
But do you actually need to monitor both legs? Most of your fellow users report that the voltage balance between the two legs is very good and feel they don't need to monitor both. It would be very useful to me to know what you measure in terms of the balance, and its variation.
Re: Can emonTx arduino software handle 3 AC and 3 CT inputs?
Thank you for your reply. I will give it a try. I looked at the EmonLib.ccp code and examples. That library is pretty awesome. I have no experience actually running any example code on an emonTX. I need to get my hands on an emonTV V3.4 smt board and run some tests to determine how much processing time will be consumed by the three instances. I am hoping there are enough cycles left to interface with a pair of MCP23S17 i/o expanders to the SPI bus to handle a 3 digit seven segment display and some push-buttons.
I currently use a variety of off-the-shelf solutions to measure power and energy for PV and demand management systems. All of our projects are installed in Costa Rica. The simplest application used a single CT with a 4-to-20mA output tied to an analog PLC doing demand management. It was a 3 phase 208V PV branch circuit and a single CT with no AC voltage sensing provided good enough accuracy for the application. Our more complex projects have used web connected revenue grade meters that monitor >100kW of PV on 2000A service panels. We also use micro-inverters that have web based monitoring options. The sweet spot is monitoring residential and commercial PV between 1 and 20kW, with options for load diversion. It would be nice to have a single platform solution that could be easily scaled for monitoring a variety of circuit topologies.
Phase voltage imbalance is not a huge problem with our PV arrays, or the loads we encounter. The grid in Central America runs a little wilder than we see in the States. I believe a simple residential installation can use one AC voltage sense input and two or four CTs without sacrificing much accuracy.
Larger properties with multiple units are typically fed with three phase 208V and they tap off two legs for what should be 240V split phase. That causes some issues if the loads are not equal, odd stuff like 240V on-demand water heaters wired onto the 208V are common. As I wrote this post I took a peek at a web connected meter on a 3P 208V property and it is running 5% out of balance; a 10% imbalance is not unusual when the occupants start flipping on 5kW instant on water heaters. I am concerned that the accuracy would suffer if we only used one AC voltage sense input on the 3P 208V properties.
Re: Can emonTx arduino software handle 3 AC and 3 CT inputs?
If you're looking to handle displays etc, emonLib is not the way to go. Look instead at Robin's diverter code (in fact, look at Robin's diverter if you are thinking about diversion), links on the home page here, which runs the ADC continuously and uses interrupts to handle the conversion result. The units he sells through his website can have displays as an option. (He might even build custom units for you ).
Re: Can emonTx arduino software handle 3 AC and 3 CT inputs?
Thank you for your reply. I need to read through Robin's load diversion project. My hope is that I can use the emonLib and the MCP23S17 arduino library without running out of processor time on a 3CT and 3AC voltage input monitor. The 'S17 library makes bit-banging the 16 i/o pins easy as the arduino digitalWrite and read functions. I am going to buy an emonTX this week and see if I can add some i/o routines and measure how much processor time is left. One goal is to have a unit that can act as a stand-alone power meter with an integral display to show Watts, kWhrs, Volts, and amps selected with buttons, and have the ability to connect to an optional emonLCD or emonBASE over the RF link. This would allow me to cover anything from a simple 1kW PV array to a large 208V 3P web connected application.
We believe load diversion or any projects with unique control requirements could be handled with an emonBASE or custom board that intercepts the RF link data from the emonTX. For instance, a simple board with a 24V relay controlled over the RFM12B link would be great for disabling air-conditioning units or kicking on an electric water heater when a PV array is producing a certain wattage.
I am currently working on a circuit board and enclosure design based on Glyn Hudson's emonTX V3.4 circuit board assembly. If I can ensure that the OEM software will work properly I will pull the trigger on the layout and have a breadboard built in parallel. The schematic is attached to this post. The design will need to meet agency approvals for the location it is applied. I am not even certain if I should post this design as it requires appropriate isolation. To your knowledge has anyone gone through the CE or UL certification process with any variation of the OEM? I am aware of the CE approval on the emonTX V3, great work. I searched and found nothing OEM related to voltage isolation safety approval. You help is much appreciated.
Sincerely,
Kevin
Re: Can emonTx arduino software handle 3 AC and 3 CT inputs?
Hi Kevin,
Robert is very familiar with the various forms of my Mk2 Router system for "continuously" monitoring the flow of 'real' energy, and diverting any 'real' power that is surplus. Since posting the initial release on this forum in July 2012, I have since set up my own business to supply suitable hardware to customers. Although the software is very similar, my new PCB-based version makes it easier to construct a complete 1-phase diverter system. I can also supply pre-built diverter systems to order.
Last year, I commissioned a 3-phase version which runs on a new PCB. This uses the 6 analogue inputs of the Atmel 328P processor to monitor voltage and current on each of the three phases at the supply point. Although the ADC sub-processor is running as fas as it can, the occupancy of the main processor is only around 70%. While maintaining the regular sampling sequence, there is plenty of spare time to transmit power and voltage data via RF, and also for some Serial output.
Because the prime purpose of my router systems is to divert any real power that is surplus, they do not generally calculate apparent power. However, this feature could no doubt be included if there was a need for it.
If my 3-phase development is of interest to you, please drop me a PM, or there is an email address for general enquiries on the Shop page of my website.
Regards to all, Robin
Re: Can emonTx arduino software handle 3 AC and 3 CT inputs?
"I searched and found nothing OEM related to voltage isolation safety approval."
My understanding is that's because the original OEM offerings were kits and there could be absolutely no control over the standard of construction, therefore any kind of approval would be impossible to obtain in practical terms. Hence the use of approved low voltage power supplies and adapters, and current transformers.
And having seen what some contributors have proposed, Glyn & Trystan's caution is well-founded.
Re: Can emonTx arduino software handle 3 AC and 3 CT inputs?
Robert,
Easy to understand why all the OEM project circuit boards use AC wall adapters. I have seen a few scary designs proposed on this forum. That said, those AC wall transformers need to go to be practical for my applications. Adding phase separated wall outlets is a big expense.
Thank you for the helpful feedback. I am going to proceed with caution. My goal is a CE marked device that passes the relevant IEC safety specifications. I have someone looking into the scope of the required agency approvals. Plan is to use local independent labs for testing and prepare an in-house declaration of conformity. All this expensive testing aside, I think the most dangerous aspect of any energy monitor is instillation by DIY'ers.
Sincerely,
Kevin
Re: Can emonTx arduino software handle 3 AC and 3 CT inputs?
Robin,
The MK2 looks very interesting. I need to read through all the information and get my head around the unit. I am not certain that our applications require a fast response time. I will send you an email this evening, usa time, explaining exactly what we are trying to accomplish.
Sincerely,
Kevin