Тёмный

Arduino Tutorial: How to use an RGB LED with Arduino. 

educ8s.tv
Подписаться 124 тыс.
Просмотров 185 тыс.
50% 1

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 109   
@Educ8s
@Educ8s 2 года назад
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 RU-vid CHANNEL! bit.ly/3tku2n0
@yp4577
@yp4577 5 лет назад
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
@SUSMITRUDRA
@SUSMITRUDRA 4 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--tNlOuZkbBg.html Just go and watch it....you will fall in love with Arduino
@gravecop
@gravecop 5 лет назад
Thank you. Exactly what I looked for. Subscribed also.
@lovesrilanka6806
@lovesrilanka6806 2 года назад
Well explained in detail.many thanks to you! ✌✌✌
@krishnav6226
@krishnav6226 3 года назад
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.
@j.lietka9406
@j.lietka9406 5 лет назад
hello, great helpful video! can the random value generator be used to create random brightness? thank you
@Educ8s
@Educ8s 5 лет назад
Sure, why not
@blazemaster9626
@blazemaster9626 3 года назад
Thank You So Much For This Video! You deserved a subscriber!
@blazemaster9626
@blazemaster9626 3 года назад
@Cullen Javier Is it on android?
@Nikpar005
@Nikpar005 4 года назад
Τρόμαξα για λίγο,και μετά καταλαβα,ΕΛΛΗΝΑΣ. Τέλειο το βίντεο με βοηθείσες πολύ.
@georgekarapanagiotis1628
@georgekarapanagiotis1628 3 года назад
lol
@francoisperreault8114
@francoisperreault8114 6 лет назад
C' est mon premier montage que je réussi à faire tout seul et qui fonctionne ...un gros Merci.
@SymphonyKol_androidLover
@SymphonyKol_androidLover 2 года назад
Much needed tutorial, thanks a ton dude.
@nigelv1494
@nigelv1494 7 лет назад
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.
@angus2984
@angus2984 5 лет назад
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.
@storken756
@storken756 3 года назад
Hey, why dont you use one 330 uhm resistor on the ground wire insted of 3 on the positive side?
@cookiesaregreat
@cookiesaregreat 2 года назад
I was wondering the same thing. But I'm new to electronics so maybe I'm missing something.
@ananthaiyer9008
@ananthaiyer9008 2 года назад
Thanks for the crisp tutorial
@thomasalexander1563
@thomasalexander1563 7 лет назад
Interesting,,, Let's make more subscriber for this arduino channel
@alexabadi7458
@alexabadi7458 3 года назад
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 !
@amantin
@amantin 5 лет назад
Πολύ ωραιο το βίντεο. Thanks aderfe!
@philowen2755
@philowen2755 7 лет назад
Thanks Nik. (How did you know I've just bought 20 of them? ;-)
@markhofland1898
@markhofland1898 4 года назад
Nice video, I just subscribed.
@VivekGupta-bt7tn
@VivekGupta-bt7tn 6 месяцев назад
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
@dangdaniel781
@dangdaniel781 8 месяцев назад
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
@vallemalle6131
@vallemalle6131 4 года назад
Very good video, Thank you.
@braylenhammond12
@braylenhammond12 Год назад
Did you know that the minimum is actually 220 Ohms, i tested it on tinkercad as i don't have a real arduino yet
@julianguerra6974
@julianguerra6974 5 лет назад
Thank you!! I really needed this lol
@mitchellvolcano
@mitchellvolcano 26 дней назад
What RGB led are you using
@R1DX607
@R1DX607 Год назад
is the resistor is so much important?
@isharalkshan7
@isharalkshan7 2 года назад
can we use only one 330 ohm resister with GND pin..?
@anuragnayak324
@anuragnayak324 7 месяцев назад
Instead of using 3 resistors, we can use a single resistor in the common pin...
@cookiesaregreat
@cookiesaregreat 2 года назад
I don't understand Why can't you just put one resistor on the ground pin? I'm relatively new to electronics.
@raze7x
@raze7x 7 лет назад
very well done, thx!
@Educ8s
@Educ8s 6 лет назад
You are welcome!
@rallekralle11
@rallekralle11 7 лет назад
didn't you upload this video yesterday?
@peksn
@peksn 6 лет назад
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?
@PeterPan-pr9od
@PeterPan-pr9od 5 лет назад
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); }
@petarmedo1192
@petarmedo1192 6 лет назад
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
@wahyupans8868
@wahyupans8868 4 года назад
How to make color code efficiently on void loop function?
@peksn
@peksn 6 лет назад
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.
@salc9593
@salc9593 6 лет назад
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.
@nursanjida4321
@nursanjida4321 5 лет назад
do i need a power supply such as batteries? & how do i turn it on or off?
@JeremyGarrettArtist
@JeremyGarrettArtist 5 лет назад
Can the same control be accomplished with a two pin rainbow LED and if so how?
@aydenneal6751
@aydenneal6751 2 года назад
Thank you very much
@saayanchowdhury
@saayanchowdhury 3 года назад
My RGBs lights pins are of same size what should I do
@ArKa_47
@ArKa_47 5 лет назад
what is a distel-PIN?
@ime108.
@ime108. 4 года назад
Lol don't make joke of anyone... Get out of here u fool
@gowsamig5017
@gowsamig5017 7 лет назад
really useful...thanks for share
@DevJeb
@DevJeb 9 месяцев назад
Why is yours reversed?? Why do you connect the longer pin in ground??
@abdulazizkodirov5323
@abdulazizkodirov5323 5 лет назад
is this gonna work with 10mm RGB?
@ryguyguillory2950
@ryguyguillory2950 6 лет назад
Are u able to do this with lots of rgb leds
@nursanjida4321
@nursanjida4321 5 лет назад
may i know what type of wire did you use? is it male to female, male to male, or female to female?
@luiisxz6886
@luiisxz6886 4 года назад
male male
@hasansami5181
@hasansami5181 3 года назад
easy peasy
@sunildawar2632
@sunildawar2632 3 года назад
can I use 100 k resistor ?
@roopavernekar3109
@roopavernekar3109 3 года назад
Ty sm
@nachovidal4047
@nachovidal4047 6 лет назад
It's possible to connect the rgb led to a 4 pin female connector?
@Educ8s
@Educ8s 6 лет назад
Sure you can!
@DeepakSingh-gl7vr
@DeepakSingh-gl7vr 4 года назад
Can i use 470 ohm resistor instead of 330 ohm ?
@luiisxz6886
@luiisxz6886 4 года назад
yes, you can use 330 ohm or higher, but not lower
@conquerorzzz
@conquerorzzz 5 лет назад
Thnx bro
@klopscyyy2771
@klopscyyy2771 4 года назад
Why aren't all the resistors positioned in the same direction?
@Educ8s
@Educ8s 4 года назад
The direction does not matter
@shrikarchoudhari537
@shrikarchoudhari537 5 лет назад
Code is not working
@annadenaro9919
@annadenaro9919 5 лет назад
I can download this code, but not open it as usually. why can't you just type it out.
@Magi446
@Magi446 2 года назад
Hello, can someone explain why my red led become purple led ? I use anode rgb led
@jeremyo1457
@jeremyo1457 2 года назад
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
@mitchh6471
@mitchh6471 7 лет назад
sorry im new!! it keeps highlighting the void setup!! not sure what to do!! because it looks correct to me
@fehelii
@fehelii 7 лет назад
Mine loaded both RGBexamble1 and RGBexamble2. had to put the files in separate folders, now it works..
@mitchh6471
@mitchh6471 7 лет назад
ill give that a try
@JorgeRamirez-kv4jx
@JorgeRamirez-kv4jx 6 лет назад
Do you have to use arduino
@aniketgupta1340
@aniketgupta1340 7 лет назад
does rgb works with regular battery too?
@brahamjotsingh3002
@brahamjotsingh3002 7 лет назад
yes it works very well
@videshx818
@videshx818 3 года назад
330 ohms resistor is not working
@randomtech3749
@randomtech3749 5 лет назад
Is a 220 ohm resistor fine?
@clemg6254
@clemg6254 5 лет назад
Random tech yes
@Mr30friends
@Mr30friends 7 лет назад
Πολύ ωραιο το βίντεο.
@Educ8s
@Educ8s 7 лет назад
Ευχαριστώ πολύ!
@SaptarshiSikder
@SaptarshiSikder 4 года назад
error compile the code
@ZaidWindow
@ZaidWindow 3 года назад
Mine is not working
@ravikantkumatray3403
@ravikantkumatray3403 6 лет назад
Isme ek 2 pin 3 coulor aata hai uska name, number kya hai
@ghumamandal9591
@ghumamandal9591 4 года назад
arduino uno dj lighte rgb
@TheBenZyy
@TheBenZyy 5 лет назад
How to get the code?
@shuvendupattari8079
@shuvendupattari8079 7 лет назад
please send me a best led pattern code
@miekamariehodson1731
@miekamariehodson1731 6 лет назад
my led only lights blue and i have no idea why
@Educ8s
@Educ8s 6 лет назад
Have you tried another LED to see if the happens to that as well?
@maanalabed445
@maanalabed445 4 года назад
من فضلك ضع الترجمة
@Anon.G
@Anon.G 7 лет назад
Why is there no ground?
@nightwhisper8520
@nightwhisper8520 7 лет назад
Actually there is It's connected on the GND of the analog part
@alexbeum7403
@alexbeum7403 4 года назад
code not linked correctly
@Educ8s
@Educ8s 4 года назад
I just tried the link, it works fine.
@emirkaplan7384
@emirkaplan7384 6 лет назад
my led only lights green why ??
@luiisxz6886
@luiisxz6886 4 года назад
my led lights red and blue but not green lmao
@deanpavicic3271
@deanpavicic3271 2 года назад
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,
@wedostudent2882
@wedostudent2882 5 лет назад
hi
@nick24646
@nick24646 6 лет назад
My Arduino set fire;be careful if trying :(
@Gauravvanis
@Gauravvanis 6 лет назад
Sir, I am your little follower from india... I watch your video's from last two years.. And from inspiration i started my own RU-vid channel...and need your support to grow...plzz help me sir..🙏
@manyhammers5944
@manyhammers5944 6 лет назад
Damn! Z-Hut sucks! He copied this!
@Educ8s
@Educ8s 6 лет назад
What do you mean? Who copied it?
@manyhammers5944
@manyhammers5944 6 лет назад
educ8s.tv The Z-Hut He has no original content.
Далее
You can learn Arduino in 15 minutes.
16:34
Просмотров 10 млн
RGB LEDs with Arduino - Standard & NeoPixel
43:35
Просмотров 128 тыс.
Doors Harpy Hare (Doors 2 Animation)
00:16
Просмотров 869 тыс.
БЕЛКА РОЖАЕТ? #cat
00:21
Просмотров 706 тыс.
Control RGB LEDs with Arduino || Arduino Essentials #1
4:23
Arduino RGB LED Tutorial
4:07
Просмотров 30 тыс.
How to Use a Button with an Arduino (Lesson #5)
20:57
Arduino Interrupts Tutorial
9:30
Просмотров 295 тыс.
Why build an entire computer on breadboards?
28:43
Просмотров 3,1 млн
Doors Harpy Hare (Doors 2 Animation)
00:16
Просмотров 869 тыс.