Hi, I am using the ardunio support package in MATLAB to generate pwm pulses, but when I checked the PWM pulses at arduino digital pin with DSO it is not showing the correct frequency as 4kHz instead it shows smth around 200Hz. Can anyone suggest?

조회 수: 3 (최근 30일)
Is there is problem with support package or arduino, I am using arduino uno.

채택된 답변

Arpita Agrawal
Arpita Agrawal 2018년 2월 23일
PWM frequency is not programmable in Arduino. Depending on which pin you are using to generate PWM the frequency may vary. Refer to Arduino documentation for more details: https://www.arduino.cc/reference/en/language/functions/analog-io/analogwrite/
-Arpita

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by