-
Notifications
You must be signed in to change notification settings - Fork 27
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
Drastically wrong power reported when there is few pulses #48
Comments
After performing more experiments, I have found the breaking-point to be somewhere between 599W (still working) and 557W (not working) (All "real" values are from the original Sparsnäs display) |
I think the problem is not the decoded power but the number of pulses within a timespan. Your setup was 100 pulses per kWh, Confirm? |
Yes, that is correct. 100 pulses /KWh |
I've added a function to print raw power values to the serial port. Not tested. |
Not sure how I can test this. I am currently using @riksarchen fork as it has some tweaks to make it work with the board he deigned. Some sort of raw values are already being printed, (see the log in my first post) are these different from the ones you added? |
@nbasse, we need to see your EspSparsnasGateway/src/RFM69functions.cpp Lines 403 to 410 in 38d3c45
|
@fredrike
|
Great! What is the consumtion with I.e., what formula should we use for that case? Perhaps try to extract 10 values and corresponding values from the display. |
Yes, started doing this yesterday, but only had the time to get 5 or 6 value pairs. And since the original display only shows whole watts, I think some more values would be good to get a better formula. I started by fitting a straight line to the values. but I'm not sure where I should add the parameter for pluses/KWh. I will look into this more later today or tomorrow and try to get some more readings. |
Just post the readings here and I can try to find the factor for you. |
I have now fitted a exponential model to the values I recorded and extracted some coefficients. I'm not sure if I correctly accounted for the number of pulses. So someone with a value other than 100 should try this to see if it is correct. |
Great job! I suggest that you send this as a pull-request so @bphermansson can merge it. |
Wrong power is being reported when there is a low load in the system making it take longer time between the light pulses on the meter.
For example, when there is 250-350W being consumed, the EspSparsnasGateway reports 10-20W, (with 100 pulses/Kwh for the meter, therefore approximately 3 minutes between the pulses).
But higher loads, for example, 2000w gets reported correctly.
Attached serial log shows first an apartment at approx 300w, then a kettle is turned on raising the power to above 2000w and then it is turned off again.
(Most of the bad packets received have been filtered away to make the log shorter.)
debug_log.txt
The text was updated successfully, but these errors were encountered: