Simulink Piezoelectric generator with boost converter failed to converge
Show older comments
I'm building a piezoelectric generator with boost converter for my assignment and I'm trying to create a feedback loop by using the capacitor voltage to control the switch for boost converter. The model works fine when the switch is disconnected, or controlled using a pulse generator, but it stops working when I connect the switch to the capacitor voltage. Any idea how to fix this?
The fullwave rectifier and piezoelectric generator is mostly following the design from this example model. https://www.mathworks.com/help/sps/ug/piezo-bender-energy-harvester.html



1 Comment
Sabin
on 15 Dec 2025
Can you share the model? Would be easier to look into the problem.
Answers (1)
Ayush
on 18 Dec 2025
0 votes
Hi Cheah,
I understand you're having trouble implementing the feedback loop where the capacitor voltage controls the boost converter switch.
It would be better if you attach your model and error message which you encounter, if any. Since I don't have access to your model, here are a few general suggestions:
- Try logging or monitoring the capacitor voltage and the control signal going to the switch with a scope or display block to see how they behave when connected.
- Check that the control logic (comparator, controller, or any processing block) between the capacitor voltage and the switch is set up and parameterized correctly.
- Test each part of the model (rectifier, boost converter, feedback logic) independently to isolate where the issue might be.
Hope this helps!
Categories
Find more on Electrical Block Libraries 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!