Use in the US

I am new to the forum and searched through a lot of threads and have not been able to determine for sure if the openenergymonitor system will work for me in the US -- any information/advice would be greatly appreciated

Robert Wall's picture

Re: Use in the US

Basically - yes.

The system was designed for the UK system: 240 V, 50 Hz, single phase TN-S or TN-C-S so you need to adapt somewhat. You might need a c.t that is different to our standard because I understand that thicker cables are common there, and you might need a different voltage monitor - depending on what mains supply you have. The higher supply frequency means that you get a few less voltage and current samples per cycle, but in practice that won't make any real difference. It has been done, obviously you've missed the pertinent threads.

hooiser13's picture

Re: Use in the US

Thanks, do you anticipate a system marketing in the US, I would think the demand would be significant.  I also think this sort of solution would be beneficial in industrial applications.  I would be interested in using this solution at my company to monitor power consumption on the manufacturing floor.

 

 

glyn.hudson's picture

Re: Use in the US

Please let us know how you get on with the system in the US. We are keen to get a setup in the US documented on the website. It's a little bit strange how there has been few few forum threads regarding this, as you say I'm sure they would be lots of interested people in the US. 

Robert: do you know of anyone maintaining an OEM steup with stock hardware in the US?

Best of luck, 

Robert Wall's picture

Re: Use in the US

The most recent report was from Dan Woodie: He adapted MartinR's PLL energy diverter, which of course uses the standard emonTx, to use 3 c.t's at 60 Hz.  http://openenergymonitor.org/emon/node/2624 and http://openenergymonitor.org/emon/node/2679. Also more from Dan in here: http://openenergymonitor.org/emon/node/2835

Magnelab CT's are available without a burden (one in each range) and when derated and fitted with the correct (larger) value burden can be used with the higher voltage emonTx input. E.g. the 600 A  SCT-1250-000 (ratio 1:7500) is good for 200 A @ 1 V output + 120% overload and has a much bigger opening that our standard 100 A YHDC one (which is often too small to fit around their main incomers).

The earthed centre-tapped supply is the main problem since they treat it simultaneously as both two single 115 V supplies and one 230 V supply, therefore it has to be treated as a two-phase system, two CTs are required, one on each line and the neutral current is indeterminate. Classical theory says you need one fewer wattmeter than the number of wires, and a voltage and current input pair to the emonTx is exactly equivalent to a wattmeter, so you must measure two line currents and two line-neutral voltages. Apparently, the voltage balance is normally good and there is little inaccuracy if the voltage on one line only is measured and the other is assumed to be the same (but negative of course).

A three-phase 7-wire supply would be out of the question with or without a PV input - you'd need to go for three stacked emonTx's as per MartinR's solution, or a larger processor and a custom pcb, though of course the sketches and library will work with a little modification to suit the different I/O mapping.

This http://openenergymonitor.org/emon/node/2400 seems to indicate a successful system, whilst this thread http://openenergymonitor.org/emon/node/711 has a number of contributors all seemingly having success. This thread also has some good points http://openenergymonitor.org/emon/node/1959 (though I have my doubts about using a doorbell transformer - the output waveform might well be a less than faithful reproduction of the input).

There's some more discussion in http://openenergymonitor.org/emon/node/1768 that might help, and as Marquis27 is now discussing emoncms and data points, he's probably got a working system!

Dan Woodie's picture

Re: Use in the US

Robert,

Thanks for the mention and the good summary. The system has been very stable lately and running well. I am actually running a variant of the EmonLibPro by Chaveiro as I found that to be slightly more accurate for measurement than the PV Router sketch in my situation, but everything else was spot on.

hoosier13, I am happy to post the code I am using for you if you want. The Magnelab CTs are working well and giving stable results. I use two of the Magnelab CTs for my house mains and one of the standard CTs from the shop for the smaller gauge wires coming out of my PV inverter. I changed the burden resistors on the EmonTx board to better suit the current range and CTs I have, but otherwise left everything standard.

Sorry for going silent recently. I have been tied up with local events. Tomorrow I am heading with my oldest son to the regional FIRST LEGO League Robot competition in Rochester, NY. I coach two teams and have been busy in our fall season. Once the season has finished I hope to post the comparision of the different code derivatives I performed late summer / early fall. I also asked Santa for an EmonGLCD kit ;-). Hopefully I have been a good boy...

Dan

 

 

glyn.hudson's picture

Re: Use in the US

Thanks a lot guys for info. I hadn't appreciated the needs of a larger diameter CT opening until now. We have had some interest from resellers in the US: namely Wicked Devices and Modern Devices. I think the best way to go forward with developing he system in the US is to work with a local reseller who can also engage with the system and together the the community develop a version of the system which is more tailored to US users. I would be interested to hear your thoughts on this and an estimation of the work load required by such a reseller.

Robert Wall's picture

Re: Use in the US

I can't help thinking that a US version with 2 voltage and 4 current inputs would fill a need. For a 3-phase (or is that 6-phase?) supply you need 6 voltage and 6 current inputs just for imported power and no generation, and given the shorter cycle period as well, that's looking decidedly dodgy for a single ATmega 328P. It could be a case for MartinR's "Full Fat" stacked design as standard (sold as a starter unit with radio for 1/2 phase and 2 non-radio add-ons for 3/6 phase). Work load - how long is your piece of string? I should imagine it would be broadly similar to the UK operation given the same sales volume. However, the potential sales volume is probably not broadly similar!

pbadger's picture

Re: Use in the US

The national electrical code in the US specifies conduit between the meter and the panel in the US, so the current transformers that you are using in the EU are slightly problematic.

This means that customers will be left with three options.

  • Opening the panel themselves to install the current transformers. This might work for the advanced hobbyist or homeowner who has done some wiring and is not terrified of panels.
  • Hire an electrician. This will require finding an electrician who works on old construction and remodeling and convincing them to come out for what is likely under an hour of work. Cost is likely to be between $100 - 200
  • Using another current sensing method.

    • This could involve a couple of different methods. I have a non contact current sensor at Modern Device that might work through pvc conduit (but not metal), especially for heavier loads. It's based on amplified linear analog hall effect sensors. It works on the service entrance to my house which is some kind of fabric casing (asbestos?) I had never seen the stuff before moving into Rhode Island so I doubt it's common.
    • Covering the meter to block a certain portion of light and then sensing the dark or light spot on the turning wheel - for older "wheel" type meters. It looks like that is the way that black and decker does it on their unit - available in the US for around $100. The radio signal for this is also 433 Mhz. I didn't look to see if people had hacked the signal. For what it's worth their published resolution is 100 watts, with a 300 watt minimum.

      Most smart meters have a blinking light I believe that would be easy to sense with similar techniques. There are several varieties of meters in use in the US.

  • Decoding the radio on the smart meters. When I last checked on this, some people had made some progress on this. That was several years ago.
  • Other ideas such as measuring specific appliances using my sensor, or current sensors etc. I'm probably missing others - Hacking Kill a Watt units to add compatible radio units the way Lady Ada did with xbee?

best regards,

Paul Badger
Modern Device

 

pmscientist's picture

Re: Use in the US

I'm in the US, and have had success getting this to work. While the posts mentioned earlier and the main documentation did provide everything necessary to get it going, it would be nice to have documentation that's specific to a variety of areas. Documentation for US/Canada/Mexico would be nice in my case, and I've seen at least one question from someone in Brazil.

I'd be happy to help with getting documentation consolidated for adapting emontx to the US power configuration. I'd also be happy to work on elements of making this more easily installable in the US, especially if there's someone coordinating such efforts. I'm thinking things like a standard wall adapter or two w/known attributes, testing different current sensor arrangements, etc.

Since this ended up being a bit long, here's a summary of my thoughts for those that don't feel the need to read everything.

1. The US has a wide variation in potential conditions, which presents challenges for providing standardized power monitoring, especially of current

