Using Pushbuttons with Arduino. Pullup vs Pulldown resistors

How to get rid of floating pin problem to make push button work properly

Jan 13, 2022

7737 views

0 respects

Devices & Components

1

Arduino Nano

1

LED (generic)

1

Resistor 10k ohm

1

Tactile Switch, SPST-NO

Software & Tools

1

Arduino IDE

Project description

Code

Code used to control led with Pushbutton

arduino

Please watch video to observe slight changes to that coode to adjust LED behaviour, and also to activate using internal pullup resoistor

Downloadable files

Pulldown resistor diagram

Pulldown resistor diagram

Image

Pullup Resistor Diagram

Pullup Resistor Diagram

Image

Pulldown resistor diagram

Pulldown resistor diagram

Image

Pullup Resistor Diagram

Pullup Resistor Diagram

Image

Comments

Only logged in users can leave comments

Dziubym

0 Followers

0 Projects

0