Possible to use a solenoid for the z axis?

From the original Synthetos forum (2011–2025)

Started by contacttodd on in TinyG Support. 6 replies, last activity Jul 21, 2014.

#

I just began using the tinyg and really love this hardware! Great job! I have a device that uses a solenoid to control the up or down motion on the Z axis. Is there a way to wire the solenoid to control it with the tinyg? I hate to redesign just to accommodate a stepper motor due to this limitation.

I appreciate any help you could provide.

Staff #

tinyG has outputs (3.3V logic) that control spindle on/off and coolant on/off.
You could use one of these with an appropriate level shifter circuit to drive your solenoid.
You would likely have to manually edit your Gcode, perhaps you do that already.

Or are you looking for a solution driven by Z axis commands?

#

I would prefer to control the Z axis with a solenoid using Z axis commands. I can use a servo if that is more similar to the way this axis should be used. I really just need up/down on this axis and the solenoid is my preferred mechanism. Any suggestions? And thank you for your help!

Staff #

I am thinking that interfacing the 50kHz pulse outputs from the stepper driver to a relay will not work well, at least without a bit of added circuitry,

You might try this:
Reference tinyG V8 diagram

https://github.com/synthetos/TinyG/wiki/Connecting-TinyG

Connect a voltmeter to the 'DIR' pin input to the stepper driver you have programmed to be the Z axis and see if it follows "Up" and "Down" sense in a useful way as you issue G1 Z0 and G1 Z1 commands.
You may find you have to latch the sense (perhaps using the enable (active low)) pin; I'm not sure. That dir lead could then be used, with appropriate level shifter circuit, to drive your solenoid.

#

Ok, I will try it. Going back to your original comment, how does one control the spindle output via GCODE? Thanks again for your help on the fine tuning of using the tinyg.

This topic is from the original forum (July 2014). Your reply starts a new discussion linked to it.

Reply

Different problem? Ask a new question

Back to TinyG Support or latest activity.