
02 · Project · Robotics
In developmentScout: a robot that
finds its way home.
An Elegoo Smart Robot Car V4.0 rebuilt with a Raspberry Pi 5, an Arduino UNO R4 and ROS 2 Jazzy. It drives over ROS 2 and tracks people with its camera today. Next it learns to map the apartment and carry seedlings from the chamber to the grow tower.
Person detection · Pi 5 CPU
19 FPS
Camera in ROS · measured
30 FPS
Automated tests · CI
40+
Hardware watchdog
300 ms
Concept render: where Scout is heading, an indoor vertical farm
01 · The problem
Knowing where you are,
without wheel encoders.
Scout is built on a cheap skid-steer chassis. Its four TT motors have no encoders, so the robot cannot count how far its wheels turned. And when a skid-steer robot turns, its wheels slide sideways by design.
So Scout has to work out where it is from other sensors. The plan: match LiDAR scans to measure how far it moved, fuse that with the gyro in an EKF, build a map, and plan paths through a room full of furniture. All of it on a Raspberry Pi 5.
Working now: teleop over ROS 2 with two safety layers, a URDF robot model, live telemetry in Foxglove, the camera at 30 FPS and a pan camera that follows a person, with YOLO26n person detection at about 19 FPS on the Pi 5 CPU (from 3 FPS after profiling). Videos: person tracking (youtu.be/UF68RhrAjy4), teleop in Foxglove (youtu.be/RkYV_hwotlY) and the build timelapse (youtu.be/KVtj6qZaDFg). In progress this November: a C++ port of the base bridge, then LiDAR odometry, a SLAM map and Nav2. The first mission after that: drive to a pickup point, wait for cargo, and drive it to the grow tower.
Tools & methods
02 · How it works
From Twist to wheel PWM
Move the pointer to steer.
ROS 2 sends a velocity command: forward speed v and turn rate ω. The base bridge turns that into a PWM value for the left and the right pair of wheels and sends one short line to the R4, 20 times a second.
If no new command arrives for 0.25 s, the bridge sends a stop. If the USB cable is pulled, the R4 stops the motors on its own after 300 ms. The figure runs the same maths as the bridge; track width, top speed and minimum PWM are example values until they are measured.
03 · Architecture
How it fits together.
Explore every link.
The ROS 2 graph
The nodes running on Scout today: the base and teleop (P1) and the person-tracking loop (P2), split between the Raspberry Pi 5 and the Arduino UNO R4.
base_bridge talks to the R4 over USB serial and publishes the IMU, joint states, battery and diagnostics. camera_ros feeds person_detector (YOLO11n), and pan_tracker turns the camera to keep the person centred. Foxglove shows it all live.
Open full screenWhere it is going
The target graph on the same two boards: LiDAR odometry, an EKF, a map, Nav2 and a delivery mission. Each node is tagged working, arriving or planned.
The TT motors have no encoders, so odometry comes from the RPLIDAR C1: rf2o_laser_odometry matches consecutive scans, robot_localization fuses that with the R4 gyro, slam_toolbox builds the map and Nav2 plans on it. A mission node drives home → pickup → wait for cargo → grow tower.
Open full screenStopping safely
What happens to a velocity command, and what stops the motors when something goes wrong.
Three layers: the bridge stops the robot when teleop goes quiet for 0.25 s, the R4 watchdog stops the motors when no command arrives for 300 ms, and the node sends a stop when it shuts down. Contract tests check this against a simulated R4 on every pull request.
Open full screen04 · Hardware
Layout and fit check
Measured, not guessed.
CAD fit check of the Elegoo plates with the Pi 5, the base controller board, the camera and the LiDAR. The numbers come from the model.
- Deck gap · CAD
- 39.7 mm
- LiDAR scan plane · CAD
- 131 mm
- Mass · CAD estimate
- ~794 g
- Drive
- Skid steer · 4 TT

05 · Measured results
Measured so far, and targets still to test
| Metric | Value | Test |
|---|---|---|
| Camera frames in ROS 2 on the Pi 5 | 30 FPS measured | Bench |
| Automated tests passing in CI (unit, linters, contract suite) | 42 measured | CI |
| Deck gap (CAD of the real plates) | 39.7 mm measured | CAD |
| Person detection on the Pi 5 CPU (YOLO26n, NCNN, 320 px; target ≥ 10) | 19 FPS measured | TC-SCOUT-010 |
| Person centred while tracking (±10 %) | ≥ 80 % of frames target | TC-SCOUT-025 |
| Heading drift, fused (on carpet) | < 5° / 10 m target | TC-SCOUT-006 |
| Nav to goal (within 10 cm / 10°) | 8 / 10 runs target | TC-SCOUT-008 |
Each target is a requirement in the Scout spec with its own test case. A target is replaced by a measured value only after the test has run on the real robot.
06 · What I learned
“Write the contract first, then make the robot keep it.”
The serial protocol between the Pi and the R4 is versioned and written down before the code. A simulated R4 speaks the same protocol, so the ROS 2 side is tested in CI on every pull request, without the robot on the desk.
The C++ port of the bridge has to pass the same contract tests as the Python version. Measure before you build: modelling the Elegoo plates in CAD showed only 39.7 mm between the decks, so every part was fit-checked before it was ordered.
07 · Links
“Everything harmonizes with me, which is harmonious to thee, O Universe.”