Microscope Stage Control (Ender 3 V2)

not connected
Camera off
The 4K Jiusion lists as “GENERAL - UVC”. “KJMSF03A” is a separate 640×480 camera. Snapshots and scans use the camera’s native pixels, not the on-screen size. 4K over USB 2 is MJPEG and may run at a low frame rate.
Ready — keep this tab visible during capture.
Preview
grid divisions (overlay only, never saved in images; jog X and follow a feature along a horizontal line to square the camera)
X 0.00 Y 0.00 Z 0.00

Go to: X Y Z

Keys: arrows move X/Y, + / − move Z, Page Up / Page Down zoom in/out (zoom drive). Step is 1 mm; hold Shift for 10 mm, Ctrl for 50 mm, Alt for 0.1 mm (fine focus). Space takes a snapshot. Buttons follow the same modifiers.

Mosaic scan Grid: custom cols × rows
Step X mm, Step Y mm, settle ms, rows go
move mm
slices, Z step mm (centred on current Z)

Starts at the current position as the top-left tile, snakes through the grid, then returns to the start.

Fine calibration Steps mm, feed F, settle ms, discard frames, average frames

Uses the current position as origin and moves only + up to the largest step, then back down (both directions, measures backlash). Needs a textured, in-focus sample. Result replaces the Mosaic calibration and is used by both scans.

Click to centre (self-correcting) gain , max step mm, auto-refine moves until within px

Click (don't drag) a feature on the live view and X/Y move to bring it to the centre; Z never moves. The Mosaic/Fine calibration is only valid at the zoom it was taken at, so it is just the starting guess: after every move the page measures how far the picture really shifted and updates its own working matrix, so after zooming the first click may land short or long and each later click gets closer. Gain below 1 moves less than the estimate. Clicking while a move runs retargets to your latest click once that move finishes. Needs a textured, in-focus sample; uses the Mosaic settle time and the Feed rate; refused while a scan, calibration or zoom move runs.

Multi-Z grid scan (all-in-focus + depth map) Grid cols × rows, overlap % → Step X Y mm , rows go
Z from to mm, step mm, order
Feed XY F Z F, settle ms, discard , average frames



Starts at the current X/Y as the top-left tile. Raises to the top of the Z range first, then snakes through the grid capturing every Z level per tile; XY moves between tiles happen at the Z where the last stack ended. The stitched all-in-focus image appears in the Mosaic preview above; the depth map (blue = low Z, red = high Z) appears here.

Recipes: name
Zoom drive (Arduino Nano + continuous SG90) not connected — second serial port (Nano). Printer stays on the other port. USB-C from this PC powers Nano+servo (no batteries); remove the battery pack; red switch I (ON) feeds V from Nano 5V. Servo on D9 (brown=G, red=V, orange=S). Optional 470–1000µF on V/G if USB browns out.
Nudge ms, speed Keys: Page Up / ] zoom in, Page Down / [ zoom out (Shift = long nudge), Esc = STOP. Mouse wheel over the live view: up = zoom in, down = zoom out, one notch = one nudge (Shift = long). Clicks, keys and wheel notches while a nudge runs are ignored. Does not move X/Y/Z.
Target scale px/mm tolerance px/mm max steps
Presets name

Auto zoom nudges the servo, then re-measures px/mm with a tiny X move (needs printer + camera + textured sample in focus). Presets store the target scale and a copy of the calibration at that zoom.