Here's a new Schem. included another Resistor to the MOSFET, only was not sure about it's capacity.
Please advice if this looks good or needs more changes?
thanks
Hi,As shown in last schematic, it should work.
How often will the solenoid be switched on and off?
Stop back and let us know how it works out either way!
Thank you so much for taking the time:What is the part number of the optocoupler?
With the 220Ω Current limiting resistor between the uC and optocoupler LED, that will allow a 22mA drain from the UC, which may be a bit on the high side, causing the votlage sag. Try a 1k resistor in place of the 220Ω for less current draw on the uC.
Please measure the voltage at:
A) Mosfet Gate
B) Mosfet Source
C) Mosfet Drain
D) uC side of R2
E) Optocoupler side of R2
Both with +5V to the Optocoupler and without. i.e. Those 5 measurements (referenced to ground) while it is "on" and while it is "off".
It may just be some resistors changing. Are you using the 24V supply, or just the 9V supply?
Hi,What is the part number of the optocoupler?
With the 220Ω Current limiting resistor between the uC and optocoupler LED, that will allow a 22mA drain from the UC, which may be a bit on the high side, causing the votlage sag. Try a 1k resistor in place of the 220Ω for less current draw on the uC.
Please measure the voltage at:
A) Mosfet Gate
B) Mosfet Source
C) Mosfet Drain
D) uC side of R2
E) Optocoupler side of R2
Both with +5V to the Optocoupler and without. i.e. Those 5 measurements (referenced to ground) while it is "on" and while it is "off".
It may just be some resistors changing. Are you using the 24V supply, or just the 9V supply?
by Duane Benson
by Jake Hertz
by Duane Benson