Print Page | Close Window

push button switch?

Printed From: the12volt.com
Forum Name: General Discussion
Forum Discription: General Mobile Electronics Questions and Answers
URL: https://www.the12volt.com/installbay/forum_posts.asp?tid=109485
Printed Date: April 24, 2024 at 3:30 PM


Topic: push button switch?

Posted By: cjkent
Subject: push button switch?
Date Posted: December 04, 2008 at 10:38 PM

hi everyone, i'm new here, i have a project that something like this..

Five Push button and a five LED 1.5v with 12Volts Supply
my question is how to make a diagram for this?

if Push Button #1 press, LED #1 will ON(Lights) and the rest is "OFF"
if Push Button #2 press, LED #2 will ON(Lights) and the rest is "OFF"
if Push Button #3 press, LED #3 will ON(Lights) and the rest is "OFF"
if Push Button #4 press, LED #4 will ON(Lights) and the rest is "OFF"
if Push Button #5 press, LED #5 will ON(Lights) and the rest is "OFF"

pls help...



Replies:

Posted By: i am an idiot
Date Posted: December 05, 2008 at 1:14 AM
Power, switch1 wire to resistor, LED1 ground.
Power, switch2 wire to resistor, LED2 ground
Power, switch3 wire to resistor, LED3 ground.
Power, switch4 wire to resistor, LED4 ground.
Power, switch5 wire to resistor, LED5 ground.

Resistor = 1000 ohm 1/8 or 1/4 watt.




Posted By: cjkent
Date Posted: December 05, 2008 at 9:16 AM
thanks for the reply. but this is not a switch this is a Push Button, that i want to used on this project.

if Push Button #1 press, LED #1 will ON(Lights) and the rest is "OFF"
if Push Button #2 press, LED #2 will ON(Lights) and the LED #1 will automatic off.

something like that and so on............




Posted By: js305
Date Posted: December 07, 2008 at 10:28 AM
Uh, pushbuttons are switches as are toggles, rockers, snap actions, etc.

-------------
Joe in Texas




Posted By: atschirner
Date Posted: December 08, 2008 at 4:08 PM
Tech school was a long time ago so there may be a better way to do this now but: Find a book or website on logic gates. You are looking for "OR" and "AND" gate devices. Another apporach is to look at your five output LEDs as a 5 bit binary word 00000 to 11111. Each one or zero is a LED so all off except LED 1 = 00001 and all off except LED 2 =00010 and so forth.

You could also try a NTE 1503 LED driver and a resistor ladder to control the input voltage to the chip. If you run this chip in the "dot" mode each pushbutton would cause a single LED to light as long as the button is pushed.

These are the simple hardware solutions. If you have access to single chip microcomputers a few lines of code will do the same thing.

Good luck.





Print Page | Close Window