This project uses STM32 MCU, which requires the car to have a tracking function, the speed is adjustable from 0.3 to 0.8m/s, and it can complete driving operations on the designated path. Among them, point A on the path is the starting point and end point of each trip of the car. When the car completes a trip and reaches the end point, the car will make a sound prompt. The car can either travel along the path of the ABFDE rounded rectangle (referred to as the inner circle) or along the path of the ABCDE rounded rectangle (referred to as the outer circle). When driving in the BFD section of the inner circle, the car must issue light instructions.
In the first step, we need to use Jialichuang EDA (Professional Edition) software to draw the schematic diagram and PCB.
The second step is to weld the main control board and tracking module of the car.
The third step is to learn to write MCU programs and control logic codes, and implement functions such as tracking, motion control, and path instructions in the program. Use the tracking module to detect the current position of the car and control the car to drive along the specified path. Control the motor drive module so that the car can travel smoothly and the speed can be adjusted within the specified range. When using the motor drive module, we need to connect it to the PWM output port on the MCU board. After debugging and testing, we can get the appropriate speed adjustment range.
In the fourth step, the car implements the tracking function on the designated map.
When making a car, you need to pay attention to the following key points:
1. The circuit connection must be firm and reliable, and the wires must be in good contact. 2. The program control logic of the module must be clear, and the parameters and status of each module must be updated in a timely manner during operation. 3. When designing and drawing paths, precise measurement and drawing are required to ensure that the car travels along the designated path and can pass through curves and transition sections stably.