2. Use of existing emontx hardware is feasible for US, and probably desireable
- 2 CTs + 1 voltage sensor is sufficient for monitoring a US residential supply
- 3 phase has the same sensor needs as European 3 phase (US doesn't center tap power supplied as 3 phase)
- Most if not all adjustments needed are software based, with the potential exception of resistor values (I haven't needed to modify these)

Paul provides a good view of the monitoring practicalities here in the US. Another possible alternative is to attach the CTs prior to the meter, but then you'll likely have some weatherproofing to do as well (though if you're afraid of opening the panel, not sure you'd do this either, not to mention the likelihood of needing a ladder for access). Another route I've seen some people take is placing smaller CTs on most/all of the wires that exit each breaker. While you could wire things up to do some input summing, this method pretty much requires more CT inputs. If I had a smart meter, I'd gladly use it, but seems like the US is behind a bit in terms of deploying those meters.

In regards to current taps and feed wires in the US, different CTs aren't always needed. I picked up a couple of the ones used by emontx from seeed studio. I've got 150A service (not entirely sure of wire gauge) and had to wrap some electrical tape around the conductors to ensure the CTs stayed in place. It would be nice to have wider reports of success using the documented sensors, but the existing ones can work for many over here.

I've used Paul's hall sensor for some individual appliance monitoring. I've been happy with it for that application. One complicating factor for using it as a general solution on the main supply is that some local building codes require the use of metal conduit. On the other hand, it might be easier to weatherproof than CTs.

Honestly, one of the biggest challenges in the US is probably the sheer variety of conditions one can encounter. Other than the electrical parameters, the adoption of standards here really doesn't exist except on a local/regional level. The age of supply wiring varies greatly, and mandatory updates due to code changes isn't really a concept embraced at the residential level. Sounds like Paul has either quite old or quite updated wiring. I've got a moderate age home, but with updated supply wiring. The meter to breaker box wiring requirements vary. The radio protocols for smart meters vary, as do the stacks on top of the radio signal. Not sure how much of this variation is similar across the pond.

In regards to voltage monitoring, a single sense point is sufficient for US. As mentioned in other posts, there are other points in the emontx system with wider tolerance than the voltage difference between each side of the center tap. From a practical perspective, if a truly meaninful difference developed between the two sides of the center tap, it's not likely that the monitoring implications would be the biggest concern at that point.

In regards to inputs needed for US supply wiring, there's no fundamental need for more than 2 CTs for basic residential monitoring here. Similarly, for 3 phase, there's no need for any more sensors than in other countries. While the votages may differ, the potential 3 phase wiring setups are the same.

In regards to hardware specific to particular areas, I'd argue that the current platform is sufficient to provide basic monitoring capabilities in the US without modification, at least for the present emontx implementation. With the possible exception of resistor values, the necessary adjustments are supported by current software.

Robert Wall's picture

Re: Use in the US

Very many thanks for that. It's not for me to say, but I think Glyn & Trystan would very much appreciate any help you can offer on the ground. As you point out, knowledge of and the availability of a 'standard' a.c-a.c adapter would be a great help. It's interesting that you say the US doesn't centre-tap the 3-phase supplies - the poster who said they had a 7-wire supply could have been mistaken, or maybe he was elsewhere on the American continent.

How then are micro-generation schemes connected in the USA? If they feed in at 230 V, then is there a neutral connection (which would imply 2 more c.t's) or is it 2-wire so that only one additional c.t. is needed?

pmscientist's picture

Re: Use in the US

Yea, not sure where the 7 wire supply came from. I've done a fair amount of datacenter work, and it's all been 4 wire @ either 480 or 208V. One possiblity is there's a backup generator involved. In that case, you would have 7 wires feeding a load transfer switch that moves the facility supply between grid and backup. In that case you'd only have one supply connected to load at a time, and monitoring both simultaneously may not be needed. Another possibility I've seen is multiple utility feeds, in which case you would need simultaneous monitoring at 6 or more points.

There is a form of neutral in a delta 3 phase configuration where one of the 3 phases is center tapped to provide the neutral. I could see someone extrapolating that idea and coming up with 7 wires, but since only one of the 3 phases is center tapped only 4 wires are presented. My understanding is that's a rare setup and I've no experience with it.

I wish I knew more about grid tie inverter hookups for micro-generation in the US. Judging from what I've read, inverters authorized for grid-tie installations are almost always 240V. The only ones I've seen w/120V output are <1kW. What I don't know is if/how the neutral line is typically hooked up. My guess would be that, as with so many things here, it varies and that both 2 and 3 wire connections are possible. Seems like emontx can handle even the worst case here, at least in terms of CT inputs. Although, the differences on the 4th channel could present some issues. OTOH, I'd say that most in the US with a grid-tie PV system who are also interested in using an emon would be able to handle those issues ok.

Robert Wall's picture

Re: Use in the US

From the context (I can't find the post now) I got the impression that the 7-wire system was in essence 6 phases 60° apart (IIRC, I think it was a commercial building and they had their own final distribution transformer) so that there was the option of 115 V or 230 V to various areas, with the load (roughly) balanced across the phases.

That certainly sounded plausible to me. ( But the idea of 3 phases with the neutral being the centre tap of one - like this? from Wikipedia - leaves me incredulous.)

09540's picture

Re: Use in the US

Yep, closed Delta. Power companies hate to install it because it takes an additional transformer compared to open delta, but the delivered power has a lot less harmonic distortion than the more common open Delta. You have to be real careful when working in load centers not to connect single-phase 120 volt loads to the wild leg (N->L3), makes for exciting times and ~really~ bright lights!

glyn.hudson's picture

Re: Use in the US

This sounds optimistic, although the amount of variation sounds a bit of a nightmare! At least in the UK installations are pretty standardized. I've been in contact with our supplier of AC-AC adapters and the adapter we use is also available with a US plug. I will see if we can get some for the shop since it would be good if we were all using the same adapter in terms of calibration etc. 

Have you got any recommendations regarding CT's (with larger diameter openings) which will work on many US system?

Paul: I will be in touch with how we can take this forward. 

Robert Wall's picture

Re: Use in the US

"Have you got any recommendations regarding CT's (with larger diameter openings)"

Yes, units from the Magnelab range without a burden resistor are suitable. Those supplied with an internal burden are designed for 0.333 V output, but without their internal burden and derating to 33% to stay within the VA rating, Magnelab have confirmed their suitability for the emonTx. So for example a 600 A one is good to 200 A with an external burden calculated to give a 1 V rms output to exactly suit the emonTx running at 3.3 V).

Dan Woodie's picture

Re: Use in the US

I am not a electrical engineer (chemical eng by trade), but from my experience, domestic US power is almost exclusively 2 phase 120V power with a common neutral. The phases are 180 degrees apart, and most circuits in the house run from one leg to the common neutral. High wattage devices like ovens, electric furnaces, and electric clothes dryers will run between the two phases for 240V power. Most solar installs I have seen (which are not many, but at least a few) are 120 V installations. Mine is a 4.5 kW install that supplies power at 120 V on one of the two 120 V phases, including net metering (export) to the power grid on the one 120V leg of the 2 phase power. Commercial power does have a large amount of options including 3 phase power but domestically that is very rare.

For my install I used a AC/AC transformer that should be widely available here in the US at Radioshack, a common electronic hobbyist store here in the US.

http://www.radioshack.com/product/index.jsp?productId=3875403

In terms of the proper CT, I did a large amount of searching to try and find an inexpensive CT that would fit the large diameter (18 mm) mains in my panel box (150 A service). In general the mains in the US are larger although they will vary by the service provided. I would say that 100A service will in general be the minimum although older homes (>50 years) may have smaller. I did find a CT similar to the one offered in the Emon shop that was larger, but it was an import business that had a min order of 10 pieces, when I only needed 3. I ended up going with the Magnelab units that were $45 each for my two mains, and the Emon standard CT for the PV output, which is a much lower gauge wire. The SCT-075-000 comes without a burden resister and zener protection diodes. I emailed the manufaturer and was was told that the # of turns is 7356:1.

http://www.magnelab.com/products/Current-Voltage-Sensors/Split-Core-AC-Current-Sensor-SCT-0750

So far these have worked well for my install. Let me know if there is anything else I can do to assist in getting US compatible parts more widely available.

Dan

09540's picture

Re: Use in the US

Dan has given a good overview of the "typical" US household utility service. I would take issue with one point, though. A properly installed load center and the connections made to the single-phase (120V) circuits in the facility would normally more-or-less evenly connect those circuits between the two phases and neutral, balancing the load to the utility transformer. 240V loads, of course, would be connected between the two phases.

Service entrance wire here is normally sized (at least in newer installations) for 200 ampere service. Since the use of aluminum conductors is so prevalent, #0000 (four-aught) wire is the norm. I just went out an measured a hank of this wire I have out in the garage, and it was 17mm in diameter, including the insulation. As Dan noted, an 18mm CT would fit, but depending on the amount of open area inside the enclosure (load center, panel board, etc), you may or may not be able to get the clamp to stick out perpendicularly to the conductor. A larger CT might be necessary in some installations so the the CT can rest at a lesser angle to clear the enclosure or other wiring inside.

As time goes on, there will be fewer and fewer of the lower capacity services such as those Dan describes (150A and less) Aside from the obvious fact that newer buildings are likely to consume more, requiring larger load centers and wire feeding them, the NEC (National Electrical Code, the guide which nearly all municipalities use to set electrical installation standards) has required for some time that equipment used for service entrance and disconnect be capable of withstanding fault currents in excess of 10,000 amperes. Mostly, this means that larger conductors are going to be the only ones acceptable to the AHJ (Authority Having Jurisdiction). In short, even though you might only need to power 20 amperes of load, you'll have to install conductors and service entrance equipment rated for the full 200A to meet code requirements.

For the purposes of OEM, this may or may not be an issue, but most, if not all installations in the US will need to be able to apply a CT to those larger sized conductors if "whole house" monitoring is to be possible.

Bill Thomson's picture

Re: Use in the US

Dan's overview is essentially correct, but as Robert pointed out:

don't confuse phase shift with inverting the wave. I believe the American system is what I would call 115 - 0 - 115 V, where the final supply transformer measures 230 V between the ends of the windings and the neutral centre tap is connected to earth. In that case, what you are calling a 180° phase shift isn't really a phase shift at all, but a mirror image of the voltage.

The North American system isn't a two-phase system, but rather a single 240V phase split into two 120V "legs." Hence the term "split-phase." The folks in the electrical trade refer to them as Leg 1 and Leg 2. Leg to leg voltage is 240, leg to neutral voltage is 120. The neutral is typically connected to ground at the transformer, and the service entrance. Most newer homes will have a 200A service which uses 4/0 aluminum wire as pointed out above. Larger homes typically have a 320A service and older homes 100, 125 or 150A service depending on when the building was constructed. Residences built prior to the 1940s typically have 60A service.

I have a 7kW system that uses Enphase M215 microinverters. The M215 output is 240 Volts, and does indeed, use the neutral. The M215 can be used in a three phase environment, (with Enphase's three phase trunk cable - which differs from their single phase trunk) but residential three phase service in the US is quite rare.

Another aspect Robert pointed out -- the split-phase system is treated as two 120VAC sources, and a single 240VAC source. Ususally, the loads will be more or less balanced across the two 120V legs. If there are a large number of 240V circuits, say for example, a house has two central electric heater/air con units, a large window mount aircon unit, two electric water heaters, an electric oven, electric clothes dryer and an electric stove, as well as a large number of 120V circuits, then the load on one leg may be considerably more than the load on the other leg. This is exactly how my house is set up. (Hence, the 7 kW PV system!) Despite the load imbalance, the voltage difference between the two legs is .2 to .3 volts. I use a 240V to 2.5V control transformer as a voltage reference.

I use a Magnelab SCT-075-005 CT on each leg. According to the whitepaper on the Magnelab site, the -005 CT can be operated at 200A with no core saturation or heating problems. The 075 series CTs have .75 inch (19mm) openings, so they fit round 4/0 wire with room to spare.  Since my max load is typically 20 to 22A, the CT output at max current is approximately 1.33V RMS.  I use the YHDC CT sold in the OEM shop to measure PV output, as the wires from my PV junction box are AWG 6 which the SCT013 CT fits around easily.

 

pmscientist's picture

Re: Use in the US

All in all, it sounds like there is decent agreement that the existing emontx is usable in North America pretty much as is for most installations. Has anyone in that region needed to use different resistor values? I've been fine with the documented values.

If some standard hardware (wall wart, CT, etc.) for these installations is agreed upon, I'm on board to switch my setup. Especially if it's carried by Paul or another vendor in the region. My offer of helping with documentation for installs in this region stands as well.

Paul, if you're thinking of adapting your hall sensor for use in this kind of application, I'd be willing to try things out.

sd solar's picture

Re: Use in the US

Hi Bill
I’ve got a similar situation here in South Dakota, where I will need CT’s of at least .75” or 19 mm openings to make it around the 4/0 feeders.

The installation here is a 13.2KW Grid Tie,  (44) 300W Suniva panels,  Fronius IG Plus V 11.4-1 with an Onset Hobo wireless Data Logger for the monitoring system --- works well, but this monitoring system is pretty expensive.

I am going to be doing a similar installation at my son’s farm this Spring and hope to use the emonTx with a Raspberry Pi Base Station for the monitoring and some load switching at his site.

The normal load current range I wish to fairly accurately monitor will be in the 10 to 70 A range but at a few unusual times, the load could approach the upper 90 Amp area.

I would like to use that same CT’s you have --- Magnelab SCT-0750-005 and from the info on Magnelab’s web site it looks like they can easily handle loads up to 100 Amps, so should only need to get the CT’s output voltage in a range the emononTx can use.

From Magnelab’s web site and some calculations, it appears this CT has a built in burden resistor of 490 ohms and a Turns ratio of 7,356 Turns, so at a 100 A load would output a V = (100A X 490 ohms) / 7,356 T = 6.66 volts and at a load of 10 Amps that would be 0.666 volts. Is this in a range the emonX can use as an input? I do not need a high level of accuracy at the 10 A and below level.

Did you put CT’s on both output legs of the Inverter output? When I measure mine the leg Amps are about identical, so I would think one could make that assumption and with only (1) CT input, use the same data for the other leg in the logging software.  That way I would not have to use the CT 4 Input ( with a 4.6 KW limit) which is below the Inverter output for this leg.

Any help or ideas are appreciated.
Thanks Wallace
 

Robert Wall's picture

Re: Use in the US

The best Magnelab ct's to use are those without a built-in burden resistor, but choose one three times the current rating you need. You can then, by using a higher value burden resistor, get enough voltage to fully drive the emonTx input. It's all a matter of staying within the VA rating of the ct. Go above and it will saturate and you sacrifice accuracy. You will need to remove the SMT burden resistor on the emonTx PCB as it will be the wrong value, but there is a position for a though-hole component to replace it.

For example, the Magnelab split core 600 A  SCT-1250-000  (ratio 1:7500) is good for 200 A @ 1 V output + 120% overload, using a burden resistor of 37.5 Ohms.

You can change the scale of CT4 input by either removing the SMT burden and replacing, or paralleling, it with a through-hole resistor of the appropriate value.

sd solar's picture

Re: Use in the US

Hi Robert

Thanks for the reply.

The built - in burden resistors CT's are a lot easier to find and less expensive --- under $20 for a SCT-0750-005 so if I can get them to work, I would prefer that.

I am definitely not an expert on CT's so can use all the help I can get.

The Magnelab web site seem to indicate that CT can handle a load of 200 Amps without overheating or saturation so I would think it would work OK for the range I need 10 to 70 Amps with occasional highs of 90 Amps or so.

It's output volts would be 0.666 V to about 6.66 V in that range --- would that be compatible with the emonTx input range?

********************************************************************

"Frequently Asked Question on Magnelab Standard Series

The following is applicable to the SCT (split-core Transformer) and UCT (solid-core Transformer) series products unless otherwise specified

Q- Can an SCT-0750-005 Current Sensor be used on a 30, 50 or even 200 Amp circuit?

A- Magnelab SCT-0750 Current Transformers can function safely from zero to 200 Amps. A 5 Amp unit will have an output of 0.333 Volt at 5 Amps and the same unit used at 200 Amps will have an ideal output of 13.33 Volts. The temperature rise at 200 Amps will be only a few degrees due to low current in the secondary winding. Therefore, an SCT-0750-005 (5 Amp unit) could be used at 200 Amps since the core does not saturate and the temperature increase is minimal."

Bill Thomson's picture

Re: Use in the US

Hi Wallace,

Despite the text on the Magnelab website, I've found the Magnelab CTs start to saturate when the load reaches ~6kw. I've since switched to Wattcore WC-1 CTs from Byram Labs, that have a 1 VRMS output. They're available in ratings from 25 to 200A. The Wattcore WC-1 opening is .72 x .62 inches, and with a little trimming of the inside of the plastic shell, will fit a 4/0 conductor. Their WC-3 model has a .73 x .93 inch opening, is about the same size and shape as the Magnelab SCT unit, and fits a 4/0 conductor as is. The WC-1 costs $18, the WC-3, $33.

EDIT - The WC-3 CT also has a 1VRMS output.

  www.byramlabs.com/wattcore.php 

Regards,

Bill

 

Robert Wall's picture

Re: Use in the US

Answering the emonTx input question, the available voltage range nominally is the supply voltage, 3.3 V. You need to subtract from that 1% to allow for the regulator being at the low end of tolerance, 1.2% similarly for the voltage bias resistors, and 1% for the burden resistor. That gives you the peak-peak voltage. Assuming a pure sine wave, which you won't necessarily get with the current, that gives you a little less than 1.13 V rms. Aiming for 1 V rms at the maximum current you want to measure seems reasonable to me, and gives you a bit of headroom for inrush and waveform distortion.

As Bill says, the ct will saturate when you overload it, then the waveform accuracy disappears and takes the measurement accuracy with it. There's a difference between safely and accurately. Remember a ct for protection has to safely operate the protective device at the maximum fault level - it only has to be accurate at the trip setting, it does not have to be accurate at that maximum fault level.

Magnelab say their cts are good to 120%, and they should know. My source was Jeff Lawson, V.P. of Sales and Support at Magnelab.

knicely's picture

Re: Use in the US

Regarding CTs for the US.  I am using the The Energy Detective CTs on my system for monitoring the mains.  Before installing them I did a teardown of one CT.  I did not count the windings, but I would estimate somewhere between 5000 and 6000 turns on each one.   The CTs have an internal burden resister network which is adjustable, so you can just hook them up and calibrate them to match the input.  I removed the burden resistors from CT1 and CT2 on the emontx3 to accommodate the internal burden resistors in the CTs.  I plan on doing a full post here sometime soon with photos and more details on how I calibrated them sometime soon,   I have only had them installed for 4 days, but they seem to be working fine.

http://www.theenergydetective.com/set-of-current-transformers-cts.html

Robert Wall's picture

Re: Use in the US

As I implied above, you need to find the VA rating of the ct, and stay within that when setting the maximum primary current and the burden voltage. Inside that, it should be fine. Exceed it, and you can expect trouble.

You can of course get a close approximation to the turns ratio by measuring the primary and secondary currents. The actual ratio will be adjusted slightly to take account of errors arising from the magnetising component of the current.

sd solar's picture

Re: Use in the US

Thanks guys for some great info.  I think I will use Robert’s advice and order a couple of CT’s without the built – in burden resistor.

The Wattcore  WC1-100-MA100 specs a secondary output of 100ma at a rated input of 100amps, so I assume this CT has a Turn Ratio of 1000.  And Bill listed an outlet for these at a very reasonable $18.

If I use 75A as the upper end of the Loads I wish to fairly accurately measure --- the Peak Primary current would be 75A X sqrt(2) = 85.6A and then the Seconday Peak current would be 0.086A

Using 3.3V for the reference voltage for the emonTx less 3.2% or 0.1V for the tolerance issues Robert listed = 3.2 V.
The Burden resistor required then would be (3.2V/2) / 0.086A = 18.6 ohms.

Placing a 120 ohm resistor in parallel with the 22 ohm on the emon Tx board would give very close to this 18.6 value.

Does this seem like it will work for the Load range I wish to measure --- 0 to 75A ?
Thanks
Wallace
 

Bill Thomson's picture

Re: Use in the US

Question for Robert...

For Wallace's application, would a CT that supplies 1 VRMS at 100A, be a good choice for what he wants to do? (the WC1-100-RV001 specs are 1000 mVRMS out at 100A)

Thanks,

Bill

 

 

sd solar's picture

Re: Use in the US

Bill
I’m going to be very interested in what Robert has to say on that also.

It amazes me how skimpy on the tech data the CT manufacturers are --- like in this case no Turns Ratio or internal burden resistor info is published.

I think if one assumed that CT also has a 1000 Turn Ratio (Big assumption),  then it also would have a secondary current of 100ma at an Input of 100 amps. So to get an published output of 1 volt it would have a 10 ohm internal resistor value.  (R= 1V/.1A)

That would make those 2 CT’s very similar except for the internal resistor.

Not sure about any of this though.  
Wallace
 

Robert Wall's picture

Re: Use in the US

I see what you mean about that data sheet. It's a leap of faith to guess that the WC1-100-MA10 is actually 100 A : 100 mA (which is traditionally how CTs are defined - by the currents, not the ratio) but let's assume that to be the case.

Then 75 A primary current will give you 75 mA secondary current, and the burden needs to develop 1 V (all in rms!). I make that a 13.33 Ω resistor, or 33 Ω in parallel with the existing 22 Ω is reasonably close. (I think you had digitus erroneous with your √2. In my humble opinion, 75A X sqrt(2) != 85.6A.)  I can't offer a view on whether saturation would be a problem. Normally, I'd expect at least a suggestion of a suitable value for a burden, but there's absolutely no indication of what the VA rating is. All I can suggest is you ask the manufacturer, or test it yourself!

The version that gives 1 V at 100 A would clearly do the job, but you'd be using only ¾ of the available range of the input, so you'd be losing resolution, and that would most likely show up as a greater inaccuracy at very low currents. The 80 A version would clearly be a better match.

Bill Thomson's picture

Re: Use in the US

The question came to mind because Wallace mentioned he didn't need accuracy below 10 A, and his max could be in the high nineties.

The normal load current range I wish to fairly accurately monitor will be in the 10 to
70A range but at a few unusual times, the load could approach the upper 90 Amp area.

I do not need a high level of accuracy at the 10 A and below level.

Understood, regarding the resolution. Thanks!

Bill

 

smolz's picture

Re: Use in the US

So if i just wanted to monitor the mains for voltage in my house in the US.  Would i just need the following:

 

1 x emonTx V3

1 x emonGLCD

1 x RFM12Pi - Raspberry Pi Base Station Receiver Board

1 x Pre-Loaded Raspberry Pi Base Station Gateway SD card

1 x Raspberry Pi (Model B)

1 x AC-AC 120v to 9V transformer

Robert Wall's picture

Re: Use in the US

You will also need 5 V USB power supplies and leads for the GLCD and RPi. As you will not be using our standard AC-AC adapter, you will probably need to calibrate the emonTx. To do that, and to program the emonGLCD, you will need to add a programmer and lead. You will need an Ethernet jumper to connect the RPi to your router.

The GLCD will give you a local display in addition to the browser display (both present and historical) via emoncms.org.

And I assume you've read the caveats about balance of the two 'legs' of the supply in the posts above. But you are not interested in power/energy? (You can add CTs later if you change your mind.)
 

bill's picture

Re: Use in the US

Based on the SCT-1250-000 without the built-in burden resistor.   Your calculation of a 37.5 Ohms burden resistor would the  R1 be 10K resistor and R2 be 1K resistor?  Would the capacitor be a 10uF for C1?  See diagram http://openenergymonitor.org/emon/sites/default/files/Arduino%20AC%20cur...

I am already getting good data out of my solar system and storing it in emoncms.org.    Now I want to start tracking my home usage.

 

Thanks

Patricio Duenas's picture

Re: Use in the US

Hi

I read this thread thru and I still have a couple of questions, so I kindly ask for your help.

I have just purchased an EmonTx V3 (and a raspberry base station, radios, etc). I live in Mexico with a 3 phase (common neutral) 137 V, 60 Hz as a mains supply. The CTs I use are the same as you sell (SCT-013-000) and the mains wire fits in perfectly so no issues with the CT.

Do I need to modify something in the EmonTx code to adapt it to the voltage and phase that I have?

Could I follow the same calibration procedure you use?

Will the 3.3V used as a reference suffice to my voltage samples?

1,000 thanks!

 

Patricio Duenas

Robert Wall's picture

Re: Use in the US

Bill:

No, as per the diagram, the two resistors that bias the input must be equal, so that the voltage developed by the burden resistor can swing equal distances towards each supply rail. The CT chosen doesn't affect this.

10µF is a suitable value for the capacitor.

Patricio Duenas:

The voltage transformer you use will determine the calibration. You can calculate your calibration constants by following this page. The procedure for checking (and making the final corrections because the calculated value will not take component tolerances into account) is here. The 3.3 V reference used in the V3 is more accurate than the internal reference in the ADC, but it might not be more stable. By default, EmonLib uses the 3.3 V supply as the voltage reference for the V3.

noamparn's picture

Re: Use in the US

This might not be the right thread for this, but I'm hoping it is (if not, I would be grateful if someone would be so kind as to post a link to the proper thread for this question).

I live in the US, and have 60Hz "split-phase" (center-tapped) power. It is generally referred to as 120V on each leg to neutral, with 240 across the two legs.  As I understand it, the sine wave of one phase is the opposite of the other. From what I've read here, there isn't a very large user base here in the US, and an even smaller group who are doing this on Arduino (as I'm attempting to do).

I just got solar panels (I hired SolarCity - I didn't do it myself), and I'm waiting for the power company to finish up their part to enable me for net-metering. In the meantime, I want to build a system to monitor the output of the solar panels and the total load of the house, and store all that in a mySQL database (for display).

I already have the data storage and display part worked out - I've been monitoring temperature and thermostat (the on/off of the control lines) for over two years now. Adding in the power production/consumption will increase the "geek factor". I'm doing all this with an Arduino, and I've added a second one to capture the power data and pass it up to the main unit.

The wires carrying the output from the inverters are connected to the wires coming from the utility inside my breaker box. The connection is made between the meter and the main breaker, with one "leg" from the inverters going to each of the two "legs" in the breaker box.

My goal is the take measurements at four points: on each leg of the output from the inverters (which should give me the total inverter output), and on each leg of the input to the main breaker (which should give me the total power consumption). Subtracting one from the other will give me the amount being pulled from/pushed to the utility. My goal is not to be 100% precise - but to give me a general idea of how much power I'm generating/using/buying/selling at different times of the day. However, the more accurate I can get - the better.

I bought four SCT-016-000 current transformer, only to find that they are too small to get around the main feeds in the breaker box. So, I bought two SCT-0750-200's for those. I'm only measuring current - not voltage (At this time at least).

I haven't installed anything on the "live" system, but I've been testing (with the help of my dad - who is an EE) to try and find the right calibration factors. The SCT-016-000 doesn't come with a burden resistor, and we calculated that a 33-Ohm resistor was about right. I made a modified extension cord (that allows us to clip a current transformer around only the hot leg), and plugged that into a Kill-A-Watt to verify the readings. We tested with various combinations of a 60W lamp, a 250W lamp, and a vacuum cleaner, and we came very close to true readings. We will have to do some tests with higher loads (clipping it around the wires feeling the air conditioner/stove/electric dryer/etc).

Since I'm going to add the values from both legs of the source together(I won't need to see separate values), I took a second CT, flipped it around, and installed it on the neutral wire of the extension cord. I put a second burden resistor across it, and then put the two CTs in series. The numbers I got were just about double (within margin of error) what I saw on the Kill-a-watt, so I was happy with that test.

Next, I tried to test the SCT-0750-200's. Since those come with a burden resistor already (I read somewhere that it is a 12/3-Ohm, and I with some math I estimated the ratio to be around 7400:1 (I later found out it is 7356:1 - so I was pretty close). I put them in series, and installed them next to the SCT-016's on the same wires. I wanted to calibrate the two against each other, since the current being measured by the two (in this test setup) should be the same.

However, I found that not to be the case. With the 250W lamp on, I was not that far off between the two. However, with the lamp off, I am getting a lot more "noise" on the circuit with the STC-0750's on it.

Right now, the calibration factor I am using are:

For the SCT-016-000: 90.90  (120A:40mA/33Ohm = 90.9090909090909....)

For the SCT-0750-200: 601.6 (7400:1/12.3Ohm = 601.6260162...).

I know that the ratio on the SCT-0750 is really 73.56, so the calibration factor should really be 598.048780487... I figured I'm close enough for the moment.

Are any of the members here in the US using the SCT-016-000's and/or SCT-0750-200's (or one of the other versions of it WITH the built-in resistor), and can tell me if I'm completely off-track here with my calibrations? I plan to do some tests measuring higher current amounts (trying to verify my readings with a clip-around ammeter), but I really wanted to open up the breaker box only one time if I could (take some test measurements, and then install the CTs in their final positions).

Thanks.

--Noam

Robert Wall's picture

Re: Use in the US

Welcome, Noam.

Everything you've written above sounds OK to me. I'm in the UK of course, but I'm led to believe your electricity obeys the same rules as ours, it's only the installation practice that's different!

I assume you've read the Building Blocks piece on the theory of calibration, and you're working from that. But I think you may have run into trouble with your Magnelab SCT-0750-200 (it is Magnelab?). Those with the built-in burden are designed to give you 0.333 V out at full load, so even with two in series, you are looking at 0.666 V rms. I assume your Arduino is running at 5 V, therefore you want 5 V p-p, or 1.75V rms in round figures, to fully drive the input. Your best trick, had you not already bought the CTs, would have been to derate them by about 2.5 times so that you can get 2.5 times the voltage, i.e. get an SCT-1250-000 without a burden resistor - that model is good to 600 A @ 0.333 V out, or 200 A @ 1 V out. Then, by using a higher value of burden resistor, you could get the required output voltage without overloading the CT. It's all down to the VA rating of the CT, which is rarely directly specified. We know the YHDC SCT-013-000 has a sufficiently big VA rating to drive the required voltage.

I'm not at all surprised that you're seeing a lot of noise. The Arduino, as far as I'm aware, does not have any filtering between the analogue and the digital power supplies, and it looks as if you are working at 0.5% of full scale on the CT, and the CT output is using below half of the input range of the Arduino. And all this is with a 10-bit ADC. Our experience is that below about 1%, you cannot get accurate measurements. The situation should improve dramatically when you have larger loads.

Bill Thomson's picture

Re: Use in the US

Noam,

Here's a link to a 200 amp CT with a 1 Volt RMS output and physical dimensions nearly the same dimensions (0.06 inches taller) as the magnelab CTs you have. (the SCT1250 is a bit over an inch larger in length and width than the SCT750, they might be a tight fit in your load center)

http://www.byramlabs.com/product_info.php/products_id/20527

regards,

Bill

noamparn's picture

Re: Use in the US

Robert, Bill - 

Thanks for the assistance. I'm going to try and respond to all the points you both made in order (or something close to it):

1. Yes, electricity tends to follow the same rules, just the local standards and codes differ from place to place.

2. I did read through the Building Blocks section, and (with some help from my dad - he's the EE) I think I understand most of the parts that apply in my case (I'm not measuring voltage, so I didn't delve into that part).

3. Yes, it is a Magnelab CT. I do realize that I'll only get 0.666V out at max load, and that really limits the potential for accuracy. I understand that they are not the ideal ones for my setup - but I was still trying to understand some of the fundamentals when I found them and placed my order. I wasn't able to find much out about them before I bought them, which only made things harder. At this point, I'm inclined to try and make the CT's I got work - since I already bought them.

4a. I did read, however (not sure I understand it, though), that the ATMega328 (I'm soldering up a custom Arduino-clone board for this - I've gotten pretty good at making those) has a built-in option of using either 5V or 1.1V as the reference voltage for the analog input, or I can input any voltage between 0V and 5V as a reference. I just don't know if I can do that for one set of CTs, and leave the other ones (the SCT-016's) the way they are, on the same chip.  I might need a separate chip for each pair of CTs. But perhaps I don't have to...

4b. If I use a resistor divider to produce something close to .666 V for the offset voltage for the CTs, and use an analog reference close to 1.3V, I'll have about as much precision as I can (unless I totally misunderstood how it works). 

4c. Alternatively, I'm told I can use an op-amp to boost the max output of the CTs to something close to the 2.5V reference voltage.

4d. If I am able to make the SCT-0750-200's work by using lower offset and reference voltages, can I adjust the burden resistor I put across the SCT-016's, and use those same offset and reference voltages for those, too? Based on my math, if I use an 8.3 Ohm (approx) burden resistor, I should get a max voltage output of .333V per CT. Putting the two in series gives me the .666 to match the other pair. Of course, I don't expect to come close to that output - the system is fused for 70A on each leg. so, I could use a 14.2Ohm resistor for those.

5. I know that the noise should settle down once I have "real" loads to measure. If I can tune the measurement to the smaller range of the values I'll get (see #4 above), that will probably help, too.

6. Thanks for the link to the Wattcore CT. I had a lot of trouble finding CTs that would fit over my main feed wires, and wouldn't cost me a fortune (see #3 above).

Sorry for the long replies.

--Noam

noamparn's picture

Re: Use in the US

After doing more reading, and since I know nothing about op-amps, I am leaning toward trying the voltage divider with an external analog reference voltage.

Based on the drawing here: http://openenergymonitor.org/emon/buildingblocks/ct-sensors-interface, I think the following will work:

A voltage divider made up of a 47k resistor followed by two 10k resistors should drop the 5V to around 1.5V after the first resistor, and around 0.75V after the second.

If I connect the 1.5V to the AREF pin on my Arduino, and use the 0.75V to feed the one side of the CT, I *should* get voltages in the 0.084V to 1.42V range with the pair of CTs maxing out at 0.666V.

A 15-Ohm resistor across the SCT-016's should hit close to 0.333V at around 65A, which is above the maximum expected output of my solar inverters.

I couldn't figure out where in the code to specify that I'm using the AREF pin instead of Vcc. Can anyone tell me how to do that?

Thanks.

 

Robert Wall's picture

Re: Use in the US

The first thing I've picked up on is I think you need to read the data sheet concerning the use of the AREF pin. I'm no expert on the Atmel chip, but the way I read it, it is there only to allow an external decoupling capacitor to be connected. Therefore, you might not be able to use it as you suggest, and you have to use the internal 1.1 V reference instead and tailor the rest of your design to that.

You can switch the reference in software, but you'd have to dig deep to find out the pitfalls, like how long it takes to settle before you can get an accurate measurement. It might well be prohibitive, and it would certainly be messy and you'd need to check very carefully that our libraries did the right thing, if you intend to use them.

If you do work with a 1.1 V reference, it means that you can use lower valued burden resistors, adding external ones in parallel with the internal ones if necessary, to reduce the burden voltages to the value you require. (Remember, a CT is a current source and so you overload it by allowing it to generate excess voltage, it is quite happy working into a short circuit!). Of course you can set the burden so that whatever current you want gives you your maximum input voltage (subject of course to the VA limit of the CT, and as you are well below the rated maximum current, that's way above where you are working it, so no worries there).  I have not checked your calculations for the burden resistor values.

You will need to be pretty accurate in calculating the resistors for the 0.55 V midpoint bias. Any move away from 0.55 V will limit the input range.

What I would suggest you pay close attention to, especially if you use the 1.1 V reference and as you're soldering up your own board, is earthing and decoupling for the analogue parts of the circuit and segregation from the digital parts. I've tended to notice more complaints about input noise from people who have Arduino boards, and as I understand it, these have no decoupling between the analogue AVCC and the digital VCC. Our emonTx V3, which has decoupling, performs better than the V2 in this respect.

It might pay you to put a 1 kΩ resistor in series with each input, as in the emonTx V3. I won't affect accuracy, but it will limit the maximum current that can flow into the protection diodes if you get a wiring fault that operates the protection in your distribution board.

dBC's picture

Re: Use in the US

I'm not familiar with the sketches used here, but the general way to do that within the Arduino environment is an early call to analogReference():

http://arduino.cc/en/Reference/AnalogReference

Note that once you've got an external reference voltage wired to the AREF pin, it's critical that you never accidentally run a sketch that uses one of the internal bandgaps instead (i.e. most sketches).   When you are using one of the internal bandgaps, it gets fed out to AREF for de-coupling, and the device expects nothing but a capacitor out there.   If you accidentally select an internal bandgap with your setup, you'll be feeding your external voltage directly into the bandgap generator.  I've not tried it, but I'm told that destroys the device pretty quickly.

dBC's picture

Re: Use in the US

but the way I read it, it is there only to allow an external decoupling capacitor to be connected

That's true when you're using an internal voltage ref.  But AREF can also be used to supply an external reference voltage.

You can switch the reference in software, but you'd have to dig deep to find out the pitfalls, like how long it takes to settle before you can get an accurate measurement. It might well be prohibitive,

While the datasheet on the ADC calls for the first conversion after changing Vref to be discarded it's actually a lot worse than that.   The much bigger problem is caused by the decoupling cap on AREF.  If that's big, then it can take a long time (msecs) for the freshly selected Vref to become stable.    When going from a high Vref to a lower one, that external cap causes Vref to slowly decay down to the new value, and any readings during that decay are  unusable.

Robert Wall's picture

Re: Use in the US

dBC:

Thanks for clarifying the reference.

It means then (a) you can't realistically use the continuous monitoring sketches and change it on the fly, and (b) if you use the emonLib library and the discrete sampling sketches, changes might be necessary because of the different reference.

I have no idea where the reference is selected, if it is indeed selected and doesn't default to VCC. It needs checking.

Bill Thomson's picture

Re: Use in the US

dBC,

If I understand your question correctly, acording to the data here:http://arduino.cc/en/Reference/AnalogReference

the analog reference defaults to either 5 or 3.3 volts (depending on the board) unless explicitly set to internal or external.

 

dBC's picture

Re: Use in the US

I don't think I asked a question did I?

the analog reference defaults to either 5 or 3.3 volts (depending on the board) unless explicitly set to internal or external.

Yes, and I agree that's the most likely scenario in this case.  But given the dire consequences of getting it wrong once noamparn has wired up his external reference, I think Robert's   It needs checking   advice is sound.

A quick grep for calls to analogReference() or writes to the ADMUX register throughout all the code would be a good starting point.

noamparn's picture

Re: Use in the US

That's why I asked in the first place. 

I saw the ADMUX references, and I just don't understand that part of the code. I was hoping that someone here was familiar enough with the code to give me a hand with it. 

I decided to play with the resistor divider and the aref pin a little, usig a test sketch. 

Of course, I didn't have the 47k resistor I needed, so I improvised with a 56k (close enough for now). 

It seems that the calculations in the emon.cpp use a variable called SUPPLYVOLTAGE, which is obtained by reading the Vcc value from the Arduino. I *could* set that manually in the code (there already is a line that hard-codes it for the emonTx), but I'd rather not - since I'm not using a regulated source to get it (although I could use something like an LM7805....). 

When I supplied a lower voltage to the Aref pin, the readings changed (I didn't try it with a CT hooked up, though - I did it on a separate test arduino I have), however, the Irms is still calculated based on the SUPPLYVOLTAGE value. 

When I adjusted the formula (I used a 56k resistor and two 10k resistors, so I multiplied SUPPLYVOLTAGE by (56/76), the numbers lined up to where I expected them. 

So, it looks like it can be done -just that the emonlib library doesn't have a provision for it built-in. 

I'll have to do some more tests with the CTs hooked up, to see how that goes. 

 

dBC's picture

Re: Use in the US

Are you referring to the code discussed in this thread?:

http://openenergymonitor.org/emon/node/2522

I had a crack at describing how it works (final post) and included some relevant stuff from the datasheet.  I used the 2560 because that's what I had handy, but they're all very similar.  The 2560 has an extra bandgap voltage available (2.56V), and a wider input MUX.   If it still doesn't make sense after reading that, feel free to ask further.

But yes, a call to readVcc() will indeed unconditionally select AVCC as the reference voltage, so you really don't want to be calling that routine (in its current form) if you've wired up an external voltage reference to the AREF pin.

I'm afraid I'm not  at all familiar with the rest of the code you refer to (the stuff that calls readVcc and calculates other things) so I'll defer discussion of that to those more qualified.

noamparn's picture

Re: Use in the US

Thanks to all who replied.

Well, I played around with the code, and I think I have it working.

I added  "analogReference(EXTERNAL)" to the beginning of the setup() routine, and I changed the following section in emonlib.cpp:

#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328__) || defined (__AVR_ATmega328P__)
  ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1);

became

#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328__) || defined (__AVR_ATmega328P__)
  ADMUX =   _BV(MUX3) | _BV(MUX2) | _BV(MUX1);

 

By removing the "_BV(REFS0) | " portion, I told it to use the external reference pin, into which I put about 1.5 volts in as the reference pin. I used a 47k resistor from a 5v DC adapter, followed by a 10k, and another 10k to ground.

The voltage after the first resistor is about 1.5v, and the voltage between the two 10k resistors is about 0.75v.

After compiling and re-downloading the code, everything seems to be working (based on my 0-10A tests so far).

glyn.hudson's picture

Re: Use in the US

We are now stocking US plug AC/AC adapters in our shop: http://shop.openenergymonitor.com/ac-ac-power-supply-adapter-ac-voltage-...

noamparn's picture

Re: Use in the US

I installed the CTs in the breaker box, and the ones for my consumption seem to be registering okay (based on tests I did with a clip-on ammeter).

I just got final approval to turn on the solar inverters today. They were only on for a short while before the sun went down, but I got some readings at least.

I'm not sure I have the system calibrated correctly, though.

I am using a pair of SCT-016-000's, one on each half of the split phase, with one flipped backward (reversed polarity) so they sum together instead of cancelling each other out.

I have a burden resistor across each, and they are connected in series, feeding into the pin on the Arduino.

I could be wrong here (I'm not the EE in the family), but I think I was measuring about double what I should have been.

The inverters reported (on their little digital displays) around 338 W each, at 245 volts. Dividing watts by volts, I get about 1.37 Amps each, or 2.76 A total. However, the Arduino was reporting around 5.5 A. So, I'm wondering if I either need to adjust my calibration factor to account for the doubled CTs, or if I should only be measuring one of the two phases of the supply from the solar inverters.

I need to do more tests during the day (when the panels are producing more power), but I can't do that easily (I need to open the breaker box up and use the clip-on ammeter again), and I won't have time during the day until the weekend.

Can anyone confirm for me how I should be adjusting the calibration formula when dealing with two CTs in series on opposite legs of split-phase power?

Thanks.

--Noam

Bill Thomson's picture

Re: Use in the US

Hi Noam,

I have the same split-phase wiring as you. My PV system uses inverters with 240 Volt outputs, so I use a single CT to monitor PV energy generation. (One less meter than the number of wires, in my case, as yours, the two hot legs)

However, I *do* use two CTs installed back to back as you described above, to feed my emonTx to measure the house load.

Regards,

Bill

 

Robert Wall's picture

Re: Use in the US

What voltage are you measuring - it sounds as if you might be measuring line-line voltage and both currents. If you measure line-line voltage, you only need to measure one current (i.e. it's then behaving as a single phase supply), if you measure both currents, you only need to measure line-neutral voltage.

noamparn's picture

Re: Use in the US

Robert -

Thanks for getting back to me so quickly.

Your description of my setup was pretty close. I have a CT on each leg feeding into the breaker box (below the tie-in from the inverters) to measure the house load. I also have a CT on each leg of the feed from the inverters (those are installed in the inverter shutoff box - since there was more room in there to do it). However, I'm not (yet) measuring voltage on the Arduino. I got the voltage from the status screen on the inverters themselves.

Your answer makes sense, I guess, since the inverters are outputting on both legs, and the current levels should be equal (but 180 degrees opposite) each other. So I think all I need to do is remove one of them, or divide the number in half in the software.

At this point, I'm not tracking power (in kW) but current (in Amps). If that's the case, then I think I am confused about when to measure the production current only one leg, and when to measure on both. 

When measuring the house load, I have a CT on each leg. So, when I turn on a lamp (connected between one of the legs and neutral), the current flowing through that leg is the current going to the lamp (for this simple example - assume *everything* else is turned off). The "return" on the neutral (yes, I know it flips direction at 60Hz) would also measure the same current (in the opposite direction), so I can understand why summing those would give me a double reading.

However, I don't understand how to measure 240V (leg-leg) loads. Since the current "enters" on one leg, and "returns" on the other (and not the neutral), wouldn't the pair of CTs in that case be measuring the current twice, resulting in the wrong number again?

Thanks.

--Noam

Robert Wall's picture

Re: Use in the US

You need to go back to basics. Also, let's forget things like power factor and assume everything is purely resistive, i.e. voltage and current are exactly in phase.

Now, the simple case: you have a load connected to a supply with two wires. Current flows into the load on one, and out on the other. You can measure the current in either, and it's the same. You measure the voltage between the wires, multiply that by the current, and you get the power in the load. If you substitute a generator for the load, it's exactly the same. Note that I've not labelled any of the wires! They could be line and neutral, or your two lines.

Now if those two wires happen to be two lines, and the voltage from each to neutral happens to be exactly the same magnitude but at any instant the opposite sign, you have your set-up.

Now is it making sense?

If you have a load connected line-neutral, you use one line current and line-neutral voltage.
If you have a load connected line-line, you use one line current and line-line voltage, or both line currents and line-neutral voltage.

So what voltage did you tell it, line-neutral (120 V), or line-line (240 V)?

The complicated case: If you've got a mix of loads, some 120 V and some 240 V, and the 120 V ones not evenly balanced on the two legs, then you've got to measure the two line currents, because they can and generally will be different, and you use the line-neutral voltage. Ideally of  course you'd measure both line-neutral voltages, calculate the powers in the two halves of the supply separately and add them. But I'm assured the voltage balance is good, so the error in assuming both voltages are the same is negligible.

 

sd solar's picture

Re: Use in the US

I just received one of Robin’s MK2 diverters and have a similar problem of combining the outputs of the two CT’s on each feeder leg of a split phase system here in the U.S. as an input into the one CT jack on the unit.

I noticed that Noam said he put a burden resistor across each legs CT and  then connected them in series to feed the pin on the Arduino.

I had originally thought about connecting them in parallel, that is connect the 2 white wires together and connect that to the tip and then the 2 black wires to the sleeve, also with suitable burden resistors between the leads of each CT.

Will either way work ?  Are there any advantages / disadvantages provided proper burden resistors are selected?

Is it correct to assume that in series, you are adding the 2 voltages developed across each CT’s resistor and that is the input to the pin ?  And in parallel you are adding the 2 secondary currents as an input ?

I am starting to think that connecting them in series may be the better method.
Wallace
 

Robert Wall's picture

Re: Use in the US

Will either way work ?  Yes

Are there any advantages / disadvantages provided proper burden resistors are selected? Not really. There may be a marginal advantage in keeping the voltage developed by the CT down, i.e. use individual burden resistors and add the voltages.

Is it correct to assume that in series, you are adding the 2 voltages developed across each CT’s resistor and that is the input to the pin ? Yes, that's absolutely right.

And in parallel you are adding the 2 secondary currents as an input ? Maybe not quite, you are adding the currents in the burden resistor, and then feeding that voltage in. If you are using the internal burden, then yes, you were right.

I am starting to think that connecting them in series may be the better method. See above. I would not worry too much - any difference is down to second-order effects like the onset of saturation and distortion.

If you parallel the CTs, you do of course only need one burden resistor, but remember that you have twice the current so the value is half - exactly the same as two parallel resistors! (But it may in fact be convenient to do exactly that - use the internal burden plus an external one in parallel. If you can get the second one inside the plug, there's little risk of open-circuiting the CT when you unplug it.)

noamparn's picture

Re: Use in the US

I wanted to give an update on my setup:

I was getting numbers that didn't seem to be quire right, so I decided to simplify things (from a schematic standpoint, at least), and then try going forward again.

To that end, I now have four separate voltage divider circuits, each splitting the 5V reference voltage in half for the offset voltage, and each with its own capacitor from that midpoint to ground).

I have each of the four current transformers on their own input pin and voltage divider.

I'm still not measuring voltage with the Arduino yet. Since my main goal was to compare production with (solar) consumption, the voltage is the same on both sides at any point I measure. Eventually, I want to add the voltage measurement also.

I opened up the breaker box again yesterday, so I could use the clip-on ammeter to compare the CT readings with a known (assumed) good meter. By splitting the four CTs out to separate input pins, I had a better way to test and calibrate each one individually.

The readings for the two CTs on the house loads were reading the same as the meter (which is analog, so it was as close as I could tell at least).

However, the ones for the feeds from the solar inverters were not lining up properly. For one thing, there was almost a 20% difference between the readings from the two CTs (one on each leg of the 240V output), but the ammeter showed no difference between the two. We determined the difference must be coming from the not-so-tight tolerances of the CTs I bought, combined with the tolerances of the burden resistors. Since neither CT was reading quite right, we took a lot of readings on each (as the solar production went up and down with the moving clouds), and figured out the right multiplier we needed for each to bring them in line with the ammeter readings.

After making the proper adjustments in my code, I'm again reading the right numbers. I even created a simple PHP script to give me the latest solar production number (in Amps), and the multiply by 125 (the average voltage I observed) to get the real-time wattage output of the system. I then compared this number to the one on the inverters' digital readouts, and I'm within a few percent (much better than I'd hoped).

The whole thing is still on the (large) breadboard, with jumpers running to an Arduino Uno. I added my status LEDs (to show under/overproduction at a glance), and I also want to add a small 2x20 character LCD screen.

I have to figure out the best way to lay it out on one (or several) boards, and get it all mounted in a project box.

Robert Wall's picture

Re: Use in the US

To get a 20% difference from 4 components means you are well out of luck, you don't want to buy a lottery ticket any time soon!  Basically, if each ct and resistor had a 5% tolerance, all would have had to have been at the wrong end to get that. It would be interesting to know who your suppliers were so that we could avoid them in future. It's rarely worth penny-pinching on resistors, the 1% 0.25 W or 0.6 W metal film are (quoting my favourite UK supplier) 39 p each, the same as 5% 0.5 W carbon film.

The downside of having 4 inputs is you won't be measuring the currents in each leg at the same instant. Depending on how your loads change and whether you use the 'discrete sample' approach or the interrupt-driven one, that could be a problem.

noamparn's picture

Re: Use in the US

Robert -

The difference seemed to be specifically with the two SCT-016-000 CT's that I'd ordered, and less with the resistors (I swapped the inputs and the variation moved with them). I bought a total of four of them (originally thinking I could use two of them for the main loads - not realizing they were too small to clamp around those wires). Had I not been able to figure out the calibration factor for the two of them I'm using, my next step would have been to temporarily set up all four of them on the same wire (possibly my test wire with just a relatively stable load like my big halogen lamp on the end), take some measurements, and see if I can find two of them that seem to match. I still would have needed a calibration factor to get to reality, but I would be starting out with more equal measurements.

As for the timing of measuring each phase separately, that's a really good point.

I'm taking 1280 measurements on each of the four CTs, and it all happens awfully fast. I'd imagine I'm getting numbers that are close enough to rely on.

Now that I understand the differences between the two CTs on the solar side, I guess I could go back to putting each pair in series, and figuring out the correct multiplier to account for the offset. That might save me a drop of time on the reads (although I had doubled the number of samples when I had half the number of CT circuits - so it is probably a wash).

I'm not sure I understand your comment about the "discrete sample" vs. "interrupt driven" approaches. If you don't mind explaining the difference to me, I could probably give you an answer (and possibly improve the accuracy of my system at the same time).

Thanks.

--Noam

Robert Wall's picture

Re: Use in the US

OK, the easiest way to calibrate the CTs, assuming you will put them in series, is to tweak the value of the burden resistor. The best way is to choose a higher value that required for one (or choose the one that gives the highest output), and put high value resistors in parallel to bring the value down. And the most sensitive way to do that is put them both on the same cable, secondaries in series, but with one facing the wrong way, and adjust for zero voltage out across the pair (then they are both giving equal voltages at that current). Then you tweak the overall calibration for that pair in software.

The standard "Discrete sample" sketch uses emonLib. If you're only measuring current, that takes approx 2500 samples per second, then calculates the rms value over that interval. Then the sketch repeats that for the other lines, then sleeps for 10 s.

The "continuous" sketch runs the ADC continuously in the background, and by tweaking the order in which it measures the inputs, you can arrange it to measure (say) voltage, line 1a current, line 1b current, line 2a current, line 2b current, then repeating immediately, the main sketch processes the accumulated values and sends the result every 10 s. (This method is necessary if you are using an energy diverter that uses burst fire mode to control the dump load.) 

noamparn's picture

Re: Use in the US

Robert -

Thanks for the explanation (I think I get it now).

I decided to split each of the four CTs to its own input pin for testing, instead of putting them in series. It made my troubleshooting a whole lot easier. Other than the time it takes to take another set of readings, I don't see any reason I need to go back and combine them. I have plenty of pins available.

From your explanation, I think I'm using the "discrete sample" option. Because this unit does other things (waits for a request for data, displays out the complete data it receives from the master, etc), I figured this was the easiest (and first) way I figured out to do it.

--Noam

billvolz's picture

Re: Use in the US

Hi, New here so bear with me.

My house in the US will have 2-phase 120VAC with a 200A service so I assume 100A max on each leg. I will also have a 20KW back up generator so I assume 10KW each leg and a max of about 83A. The generator will be on an automatic transfer switch.

I want to monitor both the main service and generator so I'll need 4 CT's. I think the Wattcore WC1 with 1V output would work. Some Q's on the CT's...

1) I'd need to remove the burden resistor on the emonTX3 on all of CT inputs, right?

2) would the 2V CT's be better?

3) Do I need to change anything else? 

4) How do CT's connect to the emonTX3? (and I need to connect the CT to the cable one backward from the other).

5) the generator will run in test mode once a week but not transfer power. Will I be able to detect that even if the generator has little or no load?

Powering the emonTX3 - I'll use the wall wart available on this site. It'll be plugged into an outlet that will be powered from main and the generator when the power is out.

6) How much power does the emonTX3 draw?

7) When I lose main service power, it takes tens of seconds before the generator kicks in. Once main power is restored I do not know how long it takes for the transfer switch to go off generator and back to main. It could be milliseconds to seconds. I assume that the emonTX3 has a very low power draw and that if the switch over is milliseconds there may be enough energy in the wall wart to continue powering the emonTX3. Would that be a problem in any way? Would the emontx3 recover from the different phase and possibly sightly different voltages?

Transmitting to the RMF12B.  The emonTX3 will be next to the breaker panel in the garage. The Raspberry with the receiver will be in a basement closet under the stairs. The Raspberry will be on a UPS power supply so it'll keep running during outages. The straight line distance is about 35-40 ft (~12 M). The signal will need to go through 2 2x6 exterior walls and 3 2x4 interior walls plus a floor (and perhaps some 8" concrete walls rather than 2x6 - not at the house so not sure).

8)  will the signal be be able to make it?

