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

 


Logo Lycée Paul Sérusier

J'enseigne au
Lycée Paul SERUSIER
Avenue de Waldkappel
29270 CARHAIX PLOUGUER
Tél : 02 98 99 29 29
Site : www.lycee-serusier.fr

footer2

Richard GAUTHIER
Professeur de Physique Appliquée
Certification ISN
Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.

www.carhaix2020.bzh