I received a sample latching solenoid valve:
G1/2 Inchtop Quality Dc 5v 6v 9v 12v 24v Latching Pulse 2-way Normally Closed Water Faucet Solenoid Valve With Good Price - Buy 5v 6v Solenoid Valve,Solenoid Valve Water 6v,Automatic Water Solenoid Valve 6v Product on Alibaba.com
I want to control it using an Arduino Pro Mini, running a 5V. AFAIK, I can't control it just connecting it to a digital pin since the absolute max current is 40mA.
As per the description pulse width should be 25ms. Not sure how to do that with the Arduino.
Setup is powered by a 18650 battery + MT3608 boost module (5v)
Can you help?
MarkT
September 4, 2019, 12:16am
2
Think that's a bipolar drive, so an H-bridge is probably needed to switch it.
digitalWrite (pin, HIGH) ; // drive a pin for 25ms
delay (25) ;
digitalWrite (pin, LOW) ;
Thanks Mark!
I got more info from the manufacturer:
Valve opens on (+) pulse, closes on (-) pulse.
It can be powered with 5v and a pulse of 25ms
Current is 0.23A
It definitely looks like I need external electronics to drive it. BTW, how do I send a negative pulse to close the valve?
dougp
September 4, 2019, 9:07pm
4
vazquezjm:
It definitely looks like I need external electronics to drive it. BTW, how do I send a negative pulse to close the valve?
That's what the H-bridge is for, to reverse the polarity.