Case study · Robotics R&D · Autonomous systems

An autonomous delivery robot, and the fleet platform that dispatches it.

Book a robot the way you book a ride. This project connected a GPS-guided robot to a customer booking app, a backend that assigns robots to orders, and a live fleet map. It is independent R&D by Throughout's co-founder, Insaf Inhaam.

Type
Robotics R&D
Period
2024 – 2025
Core stack
Arduino · Node.js · React · MongoDB
Status
Working prototype
Concept render of a sidewalk delivery robot with a GPS mast, an app-controlled cargo lid, a sensor face and six wheels
Concept render of the production form. The prototype hardware is shown further down.

The idea: a ride-hailing app with a robot instead of a driver.

Apps like Uber and PickMe already solved booking, dispatch and tracking for human drivers. This project asked what it takes to put a robot in the driver's seat: a customer picks a pickup point and a destination, an available robot is assigned automatically, and the recipient opens the cargo lid from their phone.

The hard part isn't any single piece. It's making physical hardware, location services and a multi-user backend behave as one system.

The system. Four layers, one delivery.

  1. 01 · React · Google Maps

    Customer app

    Book a delivery, choose pickup and drop-off, follow the order.

  2. 02 · Node.js · Express · JWT

    Backend API

    Authentication, orders, robot records and coordinates.

  3. 03 · MongoDB · Mongoose

    Fleet dispatch

    Finds an available robot, assigns it and tracks each order's state.

  4. 04 · Arduino · GPS · sensors

    Robot

    Fetches its targets, navigates by GPS and compass, avoids obstacles.

Booking a robot.

Booking screen: pickup and delivery fields, a route drawn on Google Maps from Colombo to Mount Lavinia, and a recommended robot with its arrival time and estimated fare
The booking app, August 2024
  • Pickup and drop-off chosen with Google Places search
  • Route previewed on the map before booking
  • A recommended robot with its arrival time and an estimated fare
  • Item details captured with the order: name, weight and category

Fleet management. Every robot, every order, on one map.

Fleet dashboard: a map of the Colombo area with robot markers and a sidebar for robots, admin and users
The fleet dashboard, August 2024

Robot registry

Each robot is registered with a name, model number, a generated serial number, firmware version, last known coordinates, availability and lid state, the same records a real fleet operator would need.

Order lifecycle

  1. Placed
  2. Waiting for robot
  3. Picking up
  4. Delivering
  5. Complete

Orders can also end as failed or canceled.

The robot.

Four-wheel prototype chassis with motor drivers and ultrasonic sensors on the bench, firmware open on a laptop
Close-up of the prototype chassis wiring and wheels

Prototype drive platform, August 2024

PartComponentRole
ControllerArduino UnoMotor control, sensing and navigation loop
DriveFour DC motors, two L298N driversDifferential steering on a four-wheel chassis
Obstacle sensingHC-SR04 ultrasonic arrayFront, rear and sides; refined from ten sensors to four
PositioningGY-GPS6MV2 GPS, HMC5883L compassCurrent position and heading toward each waypoint
ConnectivityWi-Fi, SIM800C GSM moduleRetrieving targets from the backend away from Wi-Fi
CargoServo-driven lidLid state set from the app through the API

Navigation loop

  1. 01Read the robot's GPS position and the target coordinates from the backend
  2. 02Calculate the bearing to the target and compare it with the compass heading
  3. 03Turn toward the target, then drive forward
  4. 04Watch the ultrasonic sensors and steer around anything in the path
  5. 05Recalculate as the robot moves, and stop within about five metres of the target
  6. 06Repeat for each leg: station to pickup, pickup to drop-off, and back to base

Engineering decisions, and what we learned.

  • Destinations from the backend, not the firmware

    The first navigation code had fixed target coordinates. Moving them to an API meant one robot could serve any order: station to pickup, pickup to drop-off, and back to base.

  • Dispatch with a waiting queue

    When an order arrives, the backend assigns an active, available robot and marks it busy. If none is free, the order waits and is assigned as soon as a robot comes back.

  • Assignment that survives concurrency

    The prototype looks up a robot and then updates it in two steps. At fleet scale that must be one atomic operation, so two simultaneous orders can never claim the same robot.

  • Validate every coordinate

    One bad record produced a NaN latitude and broke the map. Coordinates are now type-checked when a robot is registered, before they reach the dashboard.

Where it stands. What's built, what's prototyped, what's next.

Built in software

  • React booking app with Google Places search and route preview
  • Node.js and Express API with JWT authentication
  • MongoDB models for customers, orders and robots
  • Robot registry with model, serial number and firmware version
  • Automatic robot assignment with a waiting queue
  • Fleet map dashboard with React Leaflet
  • API to open and close the cargo lid

Prototyped

  • Four-motor drive with L298N motor drivers
  • Ultrasonic obstacle detection
  • GPS and compass waypoint navigation on Arduino
  • Robot retrieving pickup and drop-off coordinates from the API
  • GSM connectivity for operation away from Wi-Fi
  • React Native mobile app scaffold

Next research

  • Camera-based detection on Raspberry Pi with OpenCV and TensorFlow Lite
  • ROS navigation with IMU and LiDAR sensor fusion
  • Live position streaming over Socket.IO or MQTT
  • Multi-robot fleet simulation

Building robots, automation or a fleet platform?

This project is the shape of the work we take on: hardware, navigation, backend dispatch and the apps people use, designed as one system.