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

Поділитися
Вставка
  • Опубліковано 4 жов 2024

КОМЕНТАРІ • 109

  • @Educ8s
    @Educ8s  2 роки тому +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 UA-cam CHANNEL!
    bit.ly/3tku2n0

  • @yp4577
    @yp4577 5 років тому +19

    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 роки тому +1

      ua-cam.com/video/-tNlOuZkbBg/v-deo.html
      Just go and watch it....you will fall in love with Arduino

  • @gravecop
    @gravecop 5 років тому +6

    Thank you. Exactly what I looked for. Subscribed also.

  • @krishnav6226
    @krishnav6226 3 роки тому +1

    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.

  • @lovesrilanka6806
    @lovesrilanka6806 2 роки тому +1

    Well explained in detail.many thanks to you!
    ✌✌✌

  • @j.lietka9406
    @j.lietka9406 5 років тому +5

    hello, great helpful video! can the random value generator be used to
    create random brightness? thank you

    • @Educ8s
      @Educ8s  5 років тому +4

      Sure, why not

  • @blazemaster9626
    @blazemaster9626 3 роки тому +1

    Thank You So Much For This Video! You deserved a subscriber!

  • @Nikpar005
    @Nikpar005 4 роки тому +2

    Τρόμαξα για λίγο,και μετά καταλαβα,ΕΛΛΗΝΑΣ.
    Τέλειο το βίντεο με βοηθείσες πολύ.

  • @SymphonyKol_androidLover
    @SymphonyKol_androidLover 2 роки тому

    Much needed tutorial, thanks a ton dude.

  • @ananthaiyer9008
    @ananthaiyer9008 2 роки тому

    Thanks for the crisp tutorial

  • @francoisperreault8114
    @francoisperreault8114 6 років тому

    C' est mon premier montage que je réussi à faire tout seul et qui fonctionne ...un gros Merci.

  • @storken756
    @storken756 3 роки тому +2

    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.

  • @mitchellvolcano
    @mitchellvolcano Місяць тому +1

    What RGB led are you using

  • @nigelv1494
    @nigelv1494 7 років тому +3

    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 6 років тому +1

    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.

  • @julianguerra6974
    @julianguerra6974 5 років тому

    Thank you!! I really needed this lol

  • @vallemalle6131
    @vallemalle6131 4 роки тому +1

    Very good video,
    Thank you.

  • @braylenhammond12
    @braylenhammond12 Рік тому +1

    Did you know that the minimum is actually 220 Ohms, i tested it on tinkercad as i don't have a real arduino yet

  • @amantin
    @amantin 5 років тому +1

    Πολύ ωραιο το βίντεο.
    Thanks aderfe!

  • @dangdaniel781
    @dangdaniel781 9 місяців тому

    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

  • @VivekGupta-bt7tn
    @VivekGupta-bt7tn 7 місяців тому

    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

  • @markhofland1898
    @markhofland1898 4 роки тому +1

    Nice video, I just subscribed.

  • @rallekralle11
    @rallekralle11 7 років тому +4

    didn't you upload this video yesterday?

  • @aydenneal6751
    @aydenneal6751 2 роки тому

    Thank you very much

  • @thomasalexander1563
    @thomasalexander1563 7 років тому +7

    Interesting,,,
    Let's make more subscriber for this arduino channel

  • @R1DX607
    @R1DX607 Рік тому

    is the resistor is so much important?

  • @philowen2755
    @philowen2755 7 років тому +1

    Thanks Nik. (How did you know I've just bought 20 of them? ;-)

  • @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 років тому +3

    very well done, thx!

    • @Educ8s
      @Educ8s  6 років тому

      You are welcome!

  • @anuragnayak324
    @anuragnayak324 8 місяців тому

    Instead of using 3 resistors, we can use a single resistor in the common pin...

  • @isharalkshan7
    @isharalkshan7 2 роки тому

    can we use only one 330 ohm resister with GND pin..?

  • @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

  • @saayanchowdhury
    @saayanchowdhury 3 роки тому

    My RGBs lights pins are of same size what should I do

  • @wahyupans8868
    @wahyupans8868 4 роки тому

    How to make color code efficiently on void loop function?

  • @DevJeb
    @DevJeb 9 місяців тому

    Why is yours reversed?? Why do you connect the longer pin in ground??

  • @ArKa_47
    @ArKa_47 5 років тому +2

    what is a distel-PIN?

    • @ime108.
      @ime108. 4 роки тому

      Lol don't make joke of anyone...
      Get out of here u fool

  • @peksn
    @peksn 6 років тому +2

    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 років тому +2

      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);
      }

  • @JeremyGarrettArtist
    @JeremyGarrettArtist 5 років тому

    Can the same control be accomplished with a two pin rainbow LED and if so how?

  • @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.

  • @nursanjida4321
    @nursanjida4321 5 років тому

    do i need a power supply such as batteries? & how do i turn it on or off?

  • @hasansami5181
    @hasansami5181 3 роки тому

    easy peasy

  • @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.

  • @roopavernekar3109
    @roopavernekar3109 3 роки тому

    Ty sm

  • @shrikarchoudhari537
    @shrikarchoudhari537 6 років тому +1

    Code is not working

  • @abdulazizkodirov5323
    @abdulazizkodirov5323 5 років тому

    is this gonna work with 10mm RGB?

  • @gowsamig5017
    @gowsamig5017 7 років тому

    really useful...thanks for share

  • @klopscyyy2771
    @klopscyyy2771 4 роки тому

    Why aren't all the resistors positioned in the same direction?

    • @Educ8s
      @Educ8s  4 роки тому

      The direction does not matter

  • @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 !

  • @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?

  • @sunildawar2632
    @sunildawar2632 3 роки тому

    can I use 100 k resistor ?

  • @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

  • @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

  • @videshx818
    @videshx818 3 роки тому

    330 ohms resistor is not working

  • @JorgeRamirez-kv4jx
    @JorgeRamirez-kv4jx 6 років тому

    Do you have to use arduino

  • @conquerorzzz
    @conquerorzzz 5 років тому

    Thnx bro

  • @SaptarshiSikder
    @SaptarshiSikder 4 роки тому

    error compile the code

  • @nachovidal4047
    @nachovidal4047 6 років тому

    It's possible to connect the rgb led to a 4 pin female connector?

    • @Educ8s
      @Educ8s  6 років тому

      Sure you can!

  • @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

  • @aniketgupta1340
    @aniketgupta1340 7 років тому

    does rgb works with regular battery too?

  • @randomtech3749
    @randomtech3749 5 років тому

    Is a 220 ohm resistor fine?

  • @ZaidWindow
    @ZaidWindow 3 роки тому

    Mine is not working

  • @ravikantkumatray3403
    @ravikantkumatray3403 6 років тому

    Isme ek 2 pin 3 coulor aata hai uska name, number kya hai

  • @TheBenZyy
    @TheBenZyy 5 років тому

    How to get the 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?

  • @shuvendupattari8079
    @shuvendupattari8079 7 років тому

    please send me a best led pattern code

  • @alexbeum7403
    @alexbeum7403 4 роки тому

    code not linked correctly

    • @Educ8s
      @Educ8s  4 роки тому

      I just tried the link, it works fine.

  • @Mr30friends
    @Mr30friends 7 років тому

    Πολύ ωραιο το βίντεο.

    • @Educ8s
      @Educ8s  7 років тому +1

      Ευχαριστώ πολύ!

  • @Anon.G
    @Anon.G 7 років тому

    Why is there no ground?

    • @nightwhisper8520
      @nightwhisper8520 7 років тому +2

      Actually there is
      It's connected on the GND of the analog part

  • @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,

  • @emirkaplan7384
    @emirkaplan7384 6 років тому

    my led only lights green why ??

    • @luiisxz6886
      @luiisxz6886 4 роки тому

      my led lights red and blue but not green lmao

  • @ghumamandal9591
    @ghumamandal9591 4 роки тому

    arduino uno dj lighte rgb

  • @nick24646
    @nick24646 6 років тому

    My Arduino set fire;be careful if trying :(

  • @wedostudent2882
    @wedostudent2882 5 років тому

    hi

  • @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 UA-cam channel...and need your support to grow...plzz help me sir..🙏

  • @maanalabed445
    @maanalabed445 4 роки тому

    من فضلك ضع الترجمة

  • @manyhammers5944
    @manyhammers5944 6 років тому

    Damn! Z-Hut sucks! He copied this!

    • @Educ8s
      @Educ8s  6 років тому +1

      What do you mean? Who copied it?

    • @manyhammers5944
      @manyhammers5944 6 років тому

      educ8s.tv The Z-Hut
      He has no original content.