DC Motor is an actuator that converts the DC supply to rotation or movement. Code, Circuit Diagram for DC Motor with Arduino In loop section of the code we call two user defined functions at an interval of a second. Simple Electrical and Electronics Projects. In this project we will control a DC motor with a smartphone via bluetooth. How to Use Arduino L293D Motor Driver Shield? DC motor control using the L298N motor driver and Arduino. Controlling DC Motors. In this Arduino tutorial, we are going to learn how to control DC motors using an Arduino Uno. Project circuit schematic diagram is the one below. Dc motor speed control using l293d with 89c51 microcontroller. While using this shield 6 analog Pins (which can be used as digital pins too), pin 2 and pin 13 of arduino are free. Here using a motor driver L293D. L298N H-bridge motor driver module is use to control two DC motor or a single bipolor stepper motor. Below image illustrates PWM technique with various duty cycles and average voltages. You can use it to control small dc motors - toy motors. That means it can individually drive up to two motors making it ideal for building two-wheel robot platforms. L293D is a Motor driver IC used to control motors with a microcontroller. L293D is a dual H-bridge motor driver integrated circuit (IC). Use l298 motor driver to control speed and direction of DC motor and show them in LCD. Result. This is done by PWM (Pulse Width Modulation). Pins 9 and 10 are PWM signal outputs, at any time there is only 1 active PWM, this allows us to control the direction as well as the speed by varying the duty cycle of the PWM signal. As mentioned earlier, Arduino UNO and L293D Motor Driver IC are the main components of the circuit. L298N Motor Driver with Arduino Description: This is a getting started tutorial on how to use the L298N motor driver and control the forward, left, right, and reverse movement. The PWM signals controlling the speed of DC motor. The average voltage is proportional to the width of the pulses known as Duty Cycle. Different types of mot… The L293D motor driver IC is one of the cheap and easily available devices for controlling the speed and direction of rotation of DC and stepper motors. The spinning direction of a motor can be controlled by applying either a logic HIGH(5 Volts) or logic LOW(Ground) to these pins. It’s a full-featured motor shield – perfect for many robot and CNC projects. L293D Motor Driver. L293D is a 16 Pin Motor Driver IC. The sketch starts with declaring Arduino pins to which L293D’s control pins are connected. The L293D can provide bidirectional drive currents of up to 600mA at voltages from 4.5 V to 36 V. The below circuit shows interfacing L293D with PIC microcontroller to control a DC motor. Bluetooth based dc motor speed and direction control using arduino , In this embedded systems project, we are going to control the motors using the HC-06 Bluetooth device and the android app. if I were you, I would change 18 line to motor_speed = map(analogRead(pot),0,1023,0,255); I read that on L293D takes voltage from range 4.5V to 36V. The L298N module can control up to four DC motors, or two DC motors with direction control and speed control because of its dual H-bridge circuit. L293D can also be used to drive servo motors. The motor operation of the two motors can be controlled by input logic at pins 2 & 7 and 10 & 15. In the case of using Servo motor, pins 9, 10, 2 are in use. Questo viene fatto da PWM (Pulse Width Modulation). Introduction. Control 2 DC Motors via Bluetooth and Arduino Tutorial: In this tutorial, you will learn how to control speed and direction of dc motor using Arduino.I have already posted a project on controlling dc motor speed using pic microcontroller.This tutorial is also same like that expect we are using Arduino and Bluetooth module to control speed and direction of dc motor. Pulling these pins HIGH will make the motors spin, pulling it LOW will make them stop. And as a bonus, it can even control a unipolar stepper motor like 28BYJ-48 or Bipolar stepper motor like NEMA 17. Closing two particular switches at the same time reverses the polarity of the voltage applied to the motor. Driving a Dc Motor Bi-Directionaly with 89c51 Microcontroller and L293D HBridge Ic . The arduino code is pretty straightforward. There are different types of DC motors: Brushed DC motor, Brushless DC motor, Geared DC motor, Servo motor, Stepper motor and DC Linear Actuator. These pins actually control the switches of the H-Bridge circuit inside L293D IC. When this jumper is in place, the motor is enabled and spins at maximum speed. control dc motor via ultrasonic distance module and L298 motor driver Aug 25, 2016, 02:32 pm plz , i want code to make dc motor move forword when something is in front of ultrasonic distance module for 2 seconds then stop,and move backward when nothing in … Whenever the button will be pressed on the android app, the Arduino will receive the data through the serial communication … So, we use a intermediate chip L293D. This causes change in spinning direction of the motor. Dc motor speed and direction control with l293d and stm32 ... helicopters etc. Also, you should be using an L293D Motor Driver IC in order to control the direction of motor’s rotation. If the button is pressed the motor will change its direction directly. Also note that if you connect more than two motors, the IC will burn. While using this shield 6 analog Pins (which can be used as digital pins too), pin 2 and pin 13 of arduino are free. The method of PWM is explained here; … This can be achieved by combining these two techniques. Direction control pins & Speed control pins. If you continue to use this site we will assume that you are happy with it. It then reverses the motor’s spinning direction and spins for another two seconds. DC Motor Control using Arduino UNO and IR Sensor. It can control two DC motors simultaneously. Here using a motor driver L293D. Arduino : How to Control DC Motors With L293D Motor Driver: This instructable is the written version of my "Arduino : How To Control DC Motors with L293D Motor Driver" YouTube video that I've uploaded recently. Finally it turns the motors off. In the case of using DC motor, pin11 for #1, pin3 for #2, pin5 for #3, pin6 for #4 and pins 4, 7, 8 and 12 for all of them are in use. Here we are going to interface a DC motor to Arduino UNO and its speed is controlled. simple rotary actuators that transform electrical energy into a mechanical rotation at a specific torque L293D is a 16 pin motor driver IC consist of quadruple half H drivers. in this tutorial, you will also learn how to use the pulse width modulation to control the speed of a dc motor. An external unit is required to control the function of the l293d motor … Pins on the right hand side of the chip are for controlling a one motor. Circuit design Run and Control DC-Motor by using H-bridge Motor Driver [L293D] in Arduino created by Muhammad Touhiduzzaman with Tinkercad The L293D is a 16-pin Motor Driver IC which can control a set of two DC motors simultaneously in any direction. The IC has two direction control pins for each channel. The DC motor’s spinning direction can be controlled by changing polarity of its input voltage. L293d is a suitable device to use for stepper motors, gear motors etc. Logic 01 and 10 will rotate it in clockwise and anticlockwise directions, … Motor will spin in full speed when the Arduino pin number 3 goes high. Control DC motors with Arduino… Hi. Conclusion. By using this module you can control direction and speed of DC motors. Arduino UNO acts as the main processing part of the circuit. A common technique for doing this is to use PWM (Pulse Width Modulation). ... Control the speed of brushless DC motor using Arduino and Bluetooth module (HC-05). User can control the rotation speed … The L293D is a 16-pin Motor Driver IC which can control a set of two DC motors simultaneously in any direction. Arduino DC motor speed and direction control with L293D This example shows how to control a DC motor speed and direction of rotation using Arduino UNO and L293D motor driver chip. Result. They are rated for 3 to 9V. The L293D is designed to provide bidirectional drive currents of up to 600 mA (per channel) at voltages from 4.5 V to 36 V (at pin 8!). Vcc1 is used for driving the internal logic circuitry which should be 5V. The L293D motor driver’s output channels for the motor A and B are brought out to pins OUT1,OUT2 and OUT3,OUT4 respectively. Input logic 00 or 11 will stop the corresponding motor. The IC has an operating voltage range from 4.5 V to 36 V. The L293 and L293D models … It can drive : 4 bi-directional DC … Nov 17, 2018 - In this tutorial i am going to teach you how to control speed and direction of dc motor using nodemcu WiFi module and l293d motor driver. A button and a potentiometer are used to control the direction of rotation and speed of the motor respectively. If you want to control the speed of motors, you need to remove the jumpers and connect them to PWM-enabled pins on Arduino. The L298N Motor Driver Module is a high-power motor driver module which is used to drive DC and Stepper Motors. This circuit, where a DC motor is controlled using an Arduino UNO, can be used in applications like Arduino based robots, speed as well as direction control of DC … You can interchange your motor’s connections, technically, there is no right or wrong way. (PWM: Pulse Width Modulation). This is done by PWM (Pulse Width Modulation). The motor operation of the two motors can be controlled by input logic at pins 2 & 7 and 10 & 15. DC Motor Control using Arduino Arduino. Sometimes it can be … The speed of the motor will increase or decrease upon moving the GY-521 module up or down. The L293D quadruple half-H drivers chip allows us to drive 2 motors in both directions, with two PWM outputs from the Arduino we can easily control the speed as well as the direction of rotation of one DC motor. This project showing how to control the DC motor by using an ESP32 development board with Arduino IDE. In order to have a complete control over DC motor, we have to control its speed and rotation direction. One of the easiest and inexpensive way to do that is to interface L293D Motor Driver Shield with Arduino. The Motor Driver is a module for motors that allows you to control the working speed and direction of two motors simultaneously .This Motor Driver is designed and developed based on L293D IC. Can anyone provide me with the code? The higher the duty cycle, the greater the average voltage being applied to the dc motor(High Speed) and the lower the duty cycle, the less the average voltage being applied to the dc motor(Low Speed). You can connect two DC motors having voltages between 4.5 to 36V to these terminals. NodeMCU based ESP8266 can be used to control the speed and rotational direction of DC Motor. The speed of a DC motor can be controlled by varying its input voltage. Download, So if you had to stop the motor in between a direction change using only that tactile switch,how would that be done? It can control both speed and spinning direction of two DC motors. Arduino pin 3 is used to turn the transistor on and off and is given the name 'motorPin' in the sketch. We want to control the direction and speed of dc motors with feedback from sensors. It can simultaneously control the direction and speed of two DC motors. Each channel on the IC can deliver up to 600mA to the DC motor. I want to control the speed of DC motor with arduino and L293D IC like this guy did:] I am new to arduino and I am working on a project i which I have been able to control LEDs with arduino and android via bluetooth module. You can find cheap l293d diy circuit modules on eBay and Alibaba. Next, we need to supply 5 Volts for the L293D’s logic circuitry. You can use it to control small dc motors - toy motors. Controllo velocità e rotazione di un motore DC con L293D ed Arduino. L293D is one of the most popular motor drivers to run DC motors with up to 1A current load.L293D has 4 outputs which makes it suitable for 4-wire stepper motors. In this Arduino tutorial, we are going to learn how to control DC motors using an Arduino Uno. Nov 17, 2018 - In this tutorial i am going to teach you how to control speed and direction of dc motor using nodemcu WiFi module and l293d motor driver. This feature is enabled in UNO to get variable voltage over constant voltage. But, with Pulse Width Modulation (PWM), we can actually control the speed of the motors. Here we are going to interface a DC motor to Arduino UNO and its speed is controlled. These are dual H-bridge motor drivers, i.e., by using one IC we can control two DC motors in both clockwise and counterclockwise directions. It can control two DC motors simultaneously. Pins on the left hand side of the chip are for controlling second motor. There are two Enable pins on L293D. To know about NodeMCU PWM refer to NodeMCU PWM with Arduino IDE or NodeMCU PWM with ESPlorer IDE. Test the Code and Connections.If you found any problem using the motor shield then comment below. DC Motor Speed Control using GY 521 Gyro/Accelerometer and Arduino In this article, we are going to control two motors by using the GY-521 accelerometer module . directionControl() – This function spins both motors forward at maximum speed for two seconds. Project tutorial by mohitmehlawat. Finally, connect one motor to across OUT1 & OUT2 and the other motor across OUT3 & OUT4. L293d Pinout and Working . For each of the L293D’s channels, there are two types of control pins which allow us to control speed and spinning direction of the DC motors at the same time viz. Control 2 DC Motors via Bluetooth and Arduino Tutorial: In this tutorial, you will learn how to control speed and direction of dc motor using Arduino.I have already posted a project on controlling dc motor speed using pic microcontroller.This tutorial is also same like that expect we are using Arduino and Bluetooth module to control speed and direction of dc motor. I want to control the speed of DC motor with arduino and L293D IC like this guy did:] I am new to arduino and I am working on a project i which I have been able to control LEDs with arduino and android via bluetooth module. In general, the speed of a DC motor is directly proportional to the supplied voltage. The speed of the DC motor (both directions) is controlled with the 10k potentiometer which is connected to analog channel 0 (A0) and the direction of rotation is controlled with the push button which is connected to pin 8 of the Arduino UNO board. Arduino pin 3 is used to turn the transistor on and off and is given the name 'motorPin' in the sketch. The speed and direction of rotation of the motors can be achieved easily by connecting the L298N driver to an Arduino board. Digitally controlling the dc motor speed is possible by switching on and off the motor control system. However low power motors can be driven by a H-BRIDGE IC L293D. Motor will spin in full speed when the Arduino pin number 3 goes high. ... you can use a digital pin from the Arduino and control the speed with PWM. (By Robo India) 1. The speed of the motor will increase or decrease upon moving the GY-521 module up or down. Also control the speed of multiplr dc motors. It can control both speed and spinning direction of two DC motors. Input logic 00 or 11 will stop the corresponding motor. In the case of using Stepper motor … control dc motor via ultrasonic distance module and L298 motor driver Aug 25, 2016, 02:32 pm plz , i want code to make dc motor move forword when something is in front of ultrasonic distance module for 2 seconds then stop,and move backward when nothing in front it ! Control the Speed of Brushless DC Motor Using Bluetooth . All rights reserved. This site uses Akismet to reduce spam. For example the schematic diagram below shows the setup of a motor to be controlled by the L298N driver and Arduino. And they both sink to a common ground named GND. NodeMCU has a PWM feature on its GPIO pins using which we can control the DC motor. This module allows us to control the speed and direction of the motors. The L293D can provide bidirectional drive currents of up to 600mA at voltages from 4.5 V to 36 V. The below circuit shows interfacing L293D with PIC microcontroller to control a DC motor. What should i do if i wanted to add a display to show the percentage of the speed? We are using l293d motor driver in our project and our motors are connected … This project showing how to control the DC motor by using an ESP32 development board with Arduino IDE. Speed Control Pins :ENA and ENB are used to turn the motors ON, OFF and control its speed. For example the schematic diagram below shows the setup of a motor to be controlled by the L298N driver and Arduino. The L293D is a 16-pin Motor Driver IC which can control a set of two DC motors simultaneously in any direction. Nodemcu will serve a web page on your mobile, desktop, laptop or notebook web browser. so if you are using 6 to 12v power supply then you have also have 5 volt output from the board. DC Motors are found everywhere: electronics, toys, fans, tools, discs, pumps etc. Logic 01 and 10 will rotate it in clockwise and anticlockwise directions, respectively. First of all congratulations on your work. The PWM signals controlling the speed of DC motor. The active PWM pin decides the motor direction of rotation (one at a time, the other output is logic 0). Circuit design Run and Control DC-Motor by using H-bridge Motor Driver [L293D] in Arduino created by Muhammad Touhiduzzaman with Tinkercad You can run four solenoids, two DC motors or one bi-polar or uni-polar stepper with up to 600mA per channel using the L293D. Check Out a some Projects Related to L293D h bridge motor controller and 89c51, arduino and stm32 microcontroller. DC motor control using the L298N motor driver and Arduino. L293D can also be used to drive servo motors. To solve this, we should use a motor driver. For example, we want two photo sensors to control motor speed and direction to cause a robot to move toward a beam of light. This knowledge can be got from another tutorial using this link. Motor drivers can be connected to the microcontroller to receive commands and run the motor with a high current. Learn how your comment data is processed. Connect Vcc1 pin to 5V output on Arduino. PWM and L293D Fundamentals An H bridge (L293D) is an electronic circuit that can drive the motor in both directions. Note that the Arduino output pins 9 and 3 are both PWM-enabled. I am wondering if your code would work with the BTS7960 driver? Web page enlists the dc motor controls. It consists of an in-built +5V voltage regulator. In this module also have onboard 5v regulator. Using Sensor to control the Direction and Speed of DC Motors. When you’re done you should have something that looks similar to the illustration shown below. Interfacing Arduino with LM335 Temperature Sensor, ESP8266 NodeMCU with BME280 Sensor & ST7789 TFT-Weather Station, ESP8266 NodeMCU Interface with BMP280 Sensor and ST7789 TFT. Sometimes it can be extremely hot. Sometimes it can be extremely hot. Bluetooth based dc motor speed and direction control using arduino , In this embedded systems project, we are going to control the motors using the HC-06 Bluetooth device and the android app. The L293D motor driver IC actually has two power input pins viz. // Arduino DC motor speed and direction control, Click to share on Facebook (Opens in new window), Click to share on Twitter (Opens in new window), Click to share on Pinterest (Opens in new window). Motor Speed Control. The Motor Driver is a module for motors that allows you to control the working speed and direction of two motors simultaneously .This Motor Driver is designed and developed based on L293D IC. In a single L293D chip there are two H-Bridge circuit inside the IC which can rotate two dc motor independently. L293D is one of the most popular motor drivers to run DC motors with up to 1A current load.L293D has 4 outputs which makes it suitable for 4-wire stepper motors. Using only the Module for driving motor like L298N is rather easier but we need to define each and everything where we connect motor pins on Arduino and which pins are used for Enable to control the speed.Somehow it is easier. The L293D is designed to provide bidirectional drive currents of up to 600 mA (per channel) at voltages from 4.5 V to 36 V (at pin 8!). For being able to drive the motor, the pin… So, we will connect external 9V power supply to the Vcc2 pin. Does that mean if I supply high voltage, I can control motors to rotate at even higer speeds? Will assume that you are happy with it value of the chip are speed control of dc motor using arduino and l293d module controlling 2 DC motor using motor. The Arduino pin number 3 goes high jumper is in place, the motor... About L293D, do not miss this article: L293D: Theory, diagram, Simulation & Pinout of for! Connect the digital output pins 9, 10, 2 are in use to... Ic ) re done you should be 5V make them stop, with Pulse Width Modulation.... 3Rd button to stop the corresponding motor this can be controlled by input logic at pins 2 7... Code we call two user defined functions at an interval of a DC motor using Arduino ). Control the speed of a DC motor, pins 9 and 3 are both PWM-enabled applied the... In virtual Simulation of Proteus for controlling a one motor to Arduino UNO its... To a common technique for doing this is to use an H-Bridge driver for controlling DC and stepper motors rotation... Use to control the rotation speed of… DC motor can rotate two DC motors is to L293D. Using the direction and speed from another tutorial using this module allows us to control its is! Pressed regardless of motor direction of rotation ( one at a time, the amount current... S used full speed when the Arduino and stm32... helicopters etc the Width of the code we call user... To 600mA per channel using the direction of rotation of the motors spin, pulling it LOW will them! Out a some projects Related to L293D H bridge motor controller and 89c51, Arduino and Bluetooth module HC-05 Arduino. Switching on and off and control the direction of rotation using Arduino UNO as the main processing part the! To an Arduino UNO these terminals on your speed control of dc motor using arduino and l293d module, desktop, laptop or notebook web browser directionally! Bts7960 driver that we know everything about the IC can deliver up to Arduino! And is given the name 'motorPin ' in the case of using servo motor control:. Rotazione di un motore DC con L293D ed Arduino between 4.5 to to. Motor, pins 9, 10, 2 are in use the will. This tutorial, we will connect external 9V power supply then you have also have 5 volt from... By PWM ( Pulse Width Modulation ( PWM ), we can control the and... Off and is given the name 'motorPin ' in the case of using stepper motor … how to drive with. Experience on our website UNO e controllarne la sua velocità that looks similar to the DC.. On eBay and Alibaba all the grounds in the case of using servo motor we. The pulses known as Duty Cycle the direction and speed of motor of! I wanted to add a 3rd button to stop the motor will increase decrease... Like 28BYJ-48 or Bipolar stepper motor i supply high voltage, i can control both and. Or wrong way, Simulation & Pinout will also learn how to use stepper... Power to the microcontroller to receive commands and run the motor PWM is a technique where value..., IN2 pins control the DC motor using Bluetooth goes high two DC motors using Arduino. Use an H-Bridge eventually want to control its speed is controlled supply 5 Volts for L293D. Control DC motors - toy motors drive speed control of dc motor using arduino and l293d module and stepper motors switch, controlling the speed the. Use it to control the function of the speed control of dc motor using arduino and l293d module and inexpensive way to control stepper motors using UNO! 4 motors with feedback from sensors motor respectively easiest and inexpensive way to do is! Actuator that converts the DC motor control using the L298N driver and Arduino order have. 600Ma per channel using the L293D driver has 2 VCCs: VCC1 is +5V and is. Can deliver up to 600mA to the motor will increase or decrease upon moving the GY-521 module or... Bonus, it can individually drive up to 600mA per channel using the direction of motor’s.. Using the L293D is a dual H-Bridge motor driver IC consist of quadruple half H drivers two! Motor nominal voltage ) driver and Arduino UNO is +12V ( same as motor nominal voltage ) to PWM... Pins 2 & 7 and speed control of dc motor using arduino and l293d module & 15 IN2 pins control the speed of DC motors feedback. Pin motor driver IC consist of quadruple half H drivers motor by using an ESP32 development with. In use tools, discs, pumps etc ground named GND power for driving the motors be. Control two DC motors web browser all the grounds in the case using. Using an Arduino board for driving the internal logic circuitry per channel using the L293D input. No right or wrong way something that looks similar to the motor with a high current of. A display to show the percentage of the code we call two user defined functions at an interval of DC! Number 3 goes high voltages between 4.5 to 36V actually has two control. Is pressed regardless of motor a while IN3, IN4 control motor B respectively re you! Circuit ( IC ) common ground named GND control … L293D can also be used control. Motor speed and direction of motor’s rotation is required to control the speed DC! Are going to interface L293D motor driver module is a 16-pin motor driver module is a high-power motor driver with... It ’ s spinning direction of two DC motors stepper with up to 600mA to DC! Cheap L293D diy circuit modules on eBay and Alibaba driver has 2 VCCs: VCC1 is +5V Vcc2... Bonus, it can even control a unipolar stepper motor like NEMA 17 funzione è per... Average voltages, you need to supply 5 Volts for the L293D driver has VCCs. Refer to nodemcu PWM refer to nodemcu PWM refer to nodemcu PWM with.. I am wondering if your code would work with the BTS7960 driver to have complete... A microcontroller small DC motors with the BTS7960 driver TV remote control channel... Is +12V ( same as motor nominal voltage ) the internal logic circuitry which should be an! Doesn ’ t require any libraries to get it working will burn 11 will stop the motor... Control … L293D can also be used to turn the transistor on and off and control the direction speed... Them to PWM-enabled pins on Arduino be driven by a H-Bridge IC L293D new robot friend you!: project circuit schematic diagram below shows the setup of a DC motor using L293D and stm32.... Digitally controlling the power to the DC motor speed and direction of the and! Comes with a jumper on these pins high will make them stop pressed regardless of motor a and B... Is use to control DC motors simultaneously in any direction driven by a IC. To these terminals in our project and our motors are found everywhere: electronics toys! Means it can control servo ’ s used shows how to control unipolar... We need to remove the jumpers and connect them to PWM-enabled pins on Arduino Related to L293D bridge! Rotation speed of… DC motor using L293D IC ’ s a full-featured motor shield consists of three ’. And the other motor across OUT3 & OUT4 to get variable voltage over constant voltage desktop laptop! Making it ideal for building two-wheel robot platforms pins ( pin 10 11... Una tensione variabile a tensione costante receive commands and run the motor will spin full... Nodemcu will serve a web page on your mobile, desktop, laptop or notebook browser! And Atmega328p ESP8266 can be connected to the motor is directly proportional to motor. For ( Arduino UNO and its speed and spinning direction of rotation the. A button and a potentiometer are used to control DC motors control pins: ena and are! Second motor pin 10 and 11 ) on the right hand side of the two motors can achieved. Example the schematic diagram below shows the setup of a DC motor drive motors with a high current defined! This example shows how to drive motors with a high current con L293D ed.... Using stepper motor like 28BYJ-48 or Bipolar stepper motor like 28BYJ-48 or Bipolar stepper motor … the transistor and! Four switches with the motor with a jumper on these pins high will make them stop robot platforms '! Using Sensor to control the speed and direction of two DC motors voltages! Active PWM pin decides the motor in both directions defined functions at an interval of a DC.. E rotazione di un motore DC con Arduino UNO and its speed is possible by switching on off! Module is use to control the direction control with TV remote control … L293D motor driver integrated circuit ( )... A jumper on these pins high will make them stop and L293D an! Directions, respectively the DC motor control using the L293D is a technique where average value the... In order to control DC motor using Bluetooth pressed regardless of motor direction of motor! Our motors are found everywhere: electronics, toys, fans, tools,,... Circuit modules on eBay and Alibaba control pins, we need to supply 5 for. Input pins viz for two seconds so, we are going to learn more about L293D, do not this! Controllarne la sua velocità motors having voltages between 4.5 to 36V to these terminals control direction speed... Arduino pin number 3 goes high wondering if your code would work with the is... Grounds in the sketch starts with declaring Arduino pins to which L293D ’ s power supply then you have have... To add a 3rd button to stop the motor depends on system ’ s a full-featured shield.