Project ideas¶
Ideas for robotics-lab, collected 2026-11-13. Status is what exists in this repo, not what is planned. "Untested" means it has never run on the real robot.
Hardware: a LEGO Mindstorms NXT 2.0 (stock firmware 1.28, read from the brick; the photo of its
screen was read as 1.31) built as a tracked Shooterbot. The
NXT 2.0 set comes with 2 touch sensors, 1 ultrasonic distance sensor and 1 colour sensor, and
every motor counts its rotation. Also arriving: Hugging Face's Microduck (Pollen Robotics),
which its official repo (pollen-robotics/microduck) describes as about 25 cm and 800 g, run by
a Rockchip RK3566: fifteen servos driven at 50 Hz by neural policies, a camera, an 8×8
time-of-flight depth sensor (press coverage said LiDAR; the repo does not), a beak that works
as a gripper, and an Apache-2.0 software stack. Details in MICRODUCK.md. Not
yet checked on the robot itself.
Ground rule: the NXT has 64 KB of RAM, so it runs the fast, simple control loops. AI (perception, planning, language) runs on the PC or the duck.
NXT programs that run on their own¶
Written in NXC under apps/nxt-web/programs/, compiled with apps/nxt-web/scripts/nxc.sh,
uploaded and started from the web UI. Each writes a CSV log on the brick that the UI can plot.
| Idea | What it does | Status |
|---|---|---|
| First drive | Beep, forward 1 s, back 1 s, log rotation counts | first.nxc written, compiles, untested |
| Chase (dog game) | Waits; backs away when something comes within 30 cm, stops at 60 cm; wiggles and chirps to invite a chase when left alone | chase.nxc written, compiles, untested |
| Patrol (dog game) | Wanders, turns away from obstacles; every 15 s stops and watches, alerts with a tone when the distance in front changes (something moved) | patrol.nxc written, compiles, untested |
| Obstacle-avoiding explorer | Drive until close, back up, turn, repeat, logging every decision | Not started. Patrol's drive/turn part is most of it |
| Line follower | Follow a tape line with the colour sensor; logs show wobble per run, good for tuning | Not started |
| Follow me | Keep about 50 cm behind what is in front; sweep to find you again after a turn | Not started. Weak point: the ultrasonic beam is wide and cannot tell a person from a chair |
| Map the home | Drive, scan distances, log (heading, distance); the PC draws a map | Not started. Expect a rough outline: tracks slip on turns so position drifts, and soft surfaces echo poorly |
Dog safety: no shooter in dog games. The balls are about 2 cm, small enough to swallow. Expect the dog to knock the robot over or chew cables, and fur may not reflect ultrasonic well, so readings on the dog itself may be poor.
Suggested order: explorer → line follower → follow me → map. Chase and patrol can run any time.
Wireless NXT¶
The NXT speaks classic Bluetooth (serial port profile). Plan: start with the PC's own Bluetooth, then a small board riding on the robot for house-level range.
- PC Bluetooth (start). Pair,
rfcomm bind(packagebluez-deprecated-tools), and nxt-python's device-file backend. One-line change inrobot.py. Room range. - ESP32 bridge on the robot (house level). Bluetooth to the NXT, Wi-Fi to the house.
nxt-python already has a network backend for its own
nxt-server, whose protocol is tiny (0x98asks the link type,0x99closes, anything else is a command forwarded to the brick and its reply sent back;nxt/backend/socket.py,nxt/command/server.py). If the ESP32 firmware speaks that protocol,nxt-webworks over Wi-Fi with no change beyond choosing the backend. - Needs an original ESP32 (classic Bluetooth). ESP32-S2/S3/C3/C6 have Bluetooth LE only.
- Off the shelf and small: M5Stack Atom Lite (ESP32-PICO-D4: "Bluetooth v4.2 BR/EDR and Bluetooth LE" per Espressif's datasheet; the PICO series is marked not recommended for new designs, so stock may thin out). Avoid AtomS3 / CoreS3 / StampS3 (ESP32-S3).
- Raspberry Pi Zero 2 W on the robot (alternative). USB to the NXT, runs
nxt-webitself; heavier and needs more power, but no firmware to write and room for a camera.
Status 2026-11-14: option 1 works (paired, /dev/rfcomm0, nxt-web drives over it; about
41 ms per command alone, about 170–190 ms while live sampling shares the link).
Where the NXT's JSON-RPC lives (operator to decide once everything works)¶
The duck speaks JSON-RPC; the NXT should too, so the robot brain drives both the same way.
Two layers: the JSON-RPC interface (robot.move, robot.state, robot.do …) and the
link to the brick (LEGO's direct commands over USB, PC Bluetooth, or an ESP32 bridge).
- Proposed: JSON-RPC in a Python NXT service (today's
nxt-webgrown up) on the PC, or a Pi later; the ESP32 only a dumb Wi-Fi↔Bluetooth byte bridge (nxt-python'snxt-serverprotocol). All logic stays in Python; the firmware stays tiny. - Alternative: JSON-RPC on the ESP32 itself: a self-contained Wi-Fi robot with no PC, at the cost of C++ firmware for every change.
- Either way, a deadman on the brick ("robotd-lite"): stock firmware keeps a motor's last
command, so a dropped link or a crashed server leaves motors running (it happened twice on
2026-11-14, see
apps/nxt-web/README.md). A small NXC program on the brick takes move commands through its message boxes and stops the motors when none arrive for 0.5 s, and stops on the ultrasonic locally. Planned next; to be tested on the brick.
An ESP32 with a screen riding on the brick¶
The rule: a Bluetooth link to the NXT needs an original ESP32 (classic Bluetooth); S2, S3, C3 and C6 chips are Bluetooth LE only. Among display boards, prefer one with a battery and an IMU: the bridge then doubles as the robot's gyro for dead reckoning and a status screen.
- Pick: M5Stack Core2 v1.3 — ESP32-D0WDQ6-V3 (original ESP32), BMI270 6-axis IMU, 500 mAh battery, 2.0" touch screen; €47.19 at RobotShop NL, on backorder (2026-11-14). Not the CoreS3 (an S3 chip).
- Also fine (from memory, check the exact model): M5StickC Plus / Plus2 (small, IMU, battery), M5Stack Basic / Gray, the original TTGO T-Display, the "Cheap Yellow Display" ESP32-2432S028.
- Not for Bluetooth: T-Display-S3, CoreS3, AtomS3, Cardputer, any S3/C3/C6 board.
- Later experiment: an S3 board plugged into the NXT's USB port (the S3 has USB host): no Bluetooth at all, but a small NXT USB driver on the ESP32 to write; not verified.
- What runs on it: the dumb Wi-Fi↔Bluetooth bridge in nxt-python's
nxt-serverprotocol (sonxt-weband the NXT service work over Wi-Fi unchanged), the IMU heading, and a status screen: link, mode, last command and deadman countdown, both batteries, the UI's address.
A Raspberry Pi riding on the brick¶
The alternative with Linux on board: camera, the navigator on the robot, ROS 2 if ever wanted. The shopping list (Raspberry Pi 4 4 GB, Camera Module 3 Wide, microSD, power bank, mounting) with Dutch shops is in NXT-PARTS.md, "A computer on board the NXT".
Bigger NXT robots¶
Operator's interest (2026-11-14): sensor and motor multiplexers, to build bigger robots with more capabilities. The brick has 3 motor ports and 4 sensor ports; ports 1 and 2 are free today.
- More motors — supported by nxt-python already (checked in the installed library):
Mindsensors NXTMMX (
mindsensors.MMX, more NXT motors on one sensor port), HiTechnic FIRST motor and servo controllers (hitechnic.MotorCon,ServoCon; DC motors and hobby servos), and Mindsensors' RCX motor multiplexer (MTRMUX, old RCX motors). - More sensors — a sensor multiplexer (e.g. HiTechnic's) puts several sensors on one port, but nxt-python has no class for one (searched the installed library): we would write it.
- Two bricks, one robot (recommended route for the arm robot): brick
BODY(tracks, ultrasonic, colour, bumpers) and brickARM(shoulder, elbow, gripper, gripper colour and touch): 6 motors and 8 sensors, no multiplexers, no new drivers. One NXT service owns both (bricks renamed and found by name) and presents one robot:robot.moveto BODY, arm commands to ARM. Links: a Pi on the robot with two USB cables (best), the PC over Bluetooth to both (/dev/rfcomm0,/dev/rfcomm1), or brick-to-brick Bluetooth with NXC programs (no computer; a brick probably cannot be master to the other and connected to the PC at once — not checked). Timing: not synchronised to the millisecond — fine for drive, stop, reach. Safety: a deadman on both bricks; STOP ALL stops both; if either drops off, the whole robot stops; both batteries shown. Frames:base_link → arm_base → … → gripper, the shape MoveIt expects. Code changes: a bricks section in the setup, connect by name, an arm panel, the brick named in the command log. - Costs to expect: every multiplexed device is an I2C conversation, so each sample takes longer (already about 41 ms per command over Bluetooth), and more motors draw more power; check each device's power requirements before buying.
- Availability: these are NXT-era parts, as far as known mostly second-hand now; not checked.
Goal project: a "bomb-disposal" style robot with an arm¶
Operator's idea (2026-11-14): a bigger NXT robot with an arm, like the movie robots that find a suspicious device and disarm it. A toy version: a LEGO "device" (a box with coloured pins or wires); the robot drives up, looks, and pulls the right pin; a touch sensor inside the box says whether it was the right one.
- Body: tracked base (2 motors) + arm: shoulder, elbow, gripper (3 motors at least), so more motors than the set's 3 — a second NXT brick or an NXTMMX, plus motors. Worm gears in the arm joints hold position with the power off.
- Sensors: ultrasonic to approach, colour sensor on the gripper to check a pin's colour, touch sensor in the gripper; a camera for the operator (a webcam/phone, or a Pi Zero on the robot), later the duck as a spotter.
- How it is run: like real ones — teleoperated first (drive + arm from the UI with video), then steps automated one by one: approach, look, reach.
- Fits the mission loop exactly: a flotilla case per "device"; "pull the red pin" is an
irreversible action → always
proposewith the camera frame for approval; the plan rehearsed in simulation where possible; eval-harness scores success rate over many set-ups.
With eval-harness¶
eval-harness asks "is this ranking real, or a lucky sample?". Robot trials are noisy and few, so that question matters more here, not less.
- Controllers as arms. Several versions of a program (tuning or approach) against a fixed
set of scenarios (track layouts, start positions). Score from the run logs: lap time, wobble,
collisions.
--repeatmeasures run-to-run noise;family-testsays whether B really beats A. The adapter'scall_system()would start a run through the NXT web API and read its log back; a person resets the robot between runs. - Replay recorded runs. Freeze recorded sensor logs as the dataset and ask each controller "given these readings, what do you do?" without moving the robot. Many items cost nothing; live trials confirm the winner.
- Perception for the duck's camera. Home photos: "is that me, the dog or a chair?", "which room is this?". Hosted vision models vs local open models vs a small classic detector vs a no-model baseline, on quality, cost and latency.
- LLM as planner. A command ("go check the hallway") becomes a plan in the robot's few actions; score plans against a reference or an evaluator before running the best ones.
- Simulation vs reality as two arms: the same controller in a simple simulator and on the robot.
First step suggested: idea 1 on the line follower.
With flotilla¶
flotilla: agents plan, a policy decides (run, ask or refuse), a host agent runs only what is signed and allowed, and every case keeps its timeline. Cases, policy, host agents and the UI are not built in flotilla yet, so these wait for those parts or drive them.
- The robot as a host.
flotilla-hoston the PC with the NXT; allowed actions are the robot's primitives (drive_cm,turn_deg,scan,run_program,fire), each with its own autonomy:scanruns,drive_cmasks until it has earned trust,firealways asks. - Home-patrol fleet. A trigger (schedule, noise, an event from home automation) opens a case such as "check the living room"; a worker plans, policy decides, the robot runs it, a check step looks at evidence (distances, a duck camera frame), the case closes.
- Ops fleet for the robots. Low battery, stuck (motors on, rotation counts not moving), program crash: each a case with a fix (back up, stop, notify).
- NXT and duck as two hosts in one fleet. The duck sees and talks, the NXT drives; flotilla coordinates and records who did what.
- flotilla as the outer approver of auto-mode missions (an idea and an opportunity, written down 2026-11-26; the operator: "maybe", to discuss after MVP 2 when mission planning starts). Mission Control plans, reviews, approves and runs steps (RFC-0030); flotilla would decide whether a mission type may run on a robot at all, as RFC-0005 proposed before Mission Control existed. The join sketched in RFC-0030 section 13:
- flotilla approves as a named token identity on Mission Control's approval route; Mission Control still enforces the plan checksum, the stop latch and mode 3 on the simulator only;
- flotilla's ladder maps onto the approval modes: shadow is a plan reviewed and not run, propose is mode 1 or 2, auto is mode 3;
- RFC-0005's whole-mission rehearsal on the simulated duck becomes the rule when auto mode reaches a real robot;
- the freeze is one more source of a STOP, which needs the gap RFC-0030 section 12 records closed (a STOP not sent through Mission Control does not latch a mission yet);
- "mission" means a flotilla case there and a plan run here: settle the word before it hardens.
Open then: whether this happens, or Mission Control's approval modes are enough and RFC-0005 is rewritten or retired; flotilla's own state (its host agent, a robot-host ADR, the answers to FLOTILLA-ASKS.md), not checked on 2026-11-26.
With the Microduck¶
What it adds over the NXT: a camera and an 8×8 depth sensor, so it can tell a person from a chair and see a room better than one ultrasonic sensor; a beak gripper; and behaviours trained in simulation with reinforcement learning.
- Simulation first. Set up its open-source simulator and training stack before it arrives, so the first day is running, not installing.
- The NXT's weak spots, done properly. Follow me (camera recognises you) and mapping
(camera and depth sensor; the simulator ships a six-room
apartmentscene) are the ideas the NXT can only do roughly. - Trained behaviours as arms in eval-harness. Policies from different training runs or settings, compared on repeated real trials (walking distance before a fall, success at a pick-up), and on how far the simulator's result differs from the real robot.
- Duck and NXT together. The duck watches and decides; the NXT drives or plays chase. In flotilla, two hosts in one fleet.
- Dog games, round two. Fetch with the beak, chosen with the dog's safety in mind (what it carries must not be swallowable).
Goal project: "visit every room, report their sizes, then wait by the front door"¶
Operator's goal (2026-11-13), revised 2026-11-14: tell the duck in plain words to explore the
whole home, roughly size each room, and end at a checkable place. The end is passed with the
mission: A a landmark (the front door; in the simulated apartment, 1 m from the coat rack in
the hall) — first; B back to the start; C the doorway of the largest room. (The first idea,
hiding under the kitchen table, was dropped: the simulated apartment has no table a 25 cm duck fits
under.) Two modes: auto (the duck's own autod explores and maps while the brain watches and
collects data) and brain (our navigator drives), with a switch.
Designed in RFC-0002 (modes, navigator, safety, phases) and RFC-0004 (missions in words, models, tools); reviewed in REVIEW-2026-11-14-duck-rfcs.md.
Training a language or vision-language-action model for the duck (2026-12-01)¶
The operator, 2026-12-01: "instead of training an ML model, train a mini LLM instead? Does something like that exist?", and: always wanted to learn how to train an LLM; this could be the place, with a good fit to the rest of the setup. To assess much later, after the learning arc (LEARNING-ARC-PLAN.md); nothing here is planned.
What exists (from memory, none checked on 2026-12-01): vision-language-action models map camera images and an instruction in words to robot actions: Google DeepMind's RT-2, OpenVLA, Octo, Physical Intelligence's pi0, Hugging Face's SmolVLA (about half a billion parameters, built for LeRobot and consumer GPUs), NVIDIA's GR00T for humanoids. They learn mostly by imitation from demonstrations, and run at a few decisions per second. Language models are also used above the controller, as planners that turn a request into steps (SayCan, Code as Policies).
Where it would sit on the duck. Today's learned controller is a small network: 1343 numbers in (the 8x8 depth sensor, the command, the walker's state), 3 out (forward, sideways, turn corrections), 10 times a second. A model of hundreds of millions of parameters would not replace it on the duck's own computer. Three places it could fit, nearest first:
- The mission planner (RFC-0004's missions in words): "visit every room, then wait by the front door" becomes the navigator's steps. A small model fine-tuned on mission-to-plan pairs, served like the rest, scored before it runs (the eval-harness section, idea 4).
- Recovery and evaluation: when the duck is stuck, a drop is suspected or a plan fails, a model reads the recent ticks and the map and picks the next action from a short list (back off, glance, replan, ask the operator).
- A small vision-language-action policy, trained by imitation: the demonstrations are the lab's
own runs (every lab round writes
ticks.jsonl: the pose, the request and the command sent, ten a second; one round of v1 and v2 is about 34,000 ticks per arm), from the rules navigator and the best learned controller, plus the duck's camera if the simulator renders it (not checked). The furthest from today and the closest to "train a model for the robot".
Why it fits the setup (as it stands on 2026-12-01): the DGX trains the duck's policies today and serves prod's language models (vLLM; fine-tuning a language model on it is not done yet); LiteLLM routes and Langfuse traces each call; eval-harness compares models on fixed items and on repeated runs; the lab's simulator rounds are the proving ground, the same as for the learned controller; Mission Control and its approval modes keep a model's plan from running without the operator's go.
A first step, when the time comes: idea 1 on text alone (no robot in the loop): a few hundred missions written as words and plans, a small open model fine-tuned on the DGX with LoRA, scored in eval-harness against a prompted larger model and against the hand-written planner. It teaches the training loop (data, fine-tuning, evaluation) on the cheapest problem.
Not checked: every model name and size above; whether duck-sim renders the camera; the DGX's time between the learning arc and prod.
AI loop¶
AI suggests a change to a controller → eval-harness says whether it is really better over repeated runs → the operator approves promoting it.
Open questions¶
- ~~Which ports the sensors are on~~ Checked 2026-11-14: colour on 3, ultrasonic on 4 (reports type "Sonar", read 73–83 cm).
- ~~Which motor ports drive which track~~ Checked 2026-11-14: A shooter, B right, C left, positive power forward on both.
- Microduck: the official repositories are read and the simulator runs here (MICRODUCK.md); the real robot is not in hand yet.
Noted not pursued (from 2026-11-17)¶
The operator, 2026-11-17: the goal is the apartment; good ideas that do not move toward it are noted here in a line and left. One line each; the date it was noted; where its detail lives, if anywhere.
- Turn-aware planner with per-robot moves (heading, room to turn, reversing for LEGO): agreed as an RFC when a challenge or the apartment needs it. 2026-11-17.
- Evidence-weighing drop layer (log-odds, observations re-anchored to corrected poses): agreed as an RFC when needed. 2026-11-17.
- Steps and bars (challenges 16–20): parked, the measurements in
STEPS.md. 2026-11-17. - Stuck detection (walking, the depth ahead not changing): agreed regardless; build when the apartment or a challenge shows it. 2026-11-17.
- The belief drifts 3–7 % in open scenes (challenges 10, 11): mapd's corrections the likely
cause; challenge 21 (ten goals in a row). 2026-11-17,
SIDE-DROPS.md. - State-stream stalls (2 in 132 runs, one fall): outside the navigator,
state_stalls.py. 2026-11-17. - A results ledger per batch (code commit, seeds, pass/fail, conclusion) feeding the hard-seed set and the replay tool. 2026-11-17.
- Parallel simulators: check whether the machine can run two. 2026-11-17.
- The settle-before-look wait after a cliff stop (the head moved while the body still braked). 2026-11-17.