I hope you took away lots from this video and you managed to get your RGB LED to work. Let me know below! PS. WANT TO LEARN CODING? CHECK MY NEW UA-cam CHANNEL! bit.ly/3tku2n0
Thank you so much for this. I recently "discovered" Arduino and would like to play around with it some more, and your clear explanation about everything in this project helps a lot. I almost instantly liked and subscribed
Thanks man the tutorial code was wrong it says to connect long pin to 5v then I couldn't find red colour. After I ground long pin I got all colours bro thanks.
Hi, What sketch would you use for controlling two different 2 rgb leds? I'm trying to write it so that the first led changes between red and blue and the second led changes between yellow and green. The problem I'm getting is that both leds are changing between red and blue.
Hey! so if i got a common anode can I still control the brightness of the coloured leds?, because as far as I know I have to phisically connect the coloured leds to ground for them to light up, can I do some ground control inside the code?
yes, if you use; pinMode(x, INPUT_PULLUP); The rgb values are then inverted, so the colour red will now be (0, 255, 255) rather than (255, 0, 0). heres the code: int redPin = 9; int greenPin = 10; int bluePin = 11; void setup() { // put your setup code here, to run once: pinMode(greenPin, INPUT_PULLUP); pinMode(bluePin, INPUT_PULLUP); pinMode(redPin, INPUT_PULLUP); } void loop() { // put your main code here, to run repeatedly: setColor(0, 255, 255); //Red delay(1000); setColor(255, 0, 255); //Green delay(1000); setColor(255, 255, 0); //Blue delay(1000); } void setColor(int red, int green, int blue) { analogWrite(redPin, red); analogWrite(greenPin, green); analogWrite(bluePin, blue); }
Hey! So i fixed he thing before, now what's going on is that I don't know which the highest value of the AnalogFunction is, I have to use up to a 500 in some of the values to get a true purple as setting it for example even to 350 it'll still look white.
Cut a clear 5mm diameter straw to about one inch long, put the piece of straw on the 5mm RGB LED, it should fit perfectly, now fill up the piece of straw with hot glue using a glue-gun, let it cool a little bit, and now you have a very nice color stick that will diffuse the LED light !
Yeah i found out the hard way i have a common anode led and he I believe has a common cathode led. So you have to put 5 volts on the common led (not connect it to ground) and then all the other leads need to be connected to the outputs
Sir, I am your little follower from india... I watch your video's from last two years.. And from inspiration i started my own UA-cam channel...and need your support to grow...plzz help me sir..🙏
I hope you took away lots from this video and you managed to get your RGB LED to work. Let me know below!
PS. WANT TO LEARN CODING? CHECK MY NEW UA-cam CHANNEL!
bit.ly/3tku2n0
Thank you so much for this. I recently "discovered" Arduino and would like to play around with it some more, and your clear explanation about everything in this project helps a lot. I almost instantly liked and subscribed
ua-cam.com/video/-tNlOuZkbBg/v-deo.html
Just go and watch it....you will fall in love with Arduino
Thank you. Exactly what I looked for. Subscribed also.
Thanks man the tutorial code was wrong it says to connect long pin to 5v then I couldn't find red colour. After I ground long pin I got all colours bro thanks.
Well explained in detail.many thanks to you!
✌✌✌
hello, great helpful video! can the random value generator be used to
create random brightness? thank you
Sure, why not
Thank You So Much For This Video! You deserved a subscriber!
@Cullen Javier Is it on android?
Τρόμαξα για λίγο,και μετά καταλαβα,ΕΛΛΗΝΑΣ.
Τέλειο το βίντεο με βοηθείσες πολύ.
lol
Much needed tutorial, thanks a ton dude.
Thanks for the crisp tutorial
C' est mon premier montage que je réussi à faire tout seul et qui fonctionne ...un gros Merci.
Hey, why dont you use one 330 uhm resistor on the ground wire insted of 3 on the positive side?
I was wondering the same thing. But I'm new to electronics so maybe I'm missing something.
What RGB led are you using
Hi,
What sketch would you use for controlling two different 2 rgb leds? I'm trying to write it so that the first led changes between red and blue and the second led changes between yellow and green. The problem I'm getting is that both leds are changing between red and blue.
Hi! How do I use the keyboard to control the LED? Example Press R to light red. Press G to light green. Press Y to light yellow.
Thank you!! I really needed this lol
Very good video,
Thank you.
Did you know that the minimum is actually 220 Ohms, i tested it on tinkercad as i don't have a real arduino yet
Πολύ ωραιο το βίντεο.
Thanks aderfe!
My blue and green colors are almost indistinguishable. I’m very confused, I followed all the code you did, and I even tried a different LED
how can we make the orange colour? it's made up of red and yellow, in which yellow itself is a mix color. i tried it but it didn't work
Nice video, I just subscribed.
didn't you upload this video yesterday?
Thank you very much
Interesting,,,
Let's make more subscriber for this arduino channel
is the resistor is so much important?
Thanks Nik. (How did you know I've just bought 20 of them? ;-)
I don't understand Why can't you just put one resistor on the ground pin? I'm relatively new to electronics.
very well done, thx!
You are welcome!
Instead of using 3 resistors, we can use a single resistor in the common pin...
can we use only one 330 ohm resister with GND pin..?
the problem i have is that i have to connect the ground pin to source and connect the gnd to the other electrodes of the led to get the wanted colors
My RGBs lights pins are of same size what should I do
How to make color code efficiently on void loop function?
Why is yours reversed?? Why do you connect the longer pin in ground??
what is a distel-PIN?
Lol don't make joke of anyone...
Get out of here u fool
Hey! so if i got a common anode can I still control the brightness of the coloured leds?, because as far as I know I have to phisically connect the coloured leds to ground for them to light up, can I do some ground control inside the code?
yes, if you use; pinMode(x, INPUT_PULLUP);
The rgb values are then inverted, so the colour red will now be (0, 255, 255) rather than (255, 0, 0).
heres the code:
int redPin = 9;
int greenPin = 10;
int bluePin = 11;
void setup() {
// put your setup code here, to run once:
pinMode(greenPin, INPUT_PULLUP);
pinMode(bluePin, INPUT_PULLUP);
pinMode(redPin, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
setColor(0, 255, 255); //Red
delay(1000);
setColor(255, 0, 255); //Green
delay(1000);
setColor(255, 255, 0); //Blue
delay(1000);
}
void setColor(int red, int green, int blue) {
analogWrite(redPin, red);
analogWrite(greenPin, green);
analogWrite(bluePin, blue);
}
Can the same control be accomplished with a two pin rainbow LED and if so how?
Hey! So i fixed he thing before, now what's going on is that I don't know which the highest value of the AnalogFunction is, I have to use up to a 500 in some of the values to get a true purple as setting it for example even to 350 it'll still look white.
do i need a power supply such as batteries? & how do i turn it on or off?
easy peasy
Hi, I enjoyed your video. I know am aware you video is 2 years old but if you are still online I would like to ask a question of you.
Ty sm
Code is not working
is this gonna work with 10mm RGB?
really useful...thanks for share
Why aren't all the resistors positioned in the same direction?
The direction does not matter
Cut a clear 5mm diameter straw to about one inch long, put the piece of straw on the 5mm RGB LED, it should fit perfectly, now fill up the piece of straw with hot glue using a glue-gun, let it cool a little bit, and now you have a very nice color stick that will diffuse the LED light !
Are u able to do this with lots of rgb leds
may i know what type of wire did you use? is it male to female, male to male, or female to female?
male male
can I use 100 k resistor ?
I can download this code, but not open it as usually. why can't you just type it out.
Hello, can someone explain why my red led become purple led ?
I use anode rgb led
Yeah i found out the hard way i have a common anode led and he I believe has a common cathode led. So you have to put 5 volts on the common led (not connect it to ground) and then all the other leads need to be connected to the outputs
Can i use 470 ohm resistor instead of 330 ohm ?
yes, you can use 330 ohm or higher, but not lower
330 ohms resistor is not working
Do you have to use arduino
Thnx bro
error compile the code
It's possible to connect the rgb led to a 4 pin female connector?
Sure you can!
sorry im new!! it keeps highlighting the void setup!! not sure what to do!! because it looks correct to me
Mine loaded both RGBexamble1 and RGBexamble2. had to put the files in separate folders, now it works..
ill give that a try
does rgb works with regular battery too?
yes it works very well
Is a 220 ohm resistor fine?
Random tech yes
Mine is not working
Isme ek 2 pin 3 coulor aata hai uska name, number kya hai
How to get the code?
my led only lights blue and i have no idea why
Have you tried another LED to see if the happens to that as well?
please send me a best led pattern code
code not linked correctly
I just tried the link, it works fine.
Πολύ ωραιο το βίντεο.
Ευχαριστώ πολύ!
Why is there no ground?
Actually there is
It's connected on the GND of the analog part
Hi, are you willing to do some project for me, of course I am willing to pay your knowledge, please let me know if you are interested,
my led only lights green why ??
my led lights red and blue but not green lmao
arduino uno dj lighte rgb
My Arduino set fire;be careful if trying :(
hi
Sir,
I am your little follower from india...
I watch your video's from last two years..
And from inspiration i started my own UA-cam channel...and need your support to grow...plzz help me sir..🙏
من فضلك ضع الترجمة
Damn! Z-Hut sucks! He copied this!
What do you mean? Who copied it?
educ8s.tv The Z-Hut
He has no original content.