9) should I consider using the SMA antenna and extend it closer to the Raspberry and eliminate some walls and floor?

10) what is the maximum distance I can extend the SMA antenna?

Assuming the radio won't work, serial connection between the emonTx3 and Raspberry

11) the distance I'd need to run a serial cable line would be about 70-80 ft. Is that feasible?

12) with that long wire, and lightning, would I run the risk of killing the Raspberry due to induced currents from a nearby lightning strike? Isolation and how?

13) how many conductors would I need and what gauge wire?

General Q's

14) do I need the programming interface and mini USB cable?

15) this is what I'm planning to get. I already have the Raspberry. I'll pass on the emonGLCD for now and use emoncms pages. 

a) 1x emonTX3

b) 4 WC1 CT's in either 1 or 2V

c) wall wart AC adapter to power emonTx3 and provide AC reference

d) RFM12B

15a) I assume I need to create a different account to purchase?

15b) if I get a bundle what is the discount and when is it applied?

16) what did I leave out? Anything else I need to know?

Emoncms Q's. I have already installed emoncms on the Raspberry. I'll add a power USB hub and a hard drive.

17) Can emoncms send emails based on events such as main power out or power on or usage goes above or below a threshold?

18) where do I set the calibration factors? Can I use a full month of use and get the KWH for the month and use that to derive calibration factors? I don't have an ampmeter and don't want to buy one for one time use. If so, how?

