Fun with Lightburn, lasers, and dithered images

Great jobs, David! Quick question… are you still running Marlin on your MPCNC that you’re using with Lightburn? Or is it using grbl?

1 Like

Hey, Heath! I’ve come to really appreciate Grbl… especially its ease of use, changing settings on the fly, and the dynamic laser mode of versions 1.1f and later. And Lightburn is a powerful, multi-platform, piece of software that is well worth the $40 and pretty much replaces most of the Inkscape/Jtech laser plugin functionality I’ve used in the past… not all, but most. I don’t use Lightburn for machine control, however… only to process artwork and generate gcode (it can do both Grbl and Marlin). For machine control, I’ve grown fond of using the Pi/V1Pi/CNC.js combo… from my Chromebook/Linux(beta) laptops and recliner. Nothing fancy… but I find this workable for most of the work I do; i.e. mostly laser, some light CNC, and even a little hot-wire. For 3d printing, I don’t do anything special at all… I simply use the front-panel LCD interface on my Prusa MK3S.

2 Likes

I gave Lighburn a trial about a year ago, but while it generated compatible gcode for Marlin, the results just weren’t as good as Estlcam and image2gcode. The developer said at the time that Marlin was the least recommended controller option. Despite those issues, I loved the program, but put off buying it either until I switched to grbl or it offered more support for Marlin. I haven’t switched to grbl yet so I was just curious how it’s Marlin support had come along.

1 Like

I have not kept up with any Marlin changes in the meantime either…

Hi again David,

I was able to start the tests. I thought this would be a piece of cake, but it wasn’t.

My first test was… well, see for yourself:

Doing a little research on the forum seems to be a common firmware problem. I made a modification to the “Marlin.cpp” file, following this thread:

https://forum.v1e.com/t/more-laser-advice-firmware/13389/42?u=roger181078

I do not know if this modification will negatively affect any aspect when my machine does not work with the laser, but well, now the result is quite better.

The software I use is “Image2Gcode”.

Any suggestions are welcome. Add that my machine is an LR2, with this firmware. My electronics is Ramps, and I use pin 44 with the M106 and M107 commands to control the laser.

Regards
Roger

Roger,

Hate to tell you… but none of this stuff is “a piece of cake” :wink:

Here is a lengthy thread from a year or two ago, that will give you some history behind the firmware mods (that I think you’ve applied) that had to be applied to get good engravings from the later versions of Marlin. In that same thread, I also discovered Victor’s ImageToGcode program, which seemed to give me better results at the time than the Image2Gcode program I had been using… and which you are using now. It’s confusing but, though similarly named, these are NOT the same program.

TBH I don’t remember much about all the testing and discussion we did (probably an age thing…I’d have to re-read the thread) and don’t know whether those mods actually made it into the current Marlin build (Ryan and Jeff should know…). Since then I’ve come to prefer Grbl for my stable of machines (I don’t currently have any set up with Marlin…) and discovered Lightburn. Grbl just seems better suited for laser use with its “laser mode” (M4 power adjustment with feedrate), ubiquity, and ease of use. And Lightburn runs beautifully in Linux and is very powerful/versatile while both Image2Gcode and ImageToGcode are Windows programs… so Lightburn has become my preference and I’m happy to pay the $40 for a license.

In short, all I can suggest is to read through the referenced threads and hope that someone who is currently and successfully using a laser with Marlin will speak up. I’ll also suggest that it’s hard to beat chipboard (cereal-box cardboard) when testing your laser setup… it’s cheaper and more uniform/consistent than real wood, which varies greatly from piece to piece, even of the same species. Finally, I must admit I NEVER got the results I’m seeing now (with Grbl/Lightburn) with any of my Marlin-based machines. Maybe sufficient progress has been made in Marlin that it’s now possible to get the same results… just saying, I never saw it when I was actively using it.

Sorry I can’t be of more help. Good luck!

– David

4 Likes

Hi, David,

I will read the thread carefully, I had seen it and read some of it, but not all of it because it was quite long. I like this topic of the use of the laser very much and I am going to dedicate time to see if I can get good results.

I am going to try the software you recommended.

Thanks again.

4 Likes

Greetings

I’m looking at the software you mentioned, Lightburn, it looks very complete. Before I start any work I try to do a configuration according to my machine. I’ve been struck by the default speeds and accelerations that come with it.

Could you recommend some more conservative values? I think they are too high for a Lowrider2.

Thanks

2 Likes

Roger,

Lightburn is laser-centric software that targets a very large contingent of CO2 laser owners… and I think the defaults are very much aligned to the settings for that class of machine. The particular window capture you show is primarily “simulation settings” – designed to adjust preview and simulation timings and DOES NOT affect your controller. I pretty much ignore that panel… and I don’t feel I’m missing anything.

