|
Signal
Active Member
Offline
Posts: 200
Thank You
-Given: 113
-Receive: 81
|
|
« Reply #1 on: January 19, 2015, 06:46:50 18:46 » |
|
What I need is the watt/hour. No active/passive issues.
I'd say "Watt*hour" and "active/reactive". I want to follow the spent electrical energy.
Do you want to make a device yourself or just to solve the problem. For latter did you consider consumer products like this one http://www.amazon.com/P3-P4400-Electricity-Usage-Monitor/dp/B00009MDBU ?
|
|
|
Logged
|
Give a right name to a right game and play it right
|
|
|
|
dezso
Junior Member
Offline
Posts: 82
Thank You
-Given: 34
-Receive: 137
|
|
« Reply #3 on: January 20, 2015, 07:30:19 07:30 » |
|
I built one 4-5 years ago based on Linear's LT2940 with homemade fully isolated current transformer.
|
|
|
Logged
|
|
|
|
Elysion
Newbie
Offline
Posts: 14
Thank You
-Given: 27
-Receive: 1
|
|
« Reply #4 on: January 20, 2015, 09:39:30 09:39 » |
|
I want to do it myself. Otherwise a simple smartplug-plugmeter will make the job.
|
|
|
Logged
|
|
|
|
Kombinator
Junior Member
Offline
Posts: 84
Thank You
-Given: 39
-Receive: 32
|
|
« Reply #5 on: January 20, 2015, 04:15:32 16:15 » |
|
Alone is difficult to make a powermeter. Will likely have a large reactive ingredient(ballast for fluorescent lamps) and big error. Try to find an calibrated ready electronic energy meter with AD7755 or similar. Use time between pulses the out of the chip to calculate the momentary active power. It will be the average power in time between 2 pulses. Will be very accurately measured. Forgive me for bad English and incorrect terminology. Regards.
|
|
|
Logged
|
|
|
|
Vineyards
Active Member
Offline
Posts: 168
Thank You
-Given: 64
-Receive: 37
|
|
« Reply #6 on: January 20, 2015, 04:56:22 16:56 » |
|
I would suggest something along the lines of the circuit posted by dezso with a special emphasis on isolation. Even the slightest amount of stray AC current would make your IC and analog measurement stages (including the onchip ADC) unstable. Isolation comes at a price. If you need an analog isolation barrier you will need something like ISO124 etc and a dedicated DC/DC converter. You may also have to think about clamp circuits to protect your analog interface. There are more options in the digital isolation realm like the ADUM series. If you don't want absolute precision, you can simply reckon the voltage as 220V (or whatever in your region) and just measure current and make the calculation based on this value vs timer value adding the result at the end of say one second to the power consumption counter and displaying the temporary consumption every second.
I haven't done anything like that before but I would normally proceed like this. Perhaps others users may have better ideas.
|
|
« Last Edit: January 20, 2015, 09:46:51 21:46 by Vineyards »
|
Logged
|
|
|
|
dezso
Junior Member
Offline
Posts: 82
Thank You
-Given: 34
-Receive: 137
|
|
« Reply #7 on: January 22, 2015, 06:18:09 06:18 » |
|
Also keep in mind the AC power P = VI formula will not work since the voltage and current constantly changes. Pavg = VI cosφ a lot harder to calculate without a designated custom IC like Kombinator suggested AD7755 (obsolete) use AD71056
|
|
|
Logged
|
|
|
|
Gallymimu
Hero Member
Offline
Posts: 704
Thank You
-Given: 152
-Receive: 214
|
|
« Reply #8 on: January 22, 2015, 05:09:27 17:09 » |
|
Also keep in mind the AC power P = VI formula will not work since the voltage and current constantly changes. Pavg = VI cosφ a lot harder to calculate without a designated custom IC like Kombinator suggested AD7755 (obsolete) use AD71056you can get close enough looking at average voltage and current, or simply sampling voltage and current at about 1KHz and doing a point by point power calculation. Even sampling voltage and current sequentially instead of simultaneously produces awfully good results.
|
|
|
Logged
|
|
|
|
Signal
Active Member
Offline
Posts: 200
Thank You
-Given: 113
-Receive: 81
|
|
« Reply #9 on: January 22, 2015, 09:07:25 21:07 » |
|
<...> Even sampling voltage and current sequentially instead of simultaneously produces awfully good results.
I imagine simple linear interpolation would be a useful improvement for that case.
|
|
|
Logged
|
Give a right name to a right game and play it right
|
|
|
Gallymimu
Hero Member
Offline
Posts: 704
Thank You
-Given: 152
-Receive: 214
|
|
« Reply #10 on: January 23, 2015, 02:54:54 02:54 » |
|
I imagine simple linear interpolation would be a useful improvement for that case.
if you look at the relative error between linear interpolation and simple rectangular integration it doesn't make much difference compared to the rest of the errors (A/D linearity, reference voltage, etc.) "GOOD" accuracy is of course relative, but I'm talking on the order of 1% for the measurements. Heck, these days oversampling is so "cheap" it really reduces the level of analog filtering and post processing needed for applications like this.
|
|
|
Logged
|
|
|
|
Elysion
Newbie
Offline
Posts: 14
Thank You
-Given: 27
-Receive: 1
|
|
« Reply #11 on: January 24, 2015, 11:38:46 11:38 » |
|
Hi to all,
I ordered some evaluation boards from DigiKey which use MCP39F501 and it's other family members. Especially MCP39F501 calculates "Active, Reactive and Apparent Power, RMS Current and Voltage, Power Factor, Line Frequency".
When I test them, I'll share the results.
I bought TLI4970 based solutions, too but due to active/reactive/apparent power issues, I think, I'll use these current measurement devices only for my high power laser diode linear driver, not in this.
|
|
|
Logged
|
|
|
|
Vineyards
Active Member
Offline
Posts: 168
Thank You
-Given: 64
-Receive: 37
|
|
« Reply #12 on: January 24, 2015, 03:20:48 15:20 » |
|
I don't think precision is very critical for this application. What will change if you have %10 error? If precision of any sort is needed you should consider an RMS/DC converter like AD736, AD536 or LTC1966 or LTC1967. 536 input can accept up to 7.5v, 736 is good for 0-200mV and LTC's will accept up to 1V (for the sake of linearity). Check the pdfs though these are from my memory. I worked with all of these IC's. Sampling cap is important. Check out the application notes for concepts like crest factor etc. My favourite is Ltc1966 but it is SMD only.
|
|
|
Logged
|
|
|
|
David_1
Newbie
Offline
Posts: 23
Thank You
-Given: 7
-Receive: 5
|
|
« Reply #13 on: February 05, 2015, 11:16:35 23:16 » |
|
that home made current meter is just what I need, Thanks for the idea I am so pleased....
|
|
|
Logged
|
|
|
|
jumulab
Junior Member
Offline
Posts: 77
Thank You
-Given: 91
-Receive: 74
|
|
« Reply #14 on: February 19, 2015, 05:24:43 17:24 » |
|
Dear all, Heve you seen the new TI device and application note / evaluation kit for MSP430 MCU ( MSP430i2040 Sub metering EVM). ? I think it is avery cool device and information for your project. TI have a very wide portfolio in energy meters with their loe power MSP430 family. Yoy can see some info, aplication notes, data sheets and all to start in : http://www.ti.com/tool/TIDM-SERVER-PWR-MON. Follow the pages in this sibject. Regards
|
|
|
Logged
|
|
|
|
iot
Newbie
Offline
Posts: 16
Thank You
-Given: 32
-Receive: 13
|
|
« Reply #15 on: March 20, 2015, 07:25:29 19:25 » |
|
I have experience with calling restfull services from PIC over http.
Check for openhab for controlling your devices, you can save a lot of work and have a simple interface to control your aquarium.
|
|
|
Logged
|
|
|
|
|