• Stars
    star
    165
  • Rank 228,906 (Top 5 %)
  • Language
    C
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Grbl CNC Controller with Pen Servo Feature

Grbl with Pen Servo Feature (Arduino UNO - ATMega328p version)

This is standard Grbl modified for use with a pen plotter that has a hobby servo for the pen up / down.

The servo will have two positions representing up and down. You use normal gcode. Any time the work Z is above 0 the servo will move to the pen up position. If it is at Z 0 or below it will be in the pen down position.

Installation

Grbl installs as a library. Install Grbl normally as described here and then copy the files in the repo over the Grbl files.

Default setup.

The default setup is for a buildlog.net Pen/Laser Bot Controller. If you are not using that, you need to make sure your schematic matches the pin defined in cpu_map.h

Pen Up / Down Positions

There are (2) defined values in spindle_control.c. You can adjust these values to suite your machine. You can even reverse them to reverse the travel of your servo. Make sure the new setting does not cause the servo to hit an endpoint or it will overheat and damage itself.

define PEN_SERVO_DOWN 31

define PEN_SERVO_UP 16

Performance Tips

Grbl is still running a full range virtual Z axis with accelerations and speeds. Be aware how this will affect your pen. For example: If the Z is at 5 and you tell it to go to -5, the pen will stay up as the virtual z moves from 5 to 0. The pen will then go down. The virtual Z will continue to go down to -5 before it executes the next move. You can control these "delays" by adjusting the speed and acceleration of the Z axis and what your CAM uses a Z locations for up and down.

If you want to have the pen go to the up position at turn on, define a negative Z work offset. Send the command "G10 L2 P0 Z-2". This will trick Grbl into thinking the pen needs to be up.

Donation

Did you find this useful? Please consider a safe, secure and highly appreciated donation via the PayPal link below.

More Repositories

1

Grbl_Esp32

A port of Grbl CNC Firmware for ESP32
nesC
1,680
star
2

FluidNC

The next generation of motion control firmware
C++
1,554
star
3

midTbot_esp32

A Small and Simple Pen Plotter
574
star
4

6-Pack_CNC_Controller

C
281
star
5

Polar-Coaster

The Polar Coaster Drawing Machine
nesC
88
star
6

Grbl_ESP32_MPCNC_Controller

A Grbl_ESP32CNC Controller for MPCNC
nesC
86
star
7

Grbl_ESP32_Development_Controller

A CNC controller to use and test Grbl_ESP32
69
star
8

Grbl_ESP32_TMC2130_Plotter_Controller

63
star
9

4_Axis_SPI_CNC

4 Axis CNC Controller for Grbl_ESP32
59
star
10

TWANG32

ESP32 Port of TWANG LED Game
C
58
star
11

DrawBot_Badge

A Conference Badge that Draws #Badgelife
C++
37
star
12

PSoC_Grbl

PSoc5 Port of Grbl CNC Controller
C
34
star
13

PendantsForFluidNC

Pendants for controlling FluidNC CNC firmware
C
28
star
14

4_Axis_External_Driver

A Grbl_ESP32 Controller for External Stepper Drivers
19
star
15

TMC2209_4x_DK

TMC2209 4 Acis Grbl_ESP32 Controller
C
19
star
16

fluidterm

A Serial Terminal for FluidNC
Python
18
star
17

external_stepper_motor_driver

External Stepper Motor Driver
15
star
18

fluidnc-config-files

Configuration files for FluidNC
Roff
15
star
19

Grbl_HBot_midTbot

A fork of Grbl for the midTbot
C
13
star
20

Tap6x

A 6 axis CNC machine
12
star
21

TMC2209_Pen_Laser

C
12
star
22

Grbl_USB_Native

A PSoC5 port of Grbl with native USB support
C
10
star
23

SgSetup_ESP32

TMC2130 StallGuard2 Setup on ESP32
C
10
star
24

PSoC_Grbl_NickelBot

PSoC5 Grbl CNC for NickelBot
C
6
star
25

camera-slider

A very basic camera slider control program for Arduino
Arduino
6
star
26

GrblController

Demo of vb.net control of Grbl
Visual Basic
6
star
27

ESP32_Atari_1020_Controller

6
star
28

XMOS_ctrl

XMOS Laser Engraver Controller
6
star
29

Basic_OLED_CNC_IO_MODULE

A Basic Status Display in a CNC I/O Module
C
5
star
30

6_Pack_External_Drivers

C
5
star
31

FluidDial

A Pendant for FluidNC CNC Firmware
C++
3
star
32

fluidnc-releases

1
star