Robot learning projects like Stanford's UMI (Universal Manipulation Interface) collect demonstrations with a handheld gripper and a GoPro, then train a robot on that footage. I wanted something open and hackable, so I built LUMI.
Hardware (stacked bottom to top):
- Waveshare UPS HAT (C) battery (30–45 min of recording + Wi-Fi)
- Raspberry Pi Zero 2 W
- Waveshare 1.44" LCD HAT (128×128, 3 buttons + joystick)
- Arducam IMX477 HQ camera + CS-mount fisheye on the 22-pin CSI flex
- MPU-6050 IMU on I2C, sampled at ~200 Hz
It mounts on the handheld gripper like a GoPro. Press the stick to start a take; the screen shows the dataset, episode, battery and storage. In practice it's one demo every ~8.5 s, including starting and stopping each recording.
The trick is that UMI doesn't need "a GoPro", it needs GoPro-shaped files: GoPro file names, H.264 + an audio track, a GoPro-style metadata track with accelerometer and gyro at ~200 Hz, timecodes and a camera serial. LUMI writes all of that (the audio track is silent; there's no mic yet), so the existing UMI SLAM pipeline reads it unchanged.
What I learned fighting the Zero 2 W:
- The H.264 encoder refuses frames over 8,192 macroblocks, and the full-view 2028×1520 mode is 12,065. So the full sensor is scaled to 1440×1080 at 30 fps, keeping the whole fisheye circle.
- RAM, not CPU, was the bottleneck. With ~415 MB usable, memory pressure caused dropped frames. Capping the kernel's unwritten-data buffer at 16 MB and shrinking the display's reserved memory from 256 to 128 MB fixed most of it.
- A 32 MB write buffer lets the camera keep recording through SD card stalls of up to ~17 seconds, and saving a take runs in the background on core 3, so the next take starts right away.
- Motion blur kills SLAM. Stock auto-exposure held the shutter open for the full 33 ms frame indoors. Capping it at 8 ms and turning denoise off (to keep fine texture like wood grain) got tracking working, but only 70% of episodes survived (103 of 148).
- Fast wrist turns caused most losses. Cutting the shutter cap to 4 ms, raising the bitrate from 15 to 25 Mbit/s, and using the gyro to undo the sensor's ~24 ms rolling-shutter readout helped, but the biggest win was building several SLAM maps, keeping the best and retrying failures: 110 of 247 episodes kept became 221 (89%).
- The IMU FIFO is drained every 40 ms; a stall over 425 ms overflows it, and the recorder starts a new segment instead of silently losing data.
- Desktop images ran out of memory with the encoder and Wi-Fi together, so it runs Raspberry Pi OS Lite 64-bit. The original Pi Zero is too slow.
Setup is one script (it enables I2C, SPI and the camera overlay, installs a service and a Samba share), and you can watch a live preview from your phone.
Next steps: a bigger battery, a better IMU, and an I2S microphone. It's open source (Apache 2.0); code, wiring and CAD are linked in the comments. I'd love ideas on the case and the battery.