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.
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.
We've chosen Tamiya's Blitzer Beetle (2011) as our RC car (you can find it here).
| 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 |
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.
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!
- Install Visual Studio Code
- Install the PlatformIO extension
- Open the
/Codes/Espressif_code/folder in VS Code using the PlatformIOPick a folderbutton. - Connect your ESP32 board via USB
- Click the "Upload" arrow (
$\rightarrow$ ) in the PlatformIO toolbar, or run:pio run --target upload
The webapp works with Python ≥ 3.12.
The webapp uses the following libraries:
flaskthreadingtimeesp_connection
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.pyImportant
You need to check the IP address of the ESP-32 and update it in the following files:
You need to replace the IPv4 address with your own (type ipconfig in a terminal) in the Codes/Expressif_code/src/Config.h file.
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):
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.
To use the lidar, we used KKest's ESP-rplidarS2 library (MIT License).
We also use several libraries from Adafruit, including:
- Adafruit Unified Sensor (Apache License 2.0)
- Adafruit Sensor Calibration (Apache License 2.0)
- Adafruit ICM20X (BSD License)
We also use the following third-party libraries:
- Links2004/WebSockets (GNU Lesser General Public License)
- ESP32Servo (GNU Lesser General Public License)
- Flask (BSD-3-Clause License)
| Name | Github profile | |
|---|---|---|
| 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.
This project is released under the MIT License and was developed for educational and demonstration purposes.
Copyright © 2025 Mapping Rover
