Hello.I have an arduino Uno and a led strip WS2812B (30 leds , 5 Volt , 3 pin (GND , 5V , Din) ).
I connected GND to arduino's GND , +5V to arduino's Vin and Din to pin 4 (of arduino).
The problem is that all leds don't get red , some are red others are yellow , green and mixed colors.Do you know what's going on?
If I enable only 5 leds, for instance:
I had to put a resistor to make it work ,but now I do not have a lot of brightness as before.I changed the value from 50 to 255 but the brightness of leds don't change
The resistors go in series between the Arduino board output pin and the first Din of the LED strip. The resistor should have no effect on the LED brightness. The resistor should be around 470Ω. Please show how you have connected the resistors and their values.
The Uno 5V regulator cannot provide the current for more than a few LEDs, period. You must have an external 5V supply for the LED strip that is capable of supplying the required current. WS2812 LEDs can draw up to 60 milliamps per pixel (white, full bright). 30 pixels will need 1.8A.
I do not have a 5V adaptor.I only have a 9V 1A adaptor , a 220 Ohm resistor in Din and something is wrong with colors.When I upload a scetch with blue color ,leds become red and when I remove the 9V adaptor and put it back again ,leds become blue.
I don't know what's wrong with it.
What's wrong is the power.
I'm sorry that you don't have the stuff on hand to fix it. The wait for parts can't feel very long.
The reality is that you still need the better power supply. That is the root of your issue and should fix you right up.
There is not an alternative with the equipment that you have on hand. I wish there was.