… to this forum as it seems more appropriate for this group.
…
Here is my first shot at the air assist solenoid driver design. WARNING! I have not done any testing or checking of this design yet!
Solenoid:
I am in the blind on the solenoids power rating. Some solenoids are designed for intermittent operation and some for continuous duty. I have no way of telling what this ones rating is. Depending on how long [cutting time] its on it may get hot, it may eventually fail. We will just have to test it. Mounting it to a heat sync or metal surface can help.
Schematic:
The attached schematic has the guts of the KNACRO and the external connections laid out. This includes an inline fuse.
Smoothie connection:
We need to decide exactly how you will connect this to the smoothie.
There are two approaches:
1.) The input is supposed to handle >3V <20V. So you could connect to a 3.2v port on a header somewhere. I think this approach is marginal and I do not like driving 3.2v directly from the processor and off the board. I have seen this work however.
2.) IMO the best approach is to use an OPEN DRAIN [What is an open drain on a FET device and how is it used?]
connection using one of the small MOSFETS. This setup will turn on the opto-coupler’s LED to fire the solenoid. However the IN pin needs a DC voltage and 24vdc is to high for this setup without modifications. We can add a resistor in series with the IN pin to get the operating point correct. I do not know what current LED (L1) will handle so we may have to remove and short it out. Haven’t done any calcs yet on the 817 input.
Let me know how you want to connect to the Smoothie and I will calculate the added resistor etc.
Well that works for me. My Amazon order will be here tomorrow so I will start testing asap. I’ll have to figure out an open drain on the smoothie and how to configure the firmware but I have a pretty good idea on where to start with that.
1.) Connect 24vdc across the solenoid and verify it works. If so connect solenoid to ST2.
2.) Connect the diode D1 properly across ST2
3.) Connect +24vdc and 24vdc gnd to the respective pins on the driver power terminal ST3,
4.) Connect plus 12vdc to the “IN” (VSS). Connect both 12vdc and 24vdc power supply grounds together.
5.) touch the “Gnd” on ST1 pin to ground… solenoid should energize by mosfet.
BTW my calcs show that you should be able to use 24vdc on the “IN” pin.
6.) If everything above works then replace the plus 12V with plus 24V and rerun.
@Chuck_Comito I would use P2.6 as we don’t need high current drive and that will leave P2.7 for other high current stuff.
You can still use P2.7, just substitute its location and name for P2.6 below.
… LOL, while reading the schematics I realized that you could probably just drive the solenoid directly from P2.7 …uggh. You would still need to add the 1N4001 across the output. Although the MOSFET has an internal snubber diode they are often not robust enough for high inductance devices like motors and solenoids.
The advantage of this design however is that the solenoid is isolated from the smoothie’s power etc. via the opto-coupler and all high currents are off the board. Probably overkill but I run all my externals opto-isolated and off the board.
…
I updated the schematic and included an image [click link] of the P2.6’s connector location and the circuit inside the smoothie. https://www.digikey.com/schemeit/project/knacro-mosfet-trigger-module-K0OMDHG301RG/
To test, on the smoothie board, insure that the “+” of X8 is 24vdc ( I assume your VBB is 24vdc) by measuring it to smoothie ground.
When in operation the “-” of X8 should be the drain of the smoothie MOSFET and provide the ground to ST1 to turn on your external driver.
Smoothie Configuration
In the configuration file you want to assign a M code to that switch.
You can change the M command code to whatever you like as long as it does not conflict withe M commands you are using. The M106-107 are typically FAN controls so you should be good.
Hi @donkjr , I’m wired up and ready to go with smoothie. Does the firmware switch function require a defined pin? Something like:
switch.airassist_solenoid.enable true
switch.airassist_solenoid.output_pin 2.6
switch.airassist_solenoid.input_on_command M106
switch.module_name.input_off_command M107
Or is that not needed because we are using the fan and it will default to that pin? That would seem odd to me. Thoughts??
Yes. I meant to post a status update but forgot to hit post. I turned the gcode slider on for the air assist in lw4 and set the gcode on to M106 and off to M107. After I renamed the switch module it worked great!
@Chuck_Comito Yes! so we are ready for a write up?
Can you share a G Photos album with pictures of your setup :).
I have not done this with LW so some screen shots of setup would be useful.