So I manage to purchase a webcam and manage to install it on my laser. My problem is that every time I disconnect my laptop to the machine and laser after a task (same day, around 1-2hrs interval), the alignment of the camera and the machine gets messed up(misalign). So I have to do the Calibration alignment all over again. Am I the only one who has this problem or my setup and calibration of the machine and camera is wrong?
How is your camera mounted? And do you have a Z axis on your laser?
The two main culprits of misalignment are:
Your camera is not mounted in a way that it is in exactly the same spot every time. This can happen if itâs on the machine lid and that doesnât always go back to the same place when raised, or if however you have the camera mounted is some play in it and the camera can move around.
The top of your material is not always at the exact same same from the camera. Usually this will happen if you are moving the laser lens tube for focusing, meaning that you are changing the focal plane relative to the camera. The ideal setup for use with a camera is where the bed moves to focus the laser so that the focal point is always identical (relative to the camera). Even having the material be 1-2mm lower or higher than normal can shift the camera alignment a significant amount (depending on the size of your machine).
âSave Settingsâ on the camera control window saves only the shift, width, and height adjustments (if youâve made changes). The camera calibration data is saved automatically.
Try this:
Make sure no camera is selected
Go to Help > Enable Debug logging
Select the camera
Capture
Unplug the camera
Plug it back in and select it again
Quit LightBurn
Youâll find a text file called âLightBurnLog.txtâ in your Documents folder. Attach it here. My suspicion is that the camera when reconnected isnât using the same capture resolution as it is when first connected, but that should be chosen automatically. Hopefully the log will give some hints.
I have a similar problem, but not nearly as severe as yours. I have to do the realignment quite often. Itâs only âexactâ right after I do the alignment tool. If I turn everything off and unplug my laptop, the next day, it will be off some. I havenât measured how much itâs off, or if it gradually gets worse and worse. However, a few weeks go by and itâs off by an inch or more both vertically and horizontally, so I have to realign again.
The only thing that affects camera alignment in this way is physical movement of the camera relative to the top of the workpiece. Thatâs it - there is no other way this can happen, so somehow your camera is moving, probably a tiny amount.
It could be that the material itâs mounted to has flex, or the hinges or gas struts holding the lid are slowly loosening, or something along these lines. What it is not, and cannot be, is the camera code slowly altering the numbers on you - it just doesnât happen. If the numbers are corrupted in some way youâll get something like what bhembhoi posted, where the image is nearly unrecognizable, because of the way the math works.