hrjwE

【LiChuang Development Board】Smartphone Remote Control Car

 
Overview

## Project Introduction

This project comes from the winter vacation training camp. Based on the Lichuang Liangshanpai development board GD32F470ZGT6, a four-wheel drive smart car was completed.

Through this project, you can learn to master the professional version of Jiali Chuang EDA for circuit design, PCB drawing layout, Jiali Chuang's one-click order, Lichuang shopping mall component procurement, and also learn a wealth of knowledge such as single-chip microcomputer development, electronic circuit design, and Liangshanpai's communication with other electronic modules.

## Function Introduction
This project mainly implements the following functions:
1. Four motors are driven and speed-regulated independently;
2. Infrared tracking;
3. Ultrasonic obstacle avoidance;
4. ADC: power detection and ambient light brightness detection;
5. Mobile phone Bluetooth BLE remote control;
6. Buzzer prompt;
7. Button start and switch mode

! [【LiChuang Development Board】Smartphone Remote Control Car.png]
## Schematic Design Instructions

1. **Do not use the `PA13` pin of the development board**, which will cause the erase chip to be read-protected and GDLink cannot be connected.

Several other places where the official design has been optimized and modified:

1. Buzzer

![image.png]
This design can solve the problem of the buzzer always beeping.

2. Motor GPIO pin problem

![image.png]
![image.png]
The two pictures above show that the BI pin of the upper left motor driver chip is connected to the PB4 pin of the development board GPIO through LQ-.

![image.png]
Combined with the user manual of the development board, it is known that PB5 of the development board is in pull-up mode during power-on or reset, and the PA7 pin connected to LQ+ is low, so the left front wheel will turn during this period.

**Solution: Replace other pins or set PB5 to low level after initializing the motor. **

## PCB design instructions

1. Since the car body uses a whole PCB three-layer board, the board thickness is 1.6 and the size is slightly about 17x13CM, which exceeds the free proofing range of JLC. The cost is about 70 or more (free shipping by ordinary express delivery), and the use of the training camp coupon can reduce another 20.

2. The layout, wiring, line width, spacing and other designs of the PCB use standard parameters. The width of the main power supply is 80mil, 5V is 40mil, and VCC and motor are 30mil.

3. Since two 18650 batteries are used for power supply, the battery holder is also slightly larger. A plug-in battery holder is used for construction, and the layout position of the bottom motor holder should not conflict.

4. When soldering PCB, pay attention to the wrong polarity of the components. If you accidentally connect them wrong, it will burn the development board.

![image.png]
ITR9909 Polarity Description

## Software Description

1. The microcontroller software is developed using Keil 5. It is recommended to use the Non-Commercial Use License of MDK-ARM Community. It does not require cracking and activation and can be used for free for one year;
2. The Keil 5 compiler must use the `V5` version, which may need to be installed manually;
3. The remote control App currently only supports Apple phones. It is developed using Xcode and SwiftUI. It is simple and fast. See the attached source code for details. If you have time, you can use applet for development, so that Android phones can also be used universally.

![IMG_AF2460FB45DC-1.jpeg]

## Physical display
![image.png]
## Notes

1. Use 0805 chip components as much as possible to facilitate manual welding;
2. The battery holder uses two 18650 chip-type batteries. Plug-ins cannot be used because the bottom layer is blocked by the motor. The method of use is series connection;
3. The motor power supply uses terminal blocks and XH2.54 2P plug sockets, which are convenient for disassembly and installation, and the wiring is flexible;
4. In order to avoid pitfalls, please refer to the instructions for circuit design and PCB design;
5. Please buy more components for backup. When purchasing independent modules on third-party platforms, please test them as soon as possible after receiving the goods to prevent them from being broken, so please purchase freight insurance when placing an order;
6. If the circuit is found to be abnormal after welding, check whether the components are welded incorrectly by connecting the schematic diagram, or use a multimeter to detect whether the welding is short-circuited or other reasons;
7. The motor PWM adjustment is incorrect. Some wheels are slower with the same PWM parameters. Please confirm whether the positive and negative polarities of the motor are connected correctly.

## Demo video



## Other attachments uploaded

This project is completely open source, please see the attachment for project source code and App source code
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-15 03:17:18

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号