M. Ali Petek
← Products

RoboVac Arm & Autonomous Brain

Experiment Work in progress 2026

Laser-cut 3-DOF folding arm & lidar-free vision brain for a commodity robot vacuum

RoboVac with its laser-cut 3-DOF folding arm reaching down to pick a sock off the floor

A cheap robot vacuum (Eufy 35C) is a remarkably frustrating platform. It has no lidar, no wheel odometry, and no continuous velocity control — just discrete ~5 cm forward steps, 24° turns, a mechanical bumper, and a Tuya command bridge that quietly drops roughly 10% of commands. Worse, a single sock left on the bedroom floor ends the cleaning run.

This project pushes that exact commodity hardware envelope without turning it into a €3,000 research robot:

  1. A 48.6 mm-tall folding 3-DOF pickup arm cut 100% from one 600 × 400 × 3.0 mm sheet of cast acrylic, driven by three $2 28BYJ-48 steppers and an MG90S micro-servo, capable of stowing flat inside the chassis circle and lifting a 200 g sock or t-shirt off the floor.
  2. A lidar-free, markerless Python brain running on a spare CPU-only home server, seeing only what cheap ESP32-CAM modules see, localising in a scanned apartment from monocular depth alone, and taking high-level direction from a typed decision model (Cloudflare/clef-flash).

You can scrub through the live CAD unfold simulation above — every gear tooth, shaft, and motor on screen is driven directly from the SolidCraft B-Rep assembly and tools/arm_v7_thin_sim.py.

Key Specs & Verified Numbers

  • Single-Sheet 3.0 mm PMMA Arm (V7 rev 6): 70 laser-cut pieces nested onto a single 600 × 400 × 3.0 mm sheet (592.8 × 317.4 mm, zero 3D-printed parts, zero POM). Multi-layer gears and links laminate 3 mm slices keyed on M3/M4/M6 hex pockets and solvent-welded (Weld-On 3/4).
  • Ultra-Low Stowed Profile: Folds flat side-by-side inside the R = 162.5 mm chassis circle (max_radius = 157.4 mm), sitting just 48.64 mm above the deck (136.14 mm total height) so the vacuum can still drive under furniture.
  • 200 g Floor Pick & Lift: Unfolds collision-free (yaw → elbow_up → shoulder → elbow_down → grip → lift) to z = 1.00 mm ahead of the bumper (y = 228.2 mm), closes serrated twin-rack jaws (1.0–31.0 mm mouth), and lifts 200 g to 50.8 mm off the floor (42.5:1 shoulder, 15.3:1 elbow, 4:1 under-deck yaw — all SF ≥ 1.58 at stall, 163 closed B-Rep bodies, 0 interferences).
  • Lidar-Free, Markerless Localisation: Four height-banded 2.5D log-odds maps (3–10, 10–35, 35–90, >90 cm) built from floor-calibrated monocular depth. A 15-frame spin (12,000 annealed particles) solves 92–95% of global relocalisation trials to 1.6–1.9 cm / 0.4° median error, with live tracking drift held to 2.6–4.3 cm median over 600–1,200 commands and 3/3 kidnap recoveries.
  • 6-Room Apartment Simulation & Persistent Home Memory (~93 m²): Upgraded from an early 2-room test flat to a full 6-room, 11.5 × 8.1 m apartment (living room, kitchen, hallway, office, bedroom, bathroom) with 24 furniture pieces, CC0 PBR textures, four lighting modes, wide-angle ESP32-S3-CAM (OV2640 160° deck + XIAO ESP32-S3 Sense wrist) optics, a synced mobile app controller, and a persistent home store saving the floorplan, height-banded map (125 keyframes, 93.3% coverage), and semantic objects.
  • On-Device Object Identification (Cactus Mirage 51M): Runs in a dedicated CPU worker process off the command loop (brain/vision.py) to detect and label furniture and household objects around the robot, projecting bounding boxes through monocular depth into house coordinates to build a confirmed 3D/2D semantic object map (33 remembered landmarks in the saved 6-room home) without stalling the ~44 ms control loop.
  • Decision-Model Supervisor: Every 80 commands, Cloudflare/clef-flash inspects a height-banded bird's-eye reconstruction and three camera views via typed choice/noul questions (no JSON parsing) to pick the high-level task (explore, pick_up, vacuum, recharge, dock).

