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

14 visualizaciones (últimos 30 días)
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?

Respuestas (3)

Zenin Easa Panthakkalakath
Zenin Easa Panthakkalakath el 15 de Mayo de 2019
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

Simon
Simon el 9 de Ag. de 2019
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 el 25 de Sept. de 2019
Editada: Arun Kumar el 25 de Sept. de 2019
Hi,
Use this library to change the PWM frequency on arduino:
Request for supporting variable PWM frequnecy on arduino is under consideration.
HTH.

Comunidades de usuarios

Más respuestas en  Power Electronics Control

Categorías

Más información sobre Arduino Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by