Tunable Parameters

These constants in board_scanner.h and gantry_controller.h may need adjustment based on your specific hardware:

Constant

Default

Purpose

MUX_SETTLE_US

1000 $\mu$s

Time to wait after changing mux address before reading. Increase if readings are noisy.

DIAGNOSTIC_CHANNEL_HOLD_MS

1000 ms

Time to hold each mux address during the diagnostic channel matrix so S0–S3 can be read with a meter or logic probe.

DEBOUNCE_SCANS

3

Number of consecutive identical scans required before accepting a reading as stable.

DEBOUNCE_DELAY_MS

50 ms

Delay between debounce scans. Total debounce time = SCANS $\times$ DELAY.

POLL_INTERVAL_MS

20 ms

How often to poll sensors during waitForLegalMove.

ILLEGAL_STATE_ALERT_MS

10,000 ms

How long the board can sit in an unrecognized state before alerting the player.

FEED_RATE

1000 in/min

Gantry movement speed. Reduce if the gantry skips steps or knocks pieces over.

dwell(100)

100 ms

Pick/release settle time around magnet on/off. Encoded as G4 P0.100 for GRBL. Increase only if the magnet or pieces need more settle time.

SQUARE_SIZE

1.5 in

Physical size of each board square.

BOARD_SIZE

12.0 in

Physical size of the 8$\times$<!-- -->{=html}8 board area.

A1_CENTER_X/Y

5.000 / 4.420 in

Calibrated center of a1 in the G54 work frame.

CAPTURE_VERTICAL_SPACING

1.5 in

Storage slot row spacing; matches the board square size.

Tunable hardware parameters