0
0
Simulinkdata~10 mins

H-bridge driver simulation in Simulink - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - H-bridge driver simulation
Start Simulation
Input Control Signals
Evaluate H-Bridge Logic
Set Motor Terminals Voltage
Motor Response
Output Motor Speed & Direction
End Simulation
The simulation starts by receiving control signals, then applies H-bridge logic to set motor terminal voltages, resulting in motor speed and direction outputs.
Execution Sample
Simulink
1. Set inputs: IN1=1, IN2=0
2. Evaluate H-bridge logic
3. Motor terminals: A=High, B=Low
4. Motor rotates forward
5. Output speed and direction
This simulates the H-bridge driving the motor forward by setting one terminal high and the other low.
Execution Table
StepIN1IN2Motor Terminal AMotor Terminal BMotor DirectionMotor Speed
100LowLowStopped0
210HighLowForwardPositive Speed
301LowHighReversePositive Speed
411HighHighBraking0
500LowLowStopped0
💡 Simulation ends after cycling through all input combinations to show motor behavior.
Variable Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4Final
IN1001010
IN2000110
Motor Terminal ALowLowHighLowHighLow
Motor Terminal BLowLowLowHighHighLow
Motor DirectionStoppedStoppedForwardReverseBrakingStopped
Motor Speed00Positive SpeedPositive Speed00
Key Moments - 3 Insights
Why does the motor stop when both IN1 and IN2 are 0?
When both inputs are 0, both motor terminals are low, so no voltage difference exists to drive the motor, resulting in it stopping (see Step 1 and Step 5 in execution_table).
What happens when both IN1 and IN2 are 1 at the same time?
Both motor terminals become high, causing braking because the motor terminals are at the same voltage, preventing rotation (see Step 4 in execution_table).
How does changing IN1 and IN2 control motor direction?
Setting IN1=1 and IN2=0 drives the motor forward; reversing inputs (IN1=0, IN2=1) reverses motor direction (see Steps 2 and 3 in execution_table).
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table at Step 3. What is the motor direction?
AForward
BReverse
CStopped
DBraking
💡 Hint
Check the 'Motor Direction' column at Step 3 in the execution_table.
At which step does the motor experience braking?
AStep 4
BStep 2
CStep 3
DStep 5
💡 Hint
Look for 'Braking' in the 'Motor Direction' column in the execution_table.
If IN1 and IN2 are both set to 0, what will the motor speed be?
APositive Speed
BNegative Speed
CZero
DMaximum Speed
💡 Hint
Refer to Steps 1 and 5 in the execution_table for motor speed when inputs are zero.
Concept Snapshot
H-bridge driver simulation controls motor direction and speed.
Inputs IN1 and IN2 set motor terminal voltages.
IN1=1 & IN2=0: motor moves forward.
IN1=0 & IN2=1: motor reverses.
Both inputs 0: motor stops.
Both inputs 1: motor brakes.
Full Transcript
This simulation models an H-bridge driver controlling a motor. The inputs IN1 and IN2 determine the voltage at motor terminals A and B. When IN1 is 1 and IN2 is 0, terminal A is high and B is low, causing the motor to rotate forward. Reversing inputs causes the motor to rotate in reverse. When both inputs are 0, the motor terminals are low, so the motor stops. When both inputs are 1, both terminals are high, causing braking. The execution table shows these states step-by-step, tracking inputs, motor terminal voltages, motor direction, and speed. This helps visualize how the H-bridge controls motor behavior.