## Description:
Design of a mecanum wheel car based on LiChuang Liangshan School, which can realize the car's left and right translation, rotation and other mobile operations. Use App inventor to design the APP, control the car through the mobile phone connected to Bluetooth, use two sets of independent power supplies and switches, control the power supply of the development board and the motor separately, and can use a mobile phone charger to charge it. ##
Required items
* LiChuang Liangshan School development board × 1
* 18650 battery box × 1
* 18650 battery 5550mWh × 3
* TP4056 1A lithium battery charging module × 1
* 3.7v lithium battery 1000mAh × 1 * JDY-31 Bluetooth module (6-pin) × 1 * L298N motor driver board module × 2 * Mecanum wheel car chassis × 1 + motor and mecanum wheel × 4 * Others: boat switch × 2, several wires, several cable ties, soldering station, solder, multimeter, etc. ## Hardware part ##### Development board power supply Since the lithium battery is 3.7v, and the development board needs 5v and 3.3v, I originally wanted to use MP2155 for automatic buck-boost, but the voltage provided was only 3.3v, so I decided to use MST9220BSF to increase the voltage to 5v, and then use RT9193-33GB to reduce the voltage to 3.3v, so that I can use both voltages at the same time. ! [Screenshot 2023-02-23 224521.png] ##### Motor power supply Since the L298N motor driver I use is a module purchased on Taobao and requires a voltage of 5v-35v, it is troublesome to fly wires out of the expansion board, so I use three 18650s in parallel to reach about 11v to power the two L298N motor modules. #### The development board used is the LiChuang Liangshanpai development board, which is based on the GD32F450ZGT6 (now it seems to be 470) domestically produced open source development board, with complete supporting video tutorials, document tutorials, and experimental cases. Provide an online compiler and get started quickly in 10 minutes. Open source technology iteration and project-based learning make learning more in-depth and creativity sublimated. ![Screenshot 2023-02-23 234856.png] #### The Bluetooth module used this time is the JDY-31 Bluetooth module. ![Screenshot 2023-02-23 225642.png] #### The charging module uses the TP4056 1A charging module, which can directly use the TYPE-C interface to charge the lithium battery. ![Screenshot 2023-02-23 232238.png] #### For the subsequent scalability of the camera module , an additional interface is placed to connect the camera. #### The expansion board is as shown below: ![QQ图片20230223234941.jpg] #### The code is as attachment 1. ## The APP control interface is designed using App inventor, which is divided into status area, speed adjustment area and control area, as shown below: ![QQ图片20230223235055.jpg] ##### The device selection in the status area , the connection and disconnection of Bluetooth. ![QQ图片20230223235144.jpg] ##### The speed adjustment area uses a slider to adjust the speed, the minimum is 10 and the maximum is 99. In order to avoid decimals, the output of the value is rounded down ![QQ图片20230223235206.jpg] ##### The control area uses a switch statement to implement the corresponding function by sending the corresponding number to Bluetooth. ![QQ图片20230223235233.jpg] ## The actual display is as shown: ![QQ图片20230223235309.jpg] ## Demonstration video [【[LiChuang Car] Smart car based on GD32 - Bilibili】 ](https://b23.tv/jJkNdI5)








