STM32 Robot Car

The Hong Kong Polytechnic University
Hong Kong

Source Code

This robot car is a DC-motor-driven two-wheel robot car with a mobile power bank as power source, which is designed for handling multiple missions including following specific tracks and locating objects through the WIFI communication. It is built based on the STM32F103RB Microcontroller Unit and it has a LED board, a floor board, and a main board. LED board is equiped with 18 Infra-red LED which can illuminate the floor with infra-red light when it is powered up. The reflected light from the floor is absorbed by the photo transistors on the floor board, which can tell whether the robot car is on the track or not.

This robot car can complete three tasks:

  • Track Follower: The robot car can follow dark tracks automatically by using the information collected from the Floor Board Infra-Red (IR) photo transistors.
  • Hit Three Balls: The car can automatically move three balls to a green zone by locating the position of the balls and car through WIFI communication.
  • Pass Ball: Two robot cars, placed in two different regions, can pass a ball to each other. The robot car will consistently receive the same location information from a web cam via WIFI communication. Theoretically, with good control of the speed and orientation of two robot cars, they can pass the ball forever until battery dies.