r/ArduinoProjects • • Apr 29 '24

pull up and pull down resistor 😭😭

I am a newbiee at this electronics stuff. I wanted to create a circuit using Arduino where when it's PIN 2 gets a HIGH input (5V) which is connected via a push button , pin3 gets HIGH and led connect to pin 3 and GND gets light up , But problem is when in void setup I define pin3 as output it gets high and LED glows up . I want it to light up only when push button is pressed.

Help me 😭😭😭

0 Upvotes

2 comments sorted by

View all comments

2

u/xebzbz Apr 29 '24

You need to read on what pull resistors are and what they do.