This paper introduces a method of realizing a position sensorless drive of a surface mounted permanent magnet synchronous motor (SPMSM) by using the MC16C/28 series CPU products of Renesas Company and using 120o trapezoidal wave alternation to estimate the rotor position through the zero crossing point of the motor induced voltage .
Digital control of the speed and position of AC motors through frequency conversion technology and pulse width modulation technology is the development trend of motor control . Permanent magnet synchronous motor (PMSM) has the advantages of simple structure, small size, easy control and excellent performance. Using single chip microcomputer to digitally control the motor is the most common means to achieve digital control of the motor.
Motor Control
Figure 1 Three-phase motor drive
Figure 2 Block diagram of motor control hardware
Inverter control
Electrical energy (commercial power ) is generally provided through a power supply system. In this case, the voltage, frequency and phase of the commercial power are fixed at a precise level under strict control. If a commercial power supply is directly supplied to the motor load, an induction motor (IM) can be started, while a synchronous motor (such as a permanent magnet synchronous motor PMSM) cannot be started.
In the inverter control process, the commercial power supply is not connected to the load. A conversion device first converts the alternating current (AC) current into direct current (DC) power, and then an inverter converts the DC power into AC power in order to deliver AC power with the desired voltage and frequency to the motor. If the output voltage and frequency are controlled according to the load and disturbance, this will enable the synchronous motor to start and rotate and achieve energy saving.
Table 1 Control methods
Table 2 A/D conversion
Table 3 Interrupt functions
Induced voltage
Electric motors can act as generators. Therefore, when you connect a lamp to a motor and rotate the motor shaft, the lamp will glow. This is because an induced electromotive force is generated, and the voltage generated is called "induced voltage".
When the motor is stopped, no induced voltage is generated. Therefore, when the motor is started, it is forced to rotate in a certain direction to find the position of the rotor.
In the motor control using 180° sinusoidal wave alternation, the induced voltage generated in the motor cannot be directly monitored because the current flows continuously in the motor. Therefore, in the position sensorless control, the rotor position is estimated by the motor current.
Hardware and software specifications for motor control
Hardware composition
Surface mounted permanent magnet synchronous motor (SPMSM)
A/D converter
Three-phase PWM output
Zero point detection of induced voltage
The four-part block diagram is shown in Figure 2.
Software Features
The software controls are shown in Table 1.
Functional description of CPU and peripheral devices for motor control
A/D conversion
The A/D conversion description is shown in Table 2.
Three-phase PWM output
Sawtooth wave is used for modulation and three-phase mode 0 is adopted to realize 120o alternating drive motor.
In the 120° alternating trapezoidal wave, the speed is basically proportional to the voltage.
Zero-crossing detection of induced voltage in three-phase motor
In this software, the zero crossing point of the induced voltage is detected by configuring the external interrupt function according to Table 3.
Using trapezoidal wave alternation to realize the position sensorless type of SPMSM
Driver software description
The software describes how to use the 120° alternation of the trapezoidal wave to realize the sensorless drive of the SPMSM. Contents include:
(1) The rotor position is detected by the induced voltage in the motor and the rotation speed is controlled within the range of ±500 rpm~3000 rpm using a 120° trapezoidal wave.
(2) Description of the eight control modules.
A/D converter
Detection of induced voltage
Calculation of actual speed Calculation
of target speed
Calculation of PWN duty cycle
Determination of output mode
Initial startup processing
Other CPU monitoring and detection of system abnormality.
(3) Storage transformation of CPU registers
The CPU has 13 registers: data register, address register, frame register, interrupt table register, program pointer register, user stack pointer (USP) register, interrupt stack pointer (ISP) register, status register, flag register (carry flag register, debug flag register, 0 flag register, sign flag register, register group selection flag register, overflow flag register, interrupt enable flag register.) Stack pointer selection flag register, processor interrupt priority register, reserved domain register.
Storage transformations include:
Address allocation for linear address space, fixed interrupt vectors, internal RAM, SFR area, special page vectors, etc.
Used for storage conversion and segment configuration of this software
(4) Main software modules of the system
(5) Initial setting values of SFR related to three-phase output
AD converter control register 0-2 settings
Motor induction voltage detection
Three-phase output PWM settings (24 registers)
(6) Implementing the SPMSM sensorless drive control process through 120° trapezoidal wave alternation
Main processing for realizing sensorless drive of SPMSM by 120° trapezoidal wave alternation
Initialization processing
PWM interrupt processing
Stop processing
Start processing
Normal processing
Actual speed calculation processing
Speed command calculation processing
Bus
Voltage calculation processing
Motor lock detection processing
Stop detection processing
Previous article:50~150MHZ high frequency VCO circuit
Next article:Newest integrated PFC/PWM combination solution for efficient PC power supply
- Popular Resources
- Popular amplifiers
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- PYPL Programming Language Rankings for November 2022
- How can esp32 get the file information in the file system of the micropython task in another task?
- zstack protocol stack serial port problem
- [Summary of the shortlist] GigaDevice GD32L233 review event
- About Ingenic IP5328P
- (Bonus 11) GD32L233 Review - PWM Driven Active Buzzer
- [Silicon Labs BG22-EK4108A Bluetooth Development Review] 1. Unboxing
- Why is the output ripple of the circuit I designed so large?
- COCOFLY Tutorial - Crazy Shell Drone Series Quick Start [3] OPENMV Script Burning
- [Telink's new generation of low-power, high-performance, multi-protocol wireless kit B91 review] HomeAssistant+B91zigbee network access