Unintended, instant LED Power-UP right after turning on 12V SMPS

Remove the relay and connect the LED cathodes to ground.
Connect a 4.7K resistor between pins 9, 10, 11 and ground, one resistor on each pin.

Add this code in setup

digitalWrite (LED_R, LOW);
digitalWrite (LED_G, LOW);
digitalWrite (LED_B, LOW);

Place it right after the pinMode statements for those pins

You have this in setup so Leds will turn on ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.