Bird
0
0
Arduinoprogramming~5 mins

Motor direction with H-Bridge (L293D/L298N) in Arduino - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of an H-Bridge like L293D or L298N in motor control?
An H-Bridge allows you to control the direction of a DC motor by changing the polarity of the voltage applied to it. It can make the motor spin forward or backward safely.
Click to reveal answer
beginner
How do you make a motor spin forward using an H-Bridge?
You set one input pin HIGH and the other input pin LOW. This creates a voltage difference that makes the motor spin in one direction.
Click to reveal answer
beginner
What happens if both input pins of the H-Bridge are set to LOW?
The motor stops because there is no voltage difference across it. This is called stopping the motor.
Click to reveal answer
intermediate
Why do we need to connect the enable pin on the L293D or L298N?
The enable pin turns the motor driver channel ON or OFF. Setting it HIGH allows the motor to run; setting it LOW disables the motor output.
Click to reveal answer
beginner
What is the role of the Arduino pins connected to the H-Bridge inputs?
Arduino pins send signals (HIGH or LOW) to the H-Bridge inputs to control the motor's direction and speed (if PWM is used).
Click to reveal answer
Which pin configuration makes the motor spin backward using an H-Bridge?
AInput1 = LOW, Input2 = HIGH
BInput1 = HIGH, Input2 = HIGH
CInput1 = HIGH, Input2 = LOW
DInput1 = LOW, Input2 = LOW
What does setting both input pins to HIGH do to the motor?
AMotor brakes or stops
BMotor spins backward
CMotor spins forward
DMotor runs at half speed
What is the function of the enable pin on an L293D motor driver?
AControls motor speed by PWM
BTurns the motor driver channel ON or OFF
CChanges motor direction
DSupplies power to the motor
Which Arduino command sets a pin to output mode?
ApinMode(pin, INPUT);
BdigitalWrite(pin, HIGH);
CanalogWrite(pin, 255);
DpinMode(pin, OUTPUT);
If you want to stop the motor immediately, what should you do with the input pins?
ASet one input HIGH and the other LOW
BSet both inputs LOW
CSet both inputs HIGH
DDisconnect the motor
Explain how you control the direction of a DC motor using an H-Bridge like the L293D.
Think about how changing voltage direction changes motor spin.
You got /4 concepts.
    Describe the role of the enable pin on an L293D or L298N motor driver and why it is important.
    Consider how you can start or stop the motor without changing input pins.
    You got /4 concepts.