Connect the controller
- Plug the tablet's USB-C into the controller's USB socket (USB-C to USB-B cable, or an OTG adapter).
- Tap Connect and pick the Arduino Mega. Android asks once whether Chrome may use the device.
- Connecting restarts the controller (as on a PC): the stage drivers then need Init drivers.
Cutting slow through the cutting window, fast for the rest of the turn
Cutting window from the encoder disk's dense holes
"Find" turns the arm slowly through two turns with the encoder on and marks where its bits change most: that is the cutting window. The speed changes there, and the specimen advances just after it. Run it again after a restart of the controller (the turn's zero point is kept only while it stays on).
Specimen fine stage
Check the direction once with "advance 100 µm" and watch which way the specimen moves. The calibration is a guess until measured (default 250 µm/rev ≈ 25.6 mm over the stage's 102.5 rev). Both are remembered on this tablet.
Brushless motor open-loop spin
Details
Ramps at 100 rpm/s up and 240 rpm/s down, up to 3000 rpm (above 750 the voltage rises more gently, to keep the current down without current control). The controller stops the motor by itself on a gate-driver fault, lost 24 V, a motor probe above 110 °C, or when the rotor falls out of sync (it counts the Hall steps). Output rpm = motor rpm ÷ gear ratio (from the profile settings).
Speed profile 100 slots per output revolution, % of max speed
Settings
Controller
"Send" changes the running settings; "Save" keeps them over a power cycle (EEPROM).
Encoder bits live
Lit track = 0, dark = 1. Bits come in the controller's pin order; through the box's extension that is 1991 lines 2, 1, 4, 3, 6, 5, 7 (shown under each bit).
Capture fast sampling for decoding
Turn the disk slowly while capturing. 1024 × 1 ms ≈ 1 s.