Full 6-room apartment Three.js simulation overview (living room, kitchen, hallway, office, bedroom, bathroom)


1. Seven Iterations to a 48.6 mm Folding Arm

Early iterations (V3 through V5) proved out reach and gripping kinematics with 3D-printed parts and 5 mm acrylic plates, then ran head-first into three hard limits:

  1. A pedestal arm ruins the vacuum. V5 mounted the shoulder on a vertical turret above the deck. Even turned 180° backwards to stay inside the R = 162.5 mm footprint, the arm added ~112 mm of height on top of a 72.5 mm chassis — too tall to clear a sofa or bed frame.
  2. A 5:1 shoulder sags on a 28BYJ-48. Closed-form IK tests in MuJoCo showed that under real 28BYJ-48 torque limits (0.025 N·m conservative continuous rating), a 5:1 shoulder couldn't follow a straight vertical descent and dragged a 30 mm target 43.4 mm across the floor instead of gripping it.
  3. You cannot fold a forearm inside an upper arm if the elbow motor lives between the plates. Exact separating-axis collision sweeps over every (shoulder, elbow) pair showed that every compact inline fold slammed the gripper head into the shoulder plates and the elbow motor into the forearm.

Trading vertical space for horizontal space

V7 ("thin layout") threw away the pedestal and went side-by-side:

  • Zero pedestal: A laminated Ø72 × 6 mm turntable sits directly on the deck, driven from under the deck by a 4:1 (12T / 48T) yaw gear train tucked inside the z = 54.0–87.5 mm chassis bay.
  • Side-by-side clevis fold: Instead of nesting the forearm inside the upper arm, the forearm plates sit immediately beside the upper arm on a shared elbow axle with a 0.5 mm PTFE thrust washer — no cantilevered pin span, and the forearm folds 180° flat alongside the upper arm.
  • Stowed height: 48.64 mm above the deck (136.14 mm total, max_radius = 157.4 mm inside the 162.5 mm chassis circle).

SolidCraft CAD — Arm V7 stowed flat inside the chassis circle

One single sheet of 3.0 mm cast PMMA

Earlier revisions mixed 3 mm, 5 mm, and 6 mm sheets plus POM for the high-load shoulder sector gear because Lewis bending stress on a plain 6 mm PMMA sector gave a safety factor of 0.57 at stall.

In V7 rev 6, every mesh was redesigned to cut 100% from a single 600 × 400 × 3.0 mm cast PMMA sheet — 70 pieces, zero POM, zero 3D-printed parts. Higher-torque gears laminate 2×, 3×, or 4× 3.0 mm slices keyed onto M3/M4/M6 hex pockets and solvent-welded (Weld-On 3/4), with positive profile shifts (+0.30 to +0.42) to eliminate undercut on 10T–12T pinions:

MeshModuleTeethFace (mm)Profile shift x1Safety factor (20 MPa)
Shoulder stage 11.0010 / 406.0+0.423.55
Shoulder stage 21.0011 / 399.0+0.361.94
Shoulder stage 31.2512 / 36 sector12.0+0.301.58
Elbow stage 11.0010 / 426.0+0.423.55
Elbow stage 21.0011 / 409.0+0.361.84
Under-deck yaw1.0012 / 486.0+0.305.19
Gripper rack-pinion1.0020 / twin rack3.00.002.13

SolidCraft CAD — Shoulder 3-stage profile-shifted PMMA gear train and real 28BYJ-48 stepper

SolidCraft CAD — In-line MG90S 20T pinion and serrated twin-rack gripper

Trap 1: Unfold order matters

When we ran the first kinematic sweep on the side-by-side fold, lifting the shoulder first swung the stowed gripper — which sits behind the shoulder axle — straight down into the vacuum's deck. The collision-free unfold sequence has to be yaw → elbow_up (+90°) → shoulder → elbow_down, keeping the arm empty during the over-the-top swing (unloaded margins +208% shoulder / +268% elbow), then gripping at z = 1.00 mm ahead of the bumper and lifting 200 g to 50.8 mm (+42.4% / +71.6% at pick, +28.8% / +1.3% at lift under the conservative 0.025 N·m motor rating).

Both the stowed and pick SolidCraft B-Rep assemblies (163 closed bodies, 0 open bodies) pass full pairwise inspect.interference with 0 overlaps.


2. A 6-Room Split-Process World & On-Device Object Recognition (Cactus Mirage)

