Hello
I thought I had my power meter puck all ready, but after about a week of successful running, I got into a problem that my power meter LED that blinks for every watt, gets stuck with LED always on =(
I have solar power and possibly it causes issues with a meter (have to call my power company).
Anyway... Is it possible to somehow work around the issue with the code?
This is my code to trigger on the light pulse, similar to the example code:
pinMode(D2,"input_pullup");
setWatch(function(e) {
c.inc(1);
pulseTotal++;
update();
if (LEDStatus==1){
digitalPulse(LED1,1,1); // show activity
}
}, D2, { repeat:true, edge:"falling" });
Not sure what I can do to detect that D2 is short for too long and somehow stop draining the battery if it gets stuck for too long. Once the sun sets, it goes back to normal blinking on power use
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello
I thought I had my power meter puck all ready, but after about a week of successful running, I got into a problem that my power meter LED that blinks for every watt, gets stuck with LED always on =(
I have solar power and possibly it causes issues with a meter (have to call my power company).
Anyway... Is it possible to somehow work around the issue with the code?
This is my code to trigger on the light pulse, similar to the example code:
Not sure what I can do to detect that D2 is short for too long and somehow stop draining the battery if it gets stuck for too long. Once the sun sets, it goes back to normal blinking on power use