How to implement the Tactile switch Logic and the LEDS Both Functionalities

Thread Starter

Balayyaaa

Joined May 20, 2026
1
For this circuit, how can I implement the tactile switch functionality using the dual-LED feature? Can any one explain how the circuit should be designed for a 28V input? I am unable Implement this Logic
Like My requirement is 28V I am getting upto 42mA So This switch Should Receive and that will be working like the Tactile and need to Glow the Once pressed one will glow if anoother Press other LED should Glow . How to Implement This Logic

1779294485391.gif
 

MisterBill2

Joined Jan 23, 2018
27,566
The "dual LED feature" is polarity sensitive, meaning that the polarity presented to pins #2 and #3 will determine which LED is lighted.
The cheap trick to make that work is to use the two outputs from a flipflop to drive the LED pair.
BUT the 28 volts logic is too much for CMOS logic. Is that switch a momentary-contact type?? or a latching contact type??
Really, this sort of PB should be interfaced with a processor module!
 

panic mode

Joined Oct 10, 2011
5,000
it would be best to state details.

for example:
1. is this switch" latching or momentary? part number or link to datasheet of the illuminated switch that you are using.
2. exact desired behavior (timing diagram).
3. what do you mean by "upto 42mA". is this max draw from the PSU? or max load current? or max LED current?

if the "dual LED feature" means LEDs are in antiparallel like the image shows, then indication is simply matter of correct polarity.
 

panic mode

Joined Oct 10, 2011
5,000
here is one possibility...

left of D1 is classic power on switch. zenner (D2) was added to make sure this works nicely at 28V. for simulation only I1 was added to mimic finger pressing button (you would put your button in place of S1 and forget about I1). R1 and C1 form necessary time delay circuit.

D1 was added just to separate LED driver from just described toggle circuit. M2 works as inverter so depending on status of previous circuit one of the two LEDs will be on.

if your switch is maintained (not a momentary push button). you can remove everything on the left side of D1.


1780582260210.png
 

Attachments

Last edited:

AnalogKid

Joined Aug 1, 2013
12,142
It sounds like you want what is called an alternate-action function:

Power ON - LED1 is lit.

Press once - LED 1 goes out, LED2 is lit.
Press again - LED2 goes out, LED1 is lit.
Repeat.

Is this correct?

Also, that image does not tell us enough information. Please post the complete datasheet, or a link to it.

ak
 
Last edited:

MisterBill2

Joined Jan 23, 2018
27,566
The image shows us the physical arrangement of the switch. The meaning of the question is rather unclear to me.
Very specifically, what does the TS want to happen with successive operations of the momentary switch.

The description of the present system voltage indicates some active electronics will be needed, while there is no hint as to what the "42 milliamps" relates to.
So a more detailed description is what is mandatory.
 
Top