Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

control an LED using a 4-pin push button

Elctro1

New Member
I’m trying to control an LED using a 4-pin push button with a 10 kΩ pull-up resistor. I expected the LED to turn on when pressed and off when released, but it doesn’t behave as expected. The LED lights fine when connected directly to 5 V. I tested the button with a multimeter: two pins on one side have continuity, two pins on the other side have continuity,The breadboard power supply is working fine, and although the supply wires are not shown in the image, both sides of the breadboard are powered. I don’t know what’s causing the problem.
1755166346475.png
 
Wiring should be :

+power >> switch >> resistor (300 ohms or so) >> LED >> -power or ground

or

1755175931766.png


Led Polarity :

1755176594790.png


The LED resistor should be calculated as :

Rled = (Vpower - Vled) / Iled all in ohms, volts, amps

Starting point is Iled set for 10 mA (for the type you seem to be using, 10 mA = .01A), and Vled :

1755176368687.png


Your push button .....?
1755176889110.png


No pullup R is needed unless you are interfacing another way to a micro
or logic part....and using switch to input a logic level.....
 
Last edited:
Back
Top