Which Arduino board (Name) can be used to read the speed directly using the Encoder block of Simulink?
13 次查看(过去 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?
0 个评论
采纳的回答
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.
Motor carrier encoder block: https://www.mathworks.com/help/supportpkg/arduino/ref/encoderarduinomotorcarrier.html
Supported shields:
In R2021b, support for rotary encoder was added which can be used for all encoders on all arduino boards.
8 个评论
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!