How to Blink an LED with Arduino (Lesson #2)

Поделиться
HTML-код
  • Опубликовано: 29 янв 2025

Комментарии • 82

  • @williamt.6990
    @williamt.6990 Год назад +12

    This series has really helped me to learn how arduinos worked straightforward and simple thank you

  • @tedbastwock3810
    @tedbastwock3810 9 месяцев назад +4

    GREAT breadboard demo. Love this series

  • @PannagaKashyap-n1w
    @PannagaKashyap-n1w Год назад +6

    I purchased a kit through a workshop at my school and this one helped me a lot to do it in the comfort of my house. 🤩Thank you!

  • @BLX-Random
    @BLX-Random Год назад +6

    Thank you for this awesome tutorial, as a beginner this tutorial series is gold. Please continue making such great tutorials.

    • @Science.Buddies
      @Science.Buddies  Год назад +2

      Thanks - we just published one and have another one coming shortly - stay tuned!

  • @bhataayat611
    @bhataayat611 8 месяцев назад +3

    Thankyou for such a nice explaination. It didn't even seem to me that I am virtually seeing the components but it seemed like everything was just infront of me. All thanks to your efforts of explaining all this in such way. 👍

  • @gogogog9771
    @gogogog9771 День назад

    i dont have much experience in coding, i just know some basics python stuff and web development. this video helps me alot to learn arduino. thanks alot! great teacher 😊

  • @Nine_883
    @Nine_883 Год назад +5

    This is the best beginner series I have seen so far. Thanks for breaking this down. It's still very confusing to me (the code), but I am just going to follow from the very beginning. That Tinkercad program is outstanding for this! I struggle to see the holes and numbers on the boards breadboard in real life! I am always putting my wire in the wrong hole! The Tinkercad program is awesome. And no wires! Hahaha. No mess!

  • @kabandajamir9844
    @kabandajamir9844 9 месяцев назад +14

    The world's best teacher thanks

  • @aniAxiu
    @aniAxiu Год назад +2

    Im a student learning arduino & tinkercad ! ! Thank you so much for your explanations, they surely help!❤

    • @Science.Buddies
      @Science.Buddies  Год назад +2

      You're welcome! This is an entire playlist so make sure you check out the rest of the videos too.

  • @henokhagos1283
    @henokhagos1283 2 месяца назад

    It is my first time that working on Arduino is too much easy thank you very much.

  • @tensor131
    @tensor131 2 месяца назад

    never seen the inside of a BB ... well worth seeing!!! Thank you.

  • @Virtaxity
    @Virtaxity 11 месяцев назад

    Awesome video, keep going bro, this helped me learn how to use Arduino

  • @chaklecharcoal2748
    @chaklecharcoal2748 Год назад +3

    Great tutorial man I like it ❤💯

  • @picknikbasket
    @picknikbasket 2 года назад +5

    These Arduino tuts are great!

  • @foodiellifedhanush
    @foodiellifedhanush 2 месяца назад +2

    My led is blinking thank you sir 😊

  • @Tch.SouravExperiment
    @Tch.SouravExperiment 5 месяцев назад +1

    “Amazing video, sir! Your content has inspired me to develop my own videos. I appreciate your creativity and the effort you put into making such great content!”

  • @joandemello
    @joandemello 9 месяцев назад

    Chanced on your channel and must say , excellent explanation. Thanks

  • @junaidkhateeb
    @junaidkhateeb Год назад

    Wonderfully explained...simple and clear. Thank you

  • @NehemiasNolasco
    @NehemiasNolasco Год назад +3

    Thank you so much for teaching me, this was my very first project

  • @roeepearl7897
    @roeepearl7897 Год назад

    great tutorial, Thank you❤

  • @naveenakbar6291
    @naveenakbar6291 3 месяца назад

    excellent explanation

  • @samardhgazzala122
    @samardhgazzala122 4 месяца назад +2

    can I replace the led with an active buzzer. If yes, how much ohms does my resistor need

    • @Science.Buddies
      @Science.Buddies  4 месяца назад +1

      We have a tutorial about buzzers here: ruclips.net/video/gj-H_agfd6U/видео.htmlsi=4OlFbBHIkJ8dNUa1. Most buzzers can be driven directly by 5V and do not require a resistor.

  • @Skibidihatsealofficial
    @Skibidihatsealofficial 22 дня назад

    Do I need a resistor if I use weak batteries

  • @Electraboy01
    @Electraboy01 10 месяцев назад

    Works well thx ❤

  • @tensor131
    @tensor131 2 месяца назад

    very helpful for my grandson😃😁

  • @danielevan4564
    @danielevan4564 Год назад

    “ you might’ve built your circuit like this” Ey yo mine don’t look like that 😂 but it worked! The code first try had them blinking separate fixed it

  • @axiskj8555
    @axiskj8555 11 месяцев назад

    how much time it takes ?bcuz in using a ATMega328PB is it okay ?

  • @alvnavra2
    @alvnavra2 3 месяца назад

    I have a code to make blink as many LEDs as you want. In my case, with three, I have simulated a traffic light
    // Define the pins where the pins are connected
    const int ledPins[] = {11,12,13}; // To add another pin, I don't have to declare another variable. Only add the number to the array
    const int numLeds = sizeof(ledPins) / sizeof(ledPins[0]); // The total numberr of pins. It will be re-calculated automatically if I add another pin
    const int states[] = {0x1,0x0}; // 0x1 = HIGH, 0x0 = LOW
    const int numStates = sizeof(states)/sizeof(states[1]); // The number of states. I could replace the calculation by 2 (because allways will be two states
    void setup() {
    //I declare all the pins like output
    for (int i = 0; i

  • @BRW.2009
    @BRW.2009 7 месяцев назад +1

    Thanksss man

  • @mohamedwalaa7578
    @mohamedwalaa7578 3 месяца назад

    does it matter which side do i put the led, like which positive and which negative?

    • @Science.Buddies
      @Science.Buddies  3 месяца назад

      Yes - LEDs are polar and current will only flow through them in one direction. If your LED is not lighting up, try flipping it around.

  • @Katie-qs8wp
    @Katie-qs8wp 4 месяца назад

    Hello, I am just wondering, how to make the leg of the LED in the tinkercad more wider?

    • @Science.Buddies
      @Science.Buddies  4 месяца назад +1

      Hi - you can't adjust the LEDs themselves in Tinkercad, but you can attach jumper wires to the legs of the LEDs.

    • @Katie-qs8wp
      @Katie-qs8wp 3 месяца назад

      ​@@Science.Buddies Thank you so much for answering

  • @oveschleisner-meyer8139
    @oveschleisner-meyer8139 9 месяцев назад

    Thank you for this video. Since I'm new to the Arduino world i have a question.... How do you get the program you have made on the Arduino UNO board into a microcontroller used and placed on your project on another PCB...?

    • @Science.Buddies
      @Science.Buddies  9 месяцев назад +1

      Hi - this is a bit more than we can explain in a RUclips comment, we recommend asking on the official Arduino forums. Very long story short, we don't have our own tutorial on it, but the Arduino board contains a extra circuitry that handles USB communication with your computer and makes uploading code very easy. If you just want to buy the bare microcontroller chip and put it on another PCB, you then need to handle that part (flashing the code to the chip) yourself. There are other things the Arduino board includes, like voltage regulation so you can power it with a 9V battery or wall adapter, that aren't included in the bare microcontroller chip, which you would need to account for when designing a separate PCB. Again we don't have our own tutorial but you should be able to find instructions online.

    • @oveschleisner-meyer8139
      @oveschleisner-meyer8139 9 месяцев назад

      @@Science.Buddies
      Thank you so much for your answer. I understand what you mean and I will find a Arduino forum...

  • @imrane206
    @imrane206 2 дня назад

    10:39 I actually ran out of male wires so I used common sense and wired it at the same row, I'll take that as a score

  • @timkuldayev8857
    @timkuldayev8857 Год назад

    Hello! What is the resistor that you used here?

    • @Science.Buddies
      @Science.Buddies  Год назад

      That is a 220 ohm resistor. We have an upcoming video series about choosing the proper resistors for LEDs, stay tuned!

  • @inerkathe
    @inerkathe 3 месяца назад

    So I bought a RexQualis board and I am using a mac book and it's still not working for me. I followed everything, could it be board not matching the brand? Is the fact that I have to and extra wire because the macbook only has thunderbolt ports?

    • @Science.Buddies
      @Science.Buddies  3 месяца назад

      Hi - we recommend asking on the official Arduino forums for help with your problem.

  • @TheW00tguy
    @TheW00tguy Год назад

    For two LED's could we just connect the two LED's with one resistor so that the resistor is in series with the LED's in parallel? Or is that different?

    • @Science.Buddies
      @Science.Buddies  Год назад

      The answer is a little too complicated to explain in a RUclips comment. We just added an entire playlist about the math behind LED circuit design, we recommend you check that out: ruclips.net/p/PLlBVuTSjOrclaUU1nI3afV1jp8vj4iQUf&si=FPnWpc1Hkfmyjcfk

  • @YoniFisaha
    @YoniFisaha 7 дней назад

    the best

  • @pratibhamehta17
    @pratibhamehta17 4 месяца назад

    I still don't get it
    Where did you get the power from if you didn't use any jumper wire to connect 5V pin to breadboard?

    • @Science.Buddies
      @Science.Buddies  4 месяца назад

      The power comes directly from the Arduino's I/O pins. They can provide enough power directly for small things like LEDs, but not larger things like motors.

    • @pratibhamehta17
      @pratibhamehta17 4 месяца назад

      Thanks for the information

  • @Skibidihatsealofficial
    @Skibidihatsealofficial Месяц назад

    How do I attach a battery so I don’t have to plug it into my laptop all the time

  • @kresakkornel9671
    @kresakkornel9671 Год назад

    How did you make the red led that bright? When i tried this it was very dim

    • @vitorperissotoindustrial
      @vitorperissotoindustrial Год назад

      Your resistor may be a higher value. Also LEDs can vary on their brightness specs

    • @Science.Buddies
      @Science.Buddies  Год назад

      The LED's apparent brightness can change depending on the camera settings, but like @vito8625 said, it depends on the resistor value and the amount of current through the LED. We have a new video series coming out about choosing the resistor value, so stay tuned!

    • @kresakkornel9671
      @kresakkornel9671 Год назад

      Thanks!

    • @kresakkornel9671
      @kresakkornel9671 Год назад

      I used a 220 ohm resistor so i'll try with a lower resistance resistor

  • @shortstuffnay1733
    @shortstuffnay1733 Год назад

    I know this video old but I’m using Arduino right now and I got all my led working but 2 of them won’t blink on and off and I been stuck on what could be wrong that only one light will blink btw I’m doing a traffic light project

    • @Science.Buddies
      @Science.Buddies  Год назад

      Hi - we can't necessarily help with your exact circuit, but our troubleshooting video might help you identify problems: ruclips.net/video/9GLaU-BCEQM/видео.htmlsi=sb0o-Ncuy2_XZL76

    • @aniAxiu
      @aniAxiu Год назад

      Same! We just did a manual traffic light!😮

  • @castelmichel8670
    @castelmichel8670 Год назад

    Thanks for not assuming that we already know the basics. what if I want to use a device that requires more current than the Arduino can provide? Thanks

    • @Science.Buddies
      @Science.Buddies  Год назад

      Check out our full playlist, particularly #16 about controlling motors and #19 about power: ruclips.net/p/PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm&si=opGDZTZlbl7VYF6t

  • @immortalwolve6431
    @immortalwolve6431 Год назад

    Hey I didn't connect it like you expected in the question but I still got it to work. What do I do?

    • @Science.Buddies
      @Science.Buddies  Год назад

      Hi - that's OK, there is frequently more than one "correct" way to wire the circuit.

    • @immortalwolve6431
      @immortalwolve6431 Год назад

      @@Science.Buddies okay. Thank you for a great video

  • @yulianvutov3357
    @yulianvutov3357 Год назад

    Hi there, I purchased a kit from AliExpress, and I built the circuit correctly. The LED does blink every 1 second but sometimes it ''jumps'' (goes off earlier or stays on longer). I tought the problem may be in the end of my program as it is a loop, but I wrote the exact same program you did.. Any idea why does that happen?

    • @Science.Buddies
      @Science.Buddies  Год назад

      Hi - we haven't heard of that problem before. The only thing I can think of is a loose or intermittent connection with part of the breadboard. The amount of time it takes the code to execute a loop should not change from one loop to the next. There's also a chance of a faulty I/O pin, you could try switching to a different pin and see if it's more consistent.

  • @kyriakoskovsenoglou3502
    @kyriakoskovsenoglou3502 Год назад

    Hello!! Great job!! I am rookey and I have a question.
    I have Arduino Nano. Where can I put the Red cable?
    Because nano is smaller than Uno and does not have the Arduino 12 port(pinMode12) .

    • @Science.Buddies
      @Science.Buddies  Год назад +1

      Hi - all our tutorials are for the UNO, so you may have better luck getting answers to your questions on the official Arduino forums.

    • @aksvinss
      @aksvinss Год назад +1

      u can change the port 12 to some other port (must be digital) and change the port number in the code, so that all places with 12 are the other port you are using

    • @kyriakoskovsenoglou3502
      @kyriakoskovsenoglou3502 Год назад

      ​@@aksvinssthank you! It works!

  • @FabioSpelta
    @FabioSpelta Месяц назад

    We all want to know what happened to the blown up hole on the left at 2:12 🤣

  • @SemBushu
    @SemBushu 8 месяцев назад

    can you do Long and Short LED Blink

    • @Charlie.P1
      @Charlie.P1 8 месяцев назад

      Yes

    • @Charlie.P1
      @Charlie.P1 8 месяцев назад

      You change the second delay

  • @CentralBaby-tm7vq
    @CentralBaby-tm7vq 9 месяцев назад

    do for me pixel5

  • @MohammedElobaid-kj7vb
    @MohammedElobaid-kj7vb 2 месяца назад +1

    unlimited

  • @apotterheadwhoisaslayer
    @apotterheadwhoisaslayer День назад

    i was having a problem with making this kind of circuit. i just realized i had put the jumper wires on the wrong area before i knew this. 😭😭😭😭LIKE THIS COMMENT IF THAT HAPPENED TO YOU

  • @myname_lt9273
    @myname_lt9273 Месяц назад +1

    Gaidys cia krw

  • @roeepearl7897
    @roeepearl7897 Год назад

    great tutorial, Thank you❤