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

6926 views

0 respects

Components and supplies

1

LED (generic)

1

Resistor 10k ohm

1

Arduino Nano R3

1

Tactile Switch, SPST-NO

Apps and platforms

1

Arduino IDE 2.0 (beta)

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

Pullup Resistor Diagram

Pullup Resistor Diagram

Pulldown resistor diagram

Pulldown resistor diagram

Pullup Resistor Diagram

Pullup Resistor Diagram

Comments

Only logged in users can leave comments

Dziubym

0 Followers

0 Projects

Table of contents

Intro

0

0