I need to build a circuit to control a latching solenoid. This type of solenoid will open when a short 6VDC pulse (under 100ms) is sent to it and will closed when I reverse the polarity and send a "negative" pulse. I want to control it using a press-button: As long as I keep the button pressed, the solenoid is kept open. When I let go of the button, the solenoid will close. This means that when I press the button I have to send ONE "positive" pulse and when I left go, I have to send ONE "negative" pulse. Another requirement I have is that the whole circuit needs to consume no electricity when the button is not pressed. So I guess that when I let go of the switch, I need to keep the power connected for a couple hundreds milliseconds so that the circuit can send the "negative" pulse to close the solenoid.
I know how to program the arduino really well but as for circuit design, I have no idea where to start... any help would be appreciated :)