It has five wires i.e. Red, Black, Blue, Green and Yellow. By connecting Yellow wire to + terminal of battery and blue to - terminal, drives the valve open and reversing this arrangement (Yellow to - terminal and blue to + terminal) drives the valve closed.
A manual from the manufacturer tells the following information given in the picture attached.
I want to control this valve through Arduino nano. As my opinion, yellow and blue wires should be connected to battery directly and valve should be drove through signal wires connected to arduino. Can anyone please help me out in this matter?
The aliexpress page which you linked to, appears to contain several different ways you can wire up this device using a switch, a relay, or a microcontroller.
Can you find a chinese person who can read what it says ?
The problem you will likely find, is that the solenoid which moves this valve, will require more current than the arduino can supply directly from it's output pins. You will probably need a transistor circuit or a small relay to activate it.l
Actually, I'm not sure. There are 6 diagrams labelled CR01 CR02..CR06, it is not clear to me whether that it 6 different method of connecting one kind of valve. Or 6 different model variants of their valve. If the latter case, it is not clear which type they are selling.
You probably need two relays to switch the power wires, as shown in the diagram. You will need a relay module with a built-in transistor circuit on the actuator coil side, or get a transistor to turn the relay on and off.
You might want to look at DPDT relays, which can be used for reversing polarity like that. Or a motor H-bridge circuit would also do it.
The other three wires are for feedback to the microcontroller to indicate when the valve reaches either end of it's movement. You would want to detect those, and then turn off the power.
The circuit shows that the motor windings need to be powered in each direction to open then to close. This will require a bridge or relays to do the same. You will need two relays. One to switch the power on or off and the other to swap the polarity applied to the windings.
The other outputs indicate open or closed and will need to be monitored to remove power at full on or full off.
Thank you so much for your replies. I chose CR05 model because It has on and off wires as according to the attached diagram when green wires is connected to black, valve opens and when red wire is connected to black wire, valve gets closed. But I am failing to understand where to connect black wire. Actually I have very little experience with Arduino and It's first time I am playing with motorized valve.
As far as I understand;
Yellow wire connects to positive terminal of 4.2 v battery
Blue wire connects to negative terminal of battery
Green wire connects to Arduino digital pin 5
Red wire connects to Arduino digital pin 6
Black wire connects to Arduino ground.
When digital pin 5 will be written HIGH, and digital pin 6 will be written LOW, There will be a connection between Green and Black wire and valve will open.
When digital pin 6 will be written HIGH and digital pin 5 will be written LOW, Red wire will connect to black wire and valve will close.
The power to the motor needs to be swapped to open or close. The switches are there to tell you when the valve is open or closed. You need to use a circuit to swap the polarity of the motor.
Look at the circuit. The +- is a battery. The switches are the circuit to swap the polarity. You can use relays or H bridge.
There is no connection between the switches and the motor (unless you do so).
Thank you so much Weedpharma. But I did not understand as I am newbie in this field. Can you explain it a little bit? I have L7812 TO-220 Voltage Regulator and resistances for making H-Bridge to change the polarity. But my question is, the company from which I bought these valves are manufacturing the valves in SIX DIFFERENT types. The type I bought is CR-05 which holds 5 wires as they claims that this CR-05 can be controlled via Micro controllers. If I need H-Bridges or relays for changing polarity then what is the use of rest of 3 wires except positive and negative? and their other models such as CR-01 can also be used with H-bridge or relays, What is the purpose for manufacturing different kind of models?
Two wires power the motor. Three wires are used to tell the micro when the tap has fully opened or closed. This is necessary to stop the power to the motor.
You need a H bridge or relays to change the polarity to the motor.
Basically you drive the motor until the "fully open" switch operates, then turn off the power. When you want to turn it off, you drive the motor with reverse power until the "fully closed" switch operates, then turn off the power.
Shows how you can reverse the power to the motor. One relay changes polarity while the other switches power.
Note the comment to change direction before turning on the power.
i connect them to a L298N Dual H Bridge works great
dn15 is 1/2 BSP dn20 is 3/4 and so on i buy the 3 way and cap the end off one port but i still have th option to redirect the flow
No no no vickeyhort you are wrong, it's much simpler than that
Yellow and Blue wirre is connected to the DC motor and the polarity of these determines the direction of rotation of the motor.
Yellow connected to ground, and Blue to power,opens the valve.
Yellow connected to power, and Blue to ground,closes the valve.
Then there are end positions which contacts the black cable to either red or green cable.
When there will be a connection between Green and Black wire, the valve is fully open.
When Red wire will connect to black wire, the valve is fully close.
You can use this to ensure that the engine does not keep working when the valve is in its end position.
So the limit switch closes at end of travel? That's ass - backwards, if they opened at end of travel they could be used to break the coil current of a relay and stop the motor.
Hi, Relay board like THIS: would be good for motor control part. You don't need speed control, right? Then electronic H-bridge is not needed.. 2 single-pole double-throw relays like that are a type of "H-bridge" if you wire them that way. Like this:
This from THIS PAGE: on ArduinoInfo.Info Thanks to Mike Cook!