corOS

Hardware & Quickstart Docs

Build, flash, and drive any robot with corOS.

Install corOS on your robot computer, laptop, or Android device, then monitor and control it remotely from os.robocor.ai.

01. How corOS Works

corOS separates the local robot host from corOS Web at os.robocor.ai so your robot stays responsive over USB serial, Bluetooth Classic serial, or supported rover LAN links while authorized operators monitor and drive it from anywhere.

Hardware Layer

Microcontroller

Arduino Uno, Nano, Mega, or ESP32 driving your motor controller (L298N, BTS7960, Cytron/Pololu, or existing sketch), or a supported networked rover (such as WAVE ROVER).

Onboard Host

Robot Computer running corOS

Windows, macOS, or Linux (Jetson ARM64 or Ubuntu x64) over USB serial or Bluetooth Classic (/dev/cu.* serial on macOS), or an Android phone/tablet over Bluetooth Classic or supported rover LAN.

Anywhere Access

corOS Web

Open os.robocor.ai from any desktop or mobile browser (including iOS Safari) for live video, telemetry, and control.

02. 5-Minute Arduino & ESP32 Quickstart (Zero Coding)

No IDE setup or firmware coding is required for standard differential-drive motor boards. Desktop corOS (Windows, macOS, and Linux) ships built-in Starter Templates in the USB Firmware Flasher.

L298N Dual H-Bridge

Standard hobby driver using ENA/IN1/IN2 and ENB/IN3/IN4 pins on Arduino or ESP32.

BTS7960 High-Current

Dual 43 A half-bridge modules driven with RPWM and LPWM pairs for heavier rovers.

DIR+PWM (Cytron / Pololu)

Single direction pin plus PWM speed pin per motor channel for Cytron MD10C/MDD10A and Pololu drivers.

  1. Install corOS on a desktop host (Windows, macOS, Linux ARM64, or Linux x64) from /downloads and connect your Arduino Uno/Nano/Mega or ESP32 over USB serial. (Android hosts connect over Bluetooth Classic, such as ESP32 Classic Bluetooth, rather than USB; USB Firmware Flashing is desktop-only.)
  2. Power your motors safely using any standard external battery pack (LiFePO4, LiPo, NiMH, or USB-C PD). No voltage sensor is required to drive; if you want live pack voltage readings, add an optional 2-resistor voltage divider to an analog input pin.
  3. Enable the flasher in desktop Maintenance Mode under Settings → Advanced → USB Firmware Flashing, then select Open Flasher.
  4. Choose a Starter Template matching your motor driver (L298N, BTS7960, or DIR+PWM), confirm your USB serial port and pin assignments, and select Build and Flash while the robot is stationary.
  5. Connect & drive: open Connections, assign the microcontroller USB port as Body, and test drive from the Body screen or remotely at os.robocor.ai. Turn USB Firmware Flashing back off when finished.
Safety tip: Prop the drive wheels off the ground for your first drive test so you can confirm wheel direction and motor inversion settings safely.

03. Open Body Serial Protocol Specification

If you write your own firmware for an Arduino, ESP32, Teensy, or STM32, implement this compact binary command and optional ASCII telemetry protocol to plug straight into the native corOS Body controller.

Serial Link Configuration

115200 baud, 8N1 (8 data bits, no parity, 1 stop bit). Host drive updates stream at 20 Hz (50 ms interval) while driving.

Motor Command Frame (4 bytes, Host → MCU)

0x84 <channel> <low7> <high7>

Neutral-Pair Arming & 500 ms Safety Watchdog

On power-up or after any watchdog timeout, keep motors disarmed until both channels receive neutral (speed = 128, where low7 = 0x00 and high7 = 0x01):

0x84 00 00 01 84 01 00 01   // Left neutral (128), Right neutral (128)

500 ms watchdog: if the microcontroller does not receive a valid motor frame within 500 ms, it must immediately stop and disarm both motors until a new neutral-pair arming sequence arrives.

AUX / GPIO Command Frame (4 bytes, Host → MCU)

0x85 <pin> <0|1> 0x00

Toggles auxiliary digital outputs such as headlights, relays, horns, or actuators (0x00 = off, 0x01 = on).

Optional ASCII Telemetry Lines (MCU → Host, CRLF or LF terminated)

$BATTERY=rawBus,rawShunt,io17
$FIRMWARE,VERSION=diy-1.0.0,RELEASE=l298n

04. Keep Your Existing Arduino Sketch (Custom Connections & Local API Key (BYOK))

Already have custom Arduino or ESP32 code talking JSON, CSV, AT commands, or proprietary bytes? You do not have to rewrite it.

  1. Attach via Custom Connections: open Connections → Custom Connections, add your USB serial or Bluetooth Classic serial device (Windows, Linux, and Android support Bluetooth Classic directly; on macOS, pair first and select the resulting /dev/cu.* serial port), pick its baud rate (9600 through 921600), and connect.
  2. Local API Key (BYOK): open Settings → AI Agent → Local API Key, turn on Use local API key, and configure Base URL, Model, and API Key (the key is optional for localhost OpenAI-compatible servers such as Ollama or LM Studio). Works natively on the robot host without signing in to the relay.
  3. Probe & generate live tools: ask the AI Agent to inspect your custom connection, probe commands and telemetry lines, and generate reusable Behaviors (automated routines) and custom operator Pages (controls and gauges) for your sketch.

05. Platforms & corBench Local Simulator

No hardware on your desk yet? Connect the desktop corOS app to the optional local corBench physics simulator to test navigation, sensors, cameras, and fleet workflows before flashing physical hardware.

Connect a Local corBench Hub

  1. Start the optional corBench simulator locally and open it in Chrome.
  2. In desktop corOS, go to Settings → Advanced → corBench simulator.
  3. Enter your corBench hub URL (for example ws://127.0.0.1:5180 on the same machine, or ws://192.168.1.20:5180 over LAN) and press Save.
  4. Bind virtual ports (corbench:body, corbench:imu, corbench:gnss, corbench:sensors) in Connections and assign corBench front / corBench rear under Cameras.

Platform Matrix

Platform Package Role & Capabilities Install
Windows (x64) Installer (.exe) Full robot host (USB serial, Bluetooth Classic, supported LAN rovers such as WAVE ROVER, cameras, USB Flasher, corBench) with automatic updates. Downloads
macOS Universal App Bundle Apple Silicon & Intel robot host (USB serial including /dev/cu.* paired Bluetooth serial ports, supported LAN rovers such as WAVE ROVER, cameras, USB Flasher, corBench) with automatic updates. Downloads
Linux (ARM64) Debian .deb (arm64) NVIDIA Jetson and 64-bit Raspberry Pi host (USB serial, Bluetooth Classic, supported LAN rovers, USB Flasher, corBench) with USB serial udev rules, headless Xvfb fallback, and automatic updates. Downloads
Linux (x64) Debian .deb (amd64) Ubuntu desktop, laptop, NUC, and x64 industrial PC robot host (USB serial, Bluetooth Classic, supported LAN rovers, USB Flasher, corBench) with udev rules, headless fallback, and automatic updates. Downloads
Android Google Play or APK (arm64) Onboard robot host for phones and tablets with Bluetooth Classic serial, onboard cameras, ARCore local mapping, flashlight control, and automatic updates via Google Play. Google Play · APK
Web & iOS Safari PWA at os.robocor.ai Remote fleet monitoring, teleoperation, alerts, and reports in any browser. On iPhone/iPad, tap Share → Add to Home Screen. os.robocor.ai