Skip to content

About

A smart, self-navigating robot car that explores unknown environments, builds real-time 2D maps, and avoids obstacles using a hybrid SLAM architecture, LIDAR, and ultrasonic sensors.

Resources

Stars

4 stars

Watchers

2 watching

Forks

Repository files navigation

logo Mapping Rover logo

This project was developed as part of the CS-358 course at EPFL with a strong emphasis on real-world applicability, modular hardware/software design, and an engaging user interface.

Overview

The Mapping Rover is a mobile robot built from a modified RC car that autonomously:

  • 🗺️ Maps 2D layouts using LIDAR and SLAM algorithms
  • 🚧 Detects and avoids obstacles in real-time
  • 📱 Communicates via Wi-Fi to show real-time feedback in a browser
  • 🎮 Remote control via Wi-Fi in case of problems

Click here to see a demo.

Material

1. RC car

We've chosen Tamiya's Blitzer Beetle (2011) as our RC car (you can find it here).

2. Electronic components

Component Specific Model (datasheet) Description
🧠 Microcontroller ESP32 Wemos D1 R32 Dual-core, Wi-Fi, Bluetooth
📷 Camera ESP32-CAM Send images to the webapp
👀 LIDAR RPLIDAR C1 360°, 12m range
📡 Ultrasonic Sensors HC-SR04 Cliff and obstacle detection
🔋 Battery RedPower 7.4V 3000mAh LiPo Long runtime, for our usage
🎯 Servo Motor DMS15-270 Wheel steering (15 kg/cm torque)
🧭 IMU Sensor ICM-20948 Gyroscope, compass, accelerometer
🪫 Battery Management system HW-391 Power safety
⚡ Buck converter LM2596 Voltage adjustment (5V)
⚙️ Motor controller IBT-4 Adjust the rotation of the motor

3. Additional Supplies

Here's a non-exhaustive list of the things we use in our project:

  • 3D printing with PETG (with 3D inserts)
  • Cables and soldering material
  • Screws and nuts
  • Various tools (screwdrivers, pliers, etc.)
  • Etc.

Installation/Setup

1. Firmware (ESP32) using PlatformIO

The ESP32 code is located under the /Codes/Espressif_code/ folder.

We use PlatformIO inside Visual Studio Code for development. PlatformIO makes it incredibly easy to manage dependencies, compile code, and upload firmware to the ESP32 — all with one click.

Tip

PlatformIO handles all toolchains and libraries for you. No more manual setup headaches!

🔧 Setup Instructions

  1. Install Visual Studio Code
  2. Install the PlatformIO extension
  3. Open the /Codes/Espressif_code/ folder in VS Code using the PlatformIO Pick a folder button.
  4. Connect your ESP32 board via USB
  5. Click the "Upload" arrow ($\rightarrow$) in the PlatformIO toolbar, or run:
    pio run --target upload

2. Webapp installation

Python Version

The webapp works with Python ≥ 3.12.

Required Libraries

The webapp uses the following libraries:

  • flask
  • threading
  • time
  • esp_connection

Tasks to Run

You need to start the following two tasks. Run them using the commands below:

python Codes/v1-PC_side/app.py
python Codes/v1-PC_side/udp_websocket_bridge.py

Important

You need to check the IP address of the ESP-32 and update it in the following files:

  1. the Codes/v1-PC_side/robot_controller.py file
  2. the Codes/v1-PC_side/udp_websocket_bridge.py file

You need to replace the IPv4 address with your own (type ipconfig in a terminal) in the Codes/Expressif_code/src/Config.h file.

3. Build the Mapping Rover

Firstly, we built the base of the car as indicated in the official instructions. Then we removed all the cosmetic parts we didn't use. That is:

  • The body
  • Which allows the body to be attached to the car
  • The front bumper
  • The small protective plate at the rear
  • What's inside the chassi (the supports for the electronics)

Next, we designed our electronic circuit (for more details about it, read this document):

circuit

To fit all our components into the rover, we designed 3D supports (stored in the /CAD/ folder). For more details on using CAD files to build our Mapping Rover, read this document.

Special credits

To use the lidar, we used KKest's ESP-rplidarS2 library (MIT License).

We also use several libraries from Adafruit, including:

We also use the following third-party libraries:

Team members

Name Github profile Mail
Joseph Bruneau JosephBruneau joseph.bruneau@epfl.ch
Matthias Truchon matthiastruc matthias.truchon@epfl.ch
Nguyen Ninh Dao hohoho2002 nguyen.dao@epfl.ch
Pablo Correa Oxipou pablo.correa@epfl.ch
Paul Tercier tercierp paul.tercier@epfl.ch
Samy Messouak samymessouak samy.messouak@epfl.ch

Please feel free to contact us if you have any questions about the project.

License

This project is released under the MIT License and was developed for educational and demonstration purposes.

Copyright © 2025 Mapping Rover

About

A smart, self-navigating robot car that explores unknown environments, builds real-time 2D maps, and avoids obstacles using a hybrid SLAM architecture, LIDAR, and ultrasonic sensors.

Resources

Stars

4 stars

Watchers

2 watching

Forks

Contributors

Languages