supremeOne

[Lichuang Development Board] Liangshan School-Smart Car

 
Overview

1.
       At the beginning, I just took advantage of the company's opportunity to initially master the use of Xiaohua Semiconductor MCU->HC32F4A0PITB. I have been considering learning and using a domestic chip. It just so happens that the company also has a castrated version of a chip from GigaDevice (customization removed) I originally planned to buy a product that has some functions and reduced costs, but I didn’t provide the information. . . And relatively speaking, finding an innovative chip is currently more popular and the information is more complete, so I have been waiting for the opportunity (someone has been paying attention to the activities of Lichuang EDA), and finally the hard work paid off, and in Lichuang EDA The group has been waiting for this opportunity (the key is that it takes too much energy to do it by yourself, you have to learn to use the platform and resources, and Lichuang EDA just happened to provide everyone with this opportunity). . . It happens to be the same as "stinky", so hurry up and get started. . .
2. Function introduction
        This project uses GD32F470ZGT6 as the main control chip, which can realize infrared tracking, steering gear ultrasonic ranging and following, Bluetooth remote control, wireless control, light tracking, temperature and humidity detection, CAN communication, AD sampling and other functions, similar to the expansion into A development board in the form of a smart car is developed to facilitate the learning and use of related peripherals of this chip (common peripherals such as UART, IIC, SPI, CAN, etc.).
       1. Power supply part:
       This design takes into account both function and cost, so the appearance is not very beautiful. I cut off the butt of the car (sweat... so the battery holder is half-empty). The power supply is sourced from local materials. The company's products commonly use two kinds of batteries, 6V and 3.6V. There are a large number of them in stock. The servos and N20 motors can be used at 6V voltage. However, the Liangshan School development board requires a 5V power supply, and 6V can be stepped down by LDO. Satisfied, and the voltage difference is small, the power consumption is much smaller. Here we use the LM39100S-5.0 LDO. Here is a description of the use of LDO: the smaller the voltage difference, the better, so the less power consumption is wasted on the LDO. Of course, the voltage difference cannot be less than the minimum voltage difference of the chip (it can be seen from the picture that a voltage difference of 630mV can provide a current of 1A, which means that it can provide a current of 1A to the car, excluding the steering gear and N20 motor). The main power consumption MCU (generally less than 250mA), Bluetooth module (150mA), CAN module (50mA), temperature and humidity module (50mA), wireless module (100mA), infrared module (100mA), etc. are fully satisfactory for use. The car added AD sampling (battery voltage and optical tracking), so a simple magnetic bead isolation was made.
      LM39100S-5.0 parameters:
 
 
      2. There are three-color lights on both sides of the front of the car, which are used to indicate forward, left turn, right turn, backward, etc.
 
 
         3. Three photosensitive samples are placed in the middle of the front of the car, as well as the
 
actual ultrasonic module and steering gear. It can only turn left 180 degrees, so I adjusted the angle to realize the left and right 180 degree function.
 
          4. The chassis of the infrared tracking
       car is equipped with 3 infrared photoelectric transceiver sensors combined with an LM393 dual-channel voltage comparator to identify the black guide on the ground. line to realize the car tracking function.
       Main features of LM393: Operating temperature range: 0°C -- +70°C SVHC (Substances of Very High Concern): No SVHC (18-Jun-2010) Device number: 393 Wide operating power supply voltage range, single power supply or dual power supply available Work, single power supply: 2~36V, dual power supply: ±1~±18V; small current consumption, ICC=0.4mA; small input offset voltage, VIO=±2mV; wide common mode input voltage range, VIC=0~VCC- 1.5V; The output is compatible with TTL, DTL, MOS, CMOS, etc.; The output can be connected to an "OR" gate with an open collector; the
       comparator function can also be implemented through an operational amplifier, but relatively speaking, the conversion speed of the comparator is faster than that of the operational amplifier. Go faster.
       Schematic diagram:
             
         5. Independent motor drive, through MCU output PWM signal to control the RZ7889 chip to drive the movement of each tire.
       Added coupling resistor (reduces radiation), pull-down resistor (power-on to determine the low level state and false triggering) and energy storage capacitor (providing N20 motor driving capability) to prevent the instantaneous large current from lowering the battery voltage, filter capacitor (motor time, filtering high-frequency interference)
RZ7889 is a DC bidirectional motor drive circuit, which is suitable for motor drives of toys, automatic valve motor drives, electromagnetic door lock drives, etc. It has two logic input terminals to control the motor forward, backward and braking. This circuit has good anti-interference, small standby current, and low output internal resistance. At the same time, it also has a built-in diode that can release the reverse impact current of inductive loads. Features * Tiny standby current, less than 2uA. *
           Wide operating voltage range 3.0V~15V..*Emergency stop function *Overheating protection function Use the APP to remotely control the car and the wireless remote control to control the car through the Internet. You can switch various modes
 
   
         7, SWD, temperature and humidity detection, servo, buzzer, ultrasonic interface, AD sampling through buttons
  . Since I have J-LINK on hand, I added a The SWD interface is convenient for debugging. If you add an op amp follower to AD sampling, it will be more accurate. I won’t go into details about these interfaces. . .
   
          8. The next physical pictures
 
will be uploaded one after another due to the large number of functional items. . . Stay tuned
 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-23 06:28:47

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号