modelHBridge

Extends from Servomechanisms.Utilities.box, Servomechanisms.Utilities.IconNameB.

Information

General

This component simulates the behaviour of an h-bridge using MOSFET transistors.

Implementation

This model has 4 transistors Q1, Q2, Q3 and Q4 wich their respective diode. Q1 and Q4 form half bridge and Q2 and Q3 the other half bridge.
Q1 and Q3 are PMOS transistors while Q2 and Q4 are NMOS given the configuration.
The bridge is controlled using a Sign-Magnitude drive with boolean inputs and outputs.

Notes

  • The voltage should be applied on the electrical interfaces (Vpos and Vneg) using an external dc source for example DCSource .
  • It uses the Sign-Magnitude method to control the signal SignMagnitudDrive .
  • The motor pins should be connected to the MotorA and MotorB pins.
  • The inputs are the logical inputs PWM and ENABLE (or direction), which can be generated by an external element, for example Controller .
  • This model has a voltage sensor (real value) between MotorA and MotorB pins and
  • The transconductance of transistors can be change.

See also

Servomechanisms.Electrical.IdealHBridge

Parameters

TypeNameDefaultDescription
SI.ResistanceRes10000000.0
SI.ResistanceRes11000
SI.TransconductanceBeta10Transconductance parameter

Connectors

TypeNameDefaultDescription
Modelica.Electrical.Analog.Interfaces.PositivePinpin_p
Modelica.Electrical.Analog.Interfaces.NegativePinpin_n
Modelica.Electrical.Analog.Interfaces.PositivePinMotorA
Modelica.Electrical.Analog.Interfaces.NegativePinMotorB
Modelica.Blocks.Interfaces.BooleanInputPWM
Modelica.Blocks.Interfaces.BooleanInputDIR

Components

TypeNameDefaultDescription
Modelica.Electrical.Analog.Semiconductors.NMOSQ4
Modelica.Electrical.Analog.Ideal.IdealClosingSwitchS1
Modelica.Electrical.Analog.Ideal.IdealClosingSwitchS4
Modelica.Electrical.Analog.Semiconductors.Diodediode1
Modelica.Electrical.Analog.Semiconductors.Diodediode4
Modelica.Electrical.Analog.Basic.Resistorresistor4
Modelica.Electrical.Analog.Sensors.VoltageSensorVAB
Servomechanisms.Electrical.DCSourcedcsource2
Modelica.Electrical.Analog.Semiconductors.PMOSQ1
Modelica.Electrical.Analog.Basic.Resistorresistor3
Modelica.Electrical.Analog.Semiconductors.NMOSQ2
Modelica.Electrical.Analog.Semiconductors.Diodediode2
Modelica.Electrical.Analog.Basic.Resistorresistor1
Modelica.Electrical.Analog.Semiconductors.PMOSQ3
Modelica.Electrical.Analog.Basic.Resistorresistor2
Modelica.Electrical.Analog.Ideal.IdealClosingSwitchS3
Modelica.Electrical.Analog.Ideal.IdealClosingSwitchS2
Modelica.Electrical.Analog.Semiconductors.Diodediode3
Servomechanisms.Electrical.DCSourcedcsource1
Modelica.Electrical.Analog.Basic.Capacitorcapacitor1
Servomechanisms.Electrical.SignMagnitudDrivesignmagnituddrive1