I am going to create the following circuits. However I need to be able to have a switch that completes the lightbulb circuit when VM1 input > 4.3v
I think a transistor may be the answer from what I have read. Please could someone give me some help. I have thought about using a relay, but this just seems to mess up the voltage to VM1
Any help is greatly appreciated.
simulate this circuit – Schematic created using CircuitLab
I believe this is the solution I was looking for. Please read this carefully before testing. POT's R1 & R2 are attached to the same wiper, so what happens to one must happen to the other. The switch SW1 is a push to break switch.
Please could you tell me if the resistors I have selected are compatible with the zener diodes I have selected. Thank you.
Best Answer
Transistor is the correct answer but to get good control over this 4.3V threshold you may want something more than a simple transistor. Something like this:
simulate this circuit – Schematic created using CircuitLab
The
LM393
in the middle is a comparator chip with open-collector output, comparing your input voltage against the reference voltage generated from the Zener diode D11N4731A
(a 4.3V Zener diode, with R1 providing its 58mA current from a 5V supply) and shifting the signal level of 5V to 12V as required by the lamp with the pull-up resistor R3. The comparator outputs logic low when voltage on the "-" input is higher than "+" input, and high impedance (or logic high on a normal comparator, sinceLM393
in particular have an open-collector output) otherwise. The MOSFET M1 (any P-channel MOSFET will work here,IRF4905
is just my personal favorite) switches the lamp from the high side when it sees a low input at its gate, which is tied to the output of the comparator.