OpenBot: 3D-print the Android robot, flash Arduino firmware and drive it
OpenBot uses the smartphone for sensing and the microcontroller for wheel actuation. This guide distinguishes DIY Arduino hardware from ESP32 and RTR designs and covers Android, firmware, electronics, wheel tests and computer-vision tasks.

Select a genuine OpenBot body and controller
OpenBot uses an Android smartphone as a camera and computing unit while a lower-cost microcontroller drives the vehicle wheels. Select the specific hardware version before ordering components: DIY Arduino Nano with L298N, an ESP32-based variant, a printed PCB or an RTR chassis do not all share the same firmware pin mapping.
| Component | Purpose |
|---|---|
| Android smartphone | Video, motion sensing and autonomous processing |
| Arduino Nano or compatible ESP32 | Low-level motor commands |
| L298N or documented motor driver | DC motor switching |
| DC geared motors and wheels | Locomotion |
| Printed body and smartphone clamp | Mechanical platform |
| Battery and voltage monitor | Electrical power and telemetry |
| USB OTG or supported transport | Phone and board connection |
| Optional wheel encoders and ultrasonic sensor | Odometry and proximity measurements |
Get the repository, firmware and printable parts
mkdir -p ~/openbot-project
cd ~/openbot-project
git clone https://github.com/ob-f/OpenBot.git
cd OpenBot
ls
find body -type f \( -iname '*.stl' -o -iname '*.step' -o -iname '*.3mf' \)| Repository folder | Role |
|---|---|
| body/ | Chassis STL, assembly and different versions |
| firmware/ | Arduino/ESP32 source and settings |
| android/ | Android app and build |
| controller/ | Remote control interface |
| policy/ | Learning and autonomous driving |
| docs/ | Supporting hardware and software manuals |
The OpenBot family covers multiple robot bodies; use only the BOM and mounting brackets for the selected variant. The original project's approximate $50 reference excludes the smartphone and is not a current guaranteed build price.
3D print and assemble the vehicle chassis
Select a smartphone bracket that matches the device dimensions, camera position and USB connector access. Ensure the battery is restrained and cannot shift into the wheel space. The phone must not fall during acceleration or sudden turns.
Test all wheels by hand before adding electrical power. Weak motor brackets, misaligned wheels and a loose battery cause directional drift independent of software control.
DIY Arduino, L298N and sensor wiring
The circuit diagram is functional only; derive the actual driver input, activation signal, battery voltage and optional ultrasonic sensor pins from the DIY firmware configuration and body revision. Keep the motor supply separated and protected according to the original wiring. Check controller ground reference, power polarity and current limits before turning motors on.
The optional no-phone mode can drive the vehicle autonomously using firmware. Without a correctly working obstacle sensor it can collide with objects, so begin with wheels elevated.
Flash original firmware and inspect configuration
cd ~/openbot-project/OpenBot
find firmware -name 'openbot.ino'Open the firmware project in Arduino IDE or use the official browser-based Firmware Tool. Select DIY body type, board type, selected battery and sensors. The source supports a local openbot_settings.h override that does not require editing core firmware. Verify correct pin mappings instead of copying settings from another robot variant.
The firmware is built for its supported Arduino Nano or ESP32 board package; a board mismatch can cause compile errors. Confirm serial baud on the actual installed release before using a serial monitor.
Check Arduino USB serial and firmware information
ls /dev/ttyACM*
ls /dev/ttyUSB*python3 -m pip install pyserialimport serial
import time
PORT='/dev/ttyACM0'
BAUD=115200 # Confirm installed firmware baud.
with serial.Serial(PORT, BAUD, timeout=2) as board:
time.sleep(2)
board.reset_input_buffer()
board.write(b'f\n')
time.sleep(1)
while board.in_waiting:
print(board.readline().decode(errors='replace').strip())The OpenBot firmware's f protocol requests robot features on supported versions. It is not a Marlin M115 command. Exact wire protocol and reply framing depend on the firmware release; inspect firmware/README.md and the actual serial parser if needed. This program requests information, not wheel motion.
Build and install the Android application
cd ~/openbot-project/OpenBot/android
lsOpen the repository Android project in Android Studio and install the Android SDK and Gradle toolchain required by its branch. A published Android APK may be used instead. Grant camera and USB permissions after connecting the phone to the Arduino using an OTG-capable adapter.
A USB-C connector alone does not guarantee USB OTG host compatibility. For supported wireless hardware variants, follow the corresponding radio-pairing instructions rather than assuming wired Arduino commands apply.
First safe wheel test
- Lift the vehicle so both wheels are free of the bench.
- Power the microcontroller and motor driver with a correct battery.
- Connect Android to the board and confirm the OpenBot feature handshake.
- Command a small forward value and verify left/right directions independently.
- Release the command and verify both motors stop.
- Place the robot on a clear floor and run a slow short forward test.
- Check turning and reverse while monitoring battery telemetry.
If a forward command causes rotation, examine left/right motor mapping and wiring before changing speed. Test obstacles only after the optional sonar has produced valid distance readings.
Compute differential-drive speeds in Python
def differential_drive(v, omega, wheel_base):
left = v - omega * wheel_base / 2
right = v + omega * wheel_base / 2
return left, right
left, right = differential_drive(v=0.2, omega=0.5, wheel_base=0.15)
print('Left velocity:', left)
print('Right velocity:', right)This kinematic calculation yields approximate left/right linear wheel speeds in metres per second. It does not send any serial motor command. Convert using wheel radius, transmission ratio, speed calibration and the actual firmware protocol for the chosen OpenBot variant.
Optional obstacle sensing and no-phone mode
#define NO_PHONE_MODE 1The firmware compile-time option is for supported configurations. It may permit autonomous movement without a connected smartphone, so test it with wheels elevated. If a sonar is missing or incorrectly connected, obstacle avoidance cannot be relied upon.
Camera person-following method
Calibrate the camera mounting angle and confirm detection performance on a stationary vehicle first. Autonomous person-following is an Android perception task and should not be confused with the Arduino's low-level motor and sensor firmware. Test in a clear area with an operator supervising.
Fault diagnosis and completion checks
| Problem | Investigation |
|---|---|
| No USB connection | Phone OTG support, cable and USB permissions |
| Wheel motors stopped | Battery, controller pins and L298N power |
| Backward movement | Motor polarity and direction mapping |
| Robot veers sideways | Unequal gearing, calibration or motor mapping |
| Sensor reports garbage | Pin assignments, power, faulty sonar |
| Android camera not working | Permissions and smartphone camera access |
| Firmware compile fails | Selected board and settings file |
| Person following oscillates | Steering gains, latency or target detection |
- Select one OpenBot body and compatible firmware.
- Print chassis and motor/phone brackets.
- Install the drive motors, wheels and battery.
- Check wiring against DIY or ESP32 pin map.
- Flash correct firmware and identify board over serial.
- Install Android app and verify permission prompts.
- Test forward, steering and emergency stop with wheels suspended.
- Evaluate sonar and person following only when basic driving is verified.
Sources: github.com/ob-f/OpenBot, github.com/ob-f/OpenBot/blob/master/body/README.md, github.com/ob-f/OpenBot/blob/master/firmware/README.md and github.com/ob-f/OpenBot/blob/master/android/README.md. No physical OpenBot has been tested in this guide.
Complete practical guide: OpenBot
OpenBot uses an Android phone for sensing and high-level decisions while a microcontroller operates the motors. The first useful test separates phone connectivity, motor polarity and stopping behavior.
1. Files, parts and fabrication
- Select the released chassis and phone holder that match your handset and motor controller variant. Print at original scale; check wheel and motor clearances.
- Mount the four motors, wheels, battery and controller. Route motor wiring away from wheels and secure the phone without covering its camera.
- Inspect the wiring against the specified firmware and motor driver. Keep the wheels raised for the first electrical test.
2. Software installation and configuration
- Use the OpenBot firmware tool or compatible Arduino toolchain to flash the exact controller variant. Confirm the board and port before writing firmware.
- Install the matching OpenBot Android app or build its supported Android Studio project. Grant the required connection and camera permissions through Android settings.
- Connect the phone to the controller using its documented transport; pair the supported manual controller and inspect connection status before driving.
Commissioning diagram
- 1Android camera and controls
- 2Phone application
- 3Controller connection
- 4Motor driver
- 5Left and right wheels
Mermaid diagram source
flowchart TD
N0["Android camera and controls"]
N1["Phone application"]
N2["Controller connection"]
N3["Motor driver"]
N4["Left and right wheels"]
N0 --> N1
N1 --> N2
N2 --> N3
N3 --> N43. Power-on preparation and first movement
- Raise the chassis so the wheels turn freely. With a low command from the supported manual interface, test forward direction on both sides.
- Check left and right turning and release the input to verify stopping. Disconnect the phone while motion is safely contained to verify loss-of-link behavior.
- Lower the vehicle onto a clear floor only when direction and controlled stopping agree with the interface.
4. Programming exercise
Understand a normalized differential drive request without sending it over serial. Values range from -1 to 1; the actual OpenBot firmware performs its own mapping.
def mix(forward, turn):
left = forward-turn
right = forward+turn
scale = max(1.0,abs(left),abs(right))
return left/scale,right/scale
for f,t in [(0,0),(0.2,0),(0.2,0.1),(0,0.2)]:
print(f,t,mix(f,t))A zero request produces zero on both sides. Straight movement has equal wheel requests and a turn uses a difference between sides.
5. Progress to practical operation
- Complete forward, reverse, turn and stop tests on a short clear route.
- Check the camera view and lighting before using the app's documented autonomous or person-following functionality.
- Only test autonomous movement in a controlled area with a supervisor and verified stop behavior; this platform drives on wheels rather than walking.
6. Software and hardware diagnostics
- Phone cannot connect
- Verify the controller firmware variant, physical connection and Android permissions.
- Forward command reverses one side
- Check motor wiring and the approved channel map while wheels are raised.
- Autonomy behaves unexpectedly
- Check camera mounting, frames, lighting and model version; return to manual mode.
Technical basis: OpenBot hardware, Android application and controller firmware documentation. Programming examples are identified as simulation, offline analysis or documented interface instructions. No physical commissioning test is claimed.
OpenBot chassis printing and motor electronics
Documented DIY mobile robot
Select the DIY chassis and matching single-board electronics before printing or ordering.
From parts to first test 5 steps
Choose the phone and body variant
Use the DIY body guide to select printable parts for your printer bed and smartphone dimensions. Order the four motors, wheels, battery, controller and either L298N or the documented custom board.
Reference 2 ↓Print and assemble the chassis
Install the motors and wheels, verify free rotation and fit the phone mount. Leave access to electronics and battery connections.
Reference 1 ↓Wire the electronics
Follow the DIY diagram for the selected driver/board and Arduino connection. Verify power polarity and motor channels.
Reference 2 ↓Flash the matching firmware
Follow the firmware README, choosing the OPENBOT hardware configuration applicable to the selected board. Install the Android OpenBot app using the repository instructions.
Reference 3 ↓Test manual driving first
Connect the phone to the controller according to the app instructions and raise the wheels to verify forward/turn directions before driving on an unobstructed floor.
Reference 4 ↓
Parts, files and official manuals 4 references
Smartphone perception and four-wheel base
Practical implementation notes for OpenBot. Use the exact hardware and software revision specified in the project documentation.
Tools and equipment
- 3D printer
- screwdriver
- soldering tools
- multimeter
- supported Android phone
- Arduino IDE or official firmware tool
- controller or L298N
Component illustration
- 1Phone mount
- 2Controller
- 3Motor driver
- 4Four wheels
Control architecture
- 01Phone camera / input
- 02Android robot app
- 03Microcontroller
- 04Motor driver + wheels
Mechanical preparation and assembly
Select the body files matching the phone dimensions and motor driver. Install the four motors in the printed base, mount wheels and verify free rolling. Secure the phone holder without blocking the camera; leave electronics and battery accessible.
Electrical setup and calibration
Wire the selected driver according to its matching diagram; verify motor polarity and power rails while disconnected. Select the exact robot and controller variant in the firmware settings; do not flash a custom-board configuration onto an L298N build.
Software setup and programming
Flash the corresponding firmware through the OpenBot firmware tool or Arduino IDE, then build or install the compatible Android app. Pair a supported controller, verify the phone communicates with the microcontroller and test forward/turn while the wheels are raised. Use manual control before autonomy.
First test and acceptance criteria
Confirm forward, turning and stop response on the floor and check the camera view. If the phone loses communication, test the firmware's documented stop behavior before any person-following or autonomous navigation.
Programming and configuration example
This illustrates normalized differential steering. It is not the OpenBot serial protocol and sends no values to motors.
# Offline differential-drive mixing illustration.
def mix(forward, turn):
left, right = forward - turn, forward + turn
scale = max(1.0, abs(left), abs(right))
return left / scale, right / scale
print(mix(0.25, 0.10))Troubleshooting
If forward moves the car backward, check motor channel and polarity in the selected hardware configuration with wheels raised. If the phone disconnects, verify controlled stop before floor testing.
Technical reference: project release documentation. The assembly references above provide the revision-specific drawings and BOM. Examples are editorial walkthroughs or documented commands; they have not been physically tested by TechniaHQRobot.
Which body fits your printer?
The regular chassis needs at least 240 × 150 mm of bed space. The slim chassis can sit diagonally on a 220 × 220 mm bed, while the glueable body is split into smaller pieces for roughly 150 × 140 mm printers.
Choose one chassis and its matching mount, not every alternative. The supplied phone holder uses separate printable top and bottom pieces.
Two wiring paths, not one universal pinout
The DIY option uses an Arduino Nano and an L298N motor board, with motor pairs and PWM pins listed in the guide. A separate custom PCB variant has different plug locations and soldering requirements.
The firmware README also specifies an OPENBOT robot-body setting. Flashing a build for another chassis or board can cause compile failures or mismatched wheel commands.
Adding the phone and first driving tests
Fit the phone securely above the chassis, connect Arduino to the handset and test joystick or gamepad control before training autonomous behavior.
Optional speed sensors, lidar-like distance sensors and LEDs need extra wiring. The published software stack depends on the Android device and the specific mode selected.
Printer dimensions, phone mounts and firmware
Answers are based on published source material and project documentation. Their order does not represent search volume.
01How large a 3D printer do I need?
The regular body needs at least 240 × 150 mm. The slim body fits a 220 × 220 mm bed at 45 degrees, while the glueable body fits about 150 × 140 mm.
Sources Official project documentation
02Can I assemble OpenBot without buying a custom PCB?
Yes. The guide has a DIY L298N/Arduino wiring option and a separate custom PCB option. Each has different connections.
Sources Official project documentation
03Where are the phone-mount STL files?
The official body/diy documentation links phone_mount_top and phone_mount_bottom in STL and STEP formats.
Sources Official project documentation
04Why does firmware not work with my board?
Check the OPENBOT setting and the selected Arduino Nano or ESP32 board. The firmware supports specific body/board combinations.
Sources Official project documentation
05Does the $50 claim include a smartphone?
No. The project describes a low-cost robot body that uses an existing Android phone; it is not a contemporary quote for every component and the phone.
Sources Official project documentation
06Is the autonomous mode ready just after assembly?
The robot can be manually driven after setup. Advanced autonomous behavior depends on software configuration, sensors, data collection and compatible Android hardware.
Sources Official project documentation
OpenBot: parts cost, software updates and maintenance
This practical ownership section complements the original assembly and programming instructions. Public files do not guarantee that all components can still be purchased or that every build is supported.
| Item | Project record |
|---|---|
| Cost record / BOM target | Around US$50 body target quoted by authors, not total phone or current parts cost |
| Software licence | Check official root LICENSE for code and model notices |
| Hardware licence | Open repo with printable body designs; verify specific mesh terms |
| Simulation availability | Android software stack; no complete physics model required for basic driving |
| Build difficulty | Intermediate |
How to obtain the robot or its parts
Use the OpenBot documentation and hardware release to identify whether an assembled product, kit or self-sourced parts are offered. Price the matching revision, not a photograph or an old bill of materials. Include actuators, controller, supply, wiring, tools, fabrication, shipping, tax and spare parts. A historical BOM target is not a current delivered quote.
- Project documentation
- Source repository and version history
- CAD / fabrication files
- Revision-specific workshop source
How the hardware and software work together
Mechanical path: Phone mount → Controller → Motor driver → Four wheels.
- Phone camera / input
- Android robot app
- Microcontroller
- Motor driver + wheels
Feedback, fault detection and the approved stop function constrain the command path.
Flash the corresponding firmware through the OpenBot firmware tool or Arduino IDE, then build or install the compatible Android app. Pair a supported controller, verify the phone communicates with the microcontroller and test forward/turn while the wheels are raised. Use manual control before autonomy.
Install, update and recover the software
Keep the exact hardware revision, repository commit, operating system, dependencies, controller firmware and calibration in a local build manifest. Read the project’s setup instructions before installing. Use an isolated environment and a separate checkout for upgrades; compare release notes, regenerate only the documented configuration, and first repeat a simulation or read-only test. Back up calibration and original firmware files where the project supports it. Restore only a documented compatible release if the new version fails.
Project-specific verification: Confirm forward, turning and stop response on the floor and check the camera view. If the phone loses communication, test the firmware's documented stop behavior before any person-following or autonomous navigation.
Power, battery replacement and cycle life
Track phone battery and robot motor supply separately; use the documented voltage and charging method for each.
Battery cycle life and robot service life are different. Equivalent full cycles (EFC) can be estimated as cumulative discharged energy (Wh) divided by initial usable pack energy (Wh). State of health (SOH) is measured usable capacity divided by baseline usable capacity × 100%, under comparable conditions. Example only: 1,800 Wh discharged from a 600 Wh reference pack equals 3 EFC; neither number is a specification for this robot. Ask for the manufacturer’s cycle rating, temperature limits, capacity-retention criterion and warranty. Do not use an arbitrary percentage as a replacement threshold.
Common problems, wear and service plan
| When | Inspection and evidence |
|---|---|
| Before operation | Check wheel traction, phone mount and controller communication; distinguish phone frame rate from motor-control feedback. |
| After a fault or impact | Wire the selected driver according to its matching diagram; verify motor polarity and power rails while disconnected. Select the exact robot and controller variant in the firmware settings; do not flash a custom-board configuration onto an L298N build. |
| After software or parts change | Record versions and replaced part serials; compare the same approved test with the earlier baseline. Stop on new errors or unexpected movement. |
| At manufacturer service intervals | Use the documented interval and authorized service procedures. No universal calendar or lubricant is assumed. |
| At end of service | Ask about spare-part availability, data removal, battery take-back and local electronics recycling. |
What is not established by the published files
The project documentation must provide any claimed rated service life, battery cycle endurance, duty limits, warranty and repair intervals for the exact hardware. Without a cited endurance test, report those values as not established, not zero and not an estimate. For a DIY build, keep a parts-replacement log and report conditions when measuring reliability.
Original documentation
- Source project
- Full DIY assembly guide
- Printable body and phone mount
- Firmware and hardware variants
Found a changed specification? Submit a correction with its source ↗