Laser Engraver (picture to g-code) for Repetier
Posted: Fri Jan 29, 2016 1:29 pm
Hi everyone. I've written the program to convert images to g-code for Repetier. Tested with 2w 450nm laser on Rostock max with 0.92.8 firmware. Now I've got good prints on leather, pcb(painted with black paint), paper and other materials!!!
[img]http://s019.radikal.ru/i642/1712/21/f36bd91bd904.png[/img]
Well. The program vars:
Laser---------------------
Diameter - the diameter of laser spot in mm(I use 0.1 to 0.05)
On offset and Off offset – the vals in mm which are added to the x-coordinate to compensate the delay of laser on and off
PWM checkbox – checked (switch the laser intensity every time the color is changed between 0 and 255) this requires the laser with TTl connected to the PWM pin of your board and properly configured in firmware(untested); unchecked (switch the intensity to 0 when the color is from white and light grey and to 255 when the color is black and dark grey)
Moves------------------
Travel speed – travel speed
Engrave speed – engraving speed (recommended to set equal)
Travel offset – extra travel move in mm from the edge of the picture (usually 5-10 mm depending on speed)
Start position--------
X, Y, Z – start coordinates (the left bottom corner of the picture)
Center checkbox – checked (the center of the picture will be in the x0 y0 and z of your printing area); unchecked – manually define the center by the X-axis Y-axis textboxes
Picture-----------------
Width and Height – the real dimensions of the picture in mm(you may change them)
Fill angle – the angle by which the picture is rotated
Invert checkbox – inverts the colors from black to white
Start g-code- g-code added at the start of engraving
Finish g-code – g-code added after the engraving is finished
Just open the laser_engarver.exe file, load the picture with the button (…), change the vals that you need and press >>GCODE button, wait and you’ll get the output.gcode file in the folder with the program.
Code-------------------
I've added the Laser On and Off code option if you use M106 or M107 command to turn on\off the laser. If you use repetier - just leave M03.
Here is the program(.NET Framework 4.6.1 required). https://www.dropbox.com/s/ihtobq7o49845 ... r.rar?dl=0
Here is the video https://youtu.be/JpeGIBaGrH8
[youtube]http://www.youtube.com/watch?v=JpeGIBaGrH8[/youtube]
And photos:
[img]http://s019.radikal.ru/i631/1601/7e/579fc1bcb73bt.jpg[/img][img]http://s017.radikal.ru/i408/1601/c0/f7db460c4aa8t.jpg[/img]
[img]http://s017.radikal.ru/i417/1601/8d/266dddfd9209t.jpg[/img][img]http://s020.radikal.ru/i711/1601/78/318e1d53a031t.jpg[/img]
[img]http://s019.radikal.ru/i642/1712/21/f36bd91bd904.png[/img]
Well. The program vars:
Laser---------------------
Diameter - the diameter of laser spot in mm(I use 0.1 to 0.05)
On offset and Off offset – the vals in mm which are added to the x-coordinate to compensate the delay of laser on and off
PWM checkbox – checked (switch the laser intensity every time the color is changed between 0 and 255) this requires the laser with TTl connected to the PWM pin of your board and properly configured in firmware(untested); unchecked (switch the intensity to 0 when the color is from white and light grey and to 255 when the color is black and dark grey)
Moves------------------
Travel speed – travel speed
Engrave speed – engraving speed (recommended to set equal)
Travel offset – extra travel move in mm from the edge of the picture (usually 5-10 mm depending on speed)
Start position--------
X, Y, Z – start coordinates (the left bottom corner of the picture)
Center checkbox – checked (the center of the picture will be in the x0 y0 and z of your printing area); unchecked – manually define the center by the X-axis Y-axis textboxes
Picture-----------------
Width and Height – the real dimensions of the picture in mm(you may change them)
Fill angle – the angle by which the picture is rotated
Invert checkbox – inverts the colors from black to white
Start g-code- g-code added at the start of engraving
Finish g-code – g-code added after the engraving is finished
Just open the laser_engarver.exe file, load the picture with the button (…), change the vals that you need and press >>GCODE button, wait and you’ll get the output.gcode file in the folder with the program.
Code-------------------
I've added the Laser On and Off code option if you use M106 or M107 command to turn on\off the laser. If you use repetier - just leave M03.
Here is the program(.NET Framework 4.6.1 required). https://www.dropbox.com/s/ihtobq7o49845 ... r.rar?dl=0
Here is the video https://youtu.be/JpeGIBaGrH8
[youtube]http://www.youtube.com/watch?v=JpeGIBaGrH8[/youtube]
And photos:
[img]http://s019.radikal.ru/i631/1601/7e/579fc1bcb73bt.jpg[/img][img]http://s017.radikal.ru/i408/1601/c0/f7db460c4aa8t.jpg[/img]
[img]http://s017.radikal.ru/i417/1601/8d/266dddfd9209t.jpg[/img][img]http://s020.radikal.ru/i711/1601/78/318e1d53a031t.jpg[/img]