Skip to main content

By Yunzhou, YAN | Xinyue, LI | Jiaying, FANG

Simultaneous Localization and Mapping (SLAM) is a new technology for robots to explore and understand their environments. One of main objectives using SLAM technology is to build a map automatically. This project is to develop a simple game by using SLAM technology. In this game, we develop a robot car with a LiDAR-SLAM system [see Fig. 5.1]. The objective of the game is to remotely control the robot car to escape from a maze. Without the prior knowledge of the maze, the LiDAR-SLAM system can build a map in a maze and players can follow the map to escape from the maze.

Picture241_4116545e4135179f57e18acb54d2a108ae467f75.png

Figure 5.1: The outlook of the robot car

There are two major parts in the robot car. One is a STM32F103RBT6 microcontroller with an extension board and other components (see Fig. 5.2). It is used to control the movement of the robot car. The function of the ultrasonic sensor is to detect whether the car is too close to an obstacle or not. The Bluetooth module is for the wireless communication between the microcontroller and a mobile phone (this part will be described later). The other one is a Raspberry Pi 4B with a Lidar (LiDAR-SLAM sensor) (see Fig. 5.3). The Raspberry Pi regularly receives data from the Lidar and process the data with the Hector SLAM algorithm to generate a map. Moreover, it connects to the player’s computer using Wi-Fi to show the map (see Fig. 5.4). To remotely control the robot car, we develop a mobile app in the mobile phone (see Fig. 5.5(a)). It connects to the robot through Bluetooth communication. The app can report the distance between the obstacle and the car (see Fig. 5.5 (b), (c) and (d)).

Picture251_242de8abc801210960d817c887e0f9defed1f42c.png

Figure 5.2: The microcontroller with an extension board and other components in the robot car

Picture261_b0a586b52bff4daa86eb3427f6583f6276e69e64.png

Figure 5.3: The Raspberry Pi with the Lidar sensor

Picture271_bceddba86b2a33b2aef90c0240f53cf1e9be49d3.png

Figure 5.4: The software to show the map generated by the Hector SLAM algorithm

_2021-04-20_103755_a10dfcfc6ef1720f63e30c99c378bf9e2debbe66.png

Figure 5.5: Mobile app

Comment from judges: The team made a game by using a LIDAR (Light Detection and Ranging) sensor. However, it is not convincing that the game is interesting and it is better than using a camera instead. Moreover, the team cannot compare its performance with a game using a camera.

Organizer "Microcontroller Application Design Contest (2016-17)" Department of Electronic and Information Engineering The Hong Kong Polytechnic University