Upload LightBurn GCode via Luban?

First time user with LightBurn. I’ve made my test file, which includes different laser settings per layer. I can output GCode from Lightburn, and import it into Luban, seeing my image.

However, the “Send to Device via Wi-Fi” button is disabled. Is there a way to upload GCode without the USB/sneaker net?

2 Likes

Does the file end in .nc? i believe Lightburn tried to save it as .gc which won’t work.

I also use the send to device via wifi, so it should work.

Yes, I did rename it. I needed to I’m order to load it into Luban. The button still doesn’t get enabled

I haven’t used the new versions of Luban to send via wifi, since i’m using a right-click->send to device script. It’s possible you’ve found a new bug in Luban. Could try downgrading to a previous version? Not sure.

You have the laser toolhead connected?

A lot of people seem to be having problems with this. I’m not sure why.
I’m using 3.12.3 and using luban to transfer is my normal workflow.
Haven’t had any problems personally with either laser or cnc.

Post your g-code here and I can try it on mine. Maybe it’s something in there.

-S

Yes, the laser module is connected. I have gone through theautomatic laser focal test.

Here is the file I was working with, from LightBurn:

Line Speed Test, 800 to 1200.nc (41.7 KB)

Why use Luban? I have a spare laptop connected directly to the machine and run Lightburn on it. I don’t have any of the problems with gcode or transfers. I would love to use Luban but until they can show me they can do a 50-hour burn I don’t trust it.

Are you running the paths directly from Lightburn? I’ve had issues with that. How are you transferring to the machine?

I plug the laptop to the USB port on the SM and it seems to work fine. I directly control the SM from Lightburn through the USB cable am have no problems except when the computer goes into sleep mode. I have connected a USB webcam to the laptop and will try using the Lightburn camera function to see if works. That means I have to somehow mount the webcam to the laser housing, I am thinking duct tape :wink:

1 Like

Good to know, I’ll have to do some more testing. Maybe some of the buffering issues have been fixed that causes some jobs to fail prematurely.

Are you using a USB connection to control SnapMaker 2.0 from Lightburn. If so, do you have any issues.

What about finding the laser focus height. Did you do that in the SnapMaker console before using Lightburn? Do you set material thickness from the SM console?

I am a total noob and I have a lot more questions than answers. To wit:
Lightburn saves a .gc gode file. Luban saves a .nc file. Is this s simple rename to use the gcode file from Lightburn or is it much deeper than that. Having said that, I have no problem leaving my laptop connected to the SM for a protracted burn, especially while performing tests on book cloth.

I am using the USB connection from my computer to SM. Laser height should be the same regardless of the software so I let the SM autofocus to find the focus length write it down and do then do the height manually in Lightburn. It might not give the best results but it works. Since my computer (cheap laptop) running Lightburn is doing everything I don’t save files or convert to any code.

I found on black paper that is .1mm thick the focus height is 23.45mm. I am burning 3mm plywood so I start the burn at 26.5. I then do 10 passes at 100mm/s with every pass lowering .25mm. At that speed everything falls out when it is finished, unless the plywood is warped and throws everything out kilter.

My laptop turning off was a problem until I set it to never turn off. I just did a 26hr burn that came out great except where the wood was warped and messed up the focus in part of it, so I had to do some post processing to clean it up, nothing hard

1 Like

FYI, I opened a file in Lighburn, saved the GCode, renamed it from .gc to .nc, and then opened it in Luban. I then connected to my SM2 and loaded the file via wifi. Had no issues. So hopefully your issue is resolved by now.

So, how do you do that? “Let the SM autofocus to find the focal length”? The only thing I see is in the Settings, select “10 watt laser”, then “Thickness Measurement Calibration” which turns on red LED, tap the Capture and the head moves a bit then says Measuring, but never shows the thickness.

It’s quite simple, you run the Auto Calibration from the touch panel, then go into Luban and laser onto a for example 4mm craft plywood.
When the laser starts lasering on the wood, note the Z-height from Luban.
And so you then have the Z-height for LightBurn to laser 4mm craft plywood.
That means you move in LightBurn to the previously noted Z-height, then save the height under Set starting position. In addition, you should also move to the X and Y axis from which you want to start and save everything under Set starting position. And then you only need to start the lasing of your object.

Please take for the Z-height always the machine coordinates!

An example from me what is displayed when he lasers in 4mm plywood, a picture copied from Luban

I also had problems with the transfer to Luban in the beginning, but here’s what you should consider !!!

  1. turn off the power saving mode of the USB ports!
    (see picture remove hook)

  2. because I had to use a Extension cable to the USB port original cable too short , I had to set the transfer rate down a bit to 115200 baud.

So now everything from LightBurn works great.
No problems

FYI The baud is always 115200

1 Like

Ok, I’m dense, “you run the Auto Calibration from the touch panel”. You mean from the Settings → 10 Watt Laser → Thickness Meqaqsurement Calibration? Then you say “then go into Luban and laser onto a for example 4mm craft plywood”. You mean you have to load something into the Workspace then select “Start on Luban” then “Auto Focus”?

Yes exactly and then I note out of Luban the machine height Z-axis and have then the height for the correct focus!

Of course only from the moment where he starts to laser.

If you should use other material, then you carry out again from the TouchPad the calibration, go then again into Luban carry out the steps as described and write also again after the laser begins to work again the Z-height machine parameters on and thus you provide then a list with the heights for your material.

Afterwards you only need to set the laser in LightBurn to the Z-height you have saved and you always have the correct focus for your material!