Robot Cheat Sheet

Print this and tape it to the table. Everything the robot understands is on this page.

IR remote

Works the moment the robot is switched on. No phone needed.

▲ ▼ ◀ ▶drive while held
OKSTOP — always works
1 / 2 / 3run stored program 1 / 2 / 3
4line tracking
5obstacle avoidance
6follow
7light seek
8seek (radar lock)
9speed up a notch (wraps)
0let go of control

Program language

One instruction per line. Upper or lower case, both fine.

F 900forward for 900 ms
B 900backward
L 350spin left
R 350spin right
W 500wait, wheels stopped
V 5speed 0–9
E 90point sonar, 0–180°
P 4 … Qrepeat 4 times
I 5 … Zif sensor 5 is true
Xend the program

Sensor numbers for I

1left line sees black
2right line sees black
3something close on the left
4something close on the right
5wall closer than 25 cm
6the way ahead is clear
7the right side is clear
8the left side is clear

6, 7 and 8 are the opposites of 5, 4 and 3. Pair them to get an if/else.

Typed commands

Same over USB or Bluetooth.

f b l r sdrive / stop
0–9speed (0 is slowest, NOT release)
t a w p yline / avoid / follow / light / seek
dread all sensors once
h1 / h0live sensor stream on / off
*1 *2 *3pick program slot
[ … ]save a program into the slot
g / krun / list the slot
z zset servo centre (twice within 6 s)
j<n>straight-drive trim, −15…15

When something is wrong

No servo wiggle at power-onservo not connected
Distance always “clear”press d: NOECHO climbing means the sonar never answered
SAVED steps= is too smallpart of the upload was lost; send it again
Robot stops by itselfmanual driving expires after 0.4 s; hold, do not tap
Flashing red bannerbattery cutoff — charge before anything else
Turns are wrong after a changere-run calibration; the numbers moved

Healthy numbers

5V rail4.90–5.10 V
Battery pack (2 cells)8.4 V full, 7.0 V get ready, 6.6 V cutoff
One room30.5 cm (12 inches)
Program slots3, up to 100 steps each