add servo motor support using cprezzi and DWiskow approach#811
add servo motor support using cprezzi and DWiskow approach#811lavolpecheprogramma wants to merge 1 commit intognea:masterfrom
Conversation
|
Hello, Do you have any idea how to solve such a problem? My knowledge of C is quite limited, but one thing is for sure, it could not rely on the standard PWM! I think solving this issue would make this inclusion to the grbl controller much more versatile. Thanks, and thanks to the grbl maintainers ! |
|
The hardware PWM approach was the only option to fit in the extremly limited space of the atmega328 chip. Grbl already uses almost all available space. |
|
Thanks for the answer! That's what I feared. For those who face the same issue as me, the alternative is to use a separate board to convert the PWM to a servo signal. You can then use the standard spindle code to precisely control the servo. You can make such a board with a simple 555, or find some sellers that make them (for exemple, see here) |
|
By the way. The servo option was not made to give you a fine controll of the servo position, it's made for pen plotters where you just need pen up or down. The exact positioning is made in hardware. |
|
Hi I used this version 1.1h for plotter but I noticed that when homing the servo/spindle is disabled giving me unwanted pehavier. edit: |
|
Inverting the Servo makes it move up and down whenever i want to home or move the axis. And the dual homing function does not work sadly. |
I merge the changes done by @DWiskow in this repository with grbl 1.1h version.
DWiskow explains his work in this post and I replicate it in 1.1h release.
Now you can enable the servo on z axis directly in config.h like the @cprezzi approach.
Thanks for your work.