Hi, I've been tinkering with a cnc pen plotter. I'm able to run a servo for the z axis but would like to switch it out with a small solenoid. Does anyone have an idea on how to wire it to the cnc shield and then control it with gcode?
wire it to the Coolant Enable pin and control it with M8 to turn it on (equiv to Z down) M9 to turn it off (equiv to Z up)
I'll try that. Any ideas on how I should wire it for power? I have a bunch of small 12 volt solenoids I'll use.
you will need a relay or MOSFET. the pin turns the relay on and off, and the relay switches the 12v for the solenoid. do not omit a snubber diode! keep the 12v wires away from the signal wires to the arduino.