-
Notifications
You must be signed in to change notification settings - Fork 48
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
Zero Readings #17
Comments
For tests I suggest to use an old light bulb which is a purely resistive load. Or a heater. |
Are you trying to use the Interrupt example? I'm finding that this just does not work, nor does calibration. If I use the non-interrupt example it works. |
I found that the cause, at least in my case, is that the Interrupt example has not been updated (I presume) for how the newer Arduinos work, and thus interrupts were never firing. As per the Arduino documentation on the
Instead, the
This appears to work for me. Also note that, at least on the Arduino Uno, only digital pins 2 and 3 support interrupts; the full list can be found in the above documentation. |
Thanks @joshuaboniface , I updated the examples with your code! |
I am using the HLW8012 Energy meter module, and have used the HLW8012 Basic.ino from this library. However the readings are always zero for all measurements when the load (12W led bulb) is on. Could this be an issue with reading pulse from the module? Or if anyone has tried this code on the module before.
https://www.electrodragon.com/product/energy-meter-hlw8012-breakout-board/
The text was updated successfully, but these errors were encountered: