Complex Image and Poor Output

I’ve got a complex map that I’m trying to burn on thin plywood with a 5W Longer RAY5 diode laser.

When I try to burn the image the Longer RAY5 says “File is more than 1M. Do you want to continue?”. I hit continue and it mostly works. Here’s a picture of the burn and the preview. Notice that I lose some lines in the top-right quadrant of the burn. Is this a result of my file size? Is there something else going on that causes this near the end of the burn?

The gcode file is over 3MB, which is large compared to most of my projects. Is the complexity my problem? Any suggestions on how to reduce the size or complexity?

Where did your source come from and in what format? Looks like you are engraving a grayscale of something that is generating lots of machine code…

If you can post it and if possible the map source, someone might be able to help you get squared away…

:smile_cat:

I pulled the map from Snazzy Maps - Free Styles for Google Maps and used the “roads by Jessica” map style. I tried various settings in LightBurn from tracing it to keeping it as an image layer and using Threshold mode to get it to pure black.

The original map is in PNG format but I can convert it to nearly anything. I think the fact that there are so many streets makes it a lot of gcode.

Didn’t create a login, but it didn’t give me an option to generate anything. I did set the type of map and my location…

I would think you’d want a black and white map… that should make it more easily used for lasing…

Do you need a login for this site to work?

Can you post your source for us to examine?

:smile_cat:

Here’s my lightburn file if that’s helpful.

This is a zip file with the extension renamed to .txt so that it can be uploaded here.

san-francisco-map.lbrn2.txt (1.4 MB)

And here’s the original source image, which is a 1.2MB PNG.

I’ve tried both tracing this image (I like this look the best) and I’ve also tried leaving it as an image using the threshold mode.

I noticed in another thread that I can export the gcode and then I can load that into LightBurn as a vector file. That helps me confirm that LightBurn is probably doing everything correctly. The data is in the gcode but, for some reason, it isn’t coming out on the edges of the burn.

This is silly to say, but it feels a little bit like the laser gets “tired”. Re-phrasing it that way is making me think the files size really is the problem. My guess is that the little ESP32 in this machine either can’t keep up or doesn’t have enough memory and so some detail is getting lost.

What happens if you run it directly from the PC rather than from a card?

This way, the laser controller doesn’t need to do as much work. It just passes thru the data stream relatively unprocessed as it’s trickled in, rather than (I assume) trying to load some or all of the GC file into memory that may or may not be sufficient size.

I’d suggest working from vector data for your map if at all possible. That will provide for a cleaner and more flexible design.

These ran fine with a 16mHz Arduino processor… An esp32 runs at ~230mHz.

The mechanics of a cnc machine take eons compared to the speed of even the slowest style of micro-controller…

These controllers spend more time waiting for the mechanics to move then anything else.

These is little to no computing or storage required by these controllers, unless you want to look at it like an sd card. All grbl are generally streamed, same with an sd card. There are only a few commands loaded into the controller at any one time…

The controller is not doing any real computations…

@berainlb advised, I’d suggest using a vector file… I couldn’t get the site to produce any output for me…

:smile_cat:

I’m starting with a PNG but I’ve traced it into a vector, so I am working from vector, primarily.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.