MATLAB Answers

0

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

Asked by shivaleela patil on 8 May 2019
Latest activity Commented on by Jos
on 21 Oct 2019 at 14:39
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 Comments

Sign in to comment.

3 Answers


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 Comment

Thanks Zenin!
but is there a work around to get the other frequency by modifying timer precsaler using simulink ?

Sign in to comment.


Simon 님의 답변 9 Aug 2019

Dear Shivaleela
this topic was discussed several times.
Please see for example:
https://www.arduino.cc/en/Tutorial/SecretsOfArduinoPWM
All the best
SImon

  0 Comments

Sign in to comment.


Arun Kumar 님의 답변 25 Sep 2019
Arun Kumar 님이 편집함. 25 Sep 2019

Hi,
Use this library to change the PWM frequency on arduino:
Request for supporting variable PWM frequnecy on arduino is under consideration.
HTH.

  1 Comment

Hi,
Any idea when this feature may be updated?
Cheers,
Jos

Sign in to comment.