PaulRB:
You should have a series resistor for each led. 150~300R is ok. Also put a 0.1uF cap from 5V to ground near the '595 chip's power pins.
Hi i have leds which power voltage is 5 V. I added delay 100, but I dont understand why leds blink, I have flag which ensure that 1 time all leds turn on, but they blink. I just want to turn on all leds at some time.
NikKKKK:
Hi i have leds which power voltage is 5 V.
Oh, really? I never heard of those.
NikKKKK:
I have flag which ensure that 1 time all leds turn on, but they blink.
Perhaps your Arduino is resetting. This could be because too much current flows, causing supply voltage to drop. Use Serial.println() to send a message to the serial monitor inside init(). This will show you when the Arduino is resetting.
PaulRB:
Perhaps your Arduino is resetting. This could be because too much current flows, causing supply voltage to drop. Use Serial.println() to send a message to the serial monitor inside init(). This will show you when the Arduino is resetting.
I checked but my message shows one time in serial monitor(