兰博

[Wuhan University of Technology School Competition] DC Motor Control System

 
Overview

Wuhan University of Technology Electronic Design Competition Second Prize Team Member: Jiang Hao, Wang Zhi, Huaxuan Yibo Instructor: Zhang Jialiang Competition Topic: DC Motor Control System

1. System design

The 12V DC regulated power supply supplies power to the boost circuit and auxiliary power supply. The boost circuit then supplies power to the motor drive. The auxiliary power supply supplies power to the STM32F407, encoder and current detection circuit. The current detection circuit and encoder measure the real-time current and speed of the motor, and transmit the data to the STM32F407 microcontroller for processing. The microcontroller compares and calculates these data with the set target data, and outputs a PWM wave with a certain duty cycle to control the motor. The speed reaches the target speed and the current reaches the target current, realizing closed-loop control of the motor. The overall block diagram of the system is shown in the figure below. E3KHFVSGZ_38M34NQHHJ.png

2. Hardware design

1. Boost circuit design

The XL6019 is a synchronous boost converter with an operating input voltage between 5V and 40V and a maximum output current of up to 5A. This solution can provide +15V power supply to the motor and maintain high efficiency under full load conditions.OYXU~J3(HQV%D65Z~9U(JSW.png

2. Motor drive circuit design

Since this question requires forward and reverse control of the motor, we use a microcontroller to output a square wave signal through the PWM1 and PWM2 pins, and change the duty cycle of the PWM signal to achieve speed adjustment. Therefore, a motor drive circuit is needed. HIP4082 can control four pins at the same time. The switching of the circuit MOS tube reduces the number of original components used, and the built-in Schmitt trigger can be directly driven by the microcontroller pins. It consumes less energy, has higher efficiency, and has a simple circuit. 2165REV3F_94VM~LVB2T.png

3. Current detection circuit design

The current detection circuit converts the current signal into a voltage signal and amplifies it. Then the microcontroller samples this voltage signal to calculate the current. The INA271 current detection amplifier can operate independently in the common mode voltage range of -16V to 80V. The voltage drop on the current sensing resistor is detected under the condition of the power supply voltage, and a matching resistor gain network is integrated to minimize the gain error and reduce temperature drift. The circuit is simple, stable and reliable. 3AJGS~78ISH15I1K.png

4. Auxiliary power supply design

In order to meet the requirements of the topic, we need to design an auxiliary power supply to power the microcontroller and measurement system. Here we use a variety of DC-DC chips including TPS5450 to provide 5V and 3.3V power supply voltages for other circuits, and have a large number of inputs and outputs. interface, greatly reducing the difficulty of subsequent debugging. BU4B7UHRMH`Y8QMJRCE2HCX.png

3. Software design

In the motor control system, the microcontroller measures real-time speed and current through the encoder and current detection circuit, and feeds the results back to the microcontroller. The microcontroller compares these data with the set target data, calculates the PWM wave duty cycle, and outputs PWM Control the motor to reach the target speed and current to achieve closed-loop control of the motor. U1TLW_Q4UKYL3TR2X6.png

参考设计图片
×
Design Files
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2024-11-22 12:11:06

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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号