That said, the LB forum is a high-quality hangout and many of us “lesser” DIODE laser folks attend and receive very good support and respect… though there are many more Grbl users than Marlin users. I didn’t find it difficult at all to adjust/save/load the feeds and speeds/power for each layer’s cuts for my DIY machines… and there is a wealth of setting to adjust your LINE, LINE+FILL, and IMAGE settings for each layer. I find it especially nice that vector/raster images, profile/vector cuts, and filled shapes can all be readily prioritized, placed, and exported in an integrated gcode file and then fed to CNC.js, UGS, Repetier, etc… rather than run as several separate jobs, as I used to do with Inkscape/Jtech laser plugins.

I’d suggest downloading the trial version (it’s fully functional) and verify it works with your hardware… you get 30-days to put it through its paces. It runs on Linux, Mac, and Windows… and I use it daily on my Chromebook w/ Linux(beta) and it runs beautifully. I’ve depended heavily on Inkscape/Jtech laser plugin in the past… and I find that Lightburn does virtually everything – and more – than I did with Inkscape. If it works as nicely for you as it has for me… I think you’ll be happy to spend the $40, which allows installation on two machines.

– David

3 Likes

Once again, thank you very much for your help and advice. I think I’m all set to start doing some initial testing with Lightburn. I have the machine working on a portrait that I prepared with the other software that recommended “ImageToGcode”, it takes 4 hours because it has 300x200mm dimensions, but it is almost finished, I will share the result.

I will stop by the LB forum to have a look. :slightly_smiling_face:

Regards
Roger

3 Likes

Finally, my first engraving is over. I’m happy with the result, :partying_face:
maybe a little clearer would have been better.

8 Likes

Wow! That is outstanding… :smiley:

1 Like

Roger,

If you don’t mind… what feedrate, power (min/max?), and resolution (vert/horiz?) did you use on this engraving?

I’m trying to compare Grbl/LB results to my previous Marlin/ImageToGcode results using the same “shades_of_gray” image and settings I used in the “…not great results” thread…

E6CCD618-F417-4CC1-B3F8-BC915DA591C2

– David

Greetings, David,

This was my setup for the portrait:

By the way, I am delighted with the software that “LightBurn” recommended to me, I was very right, it is worth the $40.

I was able to laser cut 10mm thick plywood with 11 passes.

:smiley:

1 Like

What laser are you using? That cut in 10mm material is pretty impressive…

This one:

https://www.ebay.es/itm/450nm-5-5W-Blue-Laser-Module-12V-Adjustable-Focus-Laser-Engraver-Accessories/113562823381?hash=item1a70df2ad5:g:bakAAOSw5r1cPtUa

I set a distance of 65mm between the lens and the material, 65mm because I found it to be the optimum working point of the laser. I lowered the Z axis by 1mm on each pass. I liked that option in LightBurn.

1 Like

Thanks, Roger. You’ve got a bit more powerful laser than mine… and it’s really looking good. I’m using a 2.5 watt Eleksmaker laser currently. I have a couple of 3.5 watt Banggood lasers that I’ve played with in the past… but they really don’t seem any more powerful than the 2.5 watt lasers I have. I think it’s most probably due to a larger spot size…

1 Like

Alright!

For fun, and as best I could, I engraved the “shades of gray” image with Grbl 1.1h and Lightburn, using the same material (chipboard), feedrates, and resolution (0.2 mm and considered “best” at the time) used when testing/discussing issues with Marlin 2.0 (bugfix) back in the “…not getting great results” thread back in Feb/2019.

SIde by side, the results WRT “shading” are [to my eye] reasonably similar at feedrates of 20/25/50 mm/s (top to bottom) and resolution of 0.2 mm… Grbl/Lightburn (left), Marlin/ImageToGcode (right)

shades_of_gray-gs_feedrates_test-COLLAGE

Of note, the motion of the laser carriage is far smoother with Grbl’s laser mode ($32=1) than the Marlin 2.0 of Feb/2019… without the starts and stops (and overburn) at each power change across the shaded blocks of the image, especially at 50 mm/s.

With Grbl 1.1h and Lightburn…

and with Marlin 2.0 (Feb2019) and ImageToGcode…

I’m really not sure the current “state” of Marlin’s laser capabilities – judging by Roger’s results it seems way better – and for non-laser functionality and fancier features, Marlin may be the better, more versatile, choice… but, for laser engraving (which is mostly what I mess with these days) and basic CNC, Grbl seems to suit my need(s) nicely.

Just my $0.02… and – as always – YMMV! :smiley:

– David

1 Like

The tones in the marlin image look better to me - but that may have to do with the distance of the photograph. The grbl photo looks like the sample was slightly closer to the camera.

1 Like

David, thank you so much for sharing.

Of course, with Grbl the movements are perceived as much smoother and more continuous. Curiously, with Marlin, as the speed increases, there is a burnt edge effect, probably due to the sharp accelerations and decelerations, this doesn’t happen with Grbl.

With Grbl I notice white horizontal stripes where the laser has not caused any effect, on the other hand, with Marlin it has not happened, at least it is not so noticeable, I don’t know if this is due to the software or firmware. It could also be what Wade Ford says, camera effect.

I have to do the same test, see how it goes. :thinking:

Roger