How to create a pulse wave with a variable duty cycle?
Show older comments
I am working on a simulation for maximum power point tracking of a solar module, using the P & O method. I need to control the duty cycle of a pulse wave controlling the switch of a buck converter. I used a matlab function from the file exchange, whose output is the duty cycle (between 0 and 1), which varies according to the function. I need to create a pulse wave with this variable duty cycle, so I can connect the pulse wave to the MOSFET switch of the buck converter. Thanks. Regards, Omar
Answers (1)
Shouk Mohammed
on 24 Dec 2015
0 votes
You can use PWM generator (DC_DC) block or you can build it by your self by using saw tooth and function to make sawtooth from 0 to 1 and compare it with the duty cycle come from function and output from compare to mosfet

Categories
Find more on Electrical Block Libraries in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!