ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Arduino - Digital Inputs

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ส.ค. 2024
  • In this video we use digitalRead to read a digital input and control a digital output on an Arduino.
    Get hold of these fantastic little devices here:
    Arduino Uno: amzn.to/3aeuND3
    Arduino Mega: amzn.to/33OxUAl
    Arduino Micro: amzn.to/2XSTfom
    Arduino Pro Mini: amzn.to/2Fg75ef
    Motor + driver: amzn.to/31Lj76M
    Find us on Facebook, Instagram and Twitter @MachineShopUK
    Visit our website TheMachineShop.uk

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

  • @randomlysatisfying6064
    @randomlysatisfying6064 ปีที่แล้ว +6

    Dude thank you!! Finally someone getting straight to the point!

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

    dude you are a very good teacher thx

  • @ankushchauhan5752
    @ankushchauhan5752 6 หลายเดือนก่อน +2

    Thank you sir for explaining the button system . I was getting confusing why my Adriano showing 0 and 1 random variables in my serial monitor. Even though my pin was not connected. Its because it take random disturbance as 1 . Maybe air resistance. Thank you sir 🙏

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

    The way you drew the circuit almost gave me a stroke for a second there but other than that well done this video is awesome!

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

    the best explanation. thx Sir

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

    Awesome, found the video while looking for digital inputs and really enjoyed. Looking forward to follow all the playlist as soon as i finish another intro course

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

      Anything in particular you would like to see?

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

      @@TheMachineShopUK Honestly i would like to understand better how inputs really work. I don't know if it is a noob or complex topic and didn't get my time to google it but for example i don't know if i can slap a digital input in the middle of a pre-made circuit more or less like a digital multimeter or i have to consider it like, idk, a very big resistor connected to GND(?)

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

    That was really easy to understand. You just won a subscrieb. Thank you so much.

  • @kenkoong
    @kenkoong 14 วันที่ผ่านมา +1

    I love you 😍

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

    Legal , vou usar esta Sket

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

    Thank you So much for this video.

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

    Thanks

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

    Nice one!

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

    Thank you dude!

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

    Great video, wasted days using digitalWrite & not Read. Thank you

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

    I’d never been aware of that INPUT_PULLUP trick - nice tip. Is it something that’s common on loads of MCUs? Also, what’s the red development board?

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

      Hey Pat, yes it is a common feature, have a look through the data sheets, it’s often referred to as weak pull-up. The red development board is the Microchip dsPICDEM 2. I’m using it to teach about dsPICs, specifically with motor drive features like the quadrature encoder.

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

    Thank you very very much..!!!!!!!!!!!!!!!!!

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

    hi
    When you press the button the LED should be on and when you let go the LED should be off
    It seems to behave the opposite , why ?
    Meir

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

      Hey, thanks for the comment. If you are using the pull-up method, then the input will read True when you are not pressing the button. So you need to tell the LED to turn off when the input is True and turn on when the input is false

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

      hi Thank you, the video was very helpful and very well explained, thank you very much

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

      Sorry I still don't understand
      Without clicking the button the code else works and you write (13, HIGH)
      = led on ?
      i means the LED without pressing the button should be on all the time !!!
      Meir

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

      @@larido1957 ah ok, so do you want the LED to turn off when you press the button?