How to change SPWM Frequency of Arduino mega 2560 with MATLAB SIMULINK

조회 수: 9 (최근 30일)
yahya bakhuraisa
yahya bakhuraisa 2019년 10월 14일
답변: MULI 2024년 11월 8일 13:11
Hello, I have problem with my project. I use Arduino mega 2560 and Simulink. For the control I need a Sinusoidal PWM (SPWM) signal with 10 kHz - 20 kHz but the output SPWM on Arduino takes the frequency of sine wave only.
What can I do?
I would welcome your response

답변 (1개)

MULI
MULI 2024년 11월 8일 13:11
Hi yahya,
The output pulses from your Simulink model appears to be generated with frequency of "sin wave" so this is why the arduino outputs the sin wave frequency pulses.
You can refer to the below model which outputs the SPWM signals at 1050Hz

카테고리

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