Push Button and LED with Arduino(code explained) | Control LED with push button | Arduino Tutorial 3

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 เม.ย. 2020
  • Part-3:
    * Explanation of digitalRead()
    * Working with Push button and LED
    Code & Circuit :
    drive.google.com/file/d/1o5U5...
    Learn Arduino programimng even without components (Online Arduino Simulator) :
    Tutorial video - • How to learn Arduino u...
    Part - 4(IR sensor) : • IR Sensor and LED with...
    Product Links
    Arduino Uno : amzn.to/3C1vKxF
    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
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Thank you for this tutorial. I like to ask you about the types of the parameters used. When You use PinMode(6,INPUT). Could it have been PinMode(s,INPUT) ? Cound s have been declared as a constant instead of an integer? Do digitalRead(s) require, that you use an integer as parameter?

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

      Welcome!
      Not necessarily int. You can also use byte as datatype. Since the value(6) is small and accommodate within 255(max size of byte).
      But Const is a keyword. You can use this for pin declarations since the pin number is fixed.
      Ex:
      const int s= 6;
      or
      const byte s= 6;

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

      @@techathome Thank you. 🙂

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

    Wonderful❤

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

      Thanks 🤗

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

    best tutorials love it .

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

    أهلاً وسهلاً ومرحباً بك-شكراً لك-يتعذر التعليق-لا أعلم .

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

    Greatly explained

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

    Starting and ending circuit are different

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

    Sir what if the push button have four terminals then how will i connect that. In your video it had only two terminals but the push button i got having four terminals

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

      There is no difference in the functionality. 4 pin buttons are used to control two devices together, but you can still use the same in this case.
      Keeping the button pressed, check which two pins are getting connected used continuity tester(on multimeter)

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

      ​@@techathome thanku sir😊

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

    Can we use 1k resistor?

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

    it is not working

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

    How to make simulink model to make it work instead of coding

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

      I have not tried it.

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

    The link you have provided for code and circuits is not open for any video.pleaee help

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

      That is compressed file.
      Install winRaR software on your computer and extract using it.

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

    super

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

    I thought he was suppose to use analogRead instead of digitalRead since he is using an input device.

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

      analogRead and digitalRead are two different functions to be used depending on the type of input device.
      Here I am using push button which is digital, so digitalRead.
      In case of analog inputs like potentiometer, sensors you have to use analogRead.

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

    If button is pressed 3 times with then..LED ON HOW TO DO HELP ME

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

      You have to keep a counter and monitor the value until 3 count.
      Can you send request on mail: deepakhd20@gmail.com

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

    it doesn't work!!!!!!!!

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

      Check the connection.

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

    Circuite diagram are not open

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

      Download complete rar file and extract