Pulse latching solenoid help needed

Hi,
I need help please how to control a 9v pulse latching solenoid valve.
It needs only a pulse and a reversed pulse to open/close.
I have tried with an 500mA adaptor directly, and works fine.
I have external power supply to feed the valve instead of the arduino board.
Can somebody show some example circuit please how to do this?
I have checked this, but it is enough??

Thank you!

A 2n2222 would suffice, a flyback diode in reverse across the relay should do it.

What do you think about this example?:

First indestructible link is fine...

Second one, I'm not sure is it a h bridge driver? Driver?.

cjdelphi:
A 2n2222 would suffice, a flyback diode in reverse across the relay should do it.

Would that work for a solenoid that needs to be driven both ways? Perhaps a bipolar capacitor would work better in that case, together with a resistor to limit the inrush current?

PeterH:

cjdelphi:
A 2n2222 would suffice, a flyback diode in reverse across the relay should do it.

Would that work for a solenoid that needs to be driven both ways? Perhaps a bipolar capacitor would work better in that case, together with a resistor to limit the inrush current?

He wanted a pulse, that would work, but to unlatch it does it require 0v or -5v?

Needs current flow pulses in both directions, one to latch, one to unlatch.
H-bridge is the way to go.
If 500mA makes it work, then L293D should be sufficient.
Internal diodes, no external diodes needed.

Hi,

L293D works fine!

Thanks.