Skip to content

5c0tt411en/grblP5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grblP5

grbl library for Processing.
This repo is especially focused on using plotters, laser cutter(not considering z-axis and linear power).

Usage

import library

import processing.serial.*;
import grblP5.*;

instance

GrblP5 plotter;
plotter = new GrblP5(this, GrblP5.list()[2], 115200);
/*GrblP5.list()[2]: port name
115200: baud rate*/

list

List devices to make sure what the port name is:
String[] list = plotter.list();

unlock

Unlock from the alarm state:
plotter.unlock();

home

Just go to the home position:
plotter.home();

homing

Determine the home position with limit switch trigger:
plotter.homing();

pen up / down

Control pen up / down with servo motor:
plotter.servo(Boolean flag);

drawing

All drawing methods can be written like Processing.

rectangle

Draw rectangle:
plotter.rect(float x, float y, float w, float h)

circle

Draw circle:
plotter.circle(float x, float y, float r)

line

Draw line:
plotter.line(float x1, float y1, float x2, float y2)

go to position

Just go to position:
plotter.goTo(float x, float y)

Examples

Examples/basic/bacic.pde

Examples/linesOnCircle/linesOnCircle.pde

Examples/linesOnCircleSpiral/linesOnCircleSpiral.pde

Examples/perlinNoise/perlinNoise.pde

Examples/facePerlinNoise/facePerlinNoise.pde

Examples/signiture/signiture.pde

Gallery

360 lines

linesOnCircleSpiral_

perlin noise field

perlinNoise_

perlin noise face

facePerlinNoise_

signiture agent

signiture_

To-do

More examples for geidai plotter workshop.

  • xml inclusion in grblP5 Library

geidai workshop

flyer

About

grbl library for Processing

Resources

License

Stars

4 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages