Linear hall sensor for FOC

3 ビュー (過去 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 Center および File ExchangeSpecialized Power Systems についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by