1. Data source and device link
The SD card is the source of truth. iPhone Safari has no Web Bluetooth: use a Web Bluetooth browser (for example Bluefy), or work from a zip. Serial: close the Arduino IDE monitor first, opening the port can reboot the board. Chrome or Edge on a desktop has the folder picker and Web Serial.
no device info yet
Nothing loaded yet. Pick the SD card root (the folder that contains motion/ and header/), load a zip of it, or pull from a connected device.
2. Classes and data
The firmware has exactly two trained classes: (machine mounted, motor OFF) and (motor running NORMALLY). The anomaly percent is 100% minus the model's confidence in normal. The optional folder holds recordings of a FAULT: it is never trained on, it only lets the page measure how well faults are detected (the device can record into it too).
Phone motion (DeviceMotion)
Phone readings are converted from m/s² to g, mapped with these selectors, and resampled to the device's interval. The XIAO reads about +1 g on Z when flat; iPhone and Android report the opposite sign, so use the check or flip the signs by hand. Live (mapped, g): -
3. Train
no baseline yet
Lines to paste into the sketch
Hold-out is the last N samples per class in capture order (the sketch holds out N random ones). Near-duplicate samples taken one after another make validation look better than it is. Training needs samples in BOTH classes, and the baseline is built from the normal class only. Stop keeps the model in memory and does not save.
4. Analyze
No model.
5. Infer (live)
6. Transfer and save
7. Console
8. Serial monitor (Web Serial)
Device text (frame lines are hidden). Needs Connect Serial.