ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
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
Dude thank you!! Finally someone getting straight to the point!
No problem, thanks for the comment!
dude you are a very good teacher thx
Thank you very much :)
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 🙏
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!
the best explanation. thx Sir
The best comment! Thank you
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
Anything in particular you would like to see?
@@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(?)
That was really easy to understand. You just won a subscrieb. Thank you so much.
Yay thank you
I love you 😍
Legal , vou usar esta Sket
Thank you So much for this video.
Thanks
Nice one!
Thank you dude!
You are welcome!
Great video, wasted days using digitalWrite & not Read. Thank you
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?
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.
Thank you very very much..!!!!!!!!!!!!!!!!!
You are very welcome
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
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
hi Thank you, the video was very helpful and very well explained, thank you very much
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
@@larido1957 ah ok, so do you want the LED to turn off when you press the button?