Build & Control Your Own Bluetooth Robot
A complete robotics platform for micro:bit with obstacle avoidance, custom motor control, and intuitive iOS/watchOS control.
iOS & watchOS Control App
Professional-grade mobile control with comprehensive features
- 6-directional joystick with dedicated spin controls. Support for left-handed and right-handed layouts.
- Monitor CPU temperature, battery level, distance sensors, and environmental data with color-coded gauges.
- Companion app for quick robot control and basic telemetry monitoring on your wrist.
iOS 18.1+ · watchOS 11.1+ · Xcode 18+
Getting Started
1
Flash the Firmware
- Visit makecode.microbit.org
- Click Import → Import URL
-
Paste:
https://github.com/swiftwirt/microbee - Click Go to import
- Connect your micro:bit and download
2
Assemble the Hardware
- Connect motors to driver module
- Wire motor driver to micro:bit pins
- Mount ultrasonic sensors (front & back)
- Connect sensors to designated pins
- Install micro:bit on chassis
- Connect battery pack
3
Install the Control App
- Use any Bluetooth UART terminal app
- Or download the microbee iOS app from the App Store
- Enable Bluetooth permissions
- Launch app and scan for devices
4
Connect & Control
- Power on your robot
- Open your Bluetooth control app
- Select your robot from the list
- Wait for connection confirmation
- Send commands to control movement
- Monitor status on LED matrix
Technical Reference
Hardware Requirements
Required Components
- micro:bit v2
- 2x DC Motors with wheels
- Motor driver (L298N or similar)
- 2x HC-SR04 Ultrasonic sensors
- Robot chassis
- Battery pack
Pin Configuration
| Component | Pin | Function |
|---|---|---|
| Left Motor Forward | P12 | PWM Output |
| Left Motor Backward | P13 | PWM Output |
| Right Motor Forward | P14 | PWM Output |
| Right Motor Backward | P15 | PWM Output |
| Front Sonar Trigger | P16 | Digital Output |
| Front Sonar Echo | P8 | Digital Input |
| Back Sonar Trigger | P2 | Digital Output |
| Back Sonar Echo | P1 | Digital Input |
Control Commands
Simple Numeric Commands
| Cmd | Action |
|---|---|
1 |
Forward |
2 |
Backward |
3 |
Spin Left |
4 |
Spin Right |
5 |
Turn Left |
6 |
Turn Right |
7 |
Turn Left Back |
8 |
Turn Right Back |
0 |
Stop |
JSON Control
{"l": 512, "r": 768}
lLeft motor (0-1023)rRight motor (0-1023)
Status Indicators
| ❤️ | Connected |
| 💀 | Disconnected |
| ⬇️ | Forward |
| ⬆️ | Backward |
| ⬅️ | Spin Left |
| ➡️ | Spin Right |
| ❌ | Obstacle |
| 😊 | Ready |