Early simulation scripts put a tiny 2-room box flat and the planner in one Python process. That made it too easy for perception bugs to hide behind accidental access to ground truth — and too small to stress-test multi-room navigation.

We split the system into two programs over a WebSocket and scaled the world up to a full 6-room, 11.5 × 8.1 m (~93 m²) apartment (living room, kitchen, hallway, office, bedroom, bathroom):

  • The World (sim_web/, Three.js Studio + Mobile App Controller): Renders 24 CC0 Poly Haven furniture pieces, rugs, real windows, four lighting modes (sun, overcast, night lamps, dark LED-only), and real ESP32-S3-CAM lens/sensor profiles — led by an OV2640 160° Wide M12 deck camera ($11, 11 g, 2.2× wider horizontal sweep for faster localisation and landmark recognition) plus a XIAO ESP32-S3 Sense wrist eye — with barrel distortion, gain noise, motion blur during discrete 5 cm / 24° moves, and 10% dropped Tuya commands.
  • The Brain (brain/, Python on a CPU-only host): Receives only JPEG frames, monocular depth maps, and bumper/status flags — the exact same wire protocol a real ESP32-CAM + ESPHome adapter will send. Navigation and particle tracking stay fast (~44 ms per decision), and brain/home_store.py persists the learned apartment across runs (floorplan, 4-band map, 125 keyframes at 93.3% coverage, and remembered objects).

Identifying objects around the robot with Cactus Mirage (51M)

