Arduino tutorial 2- LED Blink program with code explained | How to blink an LED using Arduino |

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 เม.ย. 2020
  • Part - 2
    * Input /Output Devices
    * Analog /Digital Devices
    * Explanation of digitalWrite()
    * How to blink a LED
    Code & Circuit :
    drive.google.com/file/d/1v_2p...
    Learn Arduino programming even without components (Online Arduino Simulator) :
    Tutorial video - • How to learn Arduino u...
    Part-3 (Push button) : • Push Button and LED wi...
    Product Links:
    Arduino Uno : amzn.to/3C1vKxF
    LED bulbs : amzn.to/3Pz0vOE
    -*-*-*-*-*-*-*-*-*-*
    Follow us on Instagram :
    / tech_at_home
    Like us on Facebook :
    / tech-at-home-220885266...
    #ArduinoTutorials#LEDblink#techathome
    Thanks for watching!
    *Like Share and Subscribe
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 246

  • @elricbell4662
    @elricbell4662 ปีที่แล้ว +12

    Thanks very much for this. As a complete newcomer to Arduino I have been able to write and edit my first simple sketch and actually understand what all the commands mean. Well done for such a well-planned tutorial.

  • @user-hh7vc1vv7c
    @user-hh7vc1vv7c 6 หลายเดือนก่อน +5

    Very good video. I showed this video to my class and instantly they became newton.

    • @techathome
      @techathome  6 หลายเดือนก่อน

      Thank you ❤️ 😂

  • @hansikawijerathne5507
    @hansikawijerathne5507 9 หลายเดือนก่อน

    Thank you very much💗 this is very important👍

    • @techathome
      @techathome  9 หลายเดือนก่อน

      Welcome

  • @misamiamya
    @misamiamya หลายเดือนก่อน +1

    thank you for the code explanation! very helpful!

    • @techathome
      @techathome  หลายเดือนก่อน

      Welcome ❤️

  • @NezukoKamado-ru2uc
    @NezukoKamado-ru2uc 2 ปีที่แล้ว +4

    Tysm! this helped me a lot when I was required to do this project

  • @theGday
    @theGday ปีที่แล้ว +2

    great video bro I am from software background but i always have a question about these things that how it work now i understood

  • @ahmedal-kharusi9053
    @ahmedal-kharusi9053 ปีที่แล้ว +1

    Hello nice video , why you didnt do a resistor for the led so it will not burn with 5v ?

    • @techathome
      @techathome  ปีที่แล้ว +2

      As I have read , pin 13 has inbuilt resistor.
      But it is always better to use current limiting resistor.
      May be it will burn, if it is ON for long time without resistor.

  • @kripathankachan1782
    @kripathankachan1782 3 ปีที่แล้ว +22

    My led is blinking ☺️☺️👍

  • @tusharthakker7777
    @tusharthakker7777 2 ปีที่แล้ว +3

    Very nicely and clearly explained

  • @vsbrosis957
    @vsbrosis957 2 ปีที่แล้ว +1

    very informative

  • @shenoyhariprasad
    @shenoyhariprasad ปีที่แล้ว

    Hello Sir, could you please provide me with the purchasing link for Arduino Uno from Amazon that you used in the tutorial? The link mentioned in the tutorial description is not opening.

    • @techathome
      @techathome  ปีที่แล้ว

      Arduino Uno: amzn.to/40qhiti

  • @bhubaneswarchandrasekharpu9349
    @bhubaneswarchandrasekharpu9349 2 ปีที่แล้ว

    THANKS A LOT FOR UR NICE DESCRIBTION

  • @DEVILEYES.FUCKER
    @DEVILEYES.FUCKER ปีที่แล้ว

    Fabulous explanation

  • @muniranorqoziyeva1301
    @muniranorqoziyeva1301 8 หลายเดือนก่อน

    😊soo cool 🎉

    • @techathome
      @techathome  8 หลายเดือนก่อน

      Thank you

  • @ankithshetty2104
    @ankithshetty2104 ปีที่แล้ว

    HI SIR I would like to ask can we use this as a indicator .

  • @werideclub
    @werideclub ปีที่แล้ว +1

    (very new to Arduino)Starting from my requirement
    I need to turn on a water motor(5v) for about 2 mins after every 12 hours, basically trying to automate water pump for home garden pots when I am travelling.
    I feel above code will perfectly work just I need to tweak delay time, is there anything else I should consider ? any other way to do it?
    also can I use Arduino Nano instead of UNO? or Uno is better?(as I said new to this)

    • @werideclub
      @werideclub ปีที่แล้ว

      BTW this doesn't work any more
      Product Links:
      Arduino Uno : amzn.to/3IGPadf

  • @readytoboot
    @readytoboot ปีที่แล้ว

    Keep going. 💪🏻💪🏻💪🏻💪🏻

  • @srirammahapatra448
    @srirammahapatra448 8 หลายเดือนก่อน

    Hy
    If i use pin no -6 or -5 that will be run ?

    • @techathome
      @techathome  8 หลายเดือนก่อน +1

      Yes you can use,
      But declare the correct pin in the code as well

    • @srirammahapatra448
      @srirammahapatra448 8 หลายเดือนก่อน +1

      thanks you so much for your response
      @@techathome

  • @aryanraj-br5np
    @aryanraj-br5np 2 ปีที่แล้ว

    Sir we know that an LED will fuse if we use 5v dc. Here in the code we are not setting up the voltage to 3.5v approx. which is normal voltage for led. So how the Arduino automatically giving correct voltage for led. Plz tell.

    • @Slimey3DPrinting
      @Slimey3DPrinting ปีที่แล้ว

      it will always gives 5v dc, so use a current limiting resistor

  • @usmanbeacon1769
    @usmanbeacon1769 2 ปีที่แล้ว

    How can i give input from pc to Arduino for led on or off by command line?? Or any other method??

    • @techathome
      @techathome  ปีที่แล้ว

      Refer this : th-cam.com/video/uT8-HPMS1cU/w-d-xo.html
      Instead of bluetooth module , you can send value from serial monitor

  • @MuhandisTv
    @MuhandisTv 4 ปีที่แล้ว

    Good job 👍👏👌👌

  • @sumalatha24
    @sumalatha24 10 หลายเดือนก่อน

    Sir I have installed arduino in Ubuntu 20.04 my port is like /dev/ttyS4
    My output is showing like programmer is not responding.
    One more doubt as u said use digital pin for led connection if I connect 7 and running example blink program it's blinking. But when Iam using pin 4 led is not blinking

    • @techathome
      @techathome  10 หลายเดือนก่อน

      Regarding 1st question, I have not used Ubuntu OS anytime, so no idea how it shows for Port.
      If you are connecting LED to different pin, you also have to edit the pin number in the code.

  • @dakshataramteke1838
    @dakshataramteke1838 6 หลายเดือนก่อน

    Which jumper wire is using male to male, male to female , female to female please tell me

    • @techathome
      @techathome  6 หลายเดือนก่อน

      Male to male

  • @anematrix521
    @anematrix521 ปีที่แล้ว

    im so happy i made my first led lit
    i only have 1 question when do i need resistors?

    • @techathome
      @techathome  ปีที่แล้ว +1

      Nice!!
      According to what I read, pin 13 has inbuilt resistor.
      If using any other pins, It's better to use a resistor always.

    • @anematrix521
      @anematrix521 ปีที่แล้ว

      @@techathome thank you so much

  • @ItachiUchiha-qe5py
    @ItachiUchiha-qe5py 2 หลายเดือนก่อน

    Is there any specific side of jumper wire(positive or negative)?

  • @mileshk2293
    @mileshk2293 2 ปีที่แล้ว +1

    Nice helpful

  • @poojasureka1760
    @poojasureka1760 ปีที่แล้ว

    Why have you connected led 1 to 7 can it be connected to any other number in the digital section

    • @techathome
      @techathome  ปีที่แล้ว

      Yes you can connect to any of the digital pins,
      But declare correctly in the code.

  • @EdTechPraveen
    @EdTechPraveen 5 หลายเดือนก่อน

    Bro my transmission light blinking automatically please help me

  • @DTalesJourney
    @DTalesJourney ปีที่แล้ว

    Sir mujhe har 30 seconds ke bad blinking led chahiye 5 seconds le liye...
    Plzzz help me with the code

  • @kangajankuganathan7457
    @kangajankuganathan7457 2 ปีที่แล้ว +1

    Thank you :-)

  • @RAMKUMAR-eb1kq
    @RAMKUMAR-eb1kq 8 วันที่ผ่านมา

    what is the wire name connected from aurdino to the system

    • @techathome
      @techathome  7 วันที่ผ่านมา

      Usb A to B cable

  • @AnjumFAffu
    @AnjumFAffu ปีที่แล้ว

    Hey..How to fix the error occured while uploading the sketch

    • @techathome
      @techathome  ปีที่แล้ว

      Check if the proper board is selected along with COM port in Tools

  • @ajithkprabhakar1
    @ajithkprabhakar1 10 หลายเดือนก่อน +1

    Hi,
    As a newcomer, your video is very useful to me and interesting. I would like to know how to set up 4 LED's

    • @techathome
      @techathome  10 หลายเดือนก่อน

      Thank you
      Similarly declare leds to different digital pins
      Set the pinmode for all pins.
      Use digitalwrite for different pins seperately

    • @srirammahapatra448
      @srirammahapatra448 8 หลายเดือนก่อน

      ​@@techathome tell the pin number 's which pins are to be use

    • @techathome
      @techathome  8 หลายเดือนก่อน

      You can use any digital pins from 0 to 13

  • @Dishank25S
    @Dishank25S ปีที่แล้ว

    Great video 🔥

  • @guliyevshahriyar
    @guliyevshahriyar ปีที่แล้ว

    Thank you for helping.

  • @tanusrisantra7111
    @tanusrisantra7111 2 ปีที่แล้ว +1

    Tnx u so much....I am a beginner...I can comfortably understand everything of aurdino...but it's not clear that can we make connections in every pin or only pin 7??

    • @techathome
      @techathome  2 ปีที่แล้ว +2

      You can connect to any digital pin

    • @majidsadique1485
      @majidsadique1485 ปีที่แล้ว

      You can use any digital pin as well as analog pins. Analog pins are more powerful pins than digital pins.

  • @govindkatyura7485
    @govindkatyura7485 ปีที่แล้ว

    What's the use of resistor? I don't know why and where to use them

    • @techathome
      @techathome  ปีที่แล้ว

      That is used as current limiting resistor
      Usually LED need very less current, if you don't use resistor, LED can burn after using for more time .
      But I have heard pin 13 has inbuilt resistor.
      U can use with LED, if you are connecting to any other pin except 13.

  • @Arun_1008
    @Arun_1008 2 ปีที่แล้ว +3

    Hello 😊, Please provide All Equipment link for buy it and also Code

    • @techathome
      @techathome  ปีที่แล้ว

      Everything is in description

  • @deekshaprajapati8892
    @deekshaprajapati8892 ปีที่แล้ว

    Yes my led also blinking❤

  • @gundewarsriguru4136
    @gundewarsriguru4136 ปีที่แล้ว

    can i kow the process to blink two LEDS with same code and connections

    • @techathome
      @techathome  ปีที่แล้ว

      Just connect one more LED to same digital pin

  • @Arun_1008
    @Arun_1008 2 ปีที่แล้ว

    Can You provide me Report of this program...🙏

  • @nileshnakade7470
    @nileshnakade7470 ปีที่แล้ว

    Sir, would you plz make video on lcd, ph and waterlevel sensor

    • @techathome
      @techathome  ปีที่แล้ว

      LCD part 1 : th-cam.com/video/fyL1h62QHJs/w-d-xo.html
      LCD part 2 : th-cam.com/video/LyuybcoNEsw/w-d-xo.html
      Other sensor, will make soon

  • @mukullanje5007
    @mukullanje5007 ปีที่แล้ว

    Sir you said : longer leg= anode(+) and positive connected to digital pin and ;shorter leg = cathode (-) which is connected to ground but in this video you connected vice versa

    • @techathome
      @techathome  ปีที่แล้ว

      No, I have connected Longer one(+ve) to digital pin only, and shorter one to GND.

  • @kevalhadiyal1458
    @kevalhadiyal1458 ปีที่แล้ว

    If I want to blink a LED for perticular voltage, so how I can do that?

    • @techathome
      @techathome  ปีที่แล้ว +1

      What are you using to give voltage input?

    • @kevalhadiyal1458
      @kevalhadiyal1458 ปีที่แล้ว

      I have One Uv-LED Want use for different voltages ( say, 6.5V , 7V, 7.5V) here I want to use it for different Power.

  • @rajathkrishnarhathwar4334
    @rajathkrishnarhathwar4334 3 ปีที่แล้ว

    In tinkercad, ground pin wire is not there. What to do?

    • @techathome
      @techathome  ปีที่แล้ว

      Refer this : th-cam.com/video/cBmYkaKy0do/w-d-xo.html

  • @Eyshcoffee
    @Eyshcoffee 2 ปีที่แล้ว

    Is it possible to make the LED stop blinking after blinking 10 times? And how?

    • @techathome
      @techathome  2 ปีที่แล้ว

      Refer this [I have used built in led- pin 13]
      int x=1;
      void setup() {
      pinMode(LED_BUILTIN, OUTPUT);
      }
      void loop()
      {
      if(x==1)
      {
      for(int i=0;i

  • @prithvisatarkar4178
    @prithvisatarkar4178 2 ปีที่แล้ว

    Hello sir, I have facing problem while uploading the code, it shows byte error

    • @nihalahmed4528
      @nihalahmed4528 2 ปีที่แล้ว +1

      Yes me also having that issue

    • @techathome
      @techathome  ปีที่แล้ว

      check the port once in tools

  • @majaharali125
    @majaharali125 3 หลายเดือนก่อน

    Bro, mera blinking program nahi run ho rahahe, mujhe thora help chahiye....

    • @techathome
      @techathome  3 หลายเดือนก่อน

      What is the error?

  • @agfilmsmarketing
    @agfilmsmarketing 6 หลายเดือนก่อน

    I want to connect electromagnet,
    Turn ON and OFF
    Please guide me

    • @techathome
      @techathome  6 หลายเดือนก่อน

      You have to use relay module. Refer this tutorial: th-cam.com/video/iy3nXFh__rg/w-d-xo.htmlsi=7FvMi5UPKguK-8IV
      In this only changes are,
      1. Instead of AC bulb, connect your electromagnet wires.
      2. Instead of AC power supply, connect DC voltage required for your electromagnet.

    • @agfilmsmarketing
      @agfilmsmarketing 6 หลายเดือนก่อน

      @@techathome thank you
      Another thing
      I want to connect 8 electromagnets
      Turn on NC on start
      turn off randomly
      Once all are turned off wait for RESET button
      And do the process again
      Please help

  • @manpreetnooraulakh2846
    @manpreetnooraulakh2846 ปีที่แล้ว

    Can you share the code , the link that you given it is not opening

    • @techathome
      @techathome  ปีที่แล้ว

      Can u send request on mail, I will share the file.

  • @user-dl5wf8sm9d
    @user-dl5wf8sm9d 3 หลายเดือนก่อน

    Meeru output ni big letters rasaru kada enduku smalls enduku tesukovatledu
    Elaaa code Ki related videos Chestara plz its helpful to all why we write the code like this .

  • @khushisingh9603
    @khushisingh9603 11 หลายเดือนก่อน

    Hello sir and thank you

    • @techathome
      @techathome  11 หลายเดือนก่อน +1

      Welcome

  • @techeducation1463
    @techeducation1463 ปีที่แล้ว +1

    how can we change duration of time ?

    • @techathome
      @techathome  ปีที่แล้ว

      Change the value inside delay function

  • @JoeEvansSound
    @JoeEvansSound ปีที่แล้ว +2

    Hi mate. thank you for this video and your hard work, it is a very good video adding extra information for us. thank you very much. :¬)

  • @souravl6882
    @souravl6882 4 ปีที่แล้ว

    Nice one deepak

  • @knowledgeboard-fi2cs
    @knowledgeboard-fi2cs 11 หลายเดือนก่อน

    How i connect the Arduino to mobile

    • @techathome
      @techathome  11 หลายเดือนก่อน

      There are few apps available on Play Store,
      Using that u can write code and upload from your phone using OTG cable.

  • @biopoweruk
    @biopoweruk ปีที่แล้ว

    no resistor to protect the LED?

    • @aatrox5559
      @aatrox5559 ปีที่แล้ว

      That is used as current limiting resistor
      Usually LED need very less current, if you don't use resistor, LED can burn after using for more time .
      But I have heard pin 13 has inbuilt resistor.
      U can use with LED, if you are connecting to any other pin except 13. here you go sir

    • @techathome
      @techathome  ปีที่แล้ว

      Yes , even i have come across the same on internet
      Pin13 has inbuilt resistor

  • @aasirawez3722
    @aasirawez3722 ปีที่แล้ว

    If more LEDs are to be blinked then because I want to make a project which has maths shape like arrow, circle, triangle

  • @coolscholars4451
    @coolscholars4451 2 หลายเดือนก่อน

    can't set com-state for "\\.\COM24 ??

    • @techathome
      @techathome  2 หลายเดือนก่อน

      Check com port in device manager and select the same in Arduino IDE

  • @ahmedshaker7897
    @ahmedshaker7897 2 ปีที่แล้ว

    if we removed arduino cable , will the led still blink ?

    • @techathome
      @techathome  2 ปีที่แล้ว

      No,
      You have to give supply using battery (round pin connector)
      Or usb(power bank)

    • @ahmedshaker7897
      @ahmedshaker7897 2 ปีที่แล้ว

      @@techathome ok thanks

  • @Panchothefatcat
    @Panchothefatcat ปีที่แล้ว

    How do you change the color?

    • @techathome
      @techathome  ปีที่แล้ว

      It is only blue colour led.

  • @annuchaudhary164
    @annuchaudhary164 2 ปีที่แล้ว +1

    thank you

  • @InformationEducation6
    @InformationEducation6 4 หลายเดือนก่อน

    Sir Arduino code kese banaya ka ak video banaya

    • @techathome
      @techathome  4 หลายเดือนก่อน

      I didn't understand your doubt, Code is explained in the same video.

  • @meoww...dp..5345
    @meoww...dp..5345 ปีที่แล้ว

    Tqqq💜💜💜💜

  • @ruhulwara
    @ruhulwara ปีที่แล้ว

    Thank you dada

    • @techathome
      @techathome  ปีที่แล้ว +1

      Your welcome 🙂

  • @indianarduinoprojects8753
    @indianarduinoprojects8753 2 ปีที่แล้ว +1

    My led on my arduino uno board is not blinking on pressing the reset button and code is not uploading to it can you please help me 🙏🙏

    • @techathome
      @techathome  2 ปีที่แล้ว +1

      Any error are you getting??
      While uploading

    • @indianarduinoprojects8753
      @indianarduinoprojects8753 2 ปีที่แล้ว +1

      @@techathome yes it is showing that no arduino boards found

    • @indianarduinoprojects8753
      @indianarduinoprojects8753 2 ปีที่แล้ว +1

      @@techathome when I press the reset button the led is not blinking

    • @indianarduinoprojects8753
      @indianarduinoprojects8753 2 ปีที่แล้ว +1

      @@techathome from the same cable I connect another arduino that one is working fine

    • @techathome
      @techathome  2 ปีที่แล้ว +1

      May be issue with board??

  • @AliBaba-dc6zo
    @AliBaba-dc6zo ปีที่แล้ว

    can you make complete course on arduino coding and implementation

    • @techathome
      @techathome  ปีที่แล้ว +1

      I already have Arduino tutorials playlist : th-cam.com/play/PL4B0LEKY-jrT_fjOGkX_NZ52ZHZf8s9S-.html

  • @coolmax7550
    @coolmax7550 2 ปีที่แล้ว

    awesome

  • @MMM-jr7zg
    @MMM-jr7zg ปีที่แล้ว

    So good.

  • @zakawaka3752
    @zakawaka3752 2 ปีที่แล้ว

    And how to make it for slowly turning on and off

    • @techathome
      @techathome  2 ปีที่แล้ว

      Increase the delay

    • @zakawaka3752
      @zakawaka3752 2 ปีที่แล้ว

      @@techathome thanks for replying

  • @enriquedb666
    @enriquedb666 6 หลายเดือนก่อน

    THANKSSS

    • @techathome
      @techathome  6 หลายเดือนก่อน

      Welcome

  • @charanjitnarang7292
    @charanjitnarang7292 ปีที่แล้ว

    How many led can be connected

    • @techathome
      @techathome  ปีที่แล้ว

      There are 13 digital pins, you can use them

  • @ashinthtnyt2179
    @ashinthtnyt2179 ปีที่แล้ว

    Similar to java ???

  • @Kasko-na-raja
    @Kasko-na-raja 3 ปีที่แล้ว

    Can u send the video link for aurdiuno fading programme and inbuilt led programme ..?

    • @techathome
      @techathome  ปีที่แล้ว

      Fade : th-cam.com/video/WvFmYy75Ju0/w-d-xo.html

  • @gayathrinaidumiriyala7262
    @gayathrinaidumiriyala7262 3 ปีที่แล้ว

    same way done.but led not blinking ,may i know the reason

    • @techathome
      @techathome  3 ปีที่แล้ว

      Reverse the terminal of LED and check once. Even then if it is not working, connect to any other digital pin.

    • @gayathrinaidumiriyala7262
      @gayathrinaidumiriyala7262 3 ปีที่แล้ว

      @@techathome all changes made but no result

    • @techathome
      @techathome  3 ปีที่แล้ว

      @@gayathrinaidumiriyala7262 can you please send me the code.
      Mail here : deepakhd20@gmail.com

    • @gayathrinaidumiriyala7262
      @gayathrinaidumiriyala7262 3 ปีที่แล้ว

      @@techathome done

    • @techathome
      @techathome  3 ปีที่แล้ว

      @@gayathrinaidumiriyala7262 in the digitalwrite () , instead of led change it to 7 in both lines.

  • @amit.s.4432
    @amit.s.4432 8 หลายเดือนก่อน

    How to open the rar files in mobile

    • @techathome
      @techathome  8 หลายเดือนก่อน

      Try to find zip file reader on Play Store.

    • @amit.s.4432
      @amit.s.4432 8 หลายเดือนก่อน

      @@techathome Sir, I tried to open the file by downloading the Zip file from the Play Store but it's not opening the file, please send me the name of the Zip file reader that I have to download from the Play Store, thanks

    • @techathome
      @techathome  7 หลายเดือนก่อน

      Try this: play.google.com/store/apps/details?id=com.rarlab.rar

  • @dhananjayahd
    @dhananjayahd 4 ปีที่แล้ว

    Nice one 🔥

  • @alirezafazeli231
    @alirezafazeli231 2 ปีที่แล้ว

    good video

  • @jayshhirekar159
    @jayshhirekar159 ปีที่แล้ว

    How can I stop blinking of LED

    • @techathome
      @techathome  ปีที่แล้ว

      You can keep the blink logic inside a for loop .
      for(int i=0; i

  • @jeetpandya4760
    @jeetpandya4760 ปีที่แล้ว

    How to blink blue led 5 times and stop it then blink red led 5 times

    • @techathome
      @techathome  ปีที่แล้ว

      Use For loop with count 5.
      Add blink logic inside for loop.
      Repeat same for next LED.

  • @NehaKumari-cs5qe
    @NehaKumari-cs5qe ปีที่แล้ว

    My led is not blinking I also do same but it's not blinking

    • @techathome
      @techathome  ปีที่แล้ว

      Can u verify the connections, Anode and cathode

  • @syedsharukh8265
    @syedsharukh8265 ปีที่แล้ว

    Was the language c++

    • @techathome
      @techathome  ปีที่แล้ว

      Basics of C with some Arduino specific functions

  • @user-tb4xl4ui5q
    @user-tb4xl4ui5q 2 ปีที่แล้ว

    👍👍👍👍

  • @inventortech-mp6eh
    @inventortech-mp6eh ปีที่แล้ว

    thanks

  • @vijayakumari-kc8mj
    @vijayakumari-kc8mj ปีที่แล้ว

    I want Circuit diagram on led blink

    • @techathome
      @techathome  ปีที่แล้ว

      It's given in description.

  • @lukasnevidzan5523
    @lukasnevidzan5523 2 ปีที่แล้ว

    LED hat not resistor ????

    • @techathome
      @techathome  2 ปีที่แล้ว

      Arduino pin 13 already has register inside

  • @kripathankachan1782
    @kripathankachan1782 3 ปีที่แล้ว +1

    Very useful ☺️👍

  • @danmax3418
    @danmax3418 ปีที่แล้ว

    bro why it deoesn t blink, should i press a button or smthin?💀💀💀

    • @danmax3418
      @danmax3418 ปีที่แล้ว

      Nvm it worked, i just the led in the wrong way, sry

    • @techathome
      @techathome  ปีที่แล้ว

      👍

  • @5084204
    @5084204 ปีที่แล้ว +1

    /* A simple program to sequentially turn on and turn off 5 LEDs */
    int LED1 = 13;
    int LED2 = 12;
    int LED3 = 11;
    int LED4 = 10;
    int LED5 = 9;
    void setup() {
    pinMode(LED1, OUTPUT);
    pinMode(LED2, OUTPUT);
    pinMode(LED3, OUTPUT);
    pinMode(LED4, OUTPUT);
    pinMode(LED5, OUTPUT);
    }
    void loop() {
    digitalWrite(LED1, HIGH); // turn on LED1
    delay(200); // wait for 200ms
    digitalWrite(LED2, HIGH); // turn on LED2
    delay(200); // wait for 200ms
    digitalWrite(LED3, HIGH); // turn on LED3
    delay(200); // wait for 200ms
    digitalWrite(LED4, HIGH); // turn on LED4
    delay(200); // wait for 200ms
    digitalWrite(LED5, HIGH); // turn on LED5
    delay(200); // wait for 200ms
    digitalWrite(LED1, LOW); // turn off LED1
    delay(300); // wait for 300ms
    digitalWrite(LED2, LOW); // turn off LED2
    delay(300); // wait for 300ms
    digitalWrite(LED3, LOW); // turn off LED3
    delay(300); // wait for 300ms
    digitalWrite(LED4, LOW); // turn off LED4
    delay(300); // wait for 300ms
    digitalWrite(LED5, LOW); // turn off LED5
    delay(300); // wait for 300ms and start again
    }
    // This code is just cleaner.

  • @nimeshkumavat4784
    @nimeshkumavat4784 หลายเดือนก่อน

    Where is part 1 ?

    • @techathome
      @techathome  หลายเดือนก่อน

      Complete playlist: th-cam.com/play/PL4B0LEKY-jrT_fjOGkX_NZ52ZHZf8s9S-.html&si=nfOqvqjlkUnmWSpW

  • @nahomhabtamu870
    @nahomhabtamu870 ปีที่แล้ว +1

    no it is working first not on 7 on 13

    • @techathome
      @techathome  ปีที่แล้ว

      It will work on all digital pins, have you configured correctly in code?

  • @user-vz2rh3nb5i
    @user-vz2rh3nb5i 7 หลายเดือนก่อน

    thank you so much it helped ,me a lot 😚😚😚🙄🙄

    • @techathome
      @techathome  7 หลายเดือนก่อน

      Welcome

  • @yasithlalanjana1125
    @yasithlalanjana1125 2 ปีที่แล้ว +2

    //TH-cam|Tech at Home
    int led1=7;
    void setup()
    {
    //pinMode(pin,mode);
    pinMode(7,OUTPUT);
    }
    void loop()
    {
    digitalWrite(led1,HIGH);
    delay(200);
    digitalWrite(led1,LOW);
    delay(200);
    }

  • @Officialnoob_-999
    @Officialnoob_-999 4 หลายเดือนก่อน +1

    My led is not blinking 😢😢😢

    • @techathome
      @techathome  4 หลายเดือนก่อน

      Check the connections.

  • @WebDepthMviewsyearsago
    @WebDepthMviewsyearsago 3 ปีที่แล้ว +5

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

    • @ananyarajansvlogs9651
      @ananyarajansvlogs9651 11 หลายเดือนก่อน

      not working , my port is not selecting

    • @techathome
      @techathome  11 หลายเดือนก่อน

      Which type of Arduino are u using, Ch340 smd chip or the Dip IC one?

  • @sriashwinv1829
    @sriashwinv1829 4 หลายเดือนก่อน

    My LED is blinking

  • @technodarsh5721
    @technodarsh5721 2 ปีที่แล้ว +1

    Can I call you? I need help!

    • @technodarsh5721
      @technodarsh5721 2 ปีที่แล้ว

      It says serial port not selected

    • @technodarsh5721
      @technodarsh5721 2 ปีที่แล้ว

      It says serial port not selected

    • @techathome
      @techathome  2 ปีที่แล้ว

      Have you selected com Port in tools?

  • @user-ld7cf5xd3o
    @user-ld7cf5xd3o 6 หลายเดือนก่อน

    Can you send me the code

    • @techathome
      @techathome  6 หลายเดือนก่อน

      Link provided in description.

  • @darewolf6251
    @darewolf6251 2 ปีที่แล้ว

    Pls that code

    • @techathome
      @techathome  2 ปีที่แล้ว

      Given in description

    • @darewolf6251
      @darewolf6251 2 ปีที่แล้ว +1

      @@techathome not working send media fire

  • @Saizzzo
    @Saizzzo 6 หลายเดือนก่อน

    Prepare diwali light with Arduino

    • @techathome
      @techathome  6 หลายเดือนก่อน

      th-cam.com/video/HCQWPmSDqco/w-d-xo.htmlsi=GC-dnIPxvUbPzzbG