Hello everybody.I have to implement the in house circuit cc-ih circuit which is an energy harvester circuit using simscape electrical. The description of the circuit can be found on page 7 of the pdf at Finite element-based assessment of energy harvesting in composite beams with piezoelectric transducers:
As you can see it has a detailed analysis of it, and also its diagram. My simscape implementation so far looks like this:
My question is the following. I dont know how to create the control logic so that the mosfet can be used as a switch and be turned off/on based on the threshold voltage. I ve tried using relational operator blocks combined with constant blocks to represent the trheshold voltage, ive tried the comparator block but it wont let me connect the output of the voltage sensor to the comparator block, now i am trying the relay block and it doestn seem to be working. If anyone wants to help me he needs only to read page 7-8 where my circuit (In-house PEH circuit (cc-ih) ) is described. Thanks in advance guys.
As you can see it has a detailed analysis of it, and also its diagram. My simscape implementation so far looks like this:

My question is the following. I dont know how to create the control logic so that the mosfet can be used as a switch and be turned off/on based on the threshold voltage. I ve tried using relational operator blocks combined with constant blocks to represent the trheshold voltage, ive tried the comparator block but it wont let me connect the output of the voltage sensor to the comparator block, now i am trying the relay block and it doestn seem to be working. If anyone wants to help me he needs only to read page 7-8 where my circuit (In-house PEH circuit (cc-ih) ) is described. Thanks in advance guys.