フィルターのクリア

Determine speed from hall sensor output

14 ビュー (過去 30 日間)
Robin Egberts
Robin Egberts 2015 年 12 月 14 日
コメント済み: ROYAL SUTNGA 2020 年 5 月 18 日
Hello,
I am working on a student project and want to calculate the RPM of the wheels and thus the speed of the vehicle using a hall sensor. Assuming the hall sensor output can be simulated as a block signal with a varying pulse interval as the speed changes, how can I determine the time t(n)-t(n-1) where n indicates the occurence where the output signal rises above a threshold value for a continous signal? In other words: I want simulink to scan a continous input signal and output the time difference between the two most recent peaks.
Any help is appreciated. Thanks.
  2 件のコメント
ANGETI JIVAL
ANGETI JIVAL 2017 年 4 月 29 日
please i have a similar problem i need help too. am using brushless dc motor with 3 hall effect sensor. i need to get speed from the hall sensor so as to feedback in a simulnk arduino. i am implementing fuzzy PID on arduino uno board. please i need help urgent in orther to help me complete my thesis. am a master student in control and intrumentation. thanks.
ROYAL SUTNGA
ROYAL SUTNGA 2020 年 5 月 18 日
Please I am having the same problem. I want matlab code for calculating the speed and position of the motor using the signals of the hall sensors.Thanks.

サインインしてコメントする。

回答 (1 件)

Vineeth Kartha
Vineeth Kartha 2016 年 1 月 5 日
Hi Robin,
Please go through the model that I have attached ' DifferenceofPeaks.mdl' and see if this works for you. An explanation of the model is also provided.
  2 件のコメント
Robin Egberts
Robin Egberts 2016 年 1 月 5 日
編集済み: Robin Egberts 2016 年 1 月 5 日
Hello Vineeth,
Thanks for your help. I am looking for the time difference between the two peaks, the actual peak height different is of no practical concern. I can see how this might work within your model, but I would need to make input a en b continously running time signals for this, such that output(a-b) corresponds to the time difference. I am not sure how to do this... ;-)
Edit: Might it be possible to use a counter with a given sample time to count the instances where the input rises above the threshold and divide the sample time by the amount of counts to give an average time difference?
ROYAL SUTNGA
ROYAL SUTNGA 2020 年 5 月 18 日
Sir, can you send me the matlab code for calculating the speed and position of the motor using the three signals of the hall sensors.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeElectromechanical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by