cancel
Showing results for 
Search instead for 
Did you mean: 

What kind of control and timing should be used to perform commutation successfully on STM32G4 MCU?

Kenji1
Senior

 

Hi team.

I want to implement 6-step sensor less voltage mode on stm32g474. So, I referred the MCSDK V6.2.1, 6-step sensor less Voltage mode with stm32g431 with IHM03 code.

But I couldn't understand how to commutate timing is controlled.
Also, I read the "md_docs_2six-step-firmware-algorithm.html" at MCSKD installed folder, but no mention.

The reason why I want to know the commutation timing is because PWM overrun occurs at high speeds commutaion.

Currently, I am using a code to check the commutation timing on every PWM cycle. Actually this cycle is Tim1's CH4 compare interrupt.

The commutation waveforms at low speed and high speed are as follows.
What kind of control and timing should be used to perform commutation successfully?

fig1. Commutation at low speed

Kenji1_0-1712119588053.png

fig2. Commutation at high speed

Kenji1_1-1712119887291.png

 

 

2 REPLIES 2
walen
Associate III

Hi KenJi1,

 Which instrument do you use? logic analyzer ? because my LA will disconnect when start  motor

 

Kenji1
Senior

Hi, @walen -san

 

I'm using Saleae Logic Pro 16 and Pro 8.  
Saleae's logic analyzer can analyze digital and analog signals.
I can't do my job without this tool.

Saleae Logic Analyzers

This is a capture figure of ESC control for drone, using Logic Por.

Kenji1_0-1750829275320.png

 

Also, I'm using Kingst LA2016.
This analyzer is digital only. 

Kingst


Analog Discovery 3 and Pro 3000 for analyzing servo control.

Digilent – Start Smart, Build Brilliant.

 

Ofcourse, I use 8-Ch Oscilloscope and .


You can use, DSLogic Series too.

Homepage - DreamSourceLab