Imprimer

Three different way of connecting a push button with an Arduino microcontroller.

Things used in this project

Hardware components

Pushbutton switch 12mm
SparkFun Pushbutton switch 12mm
 
× 1  
Arduino Nano R3
Arduino Nano R3
 
× 1  
Resistor 10k ohm
Resistor 10k ohm
 
× 1  

Software apps and online services

Arduino IDE
Arduino IDE
 
   
 

Story

 

Schematics

Using internal pull up

 
Internal pullup ei7gc3hitl

Using external pull up

 
External pullup fzfhotra1t

Using external pull down

 
Pulldown r5liobpiiz
 

Code

Push Button with Arduino using internal pull-up

 

Push button with Arduino using external pull up resistor

 

Push button with Arduino using pull down resistor

 

Source : https://www.hackster.io/najad/3-different-ways-of-connecting-a-push-button-to-arduino-24771a

 
Affichages : 1596