raspberry pi用の制御ブロックについて

4 views (last 30 days)
Reo Takahashi
Reo Takahashi on 21 Dec 2016
Edited: Akihiro Yasuda on 6 Jan 2017
raspberry pi用の制御ブロックのPWM出力周波数を8kHz以上に上げることはできますか? よろしくお願いいたします。

Answers (1)

Akihiro Yasuda
Akihiro Yasuda on 22 Dec 2016
Edited: Akihiro Yasuda on 6 Jan 2017
ご指摘の通り、PWMブロックは8kHzまでとなっています。
代替案としては、wiringPiを呼び出すデバイスドライバを作成する方法があります。
wiringPiを使用したブロックは、File Exchangeから入手可能です。
wiringPiの使用例などは、下記が参考になると思います。
  2 Comments
Reo Takahashi
Reo Takahashi on 4 Jan 2017
ご回答ありがとうございます。
貼っていただいたFileExchangeのwiringPiリンクが期限切れとなってしまっており、閲覧できない状況です。 そこで自分なりに探してみたところ、以下のようなページがあったのですがこれでも代用できますでしょうか、、、
https://jp.mathworks.com/matlabcentral/fileexchange/41529-raspberry-pi-pwm-driver-block-sfunction
Akihiro Yasuda
Akihiro Yasuda on 6 Jan 2017
ページ切れとなり、申し訳ありません。
>以下のようなページがあったのですがこれでも代用できますでしょうか、、、
はい、ご指摘のURLで問題ありません。
ちなみに、その元となるブロックは Device Drivers から 来ています。
ですので、独自のデバイスドライバを作成する場合、
それらが参考になるかと思います。

Sign in to comment.

Categories

Find more on Raspberry Pi Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!