Optocoupler delay off MOSFET solenoid

Thread Starter

OSCAR23

Joined Mar 17, 2016
5
Hi everybody! :)
This is to trigger a 12v solenoid (acting as a laser shutter) with 5v 'trigger' thru an optocoupler (4N35M)
I need to add a bit of delay OFF in order the shutter remains active, say 0,5sec (energised) when 5v is off.
I add a 500k trimmer in order to adjust delay switch-off time....
Could you help me please? Is at least one circuit ok?
Many thanks
Oscar (Spain)
 

Attachments

crutschow

Joined Mar 14, 2008
34,428
The second circuit should work if you remove the 10kΩ resistor (which otherwise swamps the 500kΩ pot).
For a 0.5s off delay and a 500kΩ ohm pot, 1μF is likely just on the edge of what you need.
I would go with at least 2μF to give a better adjustment range.

Below is an LTspice simulation of the circuit (with a couple mods).
The OFF delay varies from essentially zero to about 1.3s over the pot adjustment range.
(I didn't have the model for the MOSFET or opto you used so I substituted similar devices.)

upload_2016-3-17_9-29-31.png
 

Attachments

Thread Starter

OSCAR23

Joined Mar 17, 2016
5
woooow!!! a thousand thanks!!

I will try 1Mohm trimmer and/or higher C1 value in order to have more delay margin, say 3 to 0 sec.
Which is R2 purpose?
Many thanks again!!!
 

crutschow

Joined Mar 14, 2008
34,428
sorry I forget, why you have also removed 100ohm resistor? It is really not necessary? thanks
The 100Ω resistor is not needed if the 1kΩ resistor in series with the pot is added.
The 1kΩ resistor prevents you from shorting the opto output when the pot is set to the bottom end of it's range.
 

Thread Starter

OSCAR23

Joined Mar 17, 2016
5
The 100Ω resistor is not needed if the 1kΩ resistor in series with the pot is added.
The 1kΩ resistor prevents you from shorting the opto output when the pot is set to the bottom end of it's range.
Many thanks Crutschow, You're so kind, I"ll try your design.
 

crutschow

Joined Mar 14, 2008
34,428
I take it back.
The 100Ω resistor should be added back in series with the opto output to reduce the peak current charging the capacitor.
It's probably okay without it since the circuit has a low duty-cycle, but it protects the opto from possible excess peak current.
 
Last edited:
Top