PWM gneration using arduino mega 2560 through simulink
8 views (last 30 days)
Show older comments
jiwanjot singh on 26 Aug 2014
Answered: Saipraveen on 29 Nov 2018
Respected sir/madam I am facing problem to generate the PWM using arduino mega 2560. I am generating the PWM pulses using simulink, PWM genration block at 50 % duty cycle but , arduino mega 2560 generates just upto 1200 hz digital output otherwise overrun detection occurs. I have tested on all pins. So how can i generate the digital output at any frequency( 20khz, 50khz) using simulink without occurrence overrun detection.
oday on 5 Jan 2015
Have you found any solution to your problem, please let me know
Ahmet yüksel on 29 Nov 2016
Have you found any soluion to your problem, please let me know
pls may you help me
Saipraveen on 29 Nov 2018
Currently the PWM block generates in the default frequency. The frequency of the pins 4 & 13 is 976.5Hz while the other PWM pins generate at 490.1Hz.
More Answers in the Power Electronics Control
Find more on Simulink Support Package for Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!