I think that'll enough for now. Thanks for your help. 

Robert Wall's picture

Re: Use in the US

My house in the US will have 2-phase 120VAC with a 200A service so I assume 100A max on each leg.

That's a dangerous assumption. Any 240 V loads will carry the same current in each line conductor (and zero in the neutral). And the case where you have unequal 120 V loads distributed over the 2 legs will be very similar - only the difference current flows in the neutral - the major proportion of the current will flow in the two lines.

I will also have a 20KW back up generator so I assume 10KW each leg and a max of about 83A. The generator will be on an automatic transfer switch.

I want to monitor both the main service and generator so I'll need 4 CT's. I think the Wattcore WC1 with 1V output would work. Some Q's on the CT's...

That would not be my preferred choice. The emonTx requires about 1.6 V rms to fully utilise the input range available, hence you need a CT capable of giving at least that voltage at maximum current.

1) I'd need to remove the burden resistor on the emonTX3 on all of CT inputs, right?

Most probably yes. There are holes for wire-ended resistors if you need a custom burden resistor (and you most probably will).

2) would the 2V CT's be better?

Most probably yes. You'd choose your burden resistor (or have another external one in parallel if your CT is the "voltage output" variety) to give you full scale input at the maximum current you want to measure.

3) Do I need to change anything else?

