• 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

About

Avatar for user130485 @user130485 started