gnea / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
4.05k stars 1.61k forks source link

Use Servo as Z Axis? #983

Closed pcace closed 1 year ago

pcace commented 3 years ago

Hey there, i just found GRBL and tried to find any Info on how i would use a servo as Z Axis? Is there any way to do that in code? (i am building a pen plotter and just need up/down for a servo)

Thanks a lot!!!

Elmi77 commented 3 years ago

Can't you use the direction-pin which is on for on direction and off for the other?

svenhb commented 3 years ago

I like to use: https://github.com/cprezzi/grbl-servo/tree/eggbot/grbl

jhaand commented 2 years ago

I like to use: https://github.com/cprezzi/grbl-servo/tree/eggbot/grbl

It would be really nice to merge the servo spindle control with GRBL 1.1 as a build flag. I have very serious problems with sending gcode to my pen plotter with GRBL 0.9 and modern software bCNC, gSender, Candle.

I will see if I can create a PR.

svenhb commented 2 years ago

Do you know this version? https://github.com/cprezzi/grbl-servo

https://grbl-plotter.de/index.php?id=quick-guide&setlang=en

jhaand commented 2 years ago

@svenhb That looks already better. Unfortunately the grbl-plotter only works under Windows and not Linux.

But the grbl-servo by @cprezzi already seems to work with GRBL 1.1 Now to invert the Y-axis with CoreXY.