12V 3A high side switch with two input XOR logic

Papabravo

Joined Feb 24, 2006
21,225
Additionally, if the logic is wrong or you want me to use a high side switch, I can do that for you. It will also help to know what kind of current the loads will be drawing.
 

Thread Starter

Mogman

Joined Jan 20, 2022
21
You cannot run 12V inputs to a 74LS86. Don't use an 74LS86, use a CMOS gate, The 12V inputs are compatible with the CD4077B, and you only need a single transistor.

NOTE: Schematics without values are not much use.
Very interesting! I will have to read up some more
You cannot run 12V inputs to a 74LS86. Don't use an 74LS86, use a CMOS gate, The 12V inputs are compatible with the CD4077B, and you only need a single transistor.

NOTE: Schematics without values are not much use.
Well the values would depend on the devices yes, that has not yet been been determined, sorry to bother you guys.
 

Papabravo

Joined Feb 24, 2006
21,225
Look. For what is probably the 3rd time: I KNOW YOU DO NOT NEED A CLOCK AND A COUNTER. It is there solely for the purpose of demonstrating the logic and the output driving capability. Just try to pretend it is not there -- OK?
 

Papabravo

Joined Feb 24, 2006
21,225
Here is the same XOR logic, but this time I have a high side switch. The CD4077B output should be able to provide the 3mA of base current required to get 30 mA of collector current to the load.
1660183270668.png
Note: the purpose of the counter is to go through all the possible input combinations so that you can verify that the logic is correct. Because a single transistor will invert the logic, I have chosen a CMOS XNOR gate which also has a level of inversion the result is a positive logic XOR.

EDIT: One more thing, R1 is your LOAD impedance. DO NOT CONNECT YOUR LOAD IN PARALLEL WITH R3.
 
Last edited:

eetech00

Joined Jun 8, 2013
3,951
You can make an RC pulse detector to detect the Flash signal.
Flash signal overides brake signal. When no Flash signal, the circuit defaults to brake signal.
 

crutschow

Joined Mar 14, 2008
34,450
Here's is an efficient, power XOR gate that uses 4 power P-MOSFETS and 2 resistors.

Two MOSFETs are needed in series back-to-back to prevent back feed through the off MOSFET.
That works because MOSFETs conduct equally well in either direction when ON.

The P-MOSFETs can be just about any with a Vds max of 30V or more, and an on-resistance of less than 0.06Ω (to avoid having to add a heatsink).

1660322125958.png
 
Last edited:

vu2nan

Joined Sep 11, 2014
345
Hi Mogman,

An off-the-shelf, 12 V DC 'true off-delay' timer should suffice.

1.png

When the turn-signal switch is actuated, the 'true off-delay' timer is enabled every time the flash voltage goes high and it's 'NC' contact opens and remains so even when the flash voltage goes low. Hence the lamp flashes and continues to do so even when the brake switch is actuated.

With the turn signal switch being turned off, the 'NC' contact closes and the lamp lights up continuously when the brake switch is actuated.

Nandu.
 
Last edited:

vu2nan

Joined Sep 11, 2014
345
Hi crutschow,

I'm sorry for the oversight.

I have added the diode.

Here's my edited schematic.

2.png

Thank you very much.

Nandu.
 
Last edited:

vu2nan

Joined Sep 11, 2014
345
Hi dl324,

I thank you for your feedback.

The following modifications have been carried out:

My post #28: Reverted to its original version.

My post #30: Edited schematic included.

Nandu.
 
Last edited:

dl324

Joined Mar 30, 2015
16,921
My post #28: Reverted to its original version.

My post #30: Edited schematic included.
It wasn't necessary to do that. Now I need to check the posted I edited as a result of your previous changes to see if the edit now seems clueless...
 

michael8

Joined Jan 11, 2015
415
Remember that an incandescent lamp is low resistance until it heats up. So the starting current is something like 15 times the
running current. The fuse is slow compared to the lamp warmup time so it doesn't usually blow. Transistors are more
likely to blow. A 3 amp lamp might pull 45 amps at turnon (perhaps less). Depending on how fast the filament cools
you might get a surge at every lamp blink.
 

crutschow

Joined Mar 14, 2008
34,450
Remember that an incandescent lamp is low resistance until it heats up. So the starting current is something like 15 times the
running current. The fuse is slow compared to the lamp warmup time so it doesn't usually blow. Transistors are more
likely to blow.
True.
But the surge is an exponential with a time-constant of only about 4ms for a typical incandescent bulb, and the low on-resistance MOSFETs suggested for my circuit in post #27 should readily handle that surge without problem.
For example, for a 45A, 4ms TC exponential surge, the maximum energy dissipated in a 0.06Ω MOSFET on-resistance would is only about 0.3 Joules or 0.3 watt-second, according to my simulation.

Edit: After some further looking at MOSFET surge ratings it would appear that one with a large surge rating is needed to avoid possible MOSFET failure in driving the lamp.
Ones with a surge rating of at least 100A (for a 300µs pulse) should be used.
 
Last edited:
Top