Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
Najad
Published © GPL3+

3 Different Ways of Connecting a Push Button to Arduino

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

BeginnerProtip21,160
3 Different Ways of Connecting a Push Button to Arduino

Things used in this project

Hardware components

UTSOURCE Electronic Parts
UTSOURCE Electronic Parts
×1
Arduino Nano
×1
UTSOURCE Push Button
×1
Resistor 10k ohm
Resistor 10k ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Using internal pull up

Using external pull up

Using external pull down

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

Credits

Najad
30 projects • 97 followers
Just crazy stuff​

Comments