Linear hall sensor for FOC

조회 수: 4 (최근 30일)
Jamie
Jamie 2024년 9월 6일
답변: Kothuri 2024년 10월 12일
Hello,
I have a pmsm motor control application for which I will be using FOC. All of the mathworks examples use either digital hall sensors, or a quadrature encoder. However, the motors we are using for our application will use linear hall sensors.
Are there any simulink blocks or tools that provide offest computation and normalisation for analogue hall sensors? Would be grateful for any direction.
Best Regards,

답변 (1개)

Kothuri
Kothuri 2024년 10월 12일
Hi Jamie,
I understand that for PMSM motor control application using Field-Oriented Control (FOC) with linear Hall sensors, you want to know if there are any tools or blocks in Simulink that can help with offset computation and normalization for analog Hall sensors.
Here are some steps you can follow:
  • You can try using the “Hall Speed and Position” block as it can be used to compute speed and estimate position using Hall sensors. And it includes functionality for offset calibration, which is crucial for accurate FOC implementation.
You can refer the below link for more info on “Hall Speed and Position” block.
  • You can use standard Simulink blocks to process the analog signals from the Hall sensors. You can follow the steps below
  • By using the “Mean” block to compute the average value of the signal and subtract it to remove any DC offset. You can determine the offset by measuring the sensor output when the motor is stationary.
  • And using the “Gain” block to scale the signal to the desired range (i.e., for normalisation).
  • Here is a basic example of how you might set up the offset removal and normalization using “MATLAB function” block:
% Example of offset removal and normalization
% Assuming 'hall_signal' is your input from the Hall sensor
% Offset removal
mean_value = mean(hall_signal);
offset_removed_signal = hall_signal - mean_value;
% Normalization
normalized_signal = offset_removed_signal / max(abs(offset_removed_signal));
You can refer the below links for more info on “Mean” block ,“Gain” block and “MATLAB Function” block https://www.mathworks.com/help/sps/powersys/ref/mean.html

카테고리

Help CenterFile Exchange에서 Specialized Power Systems에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by