This project shows how to control a DC motor's direction (running forwards and backwards) using an H-bridge. An H-bridge is an electronic circuit which enables a voltage to be applied across a load in either direction.

Use a DC Motor, an H-Bridge, a 1K pull-down resistor and a button. The following is a description of the different H-Bridge pins:

  • Pin 1 (1,2EN) enables and disables our motor whether it is give HIGH or LOW
  • Pin 2 (1A) is a logic pin for our motor (input is either HIGH or LOW)
  • Pin 3 (1Y) is for one of the motor terminals
  • Pin 4-5 are for ground
  • Pin 6 (2Y) is for the other motor terminal
  • Pin 7 (2A) is a logic pin for our motor (input is either HIGH or LOW)
  • Pin 8 (VCC2) is the power supply for our motor, this should be given the rated voltage of your motor
  • Pin 9-11 are unconnected as you are only using one motor in this lab
  • Pin 12-13 are for ground
  • Pin 14-15 are unconnected
  • Pin 16 (VCC1) is connected to 5V
Login to post a comment...

Kugelsalat 2 weeks, 2 days ago

Hey! I want to run a DC Motor with a H-Bridge, just like here. If I push the Button the Motor should run for 2,5 seconds just in one direction. And else the Motor should stand still... I have trouble in programming it... Could somebody help me with the cabling and the script?