Arduino DC Motor Control With L293D Motor Driver

by siroga0303 in Circuits > Arduino

951 Views, 2 Favorites, 0 Comments

Arduino DC Motor Control With L293D Motor Driver

Screenshot_27.png

I implemented one of the management methods the electric motor of a direct current which is carried out by means of a payment Arduino and L293D driver. Despite the great variety of options control of operation of electric machines of a direct current, much more this scheme is popular. As with its help it is possible carry out a fairly wide range of different operations, compared to schemes using other drivers and microcontrollers

Supplies

Screenshot_26.png
  • Arduino Uno
  • 2 DC motors
  • 2 potentiometer
  • 2 LED Lights
  • L293D driver
  • phototransistor
  • mini-breadboard
  • 3 resistors 220 Ohm
  • 2 resistors 10k Ohm
  • 28 jumper cables
  • slide switch

Preparation of Circuit Parts

Screenshot_24.png

For correct work you will need to repeat the scheme as in the photo

You can change the pin configuration, but for that you will need to change the controller code. but first, understand the role of each pin

We will control the speed of the motors using PWM. Such a process characterized by a change in the duration of the applied voltage or its shape signal. Pulse-width modulation (PWM) PWM), or pulse-duration modulation, PDM) - the process of controlling the width (duration) of high-frequency pulses by a law that specifies a low-frequency signal. In electronics it can be control of the average value of the output voltage by changing the duration closed state of the electronic (electromechanical) key, for example, in the circuit key voltage stabilizer.

How to Use

Screenshot_28.png

Potentiometer can change the speed of the motors. With the help of a slider switch you can change the voltage of the motors: reverse or forward. When reversing, two LEDs flash. The phototransistor activates the whole system. When he catches the light he turns on the motors, otherwise the motors do not turn on.

Tinkercad link: https://www.tinkercad.com/things/hkzqXiqb3Ec