Build an Indoor Delivery Robot Using Raspberry Pi 5, Arduino and ROS 2

Share
Indoor Delivery Robot Using Raspberry Pi

In a college or an office, someone is always carrying a document or a small parcel from one room to another. It is a short trip, but it happens many times a day. So, could a small robot make those trips instead, while the person who needs the item asks for it from their desk? That is the job FIORA is being built for.

In this project, we show how to build FIORA, an indoor delivery robot base with a round foam-sheet body, four mecanum wheels and an RPLIDAR A1M8 on top. An Arduino Uno with an L293D Motor Driver Shield drives the four GB37 motors from a phone through an HC-05 Bluetooth module, and a Raspberry Pi 5 runs ROS 2 with the LiDAR to map a room in RViz2. Following this guide, you get a rover that you drive by hand and a LiDAR setup that maps the space around it. The indoor delivery robot does not deliver on its own yet. The link from ROS 2 to the motors, autonomous navigation, and the Telegram bot for delivery requests are still being built, and the Arduino sketch and the ROS 2 settings are not in the repository yet. You can also check out similar robotics projects and Raspberry Pi projects done previously here at Circuit Digest.

What is an Indoor Delivery Robot?

FIORA is meant to carry documents, materials and small packages between fixed points inside a building, such as an office, a warehouse, a hospital or a college. Its round base follows the look of Bella, a commercial delivery robot. The software plan is ROS 2 Jazzy, with SLAM Toolbox for mapping and Nav2 for navigation. The build is kept modular, so the base, the drive, the mapping and the user side can each be tested before the next part depends on it. If interested, do check out the ESP32 self-driving robot with ROS2 and LiDAR on Circuit Digest, which already maps and drives itself.

How Does the FIORA Indoor Delivery Robot Work?

The working is split into two halves that are not connected to each other yet. The drive half is an Arduino Uno with an L293D Motor Driver Shield stacked on it. A phone running a Bluetooth car controller app sends commands to the HC-05 module; the Arduino reads them, and the shield runs the four GB37 motors and their mecanum wheels. The sensing half is a Raspberry Pi 5 with the RPLIDAR A1M8 on USB. The Pi runs ROS 2, takes the 360-degree scans from the LiDAR and builds a map that you can watch in RViz2. Below is the block diagram of the FIORA indoor delivery robot.

The dashed parts are planned. A Telegram bot will send delivery requests to the Pi, and the Pi will need a link to the Arduino so that ROS 2 can drive the motors.

Below is the delivery workflow the robot is being built towards, redrawn from the project README.

Only the first two steps work today. The Pi starts the LiDAR, and you can build a map by driving the robot around by hand. For delivery requests, we picked Telegram over WhatsApp, as the WhatsApp API goes through Meta's official setup, permissions and verification, while anyone can create a Telegram bot. The bot is not built yet. To see how a Telegram bot talks to a Pi, check out our Telegram bot with Raspberry Pi tutorial.

Components Required for the Indoor Delivery Robot Using Raspberry Pi

Below is the list of components used in this build.

The L293D shield is the driver we would pick again. It stacks straight onto the Uno, and it was the first setup that ran all four motors reliably, after two ESP32 boards failed and L298 boards ran very hot (see the drive electronics section). The RPLIDAR A1M8 replaced the YDLIDAR X2 from our first plan on our mentor's advice. The GB37 motors have encoders, but the encoder leads are not used yet. For the Pi, use a supply that meets the Pi 5's needs, as our power bank could not keep it running during mapping. Apart from these parts, you need a 3D printer for the couplers and mounts, a calliper, a sharp knife for the foam sheet and a screen to watch RViz2. If you like to see more builds around this board, check out our collection of Arduino projects.

Wiring Diagram of the Indoor Delivery Robot Using Raspberry Pi

Below is the wiring diagram for the FIORA indoor delivery robot.

Wiring Diagram of FIORA Indoor Delivery Robot

