Which Arduino board (Name) can be used to read the speed directly using the Encoder block of Simulink?

조회 수: 22 (최근 30일)
Hi,
I am using Arduino Uno to read the Speed of my motor using simulink Encode block, But simulink says Uno board can not be used for Encoder block. Can somebody please tell me which Arduino Board can be used to read the speed from encoder block?

채택된 답변

Arun Kumar
Arun Kumar 2021년 9월 30일
Hi Aakash,
Which release of MATLAB are you using?
Till R2021a, the encoder block supports only encoders on motor carrier shield which is specifically for MKR boards and Nano 33 IoT board.
Supported shields:
In R2021b, support for rotary encoder was added which can be used for all encoders on all arduino boards.
  댓글 수: 8
Arun Kumar
Arun Kumar 2022년 10월 24일
Hi Nagaraj,
From the error it looks like you are using encoder block from the Motor carrier library which is supported only on the boards mentioned in the error.
Please use the following block from arduino sensors library
https://in.mathworks.com/help/supportpkg/arduino/ref/encodersensors.html
Hope this helps!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

aakash dewangan
aakash dewangan 2022년 11월 3일
편집: aakash dewangan 2023년 2월 5일
I have used Arduino due, mkr with motor driver shield and nano board for this purpose.
Due would be the best choice because of high clock frequency, which can read very very high speed also.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by