I have made my first project using a Due with lots of leds being controlled by a handful of switches . It works fine but I'm having a problem with the fact that quite a few of the leds flash very briefly when the power to the arduino is switched on , and I am using the power that runs to some of the leds to also trigger relays . Since I don't want these relays triggered until the leds in question are switched on by the switches via the arduino , it's a problem. All the leds are switched on by conditional switches , "if" in the code , so as far as I can see there is no reason for them to light up due to the sketch running.
If it is a natural part of the functioning of the arduino that they should briefly blink when the arduino is first powered on , is there any way I can prevent it happening?
A schematic (photo of hand drawn is fine) would be useful. Your code will also be helpful.
There is a known issue with the DUE, it does not have an effective power on reset.
It might be related to your problem.
If it is a natural part of the functioning of the arduino that they should briefly blink when the arduino is first powered on
Yes.
When ever a processor is reset all pins default to inputs, and these inputs can float high, in effect turning on any sensitive output.
The cure is normally to fit a pull down resistor, or to wire the outputs so they are a current sink rather than a current source. This of course inverts the output logic but that is easy enough to change in software.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.