Go Down

Topic: Arduino Stops After Period of time. (Read 799 times) previous topic - next topic

Grumpy_Mike

Quote
and the power supply is a wall wort 9v 1000ma hooked up about 60 feet away.

I bet that is the problem, what sort of extra decoupling have you got?

technochris1


Quote
and the power supply is a wall wort 9v 1000ma hooked up about 60 feet away.

I bet that is the problem, what sort of extra decoupling have you got?


decoupling???
well the only thing is that it lasted over a month with hour to hour use, then just locked up... i assumed that since i made the onboard LED a "Heartbeat" and that was what was locked on solid it must not be alternating with this code.

Code: [Select]
if(currentMillis - previousLEDmillis > StatusLEDinterval) {
    // save the last time you blinked the LED
    previousLEDmillis = currentMillis;   

    // if the LED is off turn it on and vice-versa:
    if (ledState == LOW)
      ledState = HIGH;
    else
      ledState = LOW;

    // set the LED with the ledState of the variable:
    digitalWrite(LEDpin, ledState);
  }

technochris1


Quote
and the power supply is a wall wort 9v 1000ma hooked up about 60 feet away.

I bet that is the problem, what sort of extra decoupling have you got?


do you think that it would last more than a month with no decoupling????

Grumpy_Mike


Why are you using currentMillis and not mills();

It could be on the edge and the extra activity of the LED pushed it over. It never hurts to have too much decoupling.

Go Up