On the emonTx - you'll probably need to adjust the calibration coefficients in the software. But hardware - not that I can think of.

4) How do CT's connect to the emonTX3? (and I need to connect the CT to the cable one backward from the other).

By a 3.5 mm "stereo" plug - wired tip and sleeve, no connection to the ring.

5) the generator will run in test mode once a week but not transfer power. Will I be able to detect that even if the generator has little or no load?

Probably not. If it's not transferring power, you won't measure any current. But if there's a a step change in voltage, you might see that if you're recording/displaying the voltage.

Powering the emonTX3 - I'll use the wall wart available on this site. It'll be plugged into an outlet that will be powered from main and the generator when the power is out.

That's fine.

6) How much power does the emonTX3 draw?

Very little. There is probably more in losses in the ac-ac adapter than is drawn by the emonTx, which is about 20 mA at 3.3 V.

7) When I lose main service power, it takes tens of seconds before the generator kicks in. Once main power is restored I do not know how long it takes for the transfer switch to go off generator and back to main. It could be milliseconds to seconds. I assume that the emonTX3 has a very low power draw and that if the switch over is milliseconds there may be enough energy in the wall wart to continue powering the emonTX3. Would that be a problem in any way? Would the emontx3 recover from the different phase and possibly sightly different voltages?

No, there's no way the emonTx will ride through the generator running up. The other way, if the break is less than 20 ms, you stand a chance. What will happen is if the 3.3 V rail inside the emonTx falls below its minimum of 1.8 V, the processor will the emonTx will stop, then reboot as the voltage is restored and the emonTx will perform its power-up sequence. That in itself takes between 10 & 20 s (though if you modify the sketch, that could be shortened as it incorporates various tests to determine what is connected, that you might not need).  The different supply won't affect it. You'll lose data during the changeover, that's all. To get around that, you could supply the emonTx by battery, but there's no facility for it to recharge a battery on-board (nor could you easily add that as the power supply circuit design is critical to accurate voltage monitoring).