The robot has two separate circuits. On the sensing side, the RPLIDAR A1M8 connects to its small USB adapter board, and the adapter plugs into a USB port on the Raspberry Pi 5, which gets its power from the USB-C port. On the drive side, the L293D Motor Driver Shield sits on top of the Arduino Uno, and the four GB37 motors connect to its M1 to M4 terminals. The HC-05 connects to the Arduino's serial lines, and the LiPo powers the motors through the shield. Our logs do not record which pins the HC-05 uses, which terminal each motor sits on, or how the battery is connected, so those connections are drawn dashed as the usual way to wire this shield. That is all about the wiring. If you are wiring an HC-05 for the first time, the Bluetooth-controlled toy car using Arduino on Circuit Digest shows that step by step.

Connection Table

ConnectionFromToRecorded in the Repo?
LiDAR dataRPLIDAR A1M8USB adapter board, then a USB port on the Pi 5Yes
Pi powerPower bankPi 5 USB-CYes, replace with a proper supply
Motor driverL293D Motor Driver ShieldStacked on the Arduino UnoYes
MotorsFour GB37 motorsShield terminals M1 to M4Yes, order not recorded
BluetoothHC-05Arduino serial linesAssumed; pins not recorded
Motor powerLiPoShield EXT_PWR terminalAssumed
EncodersGB37 encoder leadsNot connectedYes

Building the Base, Couplers and Motor Mounts

Below are the base and motor-mount stages that the steps in this section go through.

Indoor Delivery Robot Base and Motor Mount Build Steps

Step 1⇒ Cut the Base

Cut a circle with a radius of 40 cm from the foam sheet, and cut a 90mm × 34mm slot for each mecanum wheel. The slot size comes from our wheel, so measure yours before cutting. The foam sheet is quick for a prototype, but it needs reinforcement around the motor mounting points.

Step 2⇒ Print the Motor-to-Wheel Couplers

Ready-made motor-to-wheel adapters either did not fit our wheel hub or cost too much, and a GrabCAD model we printed came out larger than the hub. So, measure the hexagonal hole in the wheel hub with a calliper and design a coupler that takes the motor shaft on one side and fills the hexagon on the other. Our prints came out about 1mm bigger or smaller than the CAD size, which is normal 3D-printing tolerance, as the printer, the material, and the heat all change the final size. Reduce the measured size by about 1mm, print a test piece and adjust from there. Keep the walls thick, as our first thin coupler pushed in fine and broke very quickly. Below are some of the more than 15 versions we printed.

FIORA 3D Printed Coupler Prints

Once the shaft is in the coupler, check how much room is left towards the wheel adapter. We had about 4mm, and the coupler used only about 1mm of it, so we extended the hexagonal section further into the wheel's hexagonal hole. With that change, the wheel sat fully on the coupler. The coupler and mount CAD files are not in the repository yet. TODO: add the coupler and motor-mount CAD or STL files to the CAD folder. For more printed parts in real builds, take a look at the 3D printing projects on Circuit Digest.

Step 3⇒ Print the Triangular Motor Mounts

Measure the motor's front faceplate and print a small test part first, only to check that the motor fits into it. A full square mount held our motor too tightly and covered almost its whole length, and a smaller square mount was too small. The triangular shape in the middle panel above suited the round base best.

Step 4⇒ Fit the Motors, Couplers and Wheels

Put each motor in its mount, push the coupler onto the shaft and the wheel onto the coupler, and place the set on the base. Each wheel must sit inside its cutout. If the coupler is too long, the mounts have to move back until the left and right ones touch, and the wheels no longer line up with the slots, so fix the coupler length instead of moving the mounts.

Assembling the Drive Electronics

Stack the L293D Motor Driver Shield on the Arduino Uno, connect the four GB37 motors to its motor terminals, and connect the HC-05 to the Arduino. Upload your motor sketch and test a single motor first from a Bluetooth car controller app on the phone. Once it responds correctly, connect all four motors, test them again, and then mount the Arduino, the shield, the HC-05 and the battery on the base and drive the rover. Our sketch is not in the repository yet, so for now you will need your own sketch that reads the app's commands from the HC-05 and drives the shield.

Below are the two controller setups we tried before the L293D shield.

Indoor Delivery Robot Motor Controllers We Tried

