User Manual

38
Lesson 7 How to Drive a DC Motor
Introduction
In this lesson, we will learn to how to use L293D to drive a DC motor and make it rotate
clockwise and counterclockwise.
Components
- 1 * Raspberry Pi
- 1 * Breadboard
- 1 * L293D
- 1 * DC motor
- 1 * Power Module
- Jumper wires
Principle
L293D
This is a very practical chip that can independently control two DC motors. In this
experiment, just about half of the chip is used most pins on the right side of the chip are
used to control a second motor, which is not needed since we apply only one motor here.
L293D has two pins (Vcc1 and Vcc2) for power supply. Vcc2 is used to supply power for the
motor, while Vcc1 to supply for the chip. Since a small-sized DC motor is used here,
connect both pins to +5V. If you use a higher power motor, you need to connect Vcc2 to
an external power supply. At the same time, the GND of L293D should be connected to
that of the SunFounder Uno board.
DC Motors are devices that turn DC electrical energy into mechanical energy. They are
widely used in electrical drive for their superior speed regulation performance.