Skip to content

take gcode and do a poor job trying to optimize it

License

Notifications You must be signed in to change notification settings

the-amaya/optGcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

optGcode

GitHub language count GitHub top language GitHub code size in bytes GitHub GitHub contributors GitHub last commit Scrutinizer code quality (GitHub/Bitbucket)

new features!

laser etching!

using CAM files and a bit of manual prep we can generate a gcode file to run a laser to etch the component side of the board.

nested silkscreen

nesting!

You can now use this to nest g-code (non-rotationally) to fill out a PCB

input g-code with outlines at a random spot X,Y

raw layout

we then move the g-code to 0,0

clean layout

then we nest it as many times as possible

nested layout

features

take gcode and do a poor job trying to optimize it

The gcode that we start with looks something like this

start

After running this crappy code it looks something like this

finish

usage instructions as of dec 8th

in eagle

run ULP 'pcb-gcode-setup' to get bottom etch and drill files
file > 'generate CAM data' (cam data is used in flamcam in next step)

in flatcam

'open_gerber <top-silkscreen-file.cam> -follow 1 -outname GTO_follow'
'follow GTO_follow -outname silk_geo'
'cncjob silk_geo'
'write_gcode silk_geo_cnc silk.gcode'

in notepad

edit silk.gcode from flatcam
remove headers/footers
find and replace (include trailing/leading spaces as indicated):

	'Y' -> ' Y'
	'\n' -> '\nN0 '
	'G01 Z-0.0020' -> 'M03'
	'G00 Z0.1000' -> 'M05'

in gcodestuff

run and select the 3 files we created above

About

take gcode and do a poor job trying to optimize it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages