Analysis of Renesas Sensorless FOC Solution (Part 2)

Author Introduction

Engaged in the control development of three-phase asynchronous motors and permanent magnet synchronous motors for over ten years, proficient in sensorless FOC control. Products involved include inverters, servos, power tools, vacuum cleaners, propellers, drones, air compressors, etc. Power range includes 100W to 100kW, voltage range includes 14VDC to 660VAC.

Since 2020, I have been sharing technical knowledge on Zhihu and WeChat public accounts, with a consistent philosophy of respecting knowledge, labor, and copyright, continuously providing value. I hope all my peers receive adequate compensation and that more people are willing to engage in the motor control industry. Currently, I have a personal brand on platforms like Xianyu, CSDN, Bilibili, and Douyin.

Analysis of Renesas Sensorless FOC Solution (Part 2)

Introduction

In the previous article, we analyzed the first half of Renesas FOC, including the speed loop, weak magnetic control, and current loop.

Some friends have given feedback that the depth of the article was insufficient. I do not deny this, and I feel quite helpless. At my age, I have to balance family responsibilities and career development, and I have stopped many scattered tasks. Writing articles can only be a hobby; this article was conceived while I was traveling on the high-speed train.

I also envy young friends who can continually delve into new technologies. At this stage, I am more focused on career direction, business connections, and product lifecycle, and I simply do not have the energy to explore certain new technologies. More of my focus is on project implementation, product stability, and customer satisfaction. I hope for your understanding.

This article analyzes the second half, including position estimation, open-loop startup, and FOC structure.

Method Overview

Position Estimation

Renesas’s sensorless position estimation is based on the BEMF back EMF method. In the d-q rotating coordinate system, we construct the real dq coordinate system and the estimated dq coordinate system, as shown in the figure below:

Analysis of Renesas Sensorless FOC Solution (Part 2)

Real Coordinate System and Estimated Coordinate System

The voltage equations in the dq coordinate system are as follows:

Analysis of Renesas Sensorless FOC Solution (Part 2)

Voltage Equation in dq Coordinate System

By equating the back EMF as disturbances, the voltage equation simplifies to:

Analysis of Renesas Sensorless FOC Solution (Part 2)

Simplified Voltage Equation

The d-axis voltage equation can be rewritten as:

Analysis of Renesas Sensorless FOC Solution (Part 2)

d-axis Voltage Equation

The d-axis current and voltage disturbances are treated as state variables, written in the form of the following state equation:

Analysis of Renesas Sensorless FOC Solution (Part 2)

State Equation
Id and ^Id are the real d-axis current and estimated d-axis current. d and ^d are the real d-axis voltage disturbances and estimated d-axis voltage disturbances. Ked1 and Ked2 are the estimation gains, then the estimation equation is as follows:

Analysis of Renesas Sensorless FOC Solution (Part 2)

Estimation Equation

The estimated current and estimated voltage disturbances can be expressed in the following form:

Analysis of Renesas Sensorless FOC Solution (Part 2)

Disturbance Equation

From the equations, we can see that ^Id and ^dd are both second-order systems with inputs of Id and V*d, where ^dd represents the d-axis disturbance, and ^dq represents the q-axis disturbance.

The natural frequency and damping ratio can be tuned as follows:

Analysis of Renesas Sensorless FOC Solution (Part 2)

Natural Frequency and Damping Ratio

The estimation gain is designed as follows:

Analysis of Renesas Sensorless FOC Solution (Part 2)

Estimator Bandwidth

Where Ked1 represents the bandwidth of the d-axis estimator.

The state equation for estimation is modified to the following form:

Analysis of Renesas Sensorless FOC Solution (Part 2)

State Equation

Based on the state equation, we can draw the entire d-axis back EMF estimation system block diagram:

Analysis of Renesas Sensorless FOC Solution (Part 2)

System Block Diagram of d-axis Back EMF Estimator

After estimating the current and voltage disturbances in the dq axis, we obtain the dq axis back EMF:

Analysis of Renesas Sensorless FOC Solution (Part 2)

Back EMF Calculation Angle

According to the definitions of the real coordinate system and the estimated coordinate system, we can calculate the angle error between the estimated angle and the actual angle by performing arctangent on the dq estimated back EMF.

The angle error is fed into the phase-locked loop (PLL) to output the estimated angle and estimated speed:

Analysis of Renesas Sensorless FOC Solution (Part 2)

PLL Block Diagram

