how to change the default frequency of aurdiuno pwm block of simulink support package for aurdiuno?

9 ビュー (過去 30 日間)
Hi, the default frequency is 490Hz and i need set PWM frequency=10KHz, how to change the default frequency of aurdiuno pwm block of simulink support package for aurdiuno?

回答 (3 件)

Zenin Easa Panthakkalakath
Zenin Easa Panthakkalakath 2019 年 5 月 15 日
Hi Shivaleela,
Arduino hardware does not support changing the frequency of PWM wave. The frequency of the PWM signal on most pins is approximately 490 Hz. On the Uno and similar boards, pins 5 and 6 have a frequency of approximately 980 Hz.
Regards,
Zenin
  1 件のコメント
Hariprasad Sl
Hariprasad Sl 2019 年 6 月 12 日
Thanks Zenin!
but is there a work around to get the other frequency by modifying timer precsaler using simulink ?

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


Simon
Simon 2019 年 8 月 9 日
Dear Shivaleela
this topic was discussed several times.
Please see for example:
https://www.arduino.cc/en/Tutorial/SecretsOfArduinoPWM
All the best
SImon

Arun Kumar
Arun Kumar 2019 年 9 月 25 日
編集済み: Arun Kumar 2019 年 9 月 25 日
Hi,
Use this library to change the PWM frequency on arduino:
Request for supporting variable PWM frequnecy on arduino is under consideration.
HTH.

コミュニティ

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by