grblHAL / core

grblHAL core code and master Wiki
Other
320 stars 84 forks source link

Controlling RC Servos? #239

Closed DrKlipper closed 4 months ago

DrKlipper commented 1 year ago

Hi ! Maybe I missed it, but is there any way of controlling RC Servos? I´m planning an Pen Plotter which uses a rc servo to move the pen up and down. Is there any way to do this in grblHal using M3/M5 commands? And if not are there plans to include this?

And if this is not possible ... Can I use a stepper for this purpose?

terjeio commented 1 year ago

Maybe I missed it, but is there any way of controlling RC Servos?

Most drivers supports this, see note 13 at the bottom of the drivers list for how to for those that do.

And if this is not possible ... Can I use a stepper for this purpose?

Yes, and you may also use a solenoid - here is a plugin that reduces the current after a short delay.

DrKlipper commented 1 year ago

Most drivers supports this Oh, that is great to know.

And which gcode commands will control this? Is it M3, M4, M5 like for Lasers?

terjeio commented 1 year ago

M3/M4 + S value to move, M5 for back to "home" position.