Arduino: Lesson 1 - Blinking an LED

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025
  • How to blink an LED using an Arduino. For more videos, visit www.techteachervideo.com.

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

  • @TheKimo303
    @TheKimo303 9 лет назад +400

    Wow. I am the kid from the video, and this is like a blast from the past. Obviously I am much older now, but I have never seen these positive comments. It's rare to see positive feedback from a video by a little kid. I've gotten busier since 2011, especially as an incoming junior high school along with additional pursuits, but I was actually thinking about starting up some more tutorials during the summer. Thanks a lot, guys!

    • @123cookies4life345
      @123cookies4life345 9 лет назад +7

      +Kimo303
      Dude... do it.
      I need this in my life. Good luck in school!

    • @momopclucid
      @momopclucid 9 лет назад +4

      +Kimo303 i love your voice can we arduino and chill?

    • @voxelmaniam
      @voxelmaniam 8 лет назад +4

      Yes, youtube videos tend to have a life of their own. Looks like you got off to a good start. Congratulations!

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

      All the very best. You have a great skill of narration.

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

      You did do a good tutorial. It's simple, you're clear, you knew what you were doing but weren't arrogant about it and were on point.

  • @wbzial
    @wbzial 11 лет назад +51

    I'm 30 and having young guys like you teach me stuff is amazing. Keep on the good work. Let me know if you need help driving a stick!!!!

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

      lmao

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

      great fo her,she did a great job,have you watched this yet?it can help you too

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

      ruclips.net/video/xTKkxQnMrEc/видео.html

    • @rafikchakoui5253
      @rafikchakoui5253 4 года назад +4

      u 37 now

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

      @@rafikchakoui5253 damn you good at math, should do tut

  • @Jmlittle844
    @Jmlittle844 12 лет назад

    Impressive. I'm 33 and I just learned that the longer lead on an LED is the positive one, due to this video. Thank you very much.

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

    watching this after 10 years of uploading. very good vid, helped me out a lot

  • @93limabean
    @93limabean 12 лет назад

    Please let your student know that he is helping college students learn how to use arduinos. And he's doing a great job.

  • @jbryan2318
    @jbryan2318 6 лет назад +6

    Best intro arduino tutorial ever. Wish h'ed have made more basic tutorials. Excellent!

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

    Wow, such a clear explanation, and no off-topic bullshit. Excellent.

  • @風煙俱淨君
    @風煙俱淨君 5 лет назад +1

    Thank you. I fail on many arduino projects......this is my first successful project......thank you!
    This cheer me up a lot.

  • @igrewold
    @igrewold 11 лет назад +2

    Good job man.
    just a reminder you can quickly find the code in the Arduino IDE under this menu:
    File -> Examples -> 01.Basics -> Blink

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

      you just saved me from a last minute STEM project. I owe everything to you man

  • @masong6685
    @masong6685 5 лет назад +5

    This is how I imagine Mike Leech talking. No emotion 😂 Keep up the good work tho and thanks I wanted to know this stuff

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

    can't believe I'm learning Arduino from a kid, but well done to you!

  • @jasonnoronha4426
    @jasonnoronha4426 9 лет назад +3

    Thanks :D I just realised it was a video from 2011... almost 5 years :D

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

    Thank you so much I first tought i never was gonna be able to do something on the arduino

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

    Thank you so much 💗

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

    First project, and success!
    I even modified the code to blink every 0.4 seconds

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

    Really good content mate! Cheers from Portugal!

  • @RajaUzairAbdullah
    @RajaUzairAbdullah 7 лет назад +1

    Thanks First I was swearing for having MAC but your video helped 100% :)
    Hats OFF !

  • @MindOverMatter841
    @MindOverMatter841 7 лет назад +1

    This is so well put together and easy to understand. Thank you

  • @doctordhd
    @doctordhd 9 лет назад +50

    Thank you for helping me make my first Arduino program! I also appreciated your explanation about pin 13 having a built in resistor.
    Great job! ô¿ô

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

      I don't know if you'll read this 5 years later, but only the very early models had resistors in pin 13

  • @arktoscs
    @arktoscs 8 лет назад +11

    Dr. Park is my hero

  • @ss-rx5do
    @ss-rx5do 10 лет назад +16

    Thank you. Simply one of the best tutorials seen.

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

    thank you. it's working. it's my first Arduino project :)

  • @Newnawn
    @Newnawn 5 лет назад +4

    Just a heads up for anyone attempting do do this now. Newer arduinos DO NOT have an internal resistor in pin 13, so you're going to want to add one of your own so as to not damage your LED.

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

    works great. Changing delay can also be a good variation for newbies.

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

    thankyou for this tutorial i had my leds in backwards thought i was going crazy.

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

    Very nice tutorial. Easy to follow, and understand.

  • @bledibld5766
    @bledibld5766 11 лет назад +1

    Really Useful. I just order the Board after watching the Video :)

  • @CARLOSINTERSIOASOCIA
    @CARLOSINTERSIOASOCIA 8 лет назад +1

    Title should be blinking a led :), thanks for the tutorial

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

    best one .please upload more videos

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

    It would be very nice if you add the code in the description section. Thank you.
    By the way, I how can I stop/reset the setup?
    #define LED 13
    void setup() {
    pinMode(LED,OUTPUT);
    }
    void loop() {
    digitalWrite(LED, HIGH);
    delay(1000);
    digitalWrite(LED, LOW);
    delay(1000);
    }

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

      thank u soo muchh

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

      Aa do u know why the arduino dosent connect to the software it just say come and the code is right but it dosent work on the arduino even the arduino connected to the pc but the software says native port something

  • @afromancer
    @afromancer 10 лет назад +3

    Great video, cant wait to try it out! But only one thing.... You might want to put more expression in your voice, you kind of sound like a robot. Other than that, the video is perfect!

    • @R2053
      @R2053 9 лет назад +1

      I think that makes it easier to understand (like in the video)

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

      artificial intelligence is real

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

    Thank you so much. I actually learn from your video.

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

    Thanks a lot for this video, it really helped me.Keep up the good work.

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

    Nice. I would have went somewhat deeper into explaining the code part since blinking a LED is a "hello world" sort of thing that is the very first time some does, when he/she gets an Arduino. Therefore previous knowledge in coding should not be expected. Still, nice tutorial and the info about the pin 13 having a resistor is pretty useful.

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

    Can you guide me in blinking LED with different ON and OFF duration without using delay function.

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

    Hardly any current models have a resistor on pin 13, so you need a resistor

  • @TestSubjectNameHere
    @TestSubjectNameHere 13 лет назад

    Im am curious, how old are you? You are doing a great job, very professional work. Please keep up the good work.

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

    nice video, that was my fist arduino project?? as simple as that hehe. good stuff, just think for a moment that if you master arduino you can build a welding cnc machine, as great as that!!!

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

    i put it into the slot and it started blinking along with the orange light

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

    i dont know where to copy paste the code since the description is pretty much empty

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

    FYI: The built in resistor in pin 13 is ONLY for the internal LED, you still need one for your own. electronics.stackexchange.com/questions/66992/pin-13-do-i-need-a-resistor

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

    very cool! can i ask what you're using to code with? im a beginner.

  • @nefatoce
    @nefatoce 7 лет назад +18

    void setup(){
    pinMode(13,OUTPUT);
    }
    void loop(){
    digitalWrite(13,HIGH);
    delay(500);//Modificar para cambiar la velocidad de parpadeo
    digitalWrite(13,LOW);
    delay(500);//Modificar para cambiar la velocidad de parpadeo
    }

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

    void setup() {
    #define LED 13
    pinMode(LED,OUTPUT);
    }
    void loop()
    {
    digitalWrite(LED, HIGH)
    delay(1000)
    digitalWrite(LED, LOW)
    delay(1000)
    }

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

    using leds without a current limiting resistor may cause the leds destruction or the pins destruction

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

      Indeed. Pin 13 does not feature a current limiting resistor and without it, you risk damaging your microcontroller, your LED or both.
      Pin 13 is connected directly to (SCK) PB5 pin 19 of the MPU. The on board LED, however, is buffered and has a series current limiting resistor.

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

    Dear Sir you are doing a great work, many thanks.
    I will be highly obliged if you guide me in blinking a LED with different ON and OFF duration, without using delay function.

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

    bro, you are awesome. Thank you!

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

    Thanks a lot!You helped me in my project :D

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

    Explained very clearly thank for the information!

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

    Nice tutorial !! Thank you ! you arw super clear and understanding : )

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

    Awesome work!

  • @brianacklen770
    @brianacklen770 9 лет назад

    What would you do if you have a RGB LED? Does it matter?

  • @lvscan
    @lvscan 11 лет назад

    Where is the code you mentioned was in the box below? I can't seem to find it? Thanks.

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

    i tried it out ant it worked perfectly
    thanks

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

    this is a nice tutorial!

  • @Colaris99
    @Colaris99 11 лет назад

    Nice clear voice and instruction. Thanks. :)

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

    Thank you for this tutorial. It's a very big help for understanding arduino for the first time.

  • @bhoomika.s3755
    @bhoomika.s3755 5 лет назад

    Can we connect to any digitql pins

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

    I have problem,only when i press the reset button,led blinks. What is problem?

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

    Hit like if you are in love with her voice👍

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

    from where you purchased that arduino

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

    hi can i cut your video for my video and then i put the source (link this video) in description video?
    i will cut from 2:11 until 2:17 :D

  • @diygarygaming
    @diygarygaming 11 лет назад

    Awesome video!

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

    Thank you. It works

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

    i dont have that cable but have arduino board what else to use

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

    why when i puted the led in the pin 13 and i wrote the same program, the arduino led (L) started blinking but the led that i puted didn't

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

      @@gorkemgenc344 nevermind i fixed it
      Thnx boi

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

      Reverse the led pins

  • @poljakov13
    @poljakov13 12 лет назад

    How you can find out , witch pinhole have internal resistor?
    I have arduino mega

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

    Hi. How can I rotate my DC motor at discrete _ angle every _ seconds? I need to control these two variables for my project.
    Thank you!

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

    thanks dude, helped me start :D

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

    Where is the code in the description? Other than that, great work!

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

    it's awesome, thank you "kid", nice tutorial

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

    thank you so much for this!

  • @EC-AhieshSujoIS
    @EC-AhieshSujoIS 4 года назад

    How the led is blinking without battery.

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

    I think what I'll be doing, is that I will write the code on my phone, and then copy and paste it into Arduino IDE.
    I have problems typing out those semicolons and brackets ({ }) on a computer

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

    Now my output ground pin is not working. What should I do?

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

    thank you I did my first arduino project I tride very hard

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

    ask : if we change the output pin except pin 13, will the LED blinking too?

    • @voxelmaniam
      @voxelmaniam 8 лет назад +1

      No, not unless you add an LED and resistor to the other pin also. The resistor should be about 560 ohms for the standard 3mm LED. The short leg of the LED should connect to ground and the long leg of the LED should connect to one end of the resistor. The other end of the resistor should connect to the other output pin that you have used.

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

      thank you sir

  • @carlosm4824
    @carlosm4824 11 лет назад

    @Unker47 did you put a resistor on the LED?

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

    very simple arduino project

  • @jgrecoarroyo
    @jgrecoarroyo 13 лет назад

    keep up the good work!

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

    I don't see the code in the box below...

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

    Thank you. Very helpful !

  •  4 года назад

    I was told you need a resistance or you'll burn the led. was this person wrong?`
    and where are the other videos? ^:D

  • @Eddie-gb3bn
    @Eddie-gb3bn 7 лет назад

    How can I make this in a small battery powered device?

  • @DominoSixO
    @DominoSixO 11 лет назад

    1. Shoudn't you put a rezistor ? 2. Make it blinking faster.

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

    could somebody tell me if it's possible to connect dozens of LEDs to blink at the same rate with just one equipment?

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

      use a breadboard

  • @n2dabloo
    @n2dabloo 11 лет назад

    I just inserted an LED into the correct pins, plugged the Arduino into my Macbook Air, and the LED started blinking before I even opened up the I.D.E. What am I doing wrong? Shouldn't I have to write code for this?

    • @jhonmora5785
      @jhonmora5785 11 лет назад +1

      The blinking code is usually preinstalled in the brand new arduinos

    • @sigsputnik1
      @sigsputnik1 10 лет назад

      John Mora I was soooo looking to say hello to the world, but they stole my thunderous arrival! Thanks for the info.

  • @Unker47
    @Unker47 11 лет назад

    I have a problem:
    Only the orange LED in Arduino blinks, not the red one that I add
    Can you help me? Thanks!

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

    the code is incorrect, when you click verify, it says that the the led is not declared

  • @xavos5783
    @xavos5783 9 лет назад +18

    I sware im not using a code or program i just put the led in and it started to blink

    • @doge5988
      @doge5988 9 лет назад +2

      me too

    • @doge5988
      @doge5988 9 лет назад +6

      that's because when you buy the arduino it has preloaded the blonk sketch

    • @JTech_._
      @JTech_._ 8 лет назад

      me too i have to click a button then it works

    • @pushpikaeesara
      @pushpikaeesara 8 лет назад +1

      the IC comes with Arduino comes with blink program :D

    • @JTech_._
      @JTech_._ 8 лет назад +1

      lol i realised i was a noob still am but yeah ive improved

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

    The code? Can you provide it?

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

    Thank you so much my brother I love you :)

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

    what are the materials required

  • @monazzaashraf7707
    @monazzaashraf7707 7 лет назад +1

    when I start to upload it use to say problem uploading.but when I click the verify button it does not say anything plzz five me solution

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

    what to do when the diode doesnt light up ever?

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

      Reverse the pins or try another led.

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

    exit status 1
    'digitlWrite' was not declared in this scop

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

    Arduino: 1.8.3 (Linux), Board: "Arduino/Genuino Uno"
    /tmp/arduino_modified_sketch_247323/sketch_dec22a.ino: In function 'void loop()':
    sketch_dec22a:14: error: expected '}' at end of input
    }
    ^
    exit status 1
    expected '}' at end of input
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    what is this

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

    you are great buddy!

  • @Radiofreak1041
    @Radiofreak1041 12 лет назад

    Is this also possible with the Arduino DUE?

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

      This is possible with any Arduino, but you will use a different pin.
      Like pin 7, but with a resistor
      void setup () {
      pinMode (7, OUTPUT) ;
      }
      loop setup () {
      digitalWrite (7, HIGH) ;
      delay (type any number here) ;
      digitalWrite (7, LOW) ;
      You don't need the second delay, but if you want, you can add it.

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

    bro but i just connected led and it started blinking