(edit sidebar)
Intro to Physical Computing Syllabus

Research & Learning

Other Class pages

Shop Admin

ITP Help Pages
Tom's pcomp site
DanO's pcomp site


L 293

The L293 H-bridge will control up to 2 30v 1 amp dc motors, or one bipolar stepper motor.

Here are the parts you will need:

The L293 H-Bridge is capable of driving up to two 1 amp, 36 volt DC motors. The motor is controlled through a combination of one high and one low signal to the appropriate input pins that determines the direction of the motor.

To control one motor

  • Connect one wire from your microcontroller to pin 1A
  • Connect another wire from your microcontroller to pin 2A
  • Connect one wire of your DC motor to pin 1Y
  • Connect the other wire of your DC motor to pin 2Y
  • Connect the motor power supply to pin LOAD 1
  • Connect the GND pin to ground
  • Connect +5 to a +5 power source

Your code will send a HIGH to pin 1A while sending a LOW to pin 2A. This will cause the motor to turn in one direction. To reverse the direction, send a LOW to pin 1A and a HIGH to pin 2A.

Adding the second motor

  • Follow the directions above and add these connections:
  • Connect one wire from your microcontroller to pin 3A
  • Connect another wire from your microcontroller to pin 4A
  • Connect one wire of your DC motor to pin 3Y
  • Connect the other wire of your DC motor to pin 4Y
  • Connect the motor power supply to pin LOAD 2

Pin Description:

  • 1A - Control pin for motor 1
  • 2A - Control pin for motor 1
  • 3A - Control pin for motor 2
  • 4A - Control pin for motor 2
  • 1Y - Output pin for motor 1
  • 2Y - Output pin for motor 1
  • 3Y - Output pin for motor 2
  • 4Y - Output pin for motor 2

LOAD1 - Power supply for motor 1 (MAX 36v at 1 amp) LOAD2 - Power supply for motor 2 (MAX 36v at 1 amp) GND - Connect to Ground +5 - Connect to +5 volts

  Edit | View | History | Print | Recent Changes | Search Page last modified on February 16, 2007, at 01:24 AM