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




Using internal pull up

Internal pullup ei7gc3hitl

Using external pull up

External pullup fzfhotra1t

Using external pull down

Pulldown r5liobpiiz


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 :

Affichages : 3364