r/ArduinoProjects • u/GangstaElctro • 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
1
2
u/xebzbz Apr 29 '24
You need to read on what pull resistors are and what they do.