### Introduction
Based on the remote control car of Liangshan School, it realizes Bluetooth control, following and obstacle avoidance functions. Many functions in the official tutorial have been cut off, and overall it is relatively simple and rough.
![image.png]

### The hardware
part uses modules except for the power supply step-down and ADC circuits, which are drawn following the official tutorial. Reduces the difficulty of circuit design and welding. The power supply part fixes the 7.4V output to 5V through an LDO linear regulator, and directly leads the 7.4V voltage to the motor at the front end of the regulator. Secondly, the 3.3V voltage is converted from the 5V to a 3.3V ADC
by the onboard power circuit of the Liangshan School.
The input power supply is 0~3.3V. To measure the 7.4V of the battery, a series resistor is required to divide the voltage. Three 10K resistors are connected in series. The voltage at the sampling point is about 2.5V
! [image-20230616133141540.png]

The second is the allocation of the IO port. Some modules have been physically connected and tested on the breadboard before the schematic design, so the schematic is very simple. The PCB wiring is very poor, the on and off is normal, and it doesn't explode when powered on...
There are too many modules that take up some space on the PCB, so the battery is not directly installed on the board. Simply draw the outline of the car bottom plate and process it with acrylic board. one time. The board and the base plate are connected and fixed through copper pillars
! [image-20230616134951952.png]

#### Real thing
! [image.png]

The remote control is just a few module flying wires, twisted together. .
![image.png]

###
Most modules of the software have official corresponding transplantation manuals for easy reference and learning. In addition, there are also projects from seniors from previous training camps that you can refer to, so you can get started quickly.
The functions of the car include: Bluetooth control, remote control control, following and obstacle avoidance, and OLED can display the real-time status of the car. The remote control collects the resistance values of the two rocker potentiometers through ADC, calculates the location, and then communicates with the car through the 2.4G module to achieve the effect of controlling the car. But unfortunately, the pair of 2.4G modules were not adjusted in the end, and the remote control function was not realized. ( Ĭ ^ Ĭ )
### Summary
Through this car training camp, I learned a lot about hardware knowledge, learned the basic operations of Lichuang EDA software, learned about domestic microcontrollers, and became familiar with the development of GD32. However, due to my time and energy, the completion of the project is not high, and there is still a lot of room for improvement. For example:
1. Complete the remote control function
2. Calculate the speed of the wheat wheel
3. The motor can be equipped with an encoder or a stepper motor and learn pid closed-loop control
------