Help attaching LED to Arduino

I’m currently working on a project that involves attaching an LED strip to an arduino and I’m having the problem of getting it to change colors correctly. I believe I have it all wired properly as the LED strip turns on when it is first plugged in and when the code is run to change its color it does. However the problem is that it’s supposed to be turned off when the circuit is first is powered on. Instead when it turns on the light flickers on and off a couple times then stays on. I had it working correctly with some regular RCGB LEDS prior however the LED strip I have is wired differently so I had to change it around. Attached is a few pictures of the irl breadboard and the tinkercad of how it’s supposed to look. (I also currently only have one of the strips I need but that doesn’t change anything) help is appreciated, thank you! https://www.tinkercad.com/things/lLxN06ZuU3o-copy-of-three-phase-demo/editel?returnTo=%2Fdashboard%2Fdesigns%2Fcircuits&sharecode=AX09JXeALERnybYABb3N1n8rVAQ4A5K5EpQmXJ8EemQ
No description
No description
No description
12 Replies
PigPerOne
PigPerOneOP3mo ago
Here is the updated code for the LED as well
AnonEngineering
AnonEngineering3mo ago
how are you powering that strip?
PigPerOne
PigPerOneOP3mo ago
5v strip it’s attached along the side it’s the gray wire out front
PigPerOne
PigPerOneOP3mo ago
No description
PigPerOne
PigPerOneOP3mo ago
I wired it according to what it said
No description
AnonEngineering
AnonEngineering3mo ago
you need an external power supply, an Arduino can't supply enough current for more than 5 or 6 of those pixels
PigPerOne
PigPerOneOP3mo ago
I’ll only have 3 Could I attach a 5v battery to the side and that would work? It powers the current strip just fine and I was planing on just cutting it and using extension pieces to plug those extra parts back in it appears when it is first plugged in all lights turn on im just trying to figure out how to turn them off until they are needed
AnonEngineering
AnonEngineering3mo ago
sry, been driving all day if you only have 3 that's fine but it looks like a whole strip in the pic with those you give it 5V and if you ground R G or B that color lights up
PigPerOne
PigPerOneOP3mo ago
All good
AnonEngineering
AnonEngineering3mo ago
there aren't really "5v batteries", unless you mean a power bank
PigPerOne
PigPerOneOP3mo ago
Yeah sorry that’s what i meant
AnonEngineering
AnonEngineering3mo ago
figure each pixel needs 60mA at 100% white, so multiply that by the number of pixels if you don't drive all 3 colors to 100% is uses less current

Did you find this page helpful?