DC latching solenoid controller