Can someone please help me learn how to make automatic switching based on available voltage sources to power up a three-input buck-boost converter?

2 views (last 30 days)
An example of this operation would be:
TEG: 0.3 - 0.4V
PV: 0.4 - 1.2V
PZT: 1.2 - 2V
Ideal Output: 1.8V
If the available source is TEG, then the system will operate in boost mode; if the available source is PV, then the system will operate in boost mode, and the system will operate in buck mode if PZT is available.

Accepted Answer

Yash
Yash on 3 Oct 2023
Edited: Yash on 9 Jan 2024
Hi Danikha,
I understand that you are facing issues in implementing automatic switching based on the input voltage to power up a three-input buck-boost converter. To achieve this, you would first need to invoke the if-else conditions in your model.
You can utilize a switch block in your model to invoke the if-else conditions. Since your logic requires many conditions, you can use multiple switch blocks in series to implement the logic.
Refer to the image below for the implementation.
Edit: The above mentioned method could create hassle when there is a large number of inputs. It is better to use the variant source block to achieve the same. The documentation for the variant source block is available at the link below:
I hope this addresses your query.
Best Regards
Yash
  3 Comments
Yash
Yash on 4 Oct 2023
Hi Danikha,
Based on the limited information provided in the question, I have made assumptions for the input values. I have considered the input for TEG as 100, the input for PV as 50, and the input for PZT as 5. The input voltage is set to 1 V which falls within PV Category and hence the output is 50.
Danikha Shyken
Danikha Shyken on 4 Oct 2023
I've wrapped my head around it now. You've been a huge help. Your assistance has been incredibly valuable, and I'm so thankful.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!