grblForCyclone icon indicating copy to clipboard operation
grblForCyclone copied to clipboard

Servo support

Open Niekvdplas opened this issue 8 years ago • 5 comments

Hi Carlos,

I am using your firmware for my school project, for our Z-axis we want to use a 9g servo to move the pen up and down. Is there already servo support in this version which i dont know of? Or will you be implementing this? I hope you might be able to help us or atleast guide us on how to implement this since we are eager to learn

Yours sincerely,

Niek van der Plas

Niekvdplas avatar Mar 23 '17 23:03 Niekvdplas

Hi Niek! I have not used servos with GRBL. Maybe you could incorporate the servomotor code in the ramps.h file. There is a rampsInitSteppers() and rampsWriteDisable() function where the servo could be initiated, attached or detached, instead of the Z motor pins. Also in that file there is rampsWriteSteps() and rampsWriteDirections(), the code to move a servo could potentially go there.

CarlosGS avatar Mar 28 '17 16:03 CarlosGS

Hey Carlos,

I will try what you just said, I hope you know what to do when i don't :D Thank you very much for your time

Sincerely,

Niek

2017-03-28 18:36 GMT+02:00 Carlos Garcia Saura [email protected]:

Hi Niek! I have not used servos with GRBL. Maybe you could incorporate the servomotor code in the ramps.h file. There is a rampsInitSteppers() and rampsWriteDisable() function where the servo could be initiated, attached or detached, instead of the Z motor pins. Also in that file there is rampsWriteSteps() and rampsWriteDirections(), the code to move a servo could potentially go there.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CarlosGS/grblForCyclone/issues/3#issuecomment-289828855, or mute the thread https://github.com/notifications/unsubscribe-auth/AYmoJsOMsJuPO7bZSaK9lt1TRdCJW_jGks5rqTbygaJpZM4MneuG .

Niekvdplas avatar Mar 28 '17 16:03 Niekvdplas

I need to do a few things:

  • Make the servo connect to the ramps
  • give it a gcode command for it to move

2017-03-28 18:43 GMT+02:00 niek plas [email protected]:

Hey Carlos,

I will try what you just said, I hope you know what to do when i don't :D Thank you very much for your time

Sincerely,

Niek

2017-03-28 18:36 GMT+02:00 Carlos Garcia Saura [email protected]:

Hi Niek! I have not used servos with GRBL. Maybe you could incorporate the servomotor code in the ramps.h file. There is a rampsInitSteppers() and rampsWriteDisable() function where the servo could be initiated, attached or detached, instead of the Z motor pins. Also in that file there is rampsWriteSteps() and rampsWriteDirections(), the code to move a servo could potentially go there.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CarlosGS/grblForCyclone/issues/3#issuecomment-289828855, or mute the thread https://github.com/notifications/unsubscribe-auth/AYmoJsOMsJuPO7bZSaK9lt1TRdCJW_jGks5rqTbygaJpZM4MneuG .

Niekvdplas avatar Mar 28 '17 17:03 Niekvdplas

Hi Niekvdplas Did you archieve something?

Klariff avatar Aug 27 '17 16:08 Klariff

@Niekvdplas i was looking for the same. Please tell us if you have found a solution to that?

praful15 avatar Apr 06 '18 08:04 praful15