Hello guys. I have an RGB 30-led strip 5V (50cm) and I 'm in trouble with connection.It has a 3-pin female adaptor (DI) and from the other side a 3-pin male adaptor (DO).So, I connect only DI to my arduino UNO (red to 5V , white to GND and green to pin 6(for signal).I run this code as example and nothing happens.
I read that the male adaptor is just to connect it to another led strip(female) for chain.
Code:
// which digital pin we're going to use
#define PIN 6
// how fast you want it to cycle, higher is slower
#define FADESPEED 7
void setup() {
pinMode(PIN, OUTPUT);
}
void loop() {
int i;
// fade from low to high (note we can't go to 256)
for (i = 0; i < 255; i++) {
analogWrite(PIN, i);
delay(FADESPEED);
}
// then high to low
for (i = 255; i > 0; i--) {
analogWrite(PIN, i);
delay(FADESPEED);
}
// pause in between
delay(50);
}
Can you give a link to where you bought that ledstrip ?
There are a few different types, which are controlled in different ways. I think you have a WS2812 / Neopixel ledstrip.
Start reading about Neopixel and FastLED.
How do you power that ledstrip ? It might require 2 amps. The Arduino 5V pin of the Uno is for sensors, that is not a power output.
Yes I think I have this type of led strip,but I have problem with connection,I connect the DI (one side of led) to arduino, upload a code and nothing happens ,so I need a help about what I do wrong and how to fix it.
Thanks a lot...
Again as you were told. The Arduino 5 volt pin is not a power pin. Meaning you can't use your Arduino as a power supply for a string of LEDs. Power the LEDs using another supply. Share the common ground with your Arduino and now use the Arduino to drive your LED string (pin 6). This is what Koepel told you.
The Arduino board using Arduino Uno for example is not a 5 volt power supply, it will provide 5 volt power to light sensor loads, it is not designed to provide high current. I would not use it for more then 0.5 Amp.
Have you read about Neopixel and FastLED ? Can you give a link to your ledstrip (a link to where you bought it).
This is your picture. What kind of power supply do you use ? How is it connected ? Where did you find the picture, which website ?
I can find that picture on Dutch websites. Are you from the Netherlands ? Je kunt niet zomaar een analogWrite doen naar zomaar een willekeurige ledstrip, dat gaat nooit werken (you can't just send a analogWrite signal to some random ledstrip, that will never work).
My led strip is about 50 cm long (5 V) ,it is connected like the photo I sent (but without resistor).I connect arduino to my laptop and I give power supply from a powerbank(I also tried to give power supply from laptop) {5V - 1A or 2A}
I'm from Greece.
The code I tried is on my first post.I'm reading right now about neopixel from this site.
I suppose, under the circumstances, we are going to have to start at the beginning.
There are basically two types of signals, power and signal, which being ambiguous , implies anything that is not
strictly power, regardless of the waveform. "Signal types" is not something we are even ready to discuss. I don't
see a vendor link for the led string but just right off the bat, if the led string has separate power pins, WHY would
you need a 470 ohm resistor on a pin labeled "Din" ?