Site icon DIY Usthad

3 Different way of connecting a push button​ to Arduino

circuit for arduino nano with micro push switch

INTRODUCTION

In this chapter, we are going to learn the three different ways of connecting a push-button with an Arduino microcontroller.

Hardware Required

ComponentsAmazon.inAmazon.comBanggoodAliExpressUtsource
Arduino Nano
Push Button

Three Ways

Internal pull-up resistor

Code

Result

External pull-up resistor

Code

Result

External pull-down resistor

Code

Result

Video

To buy electronic components order from UTSOURCE

Exit mobile version