Transmitting to the RMF12B.  The emonTX3 will be next to the breaker panel in the garage. The Raspberry with the receiver will be in a basement closet under the stairs. The Raspberry will be on a UPS power supply so it'll keep running during outages. The straight line distance is about 35-40 ft (~12 M). The signal will need to go through 2 2x6 exterior walls and 3 2x4 interior walls plus a floor (and perhaps some 8" concrete walls rather than 2x6 - not at the house so not sure).

8)  will the signal be be able to make it?

I can't promise that. There's reasonable evidence that it can get through 2 ft stone walls, so I'm hopeful that it might.

9) should I consider using the SMA antenna and extend it closer to the Raspberry and eliminate some walls and floor?

Yes you should, but probably not initially. I'd try it and see.

10) what is the maximum distance I can extend the SMA antenna?

Sorry, I'm not a radio specialist, so I can't help with this. It depends on using the correct low-loss cable and the accuracy of the termination between the RFM12B and the socket. Some have expressed doubts as to the accuracy of the impedance match there. We've found that with an antenna directly connected to the socket, there's no performance gain (see the Wiki)

Assuming the radio won't work, serial connection between the emonTx3 and Raspberry

11) the distance I'd need to run a serial cable line would be about 70-80 ft. Is that feasible?

12) with that long wire, and lightning, would I run the risk of killing the Raspberry due to induced currents from a nearby lightning strike? Isolation and how?

13) how many conductors would I need and what gauge wire?

I have not tried to do it, so I can't give you an answer to that.

General Q's

14) do I need the programming interface and mini USB cable?

You will in all probability need to adjust the calibration, so yes.

15) this is what I'm planning to get. I already have the Raspberry. I'll pass on the emonGLCD for now and use emoncms pages.

a) 1x emonTX3

b) 4 WC1 CT's in either 1 or 2V

c) wall wart AC adapter to power emonTx3 and provide AC reference
   and cable.

d) RFM12B

15a) I assume I need to create a different account to purchase?

Yes, you can't use this (forums) account.

15b) if I get a bundle what is the discount and when is it applied?

Any questions on this are best answered by the shop direct: sales@openenergymonitor.zendesk.com

16) what did I leave out? Anything else I need to know?

Have you got a RFM12Pi receiver for your Pi?

Emoncms Q's. I have already installed emoncms on the Raspberry. I'll add a power USB hub and a hard drive.

17) Can emoncms send emails based on events such as main power out or power on or usage goes above or below a threshold?

I believe there's an events module for that.

18) where do I set the calibration factors? Can I use a full month of use and get the KWH for the month and use that to derive calibration factors? I don't have an ampmeter and don't want to buy one for one time use. If so, how?