To understand what is in the apartment — chairs, tables, beds, doorways, windows, and clutter — brain/vision.py runs Cactus Mirage, a 51M-parameter on-device vision model, on CPU:

  • Off-the-loop worker process: A Mirage pass takes ~0.5–1.7 s on CPU (several drive commands' worth), so it runs in its own Python worker process. Whenever the worker is free, the mission hands it the newest front-camera frame and keeps driving; frames that arrive while Mirage is busy are dropped rather than queued so the robot never stalls.
  • Depth-projected semantic memory: Each returned bounding box is projected into house coordinates using the frame's monocular depth map and the robot's pose estimate. Sightings taken while the pose is confident are clustered by label (within 0.60 m) and promoted to the persistent home map once confirmed on ≥ 2 sightings (33 mapped landmarks in the 6-room saved home), rendered live as camera boxes, 2D map labels, and 3D scene labels.
  • Measured boundary between semantics and geometry (tools/semantic_bench.py): We tested whether Mirage labels could also steer global relocalisation between similar rooms, and measured that a 51M open-vocabulary model shifts labels across angles (calling the same object chair/bench/table, or describing the outdoor view through a bedroom window as ocean/pier), preferring the true pose only 55/87 (seed 0) and 43/86 (seed 1) times. Keeping Mirage dedicated to real-time object identification, semantic home memory, and UI telemetry while the 4-band height map owns localisation gives the best of both worlds.

RoboVac localisation and navigation architecture

Four-panel live browser simulator showing World, Robot Input, Belief map, and Mind

One immediate win from adding the camera model: uncalibrated barrel distortion tripled range error from 1.15% (pinhole) to 3.34%, proving camera calibration cannot be skipped.


3. Localising From Monocular Depth Alone (and the Bug That Hid the Bedroom)

With no lidar and no fiducial markers on the walls, how does a robot know where it is in a multi-room apartment after being powered on or picked up and moved?

Monocular depth (img2depth) has a neat geometric property: a relative range error e along a ray shifts a point's height by e · (z - h_cam). Near the camera's own ~10 cm deck height, skirting boards (6–10 cm) and furniture plinths have sub-millimetre height error even under 3% depth error, provided you fit the floor plane first to remove pitch/roll.

So instead of throwing away points below 12 cm (as our first bench did), brain/bands.py builds a four-band 2.5D log-odds map (3–10 cm, 10–35 cm, 35–90 cm, >90 cm) on a 3 cm grid, and localises via an annealed particle search (12,000 particles × 24 iterations) over a full 15-frame in-place spin.

Browser 3D depth-reconstruction and global relocalisation lab

Trap 2: "The model can't tell the two rooms apart" — actually, the bedroom wasn't in the map

For days, our offline benchmark showed single-frame localisation stuck at 32% exact, and every failure in the bedroom came back flagged as a model failure (41 model vs 5 search). It looked like a fundamental room-ambiguity wall.

Then we checked the match score at the true pose: living-room frames matched their map 93–98%, while bedroom frames matched 0–4%.

The bug was a single line in bands.build: it dropped hits beyond 6 m using hypot(gx, gy) — distance from the house origin (0, 0), not distance from the camera. The entire bedroom sat more than 6 m from the house corner, so almost nothing in the bedroom ever became occupied.

Once we fixed range-from-camera (plus a cached spin-merge bug that was undoing each frame's yaw, and an AMCL z_rand floor for outlier points), the numbers snapped into place:

  • Offline global relocalisation (15-frame spin, 3% depth noise, 1.03× scale error): 92–95% exact across 173 trials (seed 1: 86/86), median error 1.6–1.9 cm and 0.4°.
  • In-browser reconstruction lab (80% map coverage): 40/40 correct across 3 seeds, median 4 cm.
  • Continuous tracking (trace_drift): median 2.6–4.3 cm over 600–1,200 commands (down from 1.33 m drift earlier).
  • Kidnap recovery (teleport + 'lost' flag): 3/3 seeds recovered to within 4–12 cm and 1–2°.

4. Picking Up Socks — and Two More Things That Broke

Closing the loop on a real household task — find five socks scattered around a bed and living room, pick them up, and carry them into a corner — surfaced two lessons that no unit test would have predicted:

RoboVac picking a sock in the living room simulation

Trap 3: Putting the wrist camera into the search loop made everything worse

The robot has three ESP32-CAM mounts: front deck, rear deck, and an eye-in-hand camera on the forearm looking down at the jaws. Intuitively, using the wrist camera during search should help spot socks near furniture.

Measured across three different implementations:

  • Deck eye alone: 159 commands, 27 seconds for one sock.
  • Wrist eye in the detection pass, in a look-under sweep, or aimed at remembered spots: 2,764–2,778 commands, zero socks collected.

A camera 20 cm off the floor sees a tiny patch of dark floor and slows down the patrol loop that actually finds targets. The wrist camera belongs strictly in an isolated aiming sub-behaviour once the robot has already arrived — never in the patrol loop.

Trap 4: Delivered socks trapped the robot in the drop corner

Two socks into a five-sock run, the robot spent 5,500 commands fighting its way out of the drop corner. The delivered socks were still in the simulator's solid obstacle list, so the pile the robot was building became a wall that triggered the stuck-recovery handler and bounced it back into the corner. Marking delivered socks non-blocking fixed the trap immediately.

A typed decision model as supervisor

At 5 cm and 24° per command, a 1–2 second vision-language call cannot steer the wheels. Instead, brain/supervisor.py consults Cloudflare/clef-flash (a 9B decision model on Jev/SystemOne) once every 80 commands.

Rather than prompting for free-form JSON and praying a parser survives, the brain sends a height-banded bird's-eye reconstruction plus the three camera frames and asks a closed schema of typed choice and noul (yes/no probability) questions: what job should we do next (explore, pick_up, vacuum, recharge, dock), is the robot stuck, and which pre-validated staging point should it visit? Anything outside the schema or below confidence is ignored, and the deterministic phase machine keeps running safely.

In an earlier 96-consultation run where we asked Clef to advise on the pick itself, it answered look_under 92 out of 96 times — an unprompted, accurate diagnosis that the deck camera couldn't see under the bed edge, pointing directly to the next sub-behaviour to build.


What Is Still Open

This is an active hardware + software build, not a finished consumer product:

  • Physical fabrication & sim-to-real: V7 rev 6 is laser-cut-ready (nest_3mm_pmma.svg, 0 CAD interferences), and the cleaning U-Net (0.913 dirt IoU / 0.865 trash IoU on unseen randomised MuJoCo holdouts, 70% 30 s coverage vs 53% sweep) is still synthetic-only. Cutting the acrylic sheet, assembling the laminated gear stacks, and fitting the camera model against real ESP32-CAM frames of the flat are next.
  • Unfold speed: At 15 rpm from a 28BYJ-48 through 42.5:1 / 15.3:1 reductions, a full unfold takes ~72 seconds. Fine for occasional sock pickup; worth upgrading motors later if speed matters.
  • Isolated pick & look-under sub-behaviour: Separating the pick state machine from the main mission tick so the wrist camera can safely inspect under bed edges without disrupting patrol.