I knew the basics but never considered just how capable an Arduino can be with a little creativity. For example, the DC motor as a digital ruler was ingenious
When you connect a button to an MCU input what you are trying to achieve is, when button is pressed, there should be logic zero on MCU input. When button is released, there should be loginc one. Otherwise the MCU cannot differentiate between pressed and released state. So, when the button is released, circuit is open, so we need a pull-up that will pull the MCU input to +5v (logic one). When you press a button, the input together with the pull-up is shorted to the ground (logic zero). If you don't use a pullup here, there will be no logic one on MCU input when button is released, input will be floating in undefined state.
I knew the basics but never considered just how capable an Arduino can be with a little creativity. For example, the DC motor as a digital ruler was ingenious
Nice projects 🔥👍
I love this!!
Please give the link for project board. Thank you Sir, for the nice video!!.
aliclick.shop/r/c/1r69q0xy639xdou9?erid=2SDnjeZxnE4
21:45 Why exactly do we use the pull-up resistor when connecting to ground? And how would I know when to use a pull-up resistor in general?
When you connect a button to an MCU input what you are trying to achieve is, when button is pressed, there should be logic zero on MCU input. When button is released, there should be loginc one. Otherwise the MCU cannot differentiate between pressed and released state. So, when the button is released, circuit is open, so we need a pull-up that will pull the MCU input to +5v (logic one). When you press a button, the input together with the pull-up is shorted to the ground (logic zero). If you don't use a pullup here, there will be no logic one on MCU input when button is released, input will be floating in undefined state.