grbl 0.9i with Servo motor support
C C++ Arduino
Latest commit 1e7a63a Aug 12, 2015 @robottini Update README.md
Permalink
Failed to load latest commit information.
cpu_map GRBL 0.9i with servo motor support. Aug 12, 2015
defaults GRBL 0.9i with servo motor support. Aug 12, 2015
examples/grblUpload GRBL 0.9i with servo motor support. Aug 12, 2015
README.md Update README.md Aug 12, 2015
config.h GRBL 0.9i with servo motor support. Aug 12, 2015
coolant_control.c GRBL 0.9i with servo motor support. Aug 12, 2015
coolant_control.h GRBL 0.9i with servo motor support. Aug 12, 2015
cpu_map.h GRBL 0.9i with servo motor support. Aug 12, 2015
defaults.h GRBL 0.9i with servo motor support. Aug 12, 2015
eeprom.c GRBL 0.9i with servo motor support. Aug 12, 2015
eeprom.h GRBL 0.9i with servo motor support. Aug 12, 2015
gcode.c GRBL 0.9i with servo motor support. Aug 12, 2015
gcode.h GRBL 0.9i with servo motor support. Aug 12, 2015
grbl.h GRBL 0.9i with servo motor support. Aug 12, 2015
limits.c GRBL 0.9i with servo motor support. Aug 12, 2015
limits.h GRBL 0.9i with servo motor support. Aug 12, 2015
main.c GRBL 0.9i with servo motor support. Aug 12, 2015
motion_control.c GRBL 0.9i with servo motor support. Aug 12, 2015
motion_control.h GRBL 0.9i with servo motor support. Aug 12, 2015
nuts_bolts.c GRBL 0.9i with servo motor support. Aug 12, 2015
nuts_bolts.h GRBL 0.9i with servo motor support. Aug 12, 2015
planner.c GRBL 0.9i with servo motor support. Aug 12, 2015
planner.h GRBL 0.9i with servo motor support. Aug 12, 2015
print.c GRBL 0.9i with servo motor support. Aug 12, 2015
print.h GRBL 0.9i with servo motor support. Aug 12, 2015
probe.c GRBL 0.9i with servo motor support. Aug 12, 2015
probe.h GRBL 0.9i with servo motor support. Aug 12, 2015
protocol.c GRBL 0.9i with servo motor support. Aug 12, 2015
protocol.h GRBL 0.9i with servo motor support. Aug 12, 2015
report.c GRBL 0.9i with servo motor support. Aug 12, 2015
report.h GRBL 0.9i with servo motor support. Aug 12, 2015
serial.c GRBL 0.9i with servo motor support. Aug 12, 2015
serial.h GRBL 0.9i with servo motor support. Aug 12, 2015
settings.c GRBL 0.9i with servo motor support. Aug 12, 2015
settings.h GRBL 0.9i with servo motor support. Aug 12, 2015
spindle_control.c GRBL 0.9i with servo motor support. Aug 12, 2015
spindle_control.h GRBL 0.9i with servo motor support. Aug 12, 2015
stepper.c GRBL 0.9i with servo motor support. Aug 12, 2015
stepper.h GRBL 0.9i with servo motor support. Aug 12, 2015
system.c GRBL 0.9i with servo motor support. Aug 12, 2015
system.h GRBL 0.9i with servo motor support. Aug 12, 2015

README.md

grbl-servo

grbl 0.9i with Servo motor support

GRBL 0.9i with servo motor support. Use the PIN D11 to drive the servo. Use the commands M03 Sxxx (xxx between 0 and 255) to rotate the servo between 0-180. The command M05 turn the servo to zero degrees.

you can change the pulse duration in the file spindle_control.c:

define RC_SERVO_SHORT 15 // Timer ticks for 0.6ms pulse duration (9 for 0.6ms)

define RC_SERVO_LONG 32 // Timer ticks for 2.5 ms pulse duration (39 for 2.5ms)

define RC_SERVO_INVERT 1 // Uncomment to invert servo direction

If you want to have the servo working from 0 --> 180 degrees change RC_SERVO_SHORT and put 9, RC_SERVO_LONG and put 39 If you want invert the servo direction uncomment the line above.

I tested the code very well with 328p (Arduino Uno, Duemilanove etv), not with 2560 (Arduino Mega), but I think it would work well also with the Mega.


The link for GRBL vanilla is: http://github.com/grbl/grbl

Grbl is a no-compromise, high performance, low cost alternative to parallel-port-based motion control for CNC milling. It will run on a vanilla Arduino (Duemillanove/Uno) as long as it sports an Atmega 328.

The controller is written in highly optimized C utilizing every clever feature of the AVR-chips to achieve precise timing and asynchronous operation. It is able to maintain up to 30kHz of stable, jitter free control pulses.

It accepts standards-compliant g-code and has been tested with the output of several CAM tools with no problems. Arcs, circles and helical motion are fully supported, as well as, all other primary g-code commands. Macro functions, variables, and most canned cycles are not supported, but we think GUIs can do a much better job at translating them into straight g-code anyhow.

Grbl includes full acceleration management with look ahead. That means the controller will look up to 18 motions into the future and plan its velocities ahead to deliver smooth acceleration and jerk-free cornering.

Licensing: Grbl is free software, released under the GPLv3 license.

For more information and help, check out our Wiki pages! If you find that the information is out-dated, please to help us keep it updated by editing it or notifying our community! Thanks!

Lead Developer [2011 - Current]: Sungeun(Sonny) K. Jeon, Ph.D. (USA) aka @chamnit

Lead Developer [2009 - 2011]: Simen Svale Skogsrud (Norway). aka The Originator/Creator/Pioneer/Father of Grbl.

The link for GRBL vanilla is: http://github.com/grbl/grbl