Arduino Tutorial: LED Sequential Control- Beginner Project

Поділитися
Вставка
  • Опубліковано 13 лип 2024
  • Arduino Tutorial: LED Sequential Control- Beginner Project
    Inexpensive Arduino Starter Kit: amzn.to/1CqGEuB
    Link to Arduino IDE: www.arduino.cc/en/Main/Software
    Link to Sketch for this project: www.dropbox.com/s/bivwdnehp7l...
    Today I am going to show you guys a very simple arduino project for beginners. We’re going to get three different LEDs to turn on and turn off in a simple sequence, like you see here.
    For this, you’re going to need an Arduino Uno or similar Arduino board, a breadboard (preferably with a positive and negative rail like this one), four breadboard jumper wires, a USB cable to for the Uno, three LEDs of different colors(here we are using Blue, Red and Green) and 3 220ohm resistors. Now we’re using 220ohm resistors, because they seem to work best with the LEDs we have- but you could use different resistors, depending on your LEDs and your circuit. I’ve put a link to an inexpensive arduino kit that contains all these components in the description below, in case you’re looking to get an arduino uno and all the basic components for this tutorial.
    So lets first setup the hardware. The first step is to establish a common ground. To do this, use a jumper wire to connect the Ground pin on the arduino to the negative rail on the breadboard. This allows all the LEDs to use the ground pin on the arduino. Now we’ll insert the resistors into the breadboard. Space the resistors out with one leg connected to the the negative rail. Now its time to insert the LEDs. Before inserting the LEDs, its important to note that the longer of the two leads on most through-hole LEDs is the positive leads. Connecting it the wrong way, will cause this circuit to not work. Connect the negative lead of the LED to the horizontal rail on which the resistor is connected and connect the positive lead to an adjacent rail. Repeat this process for all three LEDs. Now its time to complete the circuit. We are going to use output ports 13, 12 and 11 for the input signal. Connect the positive lead of the LED on the right to pin 13, the LED in the center to 12 and the LED on the left to pin 11. The circuit is now complete. Power on the Arduino Uno by connecting it to your computer using the USB cable. The LEDs on the board turn on and the board powers up.
    Before we work on our sketch, make sure to download the Arduino IDE for your specific operating system. I’ll leave a link to where you can download this software, in the description below. Once you’ve downloaded and installed the arduino IDE, go ahead and download the Sketch to run this program, using the link I’ve put in the description.
    www.dropbox.com/s/bivwdnehp7l...
    Open the downloaded file. The program first creates 3 variables. LED1, LED2 and LED3. This allows us to change the output pins, without having to modify the entire program. The code in the setup part of the program tells the arduino that pins 13, 12 and 11 will be outputs. The loop portion of the program is where the actual instructions live. The first three digitalwrite functions turn on one LED at a time with a 200ms delay between each of them turning on. The next three digitalwrite functions turn off the leds with a 300ms delay between each LED. Now you can change the delay between each LED to change the rhythm of the LEDs turning on and off. I’ve found that using 200ms and 300ms gives it a nice smooth rhythm. Now you’re ready to upload the program to the board. Now click on the Tools tab of the Arduino Window, make sure the Arduino Uno is selected as your board and make sure you select the COM port your board is connected to. Most of the times there will be one COM port available and that will be the one you need to select. Click on the upload button on the top left hand corner of the screen to upload the program to the Uno. A green progress bar on the lower right hand corner will indicate upload progress. And unless any errors appear in the black message bar at the bottom of the screen, your board should now be running the program and the LEDs should be turning on and off like you can see here.
    Hope this tutorial was useful. Please hit LIKE for more Arduino tutorials and subscribe to stay tuned.

