MM/Pixel Calibration
This next step calibrates the relationship between pixels and millimeters to make our cameras more accurate.
Top Camera Calibration
In this step, we will calibrate the mm/pixels for the Top Camera. This requires us to set the dimensions and use a virtual bounding box to outline and measure one of the squares on the datum board, known as a golden guideline square. This allows us to calibrate the top camera’s Units per pixel, giving us accurate top camera movement.
-
Select the Top Camera.
-
Scroll down to the
Units Per Pixel
section. -
Set the Object Dimensions.
-
Locate a calibration square to be measured.
- Jog the machine until a golden guideline square is fully visible in the top camera view. The square should be roughly centered in the camera's reticles. The whole square must be visible. If necessary, use the scroll wheel to zoom out and ensure the entire square is visible.
- In
Machine Controls
, you can adjust theDistance Slider
to jog in larger or smaller increments when locating the golden guideline square.
-
Align and Measure.
- locate and click the
Measure
button.
- Click and drag in the camera view to create a bounding box. Align it with the center of the golden guideline square to align with the lines along its edge. The square is exactly 5mm x 5mm.
Squareness
Don't worry if the box's square doesn't perfectly align with the camera image. Any slight skew will be adjusted for during jobs with fiducial calibration.
- locate and click the
-
Finalize Calibration.
-
Confirm Top Camera Calibration.
Bottom Camera Calibration
The following steps will calibrate the mm/pixels for the Bottom Camera. This requires us to set the dimensions and use a virtual bounding box to outline the nozzle tip. This allows us to calibrate the bottom camera’s Units per pixel, giving us accurate bottom camera movement.
-
Home your machine using the "Home" button.
- The LumenPnP will perform the homing process and position the top camera over the homing fiducial. In future steps, the homing sequence will also scan the nozzle tips after calibrating the homing fiducial, but for now, it should only scan the homing fiducial.
-
Select the bottom Camera.
-
Manually adjust the Nozzle to be over the Bottom Camera.
- Using the controls at the bottom left of OpenPnP, jog
Nozzle: N2
(right toolhead) to roughly the center of the Datum board, positioning it near the edge closest to the bottom camera.
- Lower the
Nozzle: N2
so that it’s just barely touching the top surface of the Datum Board, just like we did with the first nozzle tip in previous steps. Placing the nozzle tip on the edge of the Datum Board makes it easier to see the nozzle tip's proximity to the Datum board as you lower it. - Keep the nozzle at this Z height and carefully use the jog controls to move it directly over the center of the bottom camera’s reticle.
Fine-Tuning Focus
The bottom camera’s focus is pre-adjusted before shipping, but you can fine-tune it if needed. The lens is secured with friction grease, so apply light pressure while twisting the top portion of the lens until the image appears sharp. Avoid excessive force.
- Using the controls at the bottom left of OpenPnP, jog
-
Go to the
General Configuration
tab. -
Scroll down to the
Units Per Pixel
section. -
Set the Object Dimensions
-
Align and Measure
-
Finalize Bottom Camera Calibration
-
Confirm Bottom Camera Calibration.
- First, ensure your bottom camera view is fully zoomed out.
- Click and drag the center reticle (located in the middle of the camera feed) to the edge of the nozzle tip and then back to the center of the tip.
- The Bottom Camera should now be centered on the nozzle tip again.
- If it's inaccurate, repeat the bottom camera calibration and confirm you are using the larger N24 nozzle tip on Nozzle: N2 (right toolhead).
Next Steps
Next is Nozzle Offset Calibration.