Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 12:34:27 12:34


Login with username, password and session length


Pages: [1]
Print
Author Topic: PowerMeter for aquarium  (Read 5475 times)
0 Members and 1 Guest are viewing this topic.
Elysion
Newbie
*
Offline Offline

Posts: 14

Thank You
-Given: 27
-Receive: 1


« on: January 19, 2015, 04:38:04 16:38 »

Hi,

I have a 650lt. aquarium at home. There 2x 300 watt heaters, several pumps and several lights which mimics Sun's movement.
I want to follow the spent electrical energy. I'm wanting my data logger client to call a restfull service of mine in my host pc.
My data logger will be a 8 bit PIC. I have experience with calling restfull services from PIC over http. My question is about power sensing.
I looked around and find that they are generally

shunt based
http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=mcp3905ev

or hall effect based
http://www.infineon.com/cms/en/product/sensor-ics/current-sensor/TLI4970-D050T4/productType.html?productType=db3a30444449c62b01444e11450f0508

What I need is the watt/hour. No active/passive issues.

What do you suggest for sensing the current/power?

Thanks,
Oguz
 

Logged
Signal
Active Member
***
Offline Offline

Posts: 197

Thank You
-Given: 111
-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".

Quote
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
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 151
-Receive: 214


« Reply #2 on: January 20, 2015, 12:30:02 00:30 »

I'd consider a split core transformer as well.

not this one per se, but it's an example.
http://www.amazon.com/0-01-120A-0-5M-Split-core-Current-Transformer/dp/B005FIFT4E
Logged
dezso
Junior Member
**
Offline 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 Offline

Posts: 14

Thank You
-Given: 27
-Receive: 1


« Reply #4 on: January 20, 2015, 09:39:30 09:39 »

I'd say "Watt*hour" and "active/reactive".
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 ?


I want to do it myself. Otherwise a simple smartplug-plugmeter will make the job.
Logged
Kombinator
Junior Member
**
Offline Offline

Posts: 82

Thank You
-Given: 38
-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 Offline

Posts: 168

Thank You
-Given: 62
-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 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 Offline

Posts: 704

Thank You
-Given: 151
-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 AD71056


you 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 Offline

Posts: 197

Thank You
-Given: 111
-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 Offline

Posts: 704

Thank You
-Given: 151
-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 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 Offline

Posts: 168

Thank You
-Given: 62
-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 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 Smiley I am so pleased....
Logged
jumulab
Junior Member
**
Offline 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 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
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC