Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor the Mains? #14

Closed
rechena opened this issue Sep 20, 2020 · 37 comments
Closed

Monitor the Mains? #14

rechena opened this issue Sep 20, 2020 · 37 comments
Labels
help wanted Extra attention is needed

Comments

@rechena
Copy link

rechena commented Sep 20, 2020

Can I use this board code to monitor my house at the mains board? Thanks

@alcar21
Copy link
Owner

alcar21 commented Sep 20, 2020 via email

@alcar21 alcar21 added the help wanted Extra attention is needed label Sep 21, 2020
@rechena
Copy link
Author

rechena commented Sep 21, 2020

Thanks for the reply. I had a old system using an arruino uno and Xbee but this makes it so much better :)
One thing though on mine I was measuring using an AC/AC transformer for the current, would it be possible to do the same somehow on yours? Thanks

@alcar21
Copy link
Owner

alcar21 commented Oct 1, 2020

Yes, you can measure AC by putting the clamp on one phase. You only need a transformer to power the ESP8266

@rechena
Copy link
Author

rechena commented Oct 2, 2020

Thanks I was more asking about using this approach - https://learn.openenergymonitor.org/electricity-monitoring/ctac/how-to-build-an-arduino-energy-monitor. But That would need some changes on the board.
Regardless, do you have any link to help with the calculation of the icalc? Thanks

@alcar21
Copy link
Owner

alcar21 commented Oct 2, 2020 via email

@rechena
Copy link
Author

rechena commented Oct 4, 2020

Hi, I'm a bit confused on whats happening, I finally got around to install this, ufortunately I had to install the CT on the Neutral since the Live is too short, regardless, from what I read it won't make a difference.
The concern is, looking at the house in "standby" I'm reading around 146W, which I love it being so low, but.. when I turn on my kettle which is 2500/3000W, the Watts only increase to 568W... I have a SCT-013-030 and I've calibrated the iCalc to 30.0... I've measured my Voltage with a Multimeter and its giving me 233V.

Can you think if anything I might be doing wrong?

Thanks

@alcar21
Copy link
Owner

alcar21 commented Oct 5, 2020 via email

@rechena
Copy link
Author

rechena commented Oct 5, 2020

I would gladly but unfortunately it was so hard to had the CT to the main's board that if I remove it it will break :( need to order a new one and then I can test. I was just wondering if you noticed something similar... Guess I need to buy a new CT and test it... :(

@alcar21
Copy link
Owner

alcar21 commented Oct 5, 2020 via email

@rechena
Copy link
Author

rechena commented Oct 5, 2020

I've just tested both ways, with the socket and directly with just the hairdryer, and its reporting only ~400W for a 1800-2200W hairdryer :(

IMG_6901

@alcar21
Copy link
Owner

alcar21 commented Oct 5, 2020

Please, Can you post images of your configuration?

@rechena
Copy link
Author

rechena commented Oct 5, 2020

Of the d1mini and all the components?

@alcar21
Copy link
Owner

alcar21 commented Oct 5, 2020 via email

@alcar21
Copy link
Owner

alcar21 commented Oct 5, 2020

image

@rechena
Copy link
Author

rechena commented Oct 5, 2020

Sure :)
image

btw, I've measured the Voltage with a multimeter on a wall plug.

@alcar21
Copy link
Owner

alcar21 commented Oct 5, 2020

oook, CT is 0-1v or 0-5v?

@rechena
Copy link
Author

rechena commented Oct 5, 2020

It's the SCT-013-030...so from the specs its 0-1v? I did used in the past with a 5V Arduino, not sure if it helps.

@alcar21
Copy link
Owner

alcar21 commented Oct 5, 2020

Arduino works with 5v and ADC of ESP8266 work with 1v. This board is calibrated for the ADC of the Wemos D1 to range 0-1v.

image

@rechena
Copy link
Author

rechena commented Oct 5, 2020

That is the board I got, I got it from the eBay link you have on this page.. :( and I'm using it with a Wemos D1

@alcar21
Copy link
Owner

alcar21 commented Oct 5, 2020

It's all Ok. Can you post a photo of the connections with Wemos D1, board, and CT?

@rechena
Copy link
Author

rechena commented Oct 5, 2020

IMG_0403
IMG_0402
IMG_0401

@rechena
Copy link
Author

rechena commented Oct 5, 2020

I might be wrong, but I find the A/Current value way to low...
Not sure if its relevant but noticed that you initialize the current twice on L51 and then some lines bellow.

emon.current(A0, Ical); // Current: input pin A6=D4, calibration factor

Looking at the Emon docs https://learn.openenergymonitor.org/electricity-monitoring/ct-sensors/how-to-build-an-arduino-energy-monitor-measuring-current-only it seems that only once needed?

@alcar21
Copy link
Owner

alcar21 commented Oct 5, 2020 via email

@rechena
Copy link
Author

rechena commented Oct 5, 2020

So you think I might have a bad CT? :(

@alcar21
Copy link
Owner

alcar21 commented Oct 5, 2020

yes, may be

@rechena
Copy link
Author

rechena commented Oct 5, 2020

Ok so not much to do but buy a new one. Any recommendations on the Amp? Should I keep the 30amp or go higher?

@alcar21
Copy link
Owner

alcar21 commented Oct 5, 2020

I recommend to you buying PZEM-004T. I have a firmware that it's compatible with PZEM-004T.
This CT has more precession that SCT-013-30. The SCT-013 is best when it's smaller.

@rechena
Copy link
Author

rechena commented Oct 5, 2020

Does it work with the d1mini and the shield? Do you have a link?

@rechena
Copy link
Author

rechena commented Oct 6, 2020

Was just checking the eBay where o got the board and I think I've figure out the issue. This board is for use with the sct-013-000 so I'm guessing there's an extra burden resistor, I do recall when I was using the openenergy schematics that was the plan. I've just ordered one and will let you know.

@alcar21
Copy link
Owner

alcar21 commented Oct 6, 2020 via email

@rechena
Copy link
Author

rechena commented Oct 6, 2020

Don't think mine is calibrated... and wouldn't want to remove an R1.. so I might just wait for the 000 one to arrive :)

@alcar21
Copy link
Owner

alcar21 commented Oct 6, 2020 via email

@rechena
Copy link
Author

rechena commented Oct 6, 2020

Yep, will make the change which from this link: http://lechacal.com/wiki/index.php/Current_Transformer_Conditioner is 85.71... interesting number... :D

@alcar21
Copy link
Owner

alcar21 commented Oct 6, 2020 via email

@rechena
Copy link
Author

rechena commented Oct 6, 2020

After a chat with the board seller he confirmed that my CT already had a burden resistor, so I've just removed resistor 1 and now I have proper measures :)

Standby: image

Kettle: image

@alcar21
Copy link
Owner

alcar21 commented Oct 6, 2020 via email

@rechena
Copy link
Author

rechena commented Oct 6, 2020

Thanks for all your help. I'm gonna close the issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants