Yes this will work fine.  Please add a flyback diode to your solenoid
current.  That is a diode to flow current from the negative terminal
to the positive when you cut current to the solenoid.  The back EMF
spike can be quite high when the coil field collapses.

Reply via email to