Editing Push button
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 7: | Line 7: | ||
This is the most simple way of connecting a button. if the button is not pressed (open) there is no signal at the pin. Hence here we should use an internal pullup resistor. | This is the most simple way of connecting a button. if the button is not pressed (open) there is no signal at the pin. Hence here we should use an internal pullup resistor. | ||
− | [[File:Button01.PNG | + | [[File:Button01.PNG]] |
This is the connection of a button with a pullup resistor. If the button is not pressed, 3.3V are connected to the pin via the 10 KOhm resistor (reads 1). if it is pressed it is connected to GND (reads 0). | This is the connection of a button with a pullup resistor. If the button is not pressed, 3.3V are connected to the pin via the 10 KOhm resistor (reads 1). if it is pressed it is connected to GND (reads 0). | ||
− | [[File:Pullup02.PNG | + | [[File:Pullup02.PNG]] |
= How to control it in MicroPython = | = How to control it in MicroPython = |