Remote Control Smart Car Video Link:
[Bilibili Video - Function Demonstration and Introduction] [Remote Control Smart Car] https://www.bilibili.com/video/BV1gvt2eCEtB/?share_source=copy_web&vd_source=b02d9189328fe7aeae112a7ea7982b01
I. Project Introduction
The car's MCU uses the Liangshanpai development board GD32F470ZGT6, which is powerful and has a fast response speed. Based on the teacher's training content, we developed independent buttons, ultrasonic sensors, and Bluetooth modules. We used basic Timer 5 and external interrupts for priority control to achieve multi-functional remote control. When the smart car encounters obstacles, the GD32F470ZGT6 microcontroller processes the data sent by the sensor module and combines it with the PWM wave. The processed data is then sent to the motor drive module for speed adjustment and direction control, while the power supply module provides a sufficiently stable voltage.
II. Project Functions
1. Can be used for driving at night or in low-light environments.
2. Obstacle avoidance mode can be activated using an independent button.
3. Automatic obstacle avoidance.
4. Using the HC-SR04 Bluetooth module, a Bluetooth app is created in MIT App Inventor to achieve remote control of the smart car.
III. Principle Analysis (Hardware Description)
This project consists of the following parts: power supply, LED lighting, motor, and Bluetooth. When the switch is turned on, the car is in a ready-to-command state. After turning on the phone's Bluetooth, a connection is established. If the light is dim, the lights can be turned on to control the smart car's forward, backward, and stop movements. Pressing the intelligent obstacle avoidance button or the car's independent button KESM will cause the car to automatically avoid obstacles. Alternatively, pressing KEYS will turn on the lights and trigger a buzzer.
Power Circuit:
When designing the power circuit, the overall operating voltage of the four-wheel drive car needs to be carefully considered. The GD32 core board operates at 5V, and the motor reference voltage is 6V; therefore, the power input voltage cannot be lower than 6V. Two 14500 potassium batteries were selected for power supply, with an operating voltage of 3.7*2=7.4V. The circuit design is shown in Figure 4.2.
P2 in the figure is the battery holder for the two 14500 batteries. After the batteries are installed, switch SW3 is turned on, and the power supply is regulated to 5V output by a linear regulator. C1 and C2 are power supply filter capacitors. LED10 is the power indicator, and R35 is the current-limiting resistor.
IV. Physical Image
[WeChat Image_20230817104906.jpg]