КОМЕНТАРІ • 620

  • @ihrdlick
    @ihrdlick 3 роки тому +142

    I am almost 40y old, I ordered my first Arduino and I need videos like this. Thanks

    • @sifar1
      @sifar1 3 роки тому +3

      Seriously!!

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

      I need program for this

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

      30 here too 🙏🏾🙏🏾

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

      we have a youtube channel that deals with Arduino,ATmega328P,Java,Serial programming ,robotics. So if you like these stuff do Subscribe. Sorry for annoying

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

      I am 48 😁

  • @ProfMoose
    @ProfMoose 5 років тому +73

    A true beginner's guide for beginners! Fed up with so many that assume just because you are new to Arduino you must have a degree in programming. This was like a breath of fresh air :-) I've subscribed!

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

      we have a youtube channel that deals with Arduino,ATmega328P,Java,Serial programming ,robotics. So if you like these stuff do Subscribe. Sorry for annoying

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

      excuse me i cant realy open the file

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

      @@thirdieacegala5532 The first two work for me.
      I don't know about the dropbox file as I can't remember my login :-)

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

    Planning to teach electronics and animatronics using Arduino at my high school. I added more leds and modified the IDE sketch. It worked. Thanks for your efforts.

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

    This is a great basic tutorial. I'm just getting started with Arduino and this helped me understand how to work with pins via code.

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

      I found this site where you can buy starter learning kit. (Just so you know, I'll make some money if you use this link.) www.banggood.com/Geekcreit-UNO-R3-Basic-Starter-Learning-Kit-No-Battery-Version-For-Arduino-p-1133595.html?p=QG080163176892016090

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

      same

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

    Great tutorial, easy to understand, and fun to make (and I even added in a fourth light). Thanks for making this video.

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

    This easy-to-understand video will continue to get appreciations in many years to come !!

  • @worldofelectronicsandprogr1128
    @worldofelectronicsandprogr1128 2 роки тому +7

    Congratulations for the two Arduino tutorials! 🙏🙏🙏🙏 You explained very good the concepts in a slow rhythm, just perfect for an Arduino beginner! 😊😊😊😊 We are looking forward for more tutorials to learn more about this beautiful world of Arduino! 🌈🌈🌈🌈

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

    Watching this 2.5 years later and just HOPING the dropbox would be up. It was ! Awesome man. Got it working.

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

    Awesome. My Arduino worked straight out of the box using this tutorial.

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

    You made this so easy, thank you so much! So much joy to see it light up.

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

    Thank you for explaining every step so well in terms of why it must be done and not just handing out a recipe. Good pacing too, videos feel succinct. Cheers.

  • @saralopez3347
    @saralopez3347 9 років тому +6

    Thank you for uploading this! i just got my first arduino kit yesterday and your video helped me get my first project done. You've got a new subscriber here, I hope that there'll be new videos like this coming soon.

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

    Thanks for this... Bought my 8 year old son an Arduino starter for Christmas and thanks to this video we were able to get our first project up and running before Christmas dinner!!

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

    The way you say things makes the whole idea click with my brain. Many thanks !

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

    This was more helpful than the 12 other tutorials I just watched combined. Thank you!

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

      +Bridgette H Glad it helped. Please subscribe

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

      I found that too! Many other 'beginner' tutorials are unnecessarily complex and include the need to use a bunch of other stuff, this was simple yet effective, and I could do it within 10 minutes of opening my arduino kit. Love it!

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

    I found this video very useful. I am just starting off with Arduino and this is a great first project. Your video was extremely simple to comprehend and I got this running in under 10 minutes. Thank you for taking the time to make such an incredible video.

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

    Thank you for the beautiful introduction to Arduino. This is my first time and everything you said worked the first time.

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

    What a great tutorial...I am a newbie on arduino I have watch at least 60 videos on how to connect multiple modules on arduino...This video is just the best...

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

    No time wasted, concise and easy to understand. Subbed good sir!

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

    So easy and well explained. Thank you sir!

  • @Bostish2
    @Bostish2 9 років тому +8

    I think you did a great job! Got my first Uno today and this project was perfect for next level of blink :)

    • @DroneHow
      @DroneHow  8 років тому +1

      +Bostish2 Thanks! Glad you found it useful. Please subscribe to stay tuned

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

    You make it sooo simple. Thanks man.
    Keep it up.

  • @RMike-xq1cm
    @RMike-xq1cm Рік тому

    This was the best video I could find on how to do it.Thank you :) Managed to do it right after and tweaked a bit with the code.

  • @BenSprecher
    @BenSprecher 6 років тому +8

    Wonderful first project with my 6 year old daughter - thank you! So clear and simple. Code was easy to read and explain.

  • @tingala_0129
    @tingala_0129 3 роки тому +3

    Thank you so much dude, this is helping me going through my Mechatronics class!

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

    Great beginner tutorial! I went from knowing nothing about Arduino to knowing how to code flashing LED's! Please make more.

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

    Thanks tHIS Helped me a lot !!!i bought my first kit last week and this helped a lot to do more than just the basic steps!!

  • @alisafwan1193
    @alisafwan1193 6 років тому +3

    Explained absolutely so perfect

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

    Good video. This helped me out alot. I recently bought an Arduino kit because i like programming. This helped alot with the basics

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

    This is an awesome introduction project. Thank you so much!

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

    Much appreciated. Just now getting into Arduino, and this was a great start. Thanks, and sub'd!

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

    thanks dude, just needed the thing with the breadboard for school so this helped a lot

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

    Amazing video, thank you! I upped the count to 5 and wrote in some more code from the already-existing Sketch, awesome little project!!

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

    You are a great teacher. Great tutorial!

  • @vanaik
    @vanaik 4 роки тому +3

    just got an Ardoino. this was my first project. thank you so much for the great explanation!

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

      Please my recent tutorial on using LEDs with arduino. Maybe you will find it helpful

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

    nice job. I am learning it with my 11 year old and your pace is perfect. Keep up the good work!

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

    Thanks a million my friend, it was my first work in arduino to the school.

  • @9brian99
    @9brian99 2 роки тому

    Nice and simple, I needed a refresher.

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

    Your's worked!! Thank you I learned that yes it blinks but I have to program it to do what you are showing in the video wow that's lots of work to do on my end!!!

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

    Thanks for helping me build my very first Arduino Circuit that actually worked 💖🙂

  • @dylansheils1049
    @dylansheils1049 8 років тому +81

    Thanks for explaining the circuit I was confused with people just making it.

  • @user-of6vu5gq9f
    @user-of6vu5gq9f 2 місяці тому

    The project works for me, Thank you very much.

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

    Such a wonderful tutorial thank you!! :) It's really helping me figure out and learn about these!

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

      +Broderick McGarvey Glad it helped!

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

    Great learning video for me. You explained everything good for me. Thank you for the video.

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

    awesome tutorial man...simple n easy to understand

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

    Great video, love what you help me create!

  • @GarlandLym
    @GarlandLym 2 роки тому +2

    Great video. This is the first arduino tutorial I came across that clearly explained most everything I needed to know. And in such a short time. Thank you

  • @wrmaldonado
    @wrmaldonado 6 років тому +9

    Thank you sir. I imitated this project, only I added 5 more LEDs, plus a fan to keep me cool while gaming.

  • @alexwilhelm9182
    @alexwilhelm9182 3 роки тому +6

    Thank you for this helpful video. Finally found a video worth watching. My 8 year old son loves to work on Raspberry pi and
    Arduino. He is using Moonshot Jr's Embedded Learner Board for learning the tech complexities on this Arduino driven Board.

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

    Your tutorial was very useful! Thank you 🍷

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

    Very good and clear video! Thanks

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

    works flawlessly .. thanks !

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

    THANK YOU SO MUCH IT HELPED ME A LOT!!

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

    Great, exactly what I needed, thanks.

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

    Really helpful, big thanks!

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

    I love this and I really need more videos for you.

  • @UzumakiLea
    @UzumakiLea 8 років тому +18

    Thank you very much, finally I know what to do! :)

    • @DroneHow
      @DroneHow  8 років тому +2

      Glad it helped. Please subscribe for more how to videos!

    • @UzumakiLea
      @UzumakiLea 8 років тому

      sure :)

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

    this is really cool, i am brand new to Arduino but i simply modified the code to add more leds into the game. i now have 6 leds and they still work like intended its reallt cool

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

    most helpful so far thanks

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

    I GOT IT I CAN BELIEVE IT I GOT IT!!!!Thank You my first Project after it failed because i noticed the less coming from Arduino where also on negative i moved them in front of l.e.d.’s and it worked

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

    thanks! everything came out perfect!

  • @bangucedrick-ig7qw
    @bangucedrick-ig7qw 10 місяців тому

    Was a great one ❤

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

    thanks man my first ever project on Arduino is this .

  • @mr.memes_3656
    @mr.memes_3656 Рік тому

    it works perfectly thanks

  • @samkhani6971
    @samkhani6971 6 років тому +3

    Thank you so much it was very helpful

  • @rickymunguia25
    @rickymunguia25 8 років тому +3

    Awesome, thank you!

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

    Yay! Workperfectly... 🥳🥳🥳

  • @JustFun-iz9rf
    @JustFun-iz9rf 2 роки тому

    wow this is gonna be my first project. thank you for sharing i am gonna subscribe

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

    Epic Video, thanks for tutorial. It really helped me understand the basics of the Arduino!!

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

      hi there
      you can upskill your Arduino programming experience with a free simulator from wokwi.
      please head to
      wokwi.com/arduino/libraries
      see many third-party examples online
      visit wokwi.com for more. you can learn about servo motor coding, LEDs, OLEDs, LCD displays, pots, RGB LED strips and more

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

    thanks this tutorial is very helpful

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

    Perfect! First try!

  • @alexander.g7992
    @alexander.g7992 7 років тому +1

    very well and clear explanation and thanks for providing link to download the code, I would appreciate you making more Arduino videos

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

    Worked! awesome thank you very much!

  • @Things-vo5lq
    @Things-vo5lq 7 років тому +3

    loved it. you should do a video on how to make your own circuts.

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

    Yay! I did it. Success.

  • @AnaPerez-bu6uu
    @AnaPerez-bu6uu 5 місяців тому

    Nice tutorial, thank you 🥰

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

    I got my first arduino board today, your tutorial is simple and easy to follow, thank you :)

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

    amazing !!! It really works

  • @maharyfekede
    @maharyfekede Місяць тому

    Thank you so much for helping me 😇👌

  • @blockpost12
    @blockpost12 11 днів тому

    works nicely

  • @AbigaelGodinez
    @AbigaelGodinez 4 місяці тому

    Thank you so much for your tuturial sir ❤ we are already done with our activities this helps us very much💗

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

    Woohoo! Watching my very own LEDs blink on and off right now! What an exciting thing it is for something so seemingly simple :D
    Next step, change the timing all on my own :O
    (Edit, it worked! Hooray!)

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

    Good Tutorial, great for me, thank you.

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

    thank you i did all with codes, nice i love.

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

    Thanks. This helped me

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

    Great help. Thank you so much

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

    Thanks a lot. This project is working well.....

  • @RobloxDevOriginal
    @RobloxDevOriginal 6 місяців тому +1

    Very Nice! Thx

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

    thank you so much. nice video keep it up

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

    Good job Bro.I should give assignment about this tutorial at University.You save my life

  • @cheekeongng4608
    @cheekeongng4608 8 років тому +2

    Thanks! successfully try out my very first arduino project!

    • @DroneHow
      @DroneHow  8 років тому

      +Chee Keong Ng Glad it helped. Please subscribe

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

    nice video this is the only video that i found that is the best and ilyds i also like the aurdino ide cause i sarched a different one and did not work but thanks to your video

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

    thanks for your help :)

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

    Thank u much for sharing 😊 its working 😊

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

    It works great thank you, even though you won't use it except for showing off but it is great.

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

    brother! i love you.. thank you so much!!!1

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

    Great video

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

    Thanks a lot for making it easyyyyy
    ...

  • @techdetech
    @techdetech 8 років тому

    nice video, well explained

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

    great advice bro