Arduino Tutorial: LED Sequential Control- Beginner Project

Поделиться
HTML-код
  • Опубликовано: 16 июл 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.

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

  • @ihrdlick
    @ihrdlick 3 года назад +143

    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

  • @Tobbetuna
    @Tobbetuna 6 лет назад

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

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

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

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

  • @forthtemple
    @forthtemple 7 лет назад +4

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

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

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

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

  • @boulder89984
    @boulder89984 4 года назад +1

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

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

  • @elizabethh8362
    @elizabethh8362 5 лет назад +1

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

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

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

  • @garymedveczky9552
    @garymedveczky9552 5 лет назад

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

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

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

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

  • @dylansheils1049
    @dylansheils1049 8 лет назад +81

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

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

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

  • @tingala_0129
    @tingala_0129 3 года назад +3

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

  • @dienuss292
    @dienuss292 5 лет назад +1

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

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

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

  • @alisafwan1193
    @alisafwan1193 6 лет назад +3

    Explained absolutely so perfect

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

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

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

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

  • @FreshFlixProductions
    @FreshFlixProductions 5 лет назад +7

    So easy and well explained. Thank you sir!

  • @nezense
    @nezense 6 лет назад +1

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

  • @bhagatvirsindhu4869
    @bhagatvirsindhu4869 5 лет назад +1

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

  • @NickDanzinger
    @NickDanzinger 6 лет назад +7

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

  • @matthewmiles6637
    @matthewmiles6637 6 лет назад +1

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

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

  • @TheJam53ice
    @TheJam53ice 3 года назад +2

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

  • @blakenorthrup
    @blakenorthrup 3 года назад +2

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

  • @adilski
    @adilski 6 лет назад +1

    You are a great teacher. Great tutorial!

  • @salmanijaz8326
    @salmanijaz8326 4 года назад +2

    thanks man my first ever project on Arduino is this .

  • @ratnakarbh1
    @ratnakarbh1 6 лет назад +1

    works flawlessly .. thanks !

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

  • @mak.1ps
    @mak.1ps 4 года назад +5

    You can easily make a traffic light with this,just add 3 more leds,change the code a bit and there you go

  • @posenyang9549
    @posenyang9549 6 лет назад

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

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

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

  • @9brian99
    @9brian99 2 года назад

    Nice and simple, I needed a refresher.

  • @jacobmufasa
    @jacobmufasa 8 лет назад +63

    I love you it was so clean and clear.. I paid almost 50 dollar for shitty videon on Udemy and its not this clear.

    • @DroneHow
      @DroneHow  8 лет назад +9

      +jacobmufasa Glad it helped. Please subscribe.

    • @Cariciasification
      @Cariciasification 7 лет назад +8

      i paid less for arduino starter kit

    • @aftereffects00
      @aftereffects00 6 лет назад

      Me too.. I cant learn from skillshare too

    • @ddskimmer
      @ddskimmer 5 лет назад

      I use Udemy for to acquire information. Sometimes I don't know how to express what I am looking for but when I go to Udemy...it is identified
      and then I google it of youtube it. I have made the same mistakes on Udemy...but learn to ask for my money back! :-)!! Before they would refund immediately now they are playing games with one's money...demanding even a month before they refund your money...so you have to be very careful what you do with Udemy. Besides there are other places online that do similar teachings. Keep digging. Ask for your money back.

    • @MrEvilTag
      @MrEvilTag 5 лет назад

      Whatever udemy is sounds like a scam

  • @friedmystery9123
    @friedmystery9123 7 лет назад +3

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

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

  • @Things-vo5lq
    @Things-vo5lq 7 лет назад +3

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

  • @deardiaries885
    @deardiaries885 3 года назад +2

    THANK YOU SO MUCH IT HELPED ME A LOT!!

  • @dalaxdercrisper957
    @dalaxdercrisper957 7 лет назад +2

    Very helpful instructions indeed. I quite terrible at writing code programming. Mostly of these codes I can hardly understand or dont know what to type it on the coding. Anyway a very simple video tutorial so thank you

    • @DroneHow
      @DroneHow  7 лет назад

      +saifuddin jamil Glad it helped!

  • @imyong7983
    @imyong7983 4 года назад +1

    awesome tutorial man...simple n easy to understand

  • @simonjonas3550
    @simonjonas3550 6 лет назад +1

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

  • @cheekeongng4608
    @cheekeongng4608 8 лет назад +2

    Thanks! successfully try out my very first arduino project!

    • @DroneHow
      @DroneHow  8 лет назад

      +Chee Keong Ng Glad it helped. Please subscribe

  • @chris330330
    @chris330330 4 года назад +1

    most helpful so far thanks

  • @_mrcrypt
    @_mrcrypt 2 года назад +1

    Your tutorial was very useful! Thank you 🍷

  • @SDGlamour
    @SDGlamour 5 лет назад

    Thank you for an easy to follow 'monkey see monkey do' tutorial, this was my first project and very satisfying when it all worked.
    Very grateful for you sharing :)

  • @maximwuyts14
    @maximwuyts14 4 года назад +1

    Very good and clear video! Thanks

  • @jameslong4252
    @jameslong4252 5 лет назад

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

  • @newportmeister
    @newportmeister 6 лет назад +1

    Great, exactly what I needed, thanks.

  • @MonMccool123
    @MonMccool123 4 года назад +1

    Great video, love what you help me create!

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

  • @developerjunior446
    @developerjunior446 2 года назад

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

  • @user-of6vu5gq9f
    @user-of6vu5gq9f 2 месяца назад

    The project works for me, Thank you very much.

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

  • @mr.yousif1415
    @mr.yousif1415 6 лет назад

    thank you very much now i can understand how the bread board works thank you

  • @johnalex1587
    @johnalex1587 4 года назад +1

    Really helpful, big thanks!

  • @LeonardoD7
    @LeonardoD7 3 года назад +1

    Man in 2021 and this still work Thanks

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

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

  • @samkhani6971
    @samkhani6971 6 лет назад +3

    Thank you so much it was very helpful

  • @rickymunguia25
    @rickymunguia25 8 лет назад +3

    Awesome, thank you!

  • @nafeewalee
    @nafeewalee 4 года назад +1

    Perfect! First try!

  • @hardikgagarani4905
    @hardikgagarani4905 4 года назад +1

    thanks so much .i started arduino last week and this project is so good thx alot dude!!!!!!!!!
    love this vid

    • @hardikgagarani4905
      @hardikgagarani4905 4 года назад

      i am literally watching this in 2020 lol but it was always helpful

    • @puneethkumar703
      @puneethkumar703 3 года назад

      hi Hardik
      I just wanted to point to the free Arduino simulator out there. This can be a great resource if you are just starting with learning Arduino.
      #wokwi
      wokwi.com for more such projects
      wokwi.com/arduino/libraries for examples of third party libraries
      please leave a comment if you have any questions
      Kindly share it with your friends also
      😃

  • @Ryan-fq3ud
    @Ryan-fq3ud 6 лет назад

    Thanks, I had a project and I chose the same circuit you showed the video

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

    thanks! everything came out perfect!

  • @Elinternetsecurity
    @Elinternetsecurity 7 лет назад +2

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

  • @mr.memes_3656
    @mr.memes_3656 Год назад

    it works perfectly thanks

  • @crinnovator9444
    @crinnovator9444 6 лет назад +1

    Because of you l have learn how to program arduino

  • @dbach7
    @dbach7 5 лет назад +1

    Worked for me. I added another LED just to see if I could do it.

  • @HamzaKhan-bg9fh
    @HamzaKhan-bg9fh 6 лет назад +18

    For all those who can only get one light on, when you upload the code to the board it should work.

    • @amirizadi9910
      @amirizadi9910 4 года назад +1

      Thnx man, was wondering why

    • @aaronmaximus6806
      @aaronmaximus6806 3 года назад

      pro trick : watch series on Kaldrostream. I've been using it for watching loads of movies these days.

    • @ahmedkase1245
      @ahmedkase1245 3 года назад

      @Aaron Maximus definitely, I've been using kaldrostream for since november myself :)

    • @huxleyian24
      @huxleyian24 3 года назад

      @Aaron Maximus yup, been using kaldroStream for since november myself =)

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

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

  • @malshtilak9011
    @malshtilak9011 7 лет назад +2

    Thanks I did my first project.

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

  • @bangucedrick-ig7qw
    @bangucedrick-ig7qw 10 месяцев назад

    Was a great one ❤

  • @rayrous8229
    @rayrous8229 3 года назад +1

    Yay! I did it. Success.

  • @wellofbeersheba
    @wellofbeersheba 8 лет назад

    Very cool for a beginner like me. Made it as you were talking with a few pauses as I fossicked for the parts :)

    • @DroneHow
      @DroneHow  8 лет назад

      Glad it helped. Please subscribe

  • @mohitsingh1112
    @mohitsingh1112 7 лет назад +2

    thanks my frist project worked

  • @JustFun-iz9rf
    @JustFun-iz9rf 2 года назад

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

  • @mdsairsoft3104
    @mdsairsoft3104 8 лет назад +2

    i made a little different led controll based on your good work

    • @DroneHow
      @DroneHow  8 лет назад

      +Golden freddy gaming Glad it helped. Please subscribe

  • @jananathbanuka4994
    @jananathbanuka4994 6 лет назад +1

    Thanks. This helped me

  • @ajayakomna
    @ajayakomna 3 года назад +1

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

  • @olaf1061
    @olaf1061 2 года назад

    thanks this tutorial is very helpful

  • @shadinpk2846
    @shadinpk2846 3 года назад +2

    Hearty thanks sir
    I am from India, Kerala

  • @Teyros
    @Teyros 7 лет назад

    Worked! awesome thank you very much!