← Back to projects

// robotics

Autonomous LiDAR robot — Turtlebot Relâmpago Marquinhos

Mobile robot that maps its surroundings with a 2D LiDAR and drives in autonomous or manual mode.

About the project

Turtlebot-style robot developed at UTFPR by a team of three (Ramon M. P. Mariano, Raphael Leite Diniz and Gustavo Orlando Bocon Huziy). A Raspberry Pi running Ubuntu and ROS reads the LiDAR and builds a map of the environment, while an ESP32 running FreeRTOS drives the motors and reads the motion sensors. The resulting map can be saved at the end of the exploration.

My role

Developed the embedded system and the Raspberry Pi–ESP32 integration, programmed in Python and FreeRTOS, assembled the electronics and fabricated the chassis parts with 3D printing.

Deliverables and results

  • →Indoor mapping with a 2D LiDAR, with map saving.
  • →Two operating modes: autonomous and manual.
  • →Architecture documented in a block diagram, from power supply to sensors.

Illustrated architecture

Illustration of the data flow, based on the source code. Not a screenshot.

The Raspberry Pi, running Linux and ROS, takes the LiDAR scan, builds the map and sends speed commands to the ESP32. Running FreeRTOS, the ESP32 generates the H-bridge PWM for the two DC motors and reports odometry from the encoders and the gyroscope/accelerometer. The 12 V battery powers the motors; a step-down converter supplies 5 V to the Raspberry Pi.

Project Demo

Technical highlights

  • ✓Raspberry Pi 4 running Ubuntu and ROS processes the LiDAR and builds the map.
  • ✓ESP32 with FreeRTOS drives two DC motors through an H-bridge, with encoders and a gyroscope/accelerometer.
  • ✓Battery power with a 12 V to 5 V step-down converter.
  • ✓Chassis and mounts fabricated with 3D printing.
UbuntuROSPythonFreeRTOSRaspberry Pi 4ESP322D LiDARGyroscope and accelerometerEncodersH-bridgeDC motors3D printing