Calibrating focus in lightburn

Background:

I’ve found that the auto calibration process seems to not be applied when I run jobs from lightburn. I ran the on device auto calibration process, using the touch screen. I then tried sending a couple prints over to the machine with wifi as gcode exports from lightburn and then using luban to send to the machine. However, this process was onerous, and I know that lightburn can drive the machine directly (similar to an octopi driving it directly). I decided to hook into the machine using the USB cable.
From the auto calibration, it seems my bed height is 26mm (I have the laser beds taped to a destroyed 3dp bed, so that’s probably why it’s higher than you’d expect).
In lightburn, if move the head to e.g. Z29, it’s correctly just barely touching the surface of a 3mm piece of cardboard.

Original hypothesis:

If I start a job at Z29, I’m assuming the “auto calibration” would be doing the exact same of setting the Z to {bed height} + {material height} (e.g. 29), I would then expect to see similar cuts from running the job in lightburn as opposed to sending the gcode over, and then telling the machine to run the gcode.
The problem is that when I do this, the cuts don’t seem to be as good, using the exact same speed/power settings, I’m seeing extra burnout on the sides of the cuts.

Focusing attempts:

In lightburn, I set the Z to 28.5, then click “clear origin”, “set origin”, “set finish position”, and “focus z” (pretty sure only “set origin” is necessary, but just checking all the boxes).

I then went to Tools > Focus test, and attempted a test from 0 to 10 (again, 10 is probably way too high, but just seeing if things work).

When this test runs however, it seems to go ridiculously high (probably 20mm off the cardboard), and doesn’t actually burn anything.

Things I’ve tried:

  • setting the “start from” to “absolute coords” and the “start z” in the focus test to e.g. 30
    • Just runs the laser head into the bed, if you notice, when it does the moves, it drops the head down a bit, so I’m not sure if lightburn’s focus test will work at all, since the head should be basically right on the work piece, I’m not sure how that’s expected to work though. If I did manage to get it to turn the laser on at the right height, I’d think it’d try to move at the wrong (too low) height
  • setting the “start from” to “current position”
    • doesn’t seem to do anything different than “user origin”
  • setting the “max power” in the focus test up to 99
    • does actually output enough power to do something (I think it’s trying to write some numbers?), but since it’s so far away from the piece, it’s just a bunch of cryptic looking symbols

Question:

What am I doing wrong? I see other people on the forums saying they just “used the focus test to find the focus”, so I’m assuming I’m missing some crucial step. There must be some simple thing that I missed in the process of doing the focus test.

My workflow with Lightroom controlled via USB is pretty simple. I know my focus length is 35 mm and at startup before that automatically sets the coordinate system where that is Z=0. Then in Lightroom I just set the material thickness and it’s first move is to go up to that amount.

I’m on an old firmware, full disclosure.

You’re trying to run a focus test in Lightroom on top of the calibration being applied at startup by the tool head. If you want to do that you’re going to have to reset the coordinate system so that zero is actually zero and not the focus length, although I have found the manual controller based laser focus is great and I’ve never needed to use the one in light burn

Additionally, really just beating this dead horse, when you’re setting z in lightburn to 28 you’re adding 28 mm on top of the say 30 mm laser focus length which will give you like almost 60 mm of height.

I have noticed some quirks with lightburn and how it reads position, I would not rely on it. If you need to know what position the controller thinks it’s at you need to query it with G-Code or look on the touch screen. The behind the scenes commands that should be updating lightburn do not work reliably enough for me to trust it.

I found the magic!

Apparently, “focus height” in the “cuts / layers” tab affects where the test starts. I stupidly had it set to 10mm (might be the default), hence it jumping up 10mm when starting the test.

1 Like

Hi, i have the same problem but i can’t find the solution. You told in cut / layers focus height lightburn ver 1.2.04. Can you help me.
thanks ,
Maarten

You need to make sure to set material thickness (in the cuts/layers) to 0:

image

You might also want to check that z offset (double click to open each layer) is 0:
image

Hi, i am relative new with lightburn but i can’t find material thickness in mine cut/ layers.

In machine settings, you have to tick enable Z axis, but untick relative Z moves only.

Screenshot 2022-11-19 111232

1 Like