0% found this document useful (0 votes)
15 views5 pages

Final Project 1

An H-bridge is an electronic component that reverses voltage polarity to control the direction of DC motors, commonly used in robotics. The L298N is a popular type of H-bridge that allows an Arduino to manage two motors without overloading its power supply. The document outlines the connections and algorithm for using an H-bridge with Arduino to control motor speed and direction.

Uploaded by

saraamramr52
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views5 pages

Final Project 1

An H-bridge is an electronic component that reverses voltage polarity to control the direction of DC motors, commonly used in robotics. The L298N is a popular type of H-bridge that allows an Arduino to manage two motors without overloading its power supply. The document outlines the connections and algorithm for using an H-bridge with Arduino to control motor speed and direction.

Uploaded by

saraamramr52
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

H-bridge (AKA; DC motor

driver):

Definition:
-An H-bridge is an electronic
component that switches the polarity
of a voltage.
-These components are often used in
robotics and other applications to
allow DC motors to run forward or backward.

L298n
Types:
-Common types include the L9110 Dual Motor Driver, L298 Dual
H-Bridge Motor Driver, and L293D Driver.

Scientific idea:
-Its scientific idea is to reverse the electromagnetic field of the
current passing through the motor’s coils.

Components:
-It consists of four switches
(usually MOSFETs: electronic devices used to switch or
amplify voltages in circuits)

- By activating one pair of diagonally opposed


switches, the motor direction can be driven
(clockwise).
Why used with Arduino?

-An H-Bridge is used with an Arduino to control the direction


and speed of DC motors, Since the Arduino can only supply a
limited amount of power, an H-Bridge, like the L298N, allows for
operating motors that require more power without overloading
the Arduino, and enables precise control over two motors, in
simple words, the pins on your Arduino can't handle the current
required to run a DC motor, so using an H-bridge solves that
problem and also lets you reverse the motor direction if needed.

-The MAX. number of DC motors that an H-bridge can handle is


2

Tinkercad:
-this is the type and symbol of the H-
bridge in Tinkercad.

L293D
-connect the OUTPUT pins to the DC motor.

-connect the INPUT pins to the digital pins in Arduino.

-connect the Enables pin to the PWM pin to use the


analogWrite command.

-connect the VCC1 to 5V power and VCC2 to the +ve pole


on the battery.

-connect the GND pins to the GND pin and the other to
the -ve pole of the battery.

Algorithm:

-set pinMode of INPUT pins & Enables pin as OUTPUT


(to control the direction and speed).

-use analogWrite(enablepin,value1) command to set


required speed.
-use digitalWrite(inputpin1,HIGH/LOW),
digitalWrite(inputpin2,LOW/HIGH) to set a particular
direction.

-use delay() function to pause.


-then use analogWrite(enablepin,value2) again if
dec/inc speed is needed.
-use digitalWrite(inputpin1,HIGH/LOW),
(inputpin2,LOW/HIGH) to change direction.

-use delay() function to pause.


https://www.tinkercad.com/things/0obxkcKprRC-brave-luulia/editel?
sharecode=cEkvmqGerBBj_CnrJu-o2cwTTDEnVPkQIJPkyqFpGNQ
https://www.tinkercad.com/things/bK4ZazscP0a-copy-of-brave-luulia/editel?
sharecode=R8mKWRq4jV-anQcr6vl5BV0DqH-OevzAxssiRsT8MVw

You might also like