I have a k40 laser. I need to engrave rubber stamps. I have created two simple scripts, the first convert any image to G0 and G1 code but I found that this method generate a lot of lines with large images and is less accurate. The second script that I've created generate from an image the G7 commands. I need to engrave black pixels and not engrave the white ones.
When I print this gcode the printer engrave any pixel. What i can do or what I need to edit in the code to engrave only black pixel and turn off the laser when there are the white ones.
Firmware version
MK4duo 4.3.9
My setup
Arduino Mega +Ramps 1.4 - K40 Laser (with only one cable for the laser, my printer is old and the intensity is manual)
Issue description
I have a k40 laser. I need to engrave rubber stamps. I have created two simple scripts, the first convert any image to G0 and G1 code but I found that this method generate a lot of lines with large images and is less accurate. The second script that I've created generate from an image the G7 commands. I need to engrave black pixels and not engrave the white ones.
The input image is:![out](https://user-images.githubusercontent.com/58847976/70797230-5e2beb00-1da4-11ea-8b0e-7c3153c5002d.png)
GCode generated: out.gcode.txt
When I print this gcode the printer engrave any pixel. What i can do or what I need to edit in the code to engrave only black pixel and turn off the laser when there are the white ones.
Firmware version
MK4duo 4.3.9
My setup
Arduino Mega +Ramps 1.4 - K40 Laser (with only one cable for the laser, my printer is old and the intensity is manual)
The printer is like this:![co2k4](https://user-images.githubusercontent.com/58847976/70797933-ee1e6480-1da5-11ea-82fc-6b2cdac8bb55.jpg)