
You can download the Arduino sketch from here./* * Created by ArduinoGetStarted. If you are driving a motor with significant inertia, you may find that you need to switch off the motor and allow it to stopīefore reversing its direction, otherwise itĬan act as a generator and possibly damage the IC. You can find the specification for the L293D IC on theįor a more precise diagram on exactly how to connect the L293D, please have a look The Arduino, breadboard, IC and motor are shown here. I have tried to avoid the temptation to use forwards and reverse because these words are too prescriptive and the direction of the motorĬlearly depends on how you have connected it up and how you define true forwards and reverse for your application. 10 means supply current to the motor in the opposite direction.
01 means supply current to the motor in one direction. 00 and 11 both mean stop - no output voltage. With the two output signals from the Arduino there are four possible values: Open-source tools like Fritzing exist to document electronic prototypes. These in turn connect to the inputs of the L293D, which controls the motor. A prototype is an early sample, model, or release of a product built to test a concept or. The Arduino sketch controls the motor by setting the voltage on two of its output pins. In this project we use one half of the IC to drive a single DC motor. with Arduino - Microcontrollers Lab WebFinally got stepper motors working with. This project will show you how to control the rotational direction of a small motor without using any mechanical relays.ĭual H-bridge IC has two separate control circuits and can control two conventional DC motors or one stepper motor. Web1 Arduino IDE Project description Code Line Maze Solving - Curved and. You will need: Arduino UNO (or similar), a suitable DC motor, Texas Instruments L293D H-bridge IC, breadboard and male-male Objective: drive a small motor in forward and reverse directions without relays PROJECT - CONTROLLING A MOTOR - FORWARD AND REVERSE SWITCHING