The closed-loop transfer function of the PLL is as follows:

Analysis of Renesas Sensorless FOC Solution (Part 2)

PLL Transfer Function

Both the speed loop and the current loop belong to second-order lag systems with zero points, the bandwidth and damping ratio are calculated as follows:

Analysis of Renesas Sensorless FOC Solution (Part 2)

Bandwidth Calculation
Wn represents the bandwidth of the phase-locked loop, generally designed at critical damping or underdamping, with damping ratios of 1 or 0.707, and the parameter calculations for the phase-locked loop are as follows:

Analysis of Renesas Sensorless FOC Solution (Part 2)

PLL Parameter Calculation

Renesas’s position estimation is different from sliding mode or Luenberger and does not belong to extended back EMF; there should be related articles.

FOC Structure

In the initial stage, open-loop control is used, i.e., I-f damping control, similar to power angle compensation, with Id fixed amplitude and Iq=0. The current loop adds feedforward, and Uq is limited by the calculation result of Ud to prevent current loop saturation. The reference speed plus power angle compensation is integrated to obtain the angle for current decoupling and coordinate inverse transformation. The overall block diagram is shown below:

Analysis of Renesas Sensorless FOC Solution (Part 2)

Block Diagram of Open-Loop Startup Stage

After using I-f open-loop startup, switch to closed-loop FOC control mode, as shown in the figure below:

Analysis of Renesas Sensorless FOC Solution (Part 2)

FOC Mode

The angle estimation outputs the estimated angle error, which is fed into the phase-locked loop to output estimated speed and estimated angle. Weak magnetic control requires the joint participation of Id, Iq, and current speed in calculations. The current loop adds feedforward, and Uq is limited by the calculation result of Ud to prevent current loop saturation. After inverse transformation, compensation must also be added to the three-phase voltage, which will be discussed later.

Open-Loop Startup

In the low-speed region, Renesas uses open-loop I-f control instead of FOC, mainly due to the influence of nonlinear factors at low speeds, which causes FOC estimation to have non-negligible errors.

To solve the oscillation caused by unstable I-f torque, the following damping control is adopted, extracting the high-frequency component of Eq to obtain the oscillation frequency, and applying damping compensation to the electrical angle based on the oscillation frequency to suppress speed oscillations.

Analysis of Renesas Sensorless FOC Solution (Part 2)

Low-Speed Damping Compensation

When reaching the mid-speed region, the estimation error of FOC based on the back EMF model can be considered negligible, and the system gradually switches from I-f damping control to FOC control.

During the switch, especially under heavy load, the electrical angle of I-f and the actual rotor angle have a large error, and switching easily causes current surges.

To reduce the surge, the angle error is used as the loop input to calculate the need to gradually reduce the angle error of I-f to 0, with the loop output assigned to Iq, while Id gradually decreases. When the angle error converges to 0, the switching condition is met, and the system switches directly to FOC. Id gradually decreases, and Iq gradually increases, effectively reducing current surges through a gradual transition.

Analysis of Renesas Sensorless FOC Solution (Part 2)

Switching from I-f to FOC

Voltage Error Compensation

The voltage error here mainly refers to the discrepancy between the actual output voltage and the reference output voltage caused by dead time and MOSFET/IGBT switching delays.

The magnitude of the voltage error is related to the current direction, the switching time of the devices, and the dead time. As shown in the figure below, according to Renesas’s approach, it seems to calibrate the error based on the current and then add it to the voltage reference, rather than compensating separately for the dead time.

Analysis of Renesas Sensorless FOC Solution (Part 2)

Relationship Between Phase Current Direction Amplitude and Voltage Error

Startup Logic

The overall logic for open-loop I-f startup to switching to FOC is shown in the figure below:

Analysis of Renesas Sensorless FOC Solution (Part 2)

Switching from I-f to FOC

Getting to Know the Author:

How Can Motor Control Engineers Earn High Salaries?

My House Buying Story

What is it like to have a monthly salary of 40,000 RMB?

Is it difficult to earn 100,000 RMB a month?

Professional Articles:

Is there still a market for Texas Instruments C2000?

2022 Development Trends in the Electric Control Industry

A Guide to Avoid Pitfalls in Learning FOC

Sensorless FOC Control for Aircraft Models Based on M0 MCU

How Powerful is MATLAB?

Nonlinear Observer Based on Magnetic Link Model

Analysis of Renesas Sensorless FOC Solution (Part 2)

Leave a Comment