The word is ammeter! As I wrote above, the main calibration is per-channel in the emonTx. If you try to calibrate the way you suggest, it will give you an average (because of course you need to add the powers/energies of both legs) and in the short term, the accuracy (or maybe I mean repeatability) will depend on your usage pattern remaining the same. However, in the long term that will probably give you the best calibration. Others who have done that but on a UK single phase system, reckon they get better than 1% agreement between Emon and their meter. You could consider hiring a meter, and you might need one to calibrate the generator infeed.
You can add a calibration tweak as part of the emonCMS input processing - but it will be of no use unless the emonTx is able to process the numbers properly first.

billvolz's picture

Re: Use in the US

Thanks Robert for the info. A couple of follow up Q's

As for assumption of equal load across the two legs, good point. I don't know if the circuit breakers here trip if either leg is over 1/2 the rated amperage or if total amperage exceeds rated or both. I was also told be an electrician that they actually trip at about 90% of rated, probably for safety (and so the manufacturer doesn't get sued).

Rather than the Wattcore WC1 CT, what would you suggest? The Magnelab SCT-1250-000 for 100A max to produce 1.6V (and assuming the winding ratio at 7500 is correct) would need a 120 ohm burden resistor, correct? If so that would then be a 1/2 watt, 1% resistor replacing the ones on the emonTX3? Why not use a SCT-0750 instead? Or can I use either?

One reason I like the WC1 is that it fits the 4/0 cable while the Magnelab  1250 is likely going to have a larger opening than the cable and is a larger form factor too. Would I need to build up the cable with some tape? The 0750 is closer.

When I typed RFM12B I meant RFM12PI so yes I'd be getting that. I'll try the radio and see what happens.

Looks I'll be getting an ammeter for calibration. Not sure we can rent them here in the US but I might find a neighbor that has one.

Thanks,

billvolz's picture

Re: Use in the US

A question on using a CT with 4/0 cable. I was at my local home center and saw the 4/0 cable - it has a red and black wire for the two hot wire, 180 degrees out of phase, a white common wire and a bare twisted wire for ground.

The question is what happens if I put a CT on this? It would seem  that since the hot wires are 180 deg out of phase, that I'd be measuring the difference in the amps in the two hot wires. Is that true? If not I need a CT that would fit over a wire about 1/4 inch in diameter rather than 3/4 inch.

Thanks,

Robert Wall's picture

Re: Use in the US

You will see absolutely nothing (except extraneous pickup due to noise). Current flowing in any one of the live wires (line A leg, line B leg or neutral) exactly balances the vector sum of the currents in the other two, therefore the overall view of your cable is the nett current passing through the CT is zero, because the current has nowhere else to go (unless there is an earth fault somewhere, in which case it needs repairing - fast). The CT responds to the magnetic field around the bunch of conductors, and that should be non-existent.

You will need two CTs, one on each of the line legs of your supply (as discussed in most of the posts above) and you will sum the currents detected. The physical size of the CT opening doesn't matter, as long as the cable will pass through without damage.

(N.B. "4/0" cable means nothing to me - we specify cables by cross-sectional area - 16 mm2 for example.)

KWells's picture

Re: Use in the US

Has anyone used the EmonTx to measures USA 240VAC split phase power using CT1 and CT2 and summing the power1 and power2 variables in the software sketch? I would prefer to use two CTs and modify the sketch instead of summing the CTs externally. Any help before I try this is greatly appreciated. Sincerely, Kevin

Bill Thomson's picture

Re: Use in the US

Hi Kevin,

I have an emonTX v2 on a split-phase 240V system configured in the manner you're asking about. i.e the CT outputs are summed in the sketch. It's worked without any issues for almost two years.

Quoting a post by Robert Wall: If you've got a mix of loads, some 120 V and some 240 V, and the 120 V loads are not evenly balanced on the two legs, then you've got to measure the two line currents, because they can and generally will be different, and you use the line-neutral voltage. Ideally, you'd measure both line-neutral voltages, calculate the powers in the two halves of the supply separately and add them. But I'm assured the voltage balance is good, so the error in assuming both voltages are the same is negligible.

Regards,

Bill

KWells's picture

Re: Use in the US

Bill, Thank you for taking the time to reply. I will give it a try and add a power1+power2 variable to the emontx.struct and upload the sketch. Sincerely, Kevin

 

hueydriver's picture

Re: Use in the US

Its been a while since anyone posted here, but hopefully the smart people are still monitoring....

I have read and read and read....  I had plenty of time while waiting for everything to arrive.  I just want to make sure I have my burden resistors right.  I am in the US and have 200A service, but NEVER pull near that (even though I realize its probably not even possible).  On a typical day, I only use about 20kwh and the biggest pull is 16A each for the A/C (which has locked rotor amperage of 82A, but I'll probably just live with that small error) and car charger .

As a starting point, I got the WC1-80-MA100 CTs.  I'll keep an eye on them, and if they saturate, I'll move up.  If I am reading everything right, I should need 11 ohm as a burden resistor to get the full 1.1v at 100ma that the CT should put out at 80A....  Or, 1.1v/.1a = 11ohm.  I was just going to add another 22ohm in parallel to the existing SMT.  Do I need to factor in any overhead on those?  I will monitor each leg incoming and combine the values in s/w.  At this point, I'm really only interested in hourly usage.  The other two sensors probably will go unused.  I suppose that once I get an idea of max current, I will probably adjust the burden resistors to get max accuracy.

I presume, since they are using a 1.1v reference, they are using the optional internal reference voltage on the arduino (I guess I should have said I have the emonTx shield).  From all I read, that is the most accurate with the 8 bit AD converter.

Am I on point here, or do I need to get back in the books?

[Duplicate post deleted - Moderator.]

Robert Wall's picture

Re: Use in the US

A few mistakes, I'm afraid. For best resolution, you need to increase that burden value a little. You should be aiming for about 1.6 V rms at the maximum current that you want to measure - that's 5 V p-p less some for component tolerances and headroom, as the Shield Arduino works on 5 V, not the 3.3 V that the emonTx itself uses. So more like 27 Ω or better still 30 Ω wire-ended in parallel with the existing 33 Ω burden. (Always go down unless you can tolerate reducing your maximum current.) As Wattcore offer a 2 V output version, you should be OK on VA rating.

BTW, it's a 10-bit ADC, and the d.c. supply is the ADC maximum input voltage and the reference.

hueydriver's picture

Re: Use in the US

Thanks for the quick reply....

And the pointer on my mistake with the built-in resistor.  Some of the other posts I read above seemed to say to aim for 1.1v, but I guess thats the difference in the Arduino reference voltage?  Anyway, I'll be doing lots of trial and error, I presume, so mostly looking for the best place to start.

As for the ADC, yeah, I missed that too...  I knew it was 1024 steps, but I didnt even bother to notice that was the wrong number of bits....  I cant subnet without a calculator either....

Robert Wall's picture

Re: Use in the US

1.1 V rms is a good voltage to aim at for the emonTx, but not the emonTx Shield, for the reasons above. And the reference and supply voltages for the emonTx are 3.3 V. We no longer use the internal 1.1 V internal reference due to the uncertainty in its initial value. You'll find all the calibration data in Resources > Building Blocks.

(N.B. Don't ever omit "Shield" when you're talking about the emonTx Shield, because it and the emonTx are quite different beasts.)

hueydriver's picture

Re: Use in the US

Thanks for the warning on the name!  If half the people who come here looking for answers are as confused as me, I dont want to muddy the waters!

TCs came today, so I guess I'll begin assembly.  For now, without anything big running, I think I can just go with the built-in 33 ohm resistors, which should give me 1.6v at about 40A (right?).  I'm looking forward to picking through the code.  In reality, to start, I'm probably just looking for a 1 pulse per watt (or similar) signal.  Before my meter got exchanged, I was monitoring using the status LED on the meter and had an arduino sketch that was converting the pulses from the IR LED into 3.3v pulses which my raspberry pi counted.  Once I get it all going, I know I'll have a lot more data available to log....

I did want to add one thing.  A while back in this thread, Bill mentioned having to trim WC1 CTs.  I have what appears today to be standard XHHW-2 service wire, 4/0 x 2.  However, apparently due to improvements in insulation, the WC1 actually fits a little loose.  I still measure the narrowest part of the opening as about 5/8" (16mm).  A chart I found said .588 for diameter vs the .62" for the WC1 opening.  No trimming required!

Robert Wall's picture

Re: Use in the US

The 33 Ω burden will give you just short of 40 A maximum current, but - if you use the emonLib library and our sketches on Github - you won't get pulses, you get (every 10 s by default) a number sent to your Pi (assuming you have a serial connection, either wired or by radio). You can run emoncms on your Pi if you wish. A hard disc is recommended for the full version, or the 'low write' version can use an SD card.

hueydriver's picture

Re: Use in the US

Thanks....  I have a lot more studying to do in the building blocks...

I realize its not the way its set up to do pulses.  I'll have to look it over.  Dont have the serial stuff right now, but might give it a try.  Doing the pulses the old way worked great for realtime processing, but I realize it might not work as well with all the other stuff.  Still, I'm doing all this mostly "because its there" so half the fun is trying something new....

Thanks again for all the help!

Bill Thomson's picture

Re: Use in the US

I have what appears today to be standard XHHW-2 service wire, 4/0 x 2.  However, apparently due to improvements in insulation, the WC1 actually fits a little loose.

Hi HD,

What you've got is the good stuff. THHN is actually what's used most of the time, as it costs less than XHHW/XHHW-2. Hats off to the person who spec'd your wiring!

Good to hear you didn't have to break out the X-Acto knife.

I take it from your forum user name you're a chopper pilot?

Regards,

Bill

hueydriver's picture

Re: Use in the US

Well, I have to assume it was a mistake on my electricians part, because I can assure you he WOULDN'T have intentionally picked something more expensive (even if better)!  Although, it was just a short run (20') due to installing a new base...

Just figured I would make the comment that the WC1s worked....  Might help someone down the line.

Things seem to be functioning, although I still need to fine tune calibrations.  Like others, my preference is to mirror as closely as possible whatever the power company reads.  I dont have any PV input (yet).  Since I am on peak metering, I just want to tune our usage as much as possible, and still see where the car charger is running, etc.  Although Dominion does provide a monthly download of usage in 30 minute intervals, just nothing 'real time'....  So, since I USED to have it with my old meter, just trying to get that back again.

I do have a weird-ism tho, that one of my CTs is showing negative real power and power factor.  When I turn it around, it shows positive values, but thats against what the flow direction on the CT indicates.  I am fine with the solution, but curious about the problem....  I'll check in to it more.

@Bill, thanks for your help....  You're right.  I was a UH-1 pilot from 90 to about 03.  Sometimes I miss it, other times I dont miss the work!

Thanks to all for the help, and the great reference materials (Building Blocks)....

Robert Wall's picture

Re: Use in the US

"I do have a weird-ism tho" 
Is that CT on the other leg of your supply? That would explain it (see Building Blocks again!), as would swapping tip and sleeve on the plug. But swapping the a.c. adapter would reverse all the powers, not just one.

Bill Thomson's picture

Re: Use in the US

he WOULDN'T have intentionally picked something more expensive (even if better)!  Although, it was just a short run (20') due to installing a new base...

Sounds like it might have been "what was left on the spool" from another job.

I was a UH-1 pilot from 90 to about 03.  Sometimes I miss it, other times I dont miss the work!

I was a Avionics Navigation Systems tech on KC/RC-135s from 73 to 80. Like you, sometimes it's missed, other times not. Especially wintertime flightline work at Eielson AFB! (near Fairbanks, AK)

 

hueydriver's picture

Re: Use in the US

Ok, I have everything running, with two CTs (one on each leg of my power)...

I have been through the building blocks, but with all due respect to the developers, it is a bit hard for me to differentiate what is US and what is UK...  And some very minor differences in wording add to the confusion....  I'm just a software (and budding hardware) guy with at most, one college semester in physics....

