# Project Introduction
This project comes from Jialichuang's 2022 winter vacation training camp training to produce a four-wheel drive smart car using GD32F470ZGT6 as the core, which can realize basic functions such as ultrasonic obstacle avoidance, Bluetooth remote control, infrared tracking, and button switching modes.
However, due to limited theoretical knowledge, I could not design it completely independently. I could only follow the Jialichuang winter vacation training camp to learn step by step. I learned to operate the register and control the output of the I/O port from the library function to turn on and off the LED. ; Tick timer, bit band operation, counter, PWM to realize the flashing and flowing of LED lights; serial port transmission and serial port interrupt, DMA reception to achieve communication with peripherals; button control; schematic drawing and PCB of Lichuang EDA Draw and create the first board in Lichuang; solder to connect components; software Keil realizes various functions and so on.
In the process of implementing this project, I found that my theoretical knowledge was lacking, which led to unclear principles, difficulty in moving forward, and blind and reckless actions. Therefore, after the basic functions of the project are realized, I will focus on learning theoretical knowledge in the next step. I would like to express my special thanks to Jiali Chuangfang for organizing this training camp. I am also very grateful that I was lucky enough to see the opening ceremony of the camp at Station B. I signed up and learned a lot.
# ADC collects voltage
! [image.png]
This is one-third of the power
! [ADC one-third of the power.jpg]
This is the full power
! [ADC is full of power.jpg]
# Power module
! [image.png]
Two 14500 batteries 7.4V to 5V
# Tracer module
! [image.png]
This part of the circuit has not been drawn well, and since I have to take the final exam at the beginning of the school year, I don’t have enough time to re-print the board and solder it, so I bought a ready-made five-way TCRT500 infrared Tracking module, but the infrared interval is too wide, which also caused problems in actual tracking and was not stable, but it was still able to barely track.
# Ultrasonic obstacle avoidance module
! [image.png]
The ultrasonic is HC-SR04, at the beginning When transplanting the code, the distance judged by the ultrasonic wave was wrong. Later, after reading the data manual, I found that the transmission frequency and duration were different. Only after modification can I avoid obstacles properly.
# Bluetooth module
! [image.png]
The Bluetooth module uses JDY-31
Bluetooth Operation app
![image.png]
#