Controlling Droids™ with mruby & Go
summary
Claim: Ruby scripts run inside a Go event loop to control Sphero R2‑D2s over BLE, implemented by embedding mruby embedded in Go via go-mruby and calling GoBot drivers. BLE commands are reverse-engineered from packet captures using Android Bluetooth snoop logs (packets, sequence byte, mod‑256 checksum), then wrapped into driver functions that send the exact bytes. Result: a d2 library that runs multiple VMs concurrently and achieves concurrent control of multiple Sphero R2‑D2 over BLE in a single cross‑compilable binary.
AI-written summary · about
chapters (12)
- 0:00Introduction and speakers
- 1:37Talk overview and motivation
- 4:38Exploring robot control libraries
- 7:05Bluetooth Low Energy challenges
- 12:51Capturing BLE traffic with Android
- 15:45Building the R2D2 driver in Go
- 17:27Integrating mruby with Go
- 19:34Hello World with mruby in Go
- 23:10Designing the D2 API
- 25:27Architecture of the D2 library
- 30:45Managing multiple Bluetooth connections
- 33:27Final demo and project summary