The ESP32-S3 Pico with a TB6612FNG driver ran the motors for a while, then stopped. The board became extremely hot, the data cable got hot as well, and the board was burned. An ESP32 DevKit then worked at first and also stopped. We suspected the power supply but never confirmed the cause, so if a board gets hot, disconnect it at once and check the power, grounding and wiring before you try again. The Arduino Uno with L298 driver boards worked, but the drivers became very hot and lost a lot of power. To learn how this driver works, refer to our L298N motor driver with Arduino tutorial.

Setting Up the RPLIDAR A1M8 with ROS 2 on the Raspberry Pi 5

Below is the RPLIDAR A1M8 with its USB adapter board, the 360-degree laser range finder that FIORA maps with.

SLAMTEC RPLIDAR A1M8 for Indoor Delivery Robot

Start small. Get the raw scan data on the Pi first, and only then move on to mapping. Our own launch files and SLAM settings are not in the repository yet, so the steps below are the standard way to bring up an RPLIDAR A1 in ROS 2 Jazzy with Slamtec's rplidar_ros package.

Step 1⇒ Build the rplidar_ros Package

mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
git clone -b ros2 https://github.com/Slamtec/rplidar_ros.git
cd ~/ros2_ws/
source /opt/ros/jazzy/setup.bash
colcon build --symlink-install
source ./install/setup.bash

This makes a ROS 2 workspace, clones Slamtec's driver into it and builds it. ROS 2 Jazzy installs from binary packages on Ubuntu 24.04, which runs on the Raspberry Pi 5.

Step 2⇒ Give Access to the Serial Port

sudo chmod 777 /dev/ttyUSB0

The LiDAR's adapter shows up as a USB serial port, usually /dev/ttyUSB0. The chmod lasts until the next reboot, and the package also has a script, scripts/create_udev_rules.sh, that sets up a permanent rule.

Step 3⇒ Launch the LiDAR in RViz2

ros2 launch rplidar_ros view_rplidar_a1_launch.py

This starts the LiDAR node and opens RViz2 with the live scan. Once the scan looks right, a SLAM package can turn it into a map, and our plan names SLAM Toolbox for this.

Step 4⇒ Account for the Robot's Size

The LiDAR sits at the centre of the body, so an obstacle can touch the edge of the body before the LiDAR treats it as a collision. Give the robot's body dimensions to the software so that its size is taken into account. We added the prototype body's dimensions in RViz2 before mapping further.

Step 5⇒ Map the Space and Save the Map

Run SLAM, drive the robot around the space from the phone while the map grows, and save each map for later use. We mapped different areas of TinkerSpace this way and saved each one.

Building the FIORA Body

The body has to carry the LiDAR on top with a clear view all around. Below is the side-view sketch we worked from.

Indoor Delivery Robot Body Sketch Side View

The sketch puts the LiDAR on top with a screen beside it, two levels in the middle, and a 60mm base that holds the wheels and the controllers. A foam-sheet prototype body is quick to make, and it is the body we mapped with. Our 3D-printed body design came out at least 4 feet tall, which would have taken several weeks and a lot of filament to print, so we started making it smaller. Check the overall size and the print time before you finish a printed body in CAD.

Live Video Demonstration

Below is FIORA mapping TinkerSpace. One of us drives the robot from a phone over Bluetooth while the map grows on the laptop screen.

Output: Mapping TinkerSpace with FIORA

Below is the prototype body with the RPLIDAR A1M8 on its top deck.

Indoor Delivery Robot Prototype Body with RPLIDAR-and-Raspberry-Pi-5

The LiDAR stands on a small block on the top deck with the Raspberry Pi 5 behind it, and the Arduino, the shield, the battery and the wheels sit inside the round body. Below is part of the TinkerSpace map in RViz2.

Indoor Delivery Robot RViz2 Map of TinkerSpace

The light area is the space the LiDAR has seen as free, the black cells are obstacles that its laser hit, and the blue circle is the robot. During SLAM mapping, the Raspberry Pi kept turning off. We think the power bank could not supply enough current for the Pi 5, which made the mapping difficult. Localisation on a saved map, route planning and autonomous driving have not been done yet.

