Serial BLEF · B · L · R · ST · O · CV300–V2000A1 / A0M1 / M0H / 300 ms
Web Bluetooth · No server

Control
Leanbot,
without a server.

Send serial commands straight to Leanbot over Web Bluetooth, watch ultrasonic distance in real time, then drive the motors and gripper from a single tab.

Serial BLE◆F · B · L · R · S◆T · O · C◆V300–V2000◆A1 / A0◆M1 / M0◆H / 300 ms◆RX: D<cm>◆No server · No cloud◆

System / 01

Four layers
of control.

From the BLE radio down to the browser cache. Everything runs in a single tab, with no native install and no middleman.

/01

Direct Bluetooth

GATT / BLE

Web Bluetooth opens a BLE channel straight from the browser to Leanbot. No MQTT, no backend, no middle server that has to stay alive.

/02

Ultrasonic anti-collision

D<cm> / GUARD

Telemetry D<number> is read in real time from Leanbot.pingCm(). Under 15 cm the distance panel turns red and the firmware protection stays armed.

/03

Precise motors & gripper

LbMotion / LbGripper

Drive LbMotion from the D-Pad with a 300 ms heartbeat failsafe, plus LbGripper to open or close the gripper from the touch screen.

/04

Full offline cache

SW / MANIFEST

The Service Worker stores /controller and every one of its chunks, so the control deck still opens without internet. This landing page still needs a connection.

Protocol / 02

Serial
BLE,
as it is.

TX commands are written as characters to the characteristic that supports write or writeWithoutResponse. RX telemetry arrives over notify as a single line.

Active service UUID

0000ffe0-0000-1000-8000-00805f9b34fb
6e400001-b5a3-f393-e0a9-e50e24dcca9e

RX telemetry

D45\n
< 15 cm = DANGER
FForwardHold
BBackwardHold
LRotate leftHold
RRotate rightHold
SStopRelease
TU-Turn 180°Once
OOpen gripperActuator
CClose gripperActuator
VSpeed300–2000
AAnti-collisionON / OFF
MLine followON / OFF
HHeartbeat300 ms

Heartbeat failsafe

300 ms

While a direction button is held, H is sent every 300 ms. Lift your finger → S is sent immediately. If the heartbeat stops, firmware auto-stops before the robot hits anything.

Sequence / 03

Three steps,
one controller.

No pairing PIN
01

Prepare Leanbot

Power the robot on and make sure the LB555870 BLE module isn't bound to another device. Turn on Bluetooth on your phone or laptop.

02

Connect & pair

Tap the Connect button, pick Leanbot in the Web Bluetooth chooser, then allow access. The app finds the write and notify characteristics automatically.

03

Take control

Hold a direction button to move — heartbeat H is sent every 300 ms and S fires automatically when you let go. Dial in speed, guard, line follower, and gripper.

Compatibility

Web Bluetooth needs a recent Chrome or Edge and a secure context (HTTPS or localhost). On Android, enable Bluetooth and the Nearby Devices permission. iOS doesn't support Web Bluetooth yet.

↗Start controlling →