Re: L-Cheapo Laser
Posted: Thu Aug 28, 2014 3:37 pm
That's awesome! I haven't learned how to do photo/picture engraving yet (where one burns a fill rather than a stroke/outline). Can you teach us how you are doing it?
Have a look around and join today!
https://download.seemecnc.com/
My delta is running linuxCNC so its a bit different compared to your reprap. I would image that you could just use a fill instead of a perimeter only setting in your slicer.heathenx wrote:That's awesome! I haven't learned how to do photo/picture engraving yet (where one burns a fill rather than a stroke/outline). Can you teach us how you are doing it?
bubbasnow wrote:My delta is running linuxCNC so its a bit different compared to your reprap. I would image that you could just use a fill instead of a perimeter only setting in your slicer.heathenx wrote:That's awesome! I haven't learned how to do photo/picture engraving yet (where one burns a fill rather than a stroke/outline). Can you teach us how you are doing it?
I got a bebopr++, im cheating a little bit by turning on the laser with a fan M206 P255 code and just using simple profile/pocket cnc tool pathsmkx wrote:bubbasnow wrote:My delta is running linuxCNC so its a bit different compared to your reprap. I would image that you could just use a fill instead of a perimeter only setting in your slicer.heathenx wrote:That's awesome! I haven't learned how to do photo/picture engraving yet (where one burns a fill rather than a stroke/outline). Can you teach us how you are doing it?
Bubbasnow, are you using CRAMPS or BeBoPr++ for LinuxCNC? I haven't gotten my CRAMPS board yet, but am wondering if its difficult to get the laser to work with Linux CNC?
I recommend using a slicer if you want solid infill.heathenx wrote:Soooo...I've been away from my laser for a while. Next up on my list was to figure out how to engrave a filled shape as opposed to only engraving the perimeter of a shape. Doesn't look like I can do it as easily as bubbasnow (linuxcnc) but I got a couple successful attempts. I'm basically just filling a shape with hatch lines via the Eggbot "hatch fill" extension for Inkscape. With it I can control the density of the hatch pattern. My first test was the small square on wood. It came out rather nicely since it was an easy shape. The second test was a logo. It didn't come out as well since it was more complex. I think the amount of nodes that one has on a shape affects the hatching in some way. Regardless, it filled it. Just not the way I liked it. More tests.
I wasn't able to control the rapid feeds with a slicer. In other words, I can't turn off the laser when it's doing a rapid feed and then turn it on again when it's ready to burn a path. Have you managed to do this? What slicer do you use for your laser? I was using Repetier/Slic3r.jesse wrote:I recommend using a slicer if you want solid infill.heathenx wrote:Soooo...I've been away from my laser for a while. Next up on my list was to figure out how to engrave a filled shape as opposed to only engraving the perimeter of a shape. Doesn't look like I can do it as easily as bubbasnow (linuxcnc) but I got a couple successful attempts. I'm basically just filling a shape with hatch lines via the Eggbot "hatch fill" extension for Inkscape. With it I can control the density of the hatch pattern. My first test was the small square on wood. It came out rather nicely since it was an easy shape. The second test was a logo. It didn't come out as well since it was more complex. I think the amount of nodes that one has on a shape affects the hatching in some way. Regardless, it filled it. Just not the way I liked it. More tests.
The easiest way is to just unplug it from your controller while your controller is turned off. Another way is to use a regular expression to remove all EXXXXX statements from the gcode.heathenx wrote: Update: Alright, so I'm trying a slicer again. How do you prevent the EZStruder from running while the laser is running a job? I suppose I could leave it running and just pull out the filament.
If there's a slicer that uses G0 and G1 correctly, then that's ideal. Another way is to change each line that has an extrusion (EXXXXX) gcode to G1 and the rest to G0.Here is how Smoothie laser control works : G0 and G1 are exactly the same command, they take positional parameters ( X10 Y5 Z3 for example ) and move the tool to that position.
The only difference is that when using G0 the laser stays off, and when using G1 the laser is on, only during movement.
Code: Select all
<pre>
<?php
$fp = fopen("basin-buddy.gcode", "r");
$fp2 = fopen("laser-output.gcode", "w+");
$laserOn = false;
while(feof($fp)==false){
$line = fgets($fp);
$comment = "";
$lineMinusComment = "";
if (strpos($line, ";") !== false){
$comment = substr($line, strpos($line, ";"), strlen($line));
$lineMinusComment = substr($line, 0, strpos($line, ";"));
}
else{
$lineMinusComment = $line;
}
if (substr($lineMinusComment, 0, 2) == "G1"){
if (stripos($lineMinusComment, "E") !== false){
if ($laserOn == false){
fwrite($fp2, "M104 200; @@LASER ON@@\n");
$laserOn = true;
}
}
else if ($laserOn == true){
fwrite($fp2, "M104 0; @@LASER OFF@@\n");
$laserOn = false;
}
}
fwrite($fp2, $line);
}
fclose($fp);
fclose($fp2);
echo file_get_contents("laser-output.gcode");
?>
</pre>
2W will not cut aluminumjesse wrote:Also, have you had any success cutting thin aluminum?
Indeed commercial metal cutting lasers are in the multi KW rangebubbasnow wrote:2W will not cut aluminumjesse wrote:Also, have you had any success cutting thin aluminum?
150w can do 2.3mm mild steelPolygonhell wrote:Indeed commercial metal cutting lasers are in the multi KW rangebubbasnow wrote:2W will not cut aluminumjesse wrote:Also, have you had any success cutting thin aluminum?
Can you post the source code?bubbasnow wrote:Here is a post process executable
I made this program that takes a gcode file, grabs points in the file and writes lines that turn the laser on and off and writes a new file.
https://drive.google.com/file/d/0ByTdMD ... sp=sharing
Thanks, maybe I'll convert that to Java so it's free to edit and works on multiple OSes.bubbasnow wrote:sure, it was done in vs2013 in wfa c#
https://drive.google.com/folderview?id= ... sp=sharing
Interesting. Alright, I've downloaded it. What does "Enter Where you want the Laser ON to Occur" or "Enter Where you want the Laser OFF to Occur"? What exactly are we suppose to put there? I'd like the laser to turn off on all G0 rapids and turn on on all G1 moves. Inkscape gcode handles this wonderfully. Slic3r gcode does not.bubbasnow wrote:Here is a post process executable
I made this program that takes a gcode file, grabs points in the file and writes lines that turn the laser on and off and writes a new file.
https://drive.google.com/file/d/0ByTdMD ... sp=sharing