H-Bridge for Your Robot

H-Bridge for Your Robot © Apache-2.0

What you need to control the motors of your robot? H-Bridge is the magic word!

  • 6,838 views
  • 1 comment
  • 7 respects

Components and supplies

About this project

Intro

Turning a DC motor on and off isn't that much of a problem, is it? But if you want to change direction, you must have a way to switch the polarity that drives your motor. Well, that is what a H-bridge does.

How to control

For each motor, you should have 2 pins to control the output. If you pull one pin HIGH and the other one LOW the motor should spin. If you invert this configuration, the motor will spin in the other direction. Pulling both pins to LOW or both to HIGH will stop the motor.
Now you have the ability to turn the motor on in both directions. If you also want to control the speed of the motors, you should connect it to PWM ports.

Wiring

Video 

Pro-Tip

If your motor doesn't spin, you probably have a too low input voltage. These boards are equipped with voltage regulators. So you can try using a higher voltage. I used a 9V battery for the 5V motors myself. Worked perfectly.

For controlling your robot it makes sense to extract the commands for the wheel to spin in separate methods. Make a method for spinning the left wheel in clockwise direction. And one for counterclockwise direction. It's so easier to program some logic to your vehicle.

Buy at Amazon

H-Bridge L298N 5V DC Motor with gearbox Robot chassis with motors
H-Bridge L9110

Schematics

H-Bridge
H bridge bb rjonrjhqni

Comments

Similar projects you might like

MeArm Robot Arm - Your Robot - V1.0

Project tutorial by Benjamin Gray

  • 19,302 views
  • 3 comments
  • 34 respects

Smartphone Controlled Arduino 4WD Robot Car

Project in progress by Andriy Baranov

  • 53,242 views
  • 43 comments
  • 98 respects

Hand Gesture Controlled Robot

Project tutorial by Mayoogh Girish

  • 54,944 views
  • 78 comments
  • 65 respects

Android Apps Controlled Arduino Robot Car

by Team platinum

  • 3,594 views
  • 0 comments
  • 16 respects

Swarm Robot Using NRF Chat Application

Project tutorial by 3 developers

  • 2,898 views
  • 2 comments
  • 16 respects
Add projectSign up / Login