how to change the default frequency of aurdiuno pwm block of simulink support package for aurdiuno?
7 次查看(过去 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?
0 个评论
回答(3 个)
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
2019-6-12
Thanks Zenin!
but is there a work around to get the other frequency by modifying timer precsaler using simulink ?
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
0 个评论
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 Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!