I am running the arduino shield on an Uno, using WC1-080-MA100 CTs and the Ideal Power 77DA-10-09 AC-AC adapter.  I'm running the emonTx Shield firmware version "voltage_serialonly".  The arduino is plugged into a Raspberry Pi 1 model B and for now I'm just reading the serial by "cat /dev/ttyACO0"....

First off, I know there are accuracy issues all through the system, but my objective is to try and get as consistent as possible, then just adjust calibrations over time by comparing to actual power company meter readings.  As previously mentioned, I'm not trying to challenge the power company (or monitor net metering), only to replicate the readings they wil use to bill me.

First off, I'm guessing that since I am using a wall wart, I dont need to do the internal reference voltage calibration.  Just curious because it says this dramatically improves accuracy, but is optional for using mains power supply...

Second, I am using 130.0 for voltage calibration, but consistently off by about 1v from my meter reading, using a non-RMS multimeter.  I'm currently getting 121.2 and 122.6 on my two legs using multimeter (121.2 on the leg with the adapter).

I am using 24.24 as cal factor for current.  This seems wild, but its at least CLOSE to the Irms I am getting out when compared to my clamp-on (again, non-RMS).  I arrive at this value by using (80A/.1A)/33ohms=24.24.

Finally, all I REALLY am looking for is an accurate reading of watts consumed over a period of time.  I think there is only one ADC in the Uno and there is some amount of time required to let things settle before taking readings.  I saw there was at least some discussion about calculating consumption on the arduino, but havent dug in that far.  Basically, I used to take hourly readings and keep track of how many kw were consumed and then sum up the various categories (super off-peak, off-peak, peak) in my billing plan. 

I'm assuming that the value returned in 'calcVI' is an instantaneous reading.  Thats fine.  But how frequently can I run this to improve the accuracy, assuming that I could calculate that if I was getting 600 in "realPower" that over a 10 second period that would be 1.6 watts.  Again, I presume the more samples I take, the more accurate that reading over a 60 minute period.

As I mentioned before, I used to use a phototransistor to read the pulses from my meter.  There was 1000 pulses per KW.  I know I probably have the units all messed up but I know what I am aiming at.  And as I said, if I can just get values that are consistent (vs accurate), I can start messing with the CT calibration factor, or even program in a hard coded calibration.  Over time, I can tweak it by comparing the meter values to the emon values...  It wont be perfect, but I would hope that I'd only need to 're-center' the emon values every week or month or something and still stay within a KW or two of the meter readings....

Does any of that make sense?  And while I know that some of these settings are unique to this thread ("Use in the US"), maybe more appropriate for the specific Shield forum (which I have searched but not finding anything closely related to this "US initialization")....

Robert Wall's picture

Re: Use in the US

There are a few questions there. (Completely off-topic, noting Bill's earlier comments, I'm a lapsed PPL - but I did all my flying with a fan on the front!).

First, everything on this site except the one article about use in N. America is directed towards the UK single phase system (where we generally have an earthed neutral and 240 V nominal at 50 Hz).

Calibrating the internal reference: The internal reference has an uncertainty of ±0.1 V in 1.1 V  It's thought that the internal regulator in the emonTx is more precise than this - certainly that's true for the initial value, but I can't find data to establish which is better for the long-term stability. If your sketch says "#if defined emonTxV3" - which it won't and mustn't for the Shield, then the nominal 3.3 V supply voltage is used as the reference. In your case, the library uses the internal 1.1 V reference to calibrate the 5 V supply. (This is primarily for battery-powered applications, where the supply voltage changes markedly.) As you point out, there's only one ADC so the 1.1 V reference being out affects all channels equally, and doesn't have to be calibrated, but doing so should make the individual voltage and current calibration factors come closer to the nominal values. As I think you've seen, there's a BB page about where the errors come from, so you must expect a few percent differences. 1 V in 120 is well inside what I'd expect. So you can and should tweak the voltage and current calibrations as necessary.

If you really want watt-hours, then you need to change to a 'continuous' sketch. The bad news there is there isn't one for the Shield and an emonTx one needs to be converted. The slightly worse news is there are problems with the emonLibCM library, which I'm working on but had to stop for non-OEM stuff that takes priority. As you know, the 'discrete sample' sketch uses calcVI( ), which reports the average over 10 cycles, repeating that measurement every 10 s approx. That's good enough over time if you don't have rapidly switching loads (because what you miss between samples averages out), but if you do have - say - an induction hob, then you really need the 'continuous' sketch. This works much more like your meter, but it totals Wh continuously on a per-cycle basis, reporting the average power over the previous 10 s every 10 s.

hueydriver's picture

Re: Use in the US

Well, not to pander, but I flew both airplanes and helicopters....  So I certainly appreciate the compulsion with both....  :-)

I should explain my long post.  The way I figure, there are 3 (or more, if I missed one) variables.  The voltage, CT and internal reference calibrations. I realized how hard it was going to be to tweak all three, so I wanted to nail down two as well established, and then tweak the third.  After I posted, I did a little thinking and realized that my 'error' of less than 1% was pretty damn good for the AC-AC factor.

This will probably be pretty crazy, but here's what I did today.  I have the standard sketch loaded (from emonTxFirmware on github), but it seems to be what I see around.  Set the calibrations, do the calcVI and work with the numbers.  I realize its a calculus problem, but I took out the delay and do as many samples as I can in a 30 second period.  With one CT, it was right at 58 samples per 30 seconds, no idea since I added the second.  I average the real power from those samples over the 30 second period and divide by the period of time.  I compared the captures over a 90 minute period against a kill-a-watt and its actually pretty close!

I'll post all the code from this when I get more time (and clean it up a little).

So I print the number of watts used over the 30 second period to serial and capture it using the raspberry pi the arduino is plugged in to.  I try to stay on 30 second intervals by calculating how many milliseconds to the next 30 second interval (so my readings are made at 30000, 60000, 90000 millis etc).  I'm still getting a little drift, about 3 seconds over a six hour period so far.  But there is much to clean up on that loop.  I also realized while pondering that while I am figuring my average over say a 29 second period because of some processor overhead, I need to calculate usage over 30 seconds (instead of the 29 seconds).

Just to kind of show where my thinking is.  I use a python script to read the serial data, then call a netcat procedure to transfer to another Pi where I accumulate the values and do whatever processing (snapshots of peak/off-peak usage) etc.  I have a shell script that reads the netcat on the receiving end and inserts the 'readings' into the process I was using back when I had a pulse reader.  All in all, its just an elaborate scheme to get that data stream back.

Again, thinking about it, this kind of cries out for a timer with interrupts, but I need to do some more figuring on that.

Robert Wall's picture

Re: Use in the US

"I took out the delay and do as many samples as I can in a 30 second period"

Er...  Actually, that's pretty close to what the 'continuous' sketches do. But they're a bit cleverer and let the ADC free-run, so they get a lot more samples per second than the calcVI( ) method that uses analogRead( ). If I remember correctly, the timing between reports is taken from the mains cycle count.

dBC's picture

Re: Use in the US

The other big advantage of free-running mode is that it's jitter-free.  You can have long code paths and short code paths, and it doesn't matter.  Those ADC samples will come in every 104 usecs no matter what your code is doing.

hueydriver's picture

Re: Use in the US

Thats what I'm going to have to read up on.  I saw in the calcVI code that I think there was a timer in there to let the line settle once its connected to the ADC.  All that is very new to me, so I have more reading to do.

I was actually thinking of somehow just branching off the emonTX shield into another arduino and dedicating one each to the CTs.  I pick up arduinos when they are sale here and can usually get them for $5(US).  I probably have 3 or 4 spares sitting in my project boxes...

I have one question that will help save me a few minutes of research (or trial and error).  If my shield is reading a little lower than actual, which way would I adjust the CT calibration (assuming voltage remains at 130)?  It seems I saw a little bump up in my readings when I dropped the calibration from 24.24 to 24.00....

hueydriver's picture

Re: Use in the US

Its been a bit since I posted, but I figured I would add some observations here in case it would help anyone.

Once installed, everything worked fine.  The sketch is intuitive, although the calculations are beyond my understanding, so, I just accept them.  Running with two CTs, which means I instantiate EnergyMonitor twice, I found that my loop was taking 8 samples in my 30 second period, 4 samples per CT.  This is MUCH worse than the 58 I was getting using 1 CT, probably due to the wait required when changing the ADC input.  So, while a sample every 8 seconds isnt bad, its going to induce some error.

I really think what I might try is soldering the CTs together and using free-running.  I have read up on it and it seems like it would be fairly easy, not withstanding having to brush up on interrupts.  I dont want to bastardize this great project, but in reality, the shield was the best option I saw.  I read some articles on building my own, but I figured the best thing to do would be to take the hardware out of the equation when I jumped in.

I have been using 130.0 as the voltage calibration, but calculating kwh usage about 10% high.  Again, I realize there are lots of variables in the loop, but my usage is fairly consistent, so if I get numbers that work for me, thats fine as a start.  I'll figure the variables out later.  I adjusted the calibration down to 123 and was accurate to about 0.5% (over about 48 hours).  I know 'technically' this isnt achievable, but again, my objective is to read the same as my meter, so however I get there (including 'predicting' normal usage) works for me.

I dont want to clog up the forums, but would be happy to have an off-line discussion if anyone else is interested.  I just post this here in case there is someone out there looking for the same answers as me....

Robert Wall's picture

Re: Use in the US

The bad news is I'm still working on the CM Library. I've actually got back onto it this weekend, so there is movement. The CM Library as it was published after being derived from Robin's diverted sketches has bugs and is inaccurate, so I advise that you don't waste time on it until I offer it for testing.

"I really think what I might try is soldering the CTs together and using free-running."
Is what you're saying there "It's faster to do the addition in the wires than in software"? If so, I totally agree!

 

hueydriver's picture

Re: Use in the US

If I can help or test, let me know.  I have some very vague ideas on what I would try, but havent even put them to paper yet.  Still mulling it.

Since you agree, I guess it would work?  As soon as I hit send, I wondered if the 'phase' difference on US 220v would cancel each other out, or if combining the CTs would be 'cumulative'.  I presume its the latter.

Originally my inclination was to keep things separate, but the more I thought about it, the more I realized that there really was nothing quite so useless as knowing my total power consumption on each leg (main).  About all it could tell me is if my panel was balanced which I can find out any time with my multimeter.  And I know it probably isnt very well balanced as I have a 120v generator backup and put the more critical items (internet, TV, beer fridge) on the leg with the backup!

At first I kind of gave thought to buying another shield and running both shields in free running mode and combining values on my pi, but the thought of syncing up the two (so I was combining the same time frame) made my head hurt.  Syncing up two 'real-time' microprocessors and a task scheduling service just seems a bit much right now....

Robert Wall's picture

Re: Use in the US

Have you not read the page about use in N.America? I think your answer is in there.

How many inputs do you need if you're looking at 2 emonTx Shields?  

If you run the CM sketch, you'll be taking a set of 3 samples (one V, two I) every 3 × 104 μs, so you'll get approx. 53 sample sets per cycle - continuously. That, according to Nyquist, means you should see up to the 25th harmonic.

If you use the other 2 inputs, you'll be taking a set of 5 samples (one V, four I) every 5 × 104 μs, so you'll get approx. 32 sample sets per cycle.

Thanks for the offer to test - I'll try to remember who it was!

Robert Wall's picture

Re: Use in the US

For anyone waiting for the 'continuous monitoring' library emonLibCM

There is more bad news regarding the re-release of this library. As testing progresses, yet more serious shortcomings in the conversion and expansion of Robin's original code into this library are being revealed. I am unable at this juncture to even estimate when a proven version could be released for testing.

So I reiterate: the CM Library as it was published has serious bugs and is inaccurate, so I must advise against its use.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.