Hey everyone, so I have an old WS2812B 5V LED strip I am wiring up to an ATMEGA328 Arduino Nano. It has three wires: red (5V), green (DATA), and white (GND) I connected to 5V, D2, and GND on the Nano respectively. Here is the program I uploaded:
For some reason the LED wasn't turning on, messed around a bit and pulled out the ground wire so only 5V and D2 were going to the LED strip. This fixed the problem and I'm wondering how this is possible without ground connected? Anyone know?
I hear what you're saying, I'm not just randomly pulling wires I was moving the ground and when I pulled it out my program worked and the LED strip turned on. I Haven't soldered anything I am using a breadboard.
It is up to 500mA. 6 LEDs, 20mA per color (RGB): 6 * 20 * 3 = 360mA. It has plenty of power for these LEDs. That's not really what I'm asking. I'm asking how the LEDs are receiving power and running the program I have uploaded to Arduino successfully without the ground wire attached. As you can see in the image, the white wire is just hanging there.
Never ever rewire a powered up circuit, that is the best way to damage your Arduino and the things you are trying to control.
Physics sees no difference at all in the two cases of randomly pulling wires and moving the ground. This is a big mistake many beginners make.
Because you are probably getting a parasitic ground through the signal wire. So wire it up correctly to avoid damaging you board and LEDs.
You should also have a series resistor between the driver pin and the data input to the LED strip, and a capacitor between power and ground at the start of the strip.
Thank you this is all I needed to know. I'm not a beginner I'm aware of all the other things needed I just threw this together real quick and uploaded the code I'm just testing something. I have like 10 boards never fried any which is why I really don't care about moving the ground wire.
Please provide a reference for that 500 mA statement; it's either out of context, or lacking context.
Time for some math. (Don't run away, math is fun!) The SOT223 package of the 1117-5.0 package is 88 degrees C per watt*,**. Your 500 mA, by itself, with 12V source, is therefore resulting in 3.5W of dissipation, and will likely in short order cause thermal shutdown of your regulator. Let alone any current required for the rest of the Arduino.
So you'd like me to search that 45 page document for a place that says it will source 500 mA unequivocally? No, thanks. First page, they weasel with "up to 800 mA", leaving the reader to understand the rest of the datasheet for context.
You may choose to ignore it, that's up to you., but with a 12V source on Vin, you are abusing the regulator if you actually draw 500 mA from the 5V pin for any length of time.
Six RGBLEDs on an unsoldered PWM pin? Do the colors ever flicker, fade or not light?
Get a "buck converter" (12vdc to 5vdc), a 1000uf electrolytic capacitor and a 470 ohm capacitor. Use the 5v output of the buck converter to power the LEDs while you have the USB connected. When the USB is not connected, power the Arduino from the buck converter to the 5vdc pin.