Electric vehicle brushless motor controller detection based on STCl2C5410AD

Publisher:科技徜徉Latest update time:2012-11-08 Source: 现代电子技术 Keywords:STCl2C5410AD Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
0 Introduction
With the process of urbanization, the distance of people's lives is constantly expanding. The popularity of electric vehicles that replace fuel vehicles and bicycles has greatly improved the utilization efficiency of power resources and promoted the healthy development of the national economy. Electric bicycles are powered by electricity, do not produce pollution during riding, and do not damage the air quality. From the perspective of improving people's travel methods, protecting the environment, and economic conditions, electric bicycles have broad development space at present and in the future. The DC motors used in electric bicycles are divided into two types: brushed motors and brushless motors. Among them, the control of brushed motors is relatively simple. However, its easily worn brushes bring disadvantages such as relatively large maintenance workload and relatively short service life. The brushless DC motor itself has no easily worn parts, long motor life, and small maintenance workload. However, the brushless DC motor works on the principle of electronic commutation, and its control process is much more complicated than that of the brushed motor, so the requirements for the quality of the controller are also much higher.
At present, the brushless DC motors used in electric bicycles are all three-phase motors, with two electrical angles of 60° and 120°. Most of the motor poles are 18 poles, and there are also 16 poles and 20 poles. The controller controls the opening or closing of the corresponding power drive tube according to the motor electrode position fed back by the Hall effect, generates a rotating magnetic field in the stator, and drives the motor rotor to rotate.
In order to determine whether the brushless controller can operate normally, that is, to detect whether the handlebar and brake functions are normal, determine whether the angle of the controller is 60° or 120°, and determine the correspondence between the winding A, B, C phases and the position signals a, b, c, and correctly connect the controller to the motor. Now many detection instruments use analog circuits, which makes the results not very accurate, and the required circuits are also very complex and costly. The design uses the STCl2C5410AD microcontroller as the control chip, which greatly simplifies the hardware circuit and is implemented by software programming.

l Introduction to the brushless motor controller for electric vehicles
The controller consists of peripheral devices and a main chip (or microcontroller). Peripheral devices are some functional devices, such as execution, sampling, etc. They are resistors, sensors, bridge switch circuits, and devices that assist single-chip computers or special integrated circuits to complete the control process; single-chip computers are also called microcontrollers, which are integrated with memory, decoders that convert signal languages, sawtooth wave generators, pulse width modulation functional circuits, and drive circuits that can turn on or off the power tube of the switch circuit, and control the motor speed by controlling the conduction time of the power tube through square waves, and input and output ports. This is the intelligent controller of the electric bicycle. The
design quality, characteristics, functions of the microprocessor used, power switch device circuits, and layout of peripheral devices of the controller are directly related to the performance and operating status of the whole vehicle, and also affect the performance and efficiency of the controller itself. Controllers of different qualities, used on the same vehicle, equipped with the same set of batteries in the same charge and discharge state, sometimes show large differences in driving range.
At present, the circuit principles of the controllers used in electric bicycles are basically the same or similar. Most brushed and brushless DC motors use pulse width modulation (PWM) control method for speed regulation, but the differences are in the selection of drive circuits, integrated circuits, switching circuit power transistors and some related functions. The differences in components and circuits constitute the difference in controller performance.

2 System hardware circuit design
In order to determine whether the brushless controller is normal, measure whether the output signals of each part of the controller meet the standards, and be able to receive signals from the motor, handle, and brake, and determine whether the controller can achieve the functions it needs to achieve, the system must detect whether the controller's handle and brake have a stable 5 V voltage output, determine the angle of the controller, and determine whether the phase sequence of the Hall control line and the corresponding motor power supply phase sequence are consistent. Only when the position sensor signal and windings A, B, and C are correctly connected can the motor operate normally. Figure 1 is the overall circuit design schematic diagram. The system uses the STCl2C5410AD microcontroller as the main control chip. The STCl2C5410AD series of MCUs are single clock/machine cycle (1T) MCUs produced by Hongjing Technology. They are a new generation of 8051 MCUs with high speed, low power consumption and super anti-interference. The instruction code is fully compatible with the traditional 8051, but the speed is 8 to 12 times faster. It has an internal integrated MAX810 dedicated reset circuit, 4-channel PWM, and 8-channel high-speed 10-bit A/D conversion, which is specially designed for motor control in strong interference situations.


2.1 Bridge rectifier circuit
Because the controller needs direct current to work, a rectifier circuit is needed. The system uses a single-phase bridge rectifier circuit. This circuit has the advantages of a full-wave rectifier circuit as long as the four diode ports are connected into a "bridge" structure.
2.2 Detection of brake and throttle signals
The change in the high and low potential of the brake signal is the basis for the controller to identify whether the electric vehicle is in a braking state, and thus determine whether the controller supplies power to the motor. As long as the output ends of the brake and throttle signals are connected to the A/D conversion terminals P16 and P17 of the STCl2C5410AD microcontroller, it is possible to detect whether the output is normal. [page]

2.3 Judgment of controller angle and phase sequence
As shown in Figure 2, first determine the output of winding voltage A, connect two optical couplers to the final stage of the controller, and connect them in parallel with the upper and lower tubes of A. When the upper tube of A is turned on, A outputs a high voltage to turn on the lower optical coupler. Thus, a voltage value is output and sent to the single-chip microcomputer through the A/D conversion terminal P11 port of the STCl2C5410AD single-chip microcomputer; when the lower tube of A is turned on, A outputs a low voltage to turn on the upper optical coupler, thereby outputting a voltage value and sending it to the single-chip microcomputer through the A/D conversion terminal P10 port of the STCl2C5410AD single-chip microcomputer. B and C use the same connection method as above. There is no direct output when outputting, but it is output after being isolated by the optical coupler. The reasons are as follows: the signal of the optical coupler is transmitted unidirectionally, the input and output ends are completely electrically isolated, the output signal has no effect on the input end, it has strong anti-interference ability, stable operation, no contacts, long service life, and high transmission efficiency.



3 System software design
3.1 Overall design flow chart

The overall design flow chart is shown in Figure 3.


Measure the impedance of the controller input terminal. When it is greater than 10 Ω, it is normal. Otherwise, the power input terminal is short-circuited. The detection of the turning handle, brake handle, and Hall power supply terminal must ensure that the output voltage is greater than 4.5 V. The judgment of the controller angle and phase sequence is judged and detected according to the brushless truth table. The following is only an example of the controller angle judgment.
3.2 Controller Angle Judgment Program Design
It can be seen from Table 1 that when a, b, and c are all "0" and the controller angle is 120°, the upper and lower tubes of A, B, and C are not turned on; when the controller is 60°, the upper tube of A and the lower tube of B are turned on. In this way, the angle of the controller can be judged according to the output signals of A, B, and C when a, b, and c are all "0". The flow chart is shown in Figure 4.


4 Conclusion
The system design uses STCl2C5410AD single-chip microcomputer as the control chip. The circuit is simple and the measurement is accurate. It meets the various requirements of electric vehicle brushless motor controller detection. It can detect whether the controller is connected to the handlebar and brake handle. It can judge whether the controller angle, Hall control phase sequence and the corresponding motor power phase sequence are consistent. It is hoped that this design will be better improved and perfected in future applications.

Keywords:STCl2C5410AD Reference address:Electric vehicle brushless motor controller detection based on STCl2C5410AD

Previous article:Design and implementation of educational robot based on STC12C5A60S2
Next article:Design of controllable electric wrench controller based on STC12C5A60S2

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

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号