Projects / Robotics & real-time systems
Case study · Multi-processor architecture · Real-time embedded

Autonomous Fast Bot

A fully autonomous robot that avoids obstacles as small as furniture legs while travelling at up to 7 feet per second. It doesn't learn or memorize a course, so new courses and new obstacles don't affect it. All of its decisions are made in real time on five inexpensive processors working in parallel.

The problem

My first autonomous bot used one processor. To avoid small obstacles it had to stop and look. One processor can't scan many sensors and steer at speed, because each ultrasonic ping takes time and a fast vehicle covers a lot of ground during that time.

What I built

A partitioned architecture: four processors each watch one direction, and a fifth runs the motors. The forward board can interrupt the motor board immediately, while the others continuously report how much clear distance they see.

The result

A vehicle running at almost 5 mph that stays inside a "playpen" of small obstacles without stopping, for about $218 in processors and sensors.

5Arduino Mega processors in parallel
18ultrasonic sensors
7 ft/stop speed, almost 5 mph
30 inforward reaction distance
~$218processors and sensors
In operation

Running the course with no map

The Fast Bot inside its ring of small obstacles. No learned path: each decision comes from live sensor readings.
Close-up of the robot with ultrasonic sensors facing several directions and dense wiring between processor boards
Sensors face all four directions. The wiring for 18 sensors, five processors and the motor controllers took several weekends.
Avoiding small obstacles.
The bot working through its course.
Four views of the Fast Bot running, in one video.
The Fast Bot recognized by a custom-trained YOLO vision model.
Architecture

Partition the work to meet the timing

At 7 ft/s, a 30-inch detection distance leaves about 0.36 seconds to confirm the obstacle, signal the motor board, and get the motors to respond. That budget drove the design.

Forward board
9 forward sensorsConfirms an obstacle inside 30 inchesHardware interrupt to the motor board
Left board
3 sensorsContinuous range-band report
Right board
3 sensorsContinuous range-band report
Rear board
3 sensorsContinuous range-band report
Motor control board
Receives the interruptReads the three clearance reportsTurns toward the greatest open distance
Technical depth

For the engineers in the room

Inter-processor signaling
  • No serial protocol between the boards where speed mattered: each side board reports its clearance over three discrete lines coded as range bands (2–3 ft, 3–6 ft, over 6 ft)
  • The forward board drives a hardware interrupt, so the motor board reacts without polling
  • Each direction is scanned independently, so adding sensors doesn't slow the other directions
Why this was hard
  • Getting the interrupt timing from the forward board and the motor-command timing correct took patience and a lot of trial and error
  • Ultrasonic sensors must be fired so that they don't hear each other's echoes, which constrains the scan order
  • Small obstacles such as pipe furniture legs return weak, intermittent echoes. Lessons from the earlier single-processor bot set the detection logic
From first generation to second
  • Generation 1: one processor, stop-and-look. It met its requirements, but speed was limited by the sequential scan
  • Generation 2: five processors and twice the sensors. Same design discipline, with the timing problem solved by architecture rather than by faster parts
Applying it to your product

Real-time systems on low-cost hardware

The lesson is general: when one processor can't meet the deadline, partition the problem so that each processor has a job it can always finish in time. The same approach applies to:

  • Autonomous carts and warehouse or factory vehicles
  • Multi-sensor data acquisition with hard timing limits
  • Safety interlocks that must not wait on a busy main processor
  • Low-cost prototypes before committing to custom electronics
Technology

Stack

Arduino Mega × 5C / C++Ultrasonic rangefinders × 18NewPingHardware interruptsPWM motor control

Have a real-time problem one processor can't solve?

I design the architecture first, and then the timing works.

Start a conversation

← Back to all projects