Troubleshooting the FIORA Indoor Delivery Robot

SymptomLikely CauseFix
Printed coupler does not fit the wheel hubThe print is about 1mm off the CAD sizeReduce the measured size by about 1mm, print, test and adjust
Coupler breaks soon after fittingWalls designed too thinMake the coupler thicker and print it again
Wheel does not sit in its cutoutCoupler too long, so the mounts get pushed back until they touchExtend the hexagonal section into the wheel hub instead of moving the mount
Controller gets very hot and stopsNot found in our case; check power, grounding and wiringDisconnect at once and check the circuit before powering it again
L298 boards get very hot, and the motors feel weakHeat and power loss in the L298 driverUse the L293D Motor Driver Shield on the Uno, as in this build
Raspberry Pi turns off during mappingPower bank cannot supply enough currentUse a supply that meets the Pi 5's needs, such as the official 27W USB-C adapter
Body edge can hit obstacles the map missesThe LiDAR is at the centre of the bodyAdd the robot's body dimensions to the setup

Conclusion

With the steps above, you can build FIORA's base, drive it by hand over Bluetooth and map a space with the RPLIDAR A1M8, ROS 2 and RViz2. The base, the drive and the mapping each work, though separately. The parts that turn it into a delivery robot are still to come: a link between ROS 2 and the motor controller, the robot's footprint set up properly for navigation, a reliable supply for the Pi, named delivery points on a saved map, the Telegram bot and a smaller body that can be printed in time. Further, one can add a camera and a web dashboard, just like this web-controlled Raspberry Pi surveillance robot on Circuit Digest.

FIORA GitHub Repository

The FIORA repository has the README and the build logs with the photos and the mapping video. The code and CAD folders are still empty, so the Arduino sketch, the ROS 2 settings and the printed parts' files are not available there yet. FIORA was built by Alen Thomas K and Shamil at TinkerSpace as part of the Builder in Residence programme, with help from Devadath on the LiDAR and SLAM setup, and the repository is released under the GNU GPL v3 licence.

Indoor Delivery Robot GitHub RepoIndoor Delivery Robot Zip File

Frequently Asked Questions About the FIORA Indoor Delivery Robot

⇥ 1. Can FIORA deliver items on its own yet?
No. It is driven by hand over Bluetooth, and the LiDAR has been used to build maps. Localisation, route planning, autonomous driving and the Telegram bot are still being built.

⇥ 2. Why use mecanum wheels on an indoor delivery robot?
Mecanum wheels let the chassis move in different directions, including sideways, which helps in corridors and small rooms. They also make odometry and keeping the four wheels in step harder, which our planning notes list as a challenge.

⇥ 3. Why Telegram instead of WhatsApp for delivery requests?
The WhatsApp API needs Meta's official setup, permissions and verification, while Telegram lets anyone create their own bot. That made Telegram the practical choice for a student prototype.

Explore a range of innovative robotics projects featuring Arduino and ESP32 microcontrollers, including autonomous navigation, Bluetooth-controlled robot cars, and wall-climbing robots. These projects demonstrate practical applications of embedded systems, wireless control, sensor integration, and robotic automation.

Hand Gesture Control Robot Using OpenCV

Hand Gesture Control Robot Using OpenCV

This project demonstrates a gesture control robot using a laptop webcam, OpenCV, and MediaPipe for real-time hand gesture control. 

ESP32 Wall Climbing Beetle Robot

ESP32 Wall Climbing Beetle Robot

The goal is to create a lightweight wall-climbing robot that is small enough to fit in the palm of your hand while still generating sufficient suction to climb walls and crawl across ceilings.

Bluetooth Controlled Toy Car using Arduino

Bluetooth-Controlled Toy Car using Arduino

In this project we are going to develop a Bluetooth-controlled robo car. Here we used a Bluetooth module to control the car, and it is also an Android-based application.

Have any question related to this Article?

Add a comment

No account needed. Your comment appears once a moderator has reviewed it.

Never shown publicly.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.