Using a rotary encoder with arduino mega and MATLAB
2 ビュー (過去 30 日間)
古いコメントを表示
I've tried to run the following example code I obtained from mathwoks website ( https://www.mathworks.com/help/supportpkg/arduinoio/ref/rotaryencoder.html ). I get the following error when I try to create a rotary encoder object:
>> a = arduino('COM4','Uno','Libraries','rotaryEncoder');
Invalid value 'rotaryEncoder' for Libraries. Valid libraries are
'Adafruit/MotorShieldV2, I2C, SPI, Servo, ShiftRegister'.
Do I need to install something in order to use the rotary encoder library, if so what library should I install ? I've already installed the MATLAB and SIMULINK support packages for arduino. Thanks in advance for your help.
3 件のコメント
Qais El-Bakaein
2018 年 1 月 17 日
編集済み: Qais El-Bakaein
2018 年 1 月 17 日
Hey, i have the same problem and I have R2017b, what could the problem be? thanks
回答 (1 件)
Akhilesh Thakur
2017 年 7 月 31 日
This feature is introduced in R2017a. Check the version. If you are unable to do that check this link https://www.mathworks.com/help/supportpkg/arduinoio/quadrature-encoders.html. You need to go through this there are sample examples that can help you.
Best Akhilesh
0 件のコメント
参考
カテゴリ
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!