Duetwifi solenoid connection
-
Hi guys,
I have a workbee with duetwifi and I am using it for woodworking. At the moment I have attached to my cnc air blow and I use it manually with my hand to open or close before starting a gcode. What I would like to do is to use fan0 pwm port to open or close the valve with gcode command. As I undersrand it is possible with relay, diode and solenoid. Coul you please help me out what is the right way to do it? I am a woodworker and I would appreciate very clear advices and comments as I do not have any electrical background. -
Depending on how much current the solenoid uses, you may be able to drive it directly from a fan output, if the voltage it needs is the same as VIN. if it needs a little more current than a fan output can drive, you cold use a heater output instead, but then you will also need to add a flyback diode.
Do you have the details of the solenoid?
-
@dc42 I would like to use something like that:
Solenoid Valve Model : 2W-025-08
Body Material : Brass
Working fluid : air, water, oil
Type : normally closed
Take over pore diameter : 1/4 "
Flow pore diameter : 2.5mm
Seal Material : NBR
Voltage : 12V DC
Pressure range : 0 - 1.0Mpa
Fluid temperature : -5 - 100 βI would like to connect it to my existing air system with 1/4 inch connection. It seems that it uses 12 DC power. How should I connect it correctly? Should I use realy with diode? If yes, any spwcifig diode and relay needed?
-
@edmundas323 said in Duetwifi solenoid connection:
2W-025-08
According to https://www.amazon.com/creatorele-2W-025-08-Electric-Solenoid-Diesel/dp/B074BZD4JT that valve draws 1.4A. So you could drive it directly from a fan output. There is also a 24V model, see https://www.amazon.co.uk/Heschen-Electric-Solenoid-Normally-Replacement/dp/B071NVVTTQ.
-
@dc42 I am lost here, so I can connect this solendoid valve even if it is 12V or 24V to the fan0 pwm port? How is it possible ir duet port is just 5V?
-
@edmundas323, what VIN voltage will you provide to the Duet? Normally 12V or 24V.
-
@dc42 I use from Ooznest it is 24.4V. But as I understand fan0 port provides 1.5A and 5V or I am missing here something?
-
@edmundas323 there is a jumper just below the fan connectors that allows you to select 5V or VIN. If VIN is selected on the jumper it will supply all the fans with 24V from the power supply.
-
@richardmckenna that is an amazing info. I can see where 5V is written the pin is without the cover, and nearly I can see plastic part covering v_fan and vin, so it means it is 24V powered?
-
@edmundas323 said in Duetwifi solenoid connection:
@dc42 I use from Ooznest it is 24.4V. But as I understand fan0 port provides 1.5A and 5V or I am missing here something?
The fan ports are switchable (as a block) between VIN and 5V. So I recommend you purchase the 24V version of that valve. It will also draw half the current of the 12V version. Search for "2W-025-08 24vdc".
-
@dc42 Thank you guys, you are amazing. And the command in the gcode is m106 0 255?
-
@edmundas323 said in Duetwifi solenoid connection:
@dc42 Thank you guys, you are amazing. And the command in the gcode is m106 0 255?
You can use M106 P# S1.0 or M106 P# S255, where # is the fan number. If you will keep the solenoid energised for a long time, then you may wish to reduce the current after a second or so to reduce heating. For example M106 P# S0.5 will reduce it to half current.
-
@edmundas323 yeah take a look here https://duet3d.dozuki.com/Wiki/Duet_Wiring_Diagrams you want the jumper on the VIN and V_FAN pins.
-
@dc42 thank you for you help. Amazing support.
-
@richardmckenna thank you so much for you support. Very, very helpful.
-
@dc42 I am planning to use solenoid open when router bit hits the aluminum surface, basically to blow the mist, usually it takes about 7 minutes, do you think it might be a problem to keep ot open that long?
-
@edmundas323 said in Duetwifi solenoid connection:
@dc42 I am planning to use solenoid open when router bit hits the aluminum surface, basically to blow the mist, usually it takes about 7 minutes, do you think it might be a problem to keep ot open that long?
Probably not, but it's so easy to reduce the current after pull-in that you might as well. Most solenoids need much less current to hold position than they do to pull in.
-
@dc42 wow, thats a good thing to know. As I understand when I open the valve, I can just after few second use same comand with half of power just to keep everything open. Amazing