L293D Motor control Module Tutorial - Run motors off the Arduino

Поділитися
Вставка
  • Опубліковано 4 чер 2018
  • I recommend this Arduino and sensors kit to get started with Arduino:
    usa.banggood.com/custlink/GKD...
    This is a reliable L293D board:
    usa.banggood.com/custlink/DGm...
    Recommended soldering iron: TS100:
    usa.banggood.com/custlink/vv3...
    This tutorial covers the L293D Module. The L293D is a motor control module or an l293 motor driver. It comes in various forms, this one is an expansion shield, which means it stacks on top of the arduino. This L293D module can run 4 DC motors at a time, conversely, it can run 2 Stepper and 2 servo motors at a time. The L293D is a very useful module for Arduino projects like robotics, rovers, cars, line follower robots, etc.
    This video covers L293D connection to arduino, coding the L293D for running motors and servos, and running motors with external power supply with L293D motor shield.
    Hope you liked the tutorial on L293D expansion module for Arduino.
    Subscribe to Fungineers for more projects and tutorials!
  • Наука та технологія

КОМЕНТАРІ • 404

  • @nooknorth268
    @nooknorth268 5 років тому +17

    just magic! I was trying to learn how to combine sketches, your modification of the script gave me a lot of information. thanks.

  • @sumantakumardutta986
    @sumantakumardutta986 3 роки тому +4

    The only video on UA-cam to explain this clearly. I don't know how to thank you sir.🙏

  • @onlyme3543
    @onlyme3543 3 роки тому +2

    Omg I’ve been searching for your vid for forever! Thank you for a true and basic knowledge on how to control and programme!

  • @laserdad
    @laserdad 3 роки тому +1

    Great job of explaining how the code works. Most others just skip over it.

  • @enricogironi8887
    @enricogironi8887 3 роки тому +1

    Great video, thank you, has helped me overcome a few issues I've been experiencing with a motorshield project 👍🏼

  • @quintonvehon2638
    @quintonvehon2638 2 роки тому

    First time working with Arduino shields and downloading libraries, this was a great video!

  • @PiotrasSNK
    @PiotrasSNK 5 років тому +2

    Thank you for this tutorial it was very helpful for start playing with shield.

  • @Ed19601
    @Ed19601 4 роки тому +3

    Thanks. Very useful. Afaik the shield can not only run 2 stepper motors and 2 servos it can run those servos just as well together with 4 dc motors.
    The servos are not controlled y the l293D but by pwm pins of the arduino so are completely separate from the amount of dc motors or stepper motors

  • @GeorgeKWeah
    @GeorgeKWeah 5 років тому +7

    Great job. Can you please make a tutorial for 2 servo's and 2 ultrasonic sensors on the L293D?

  • @i.ncreator9918
    @i.ncreator9918 4 роки тому

    Thanks man you explained everything in this video and answered all the questions that I had you're so cool

  • @helios-jj2wq
    @helios-jj2wq 3 роки тому +1

    Great and useful stuff and its presentation - I think i will be coming back to it many times in the future

  • @ethanblanca5573
    @ethanblanca5573 4 роки тому +2

    May I please ask if it has the same functions with the module version of the L293D?

  • @mateuszfrydryszak3856
    @mateuszfrydryszak3856 4 роки тому +1

    Thanks for this video man! You cured my headache!

  • @niceman567
    @niceman567 3 роки тому

    thanks for the video. does this motor shield give the ability to control both motor to run in sync? I have problem getting my 2 dc motors to run in sync, my robot does not go straight. I am wondering if this thing is what I need to save me the task to look into PID control.

  • @heinzvarghese4893
    @heinzvarghese4893 2 роки тому

    A great explanation my friend. I just like to ask whether I need to remove the jumper clip from the motor shield while the motor shield and Arduino is run by only an external power source?

  • @madhugn
    @madhugn 5 років тому +3

    Perfect explanation. Thank you

  • @saviopullkotil2270
    @saviopullkotil2270 2 роки тому

    Hey, I had a doubt in our project we are using 6 motors so can you suggest whhich drivers should we use to connect all of them as L293D and L298N permits 4 and 2 motors to use

  • @circuitguru4554
    @circuitguru4554 3 роки тому +1

    Another Question also. How can I attach these pins for the Digital and Analog pins without soldering iron?

  • @ElPolloPolloPollo
    @ElPolloPolloPollo 7 місяців тому

    Thank you so much for this video. Very thorough. One thing I’m still confused about is the Rx/Tx connection for this shied. I saw a video where someone connected their Bluetooth module to the servo pins, for power, ground, Tx, and Rx. The app I’m using as a GamePad controller is not recognizing the board, and I’m thinking I should just solder two wires to the Tx and Rx soldering that correspond to pins 1 and 2 on the arduino. I know these are used for serial communication with the arduino and that I would have to just disconnected the Bluetooth module before connecting to my computer.
    Any thoughts about the Servo pins serving as a connection point for the Bluetooth module?

  • @vinodnadoni5047
    @vinodnadoni5047 4 роки тому

    good explaination.but i want to know which pins of arduino send motor driving signals to the driver shield.

  • @tb2.0editz26
    @tb2.0editz26 11 місяців тому +1

    can we give power supply to the motor shield by using 12 v adapter plus minus to the point of motor shield

  • @circuitguru4554
    @circuitguru4554 3 роки тому +1

    Hello! I was looking for this video! It is amazing. Question.... What Voltage did you use for those batteries. It may be 6volts?? Also, could I put 2 3volt battery packs together (2 positive wires into the + screw terminal, and 2 negative wires into the - screw terminal for the power (The 2 + and - wires from both the battery packs)) Thanks! I am asking this because I don’t have a 6 volt battery pack, so I was wondering if I could combine 2 3 volt battery packs.

  • @Carob75
    @Carob75 2 роки тому

    Thankyou for this Video. I have purchased one of these shields to run a large 12v motor. What is the best solution to power the motor? I want to handle approx. 100A at 12V. Can I run the program through an Arduino, to this Shield (powered at 12V) to a relay on each motor out line? Will a relay react fast enough to deal with the PWM of the Arduino?

  • @Sumee21051987
    @Sumee21051987 3 роки тому

    Awesome video. Very informative and to the point. Well Done !!!

  • @biswajyotisengupta1174
    @biswajyotisengupta1174 5 років тому

    Can I use 6 motors using this driver? 12 volt dc bo motor and connecting it to only the m1 & m2 terminals i.e. shorting the wires of left side on m1 and right side on m2 port?

  • @lukman6762
    @lukman6762 2 роки тому

    Very nice video ! Thanks a lot ! May i ask. Can you explain how to connect this stepper motor controller with a switch

  • @Rakeshpattar5
    @Rakeshpattar5 4 роки тому

    Had a doubt about connection of HC-05 to motor driver when staggered the you showed in video

  • @Hasspacher
    @Hasspacher 4 роки тому

    Hello, I would like to make an inquiry.
    Is it possible to connect this L293d shield motor module to the WeMos D1 mini (WiFi) module?
    If so, what should the connections be like?
    Thank you.

  • @napkin62
    @napkin62 3 роки тому

    nice tutorial understand two dc motor and one servo motor function ....in one adafruit board tnx buddy...god bless you ..

  • @LIGHTBULBCODING
    @LIGHTBULBCODING 2 роки тому

    PERFECT! Just what I needed!

  • @danielgeorgejohn3072
    @danielgeorgejohn3072 4 роки тому +1

    This might help me a lot for my presentation ♥️

  • @cyraxabir3961
    @cyraxabir3961 4 роки тому

    In case I'm using external 12v power, should I power Arduino too? or Arduino will automatically get power from the shield?

  • @georgekot6377
    @georgekot6377 5 років тому

    Please correct me if I am wrong but I think the shield can run 4 dc motors OR 2 stepper motors OR 2 servos. I do like the presentation of the video.

  • @azrifitri5049
    @azrifitri5049 3 роки тому

    Can we use 2 external power sources at the same time, one source power for arduino and one source power for motor driver shield?

  • @MrHomyachek
    @MrHomyachek 5 років тому

    How to connect the stepping motor from the scanner so that he plays music like on the youtube channel floppotron?

  • @bogdanslavian2980
    @bogdanslavian2980 4 роки тому

    Can i use 36v battery on it. When I bought it from amazon it was saying that i can use up tu 36v?

  • @himanshubhoria1832
    @himanshubhoria1832 2 роки тому

    How do I use the digital pins to connect sensors/modules? I want to connect an ultrasonic sensor, a bluetooth module, and 4 dc motors.

  • @thaddeusaldrinreyes6981
    @thaddeusaldrinreyes6981 5 років тому

    If I'm going to attach a second servo, what should i put in x in servo2.attach(x)?

  • @ES-ll5uv
    @ES-ll5uv Місяць тому

    How can i randomise the intervals of a servo movement? Like lets say i want robot eyes to open and close at random times. And to keep doing that, until power is shut off.

  • @TOYMALLMANJERI
    @TOYMALLMANJERI 4 роки тому +3

    PERFECTLY DONE .

  • @Bravaliya
    @Bravaliya 4 роки тому

    Good knowledge 👌
    Which is the best wifi module for this type of setup ?
    Can I connect Nodemcu ESP2866 with this setup ?

  • @narayan_das580
    @narayan_das580 3 роки тому

    Did you power the Arduino as well as the board while running

  • @diye.28
    @diye.28 2 роки тому

    So I assume I’ll have to get another arduino because after I hook it up, I won’t be able to use the digital pins from 0 to 13 if I want to connect leds, or other sensors… am I right ?

  • @mouscool11
    @mouscool11 3 роки тому

    With the expansion shield, there is no pinmode function?

  • @madzki80
    @madzki80 4 роки тому

    Can you also control the motors via the arduino pin it is hooked up to? Example:
    analogWrite(9, 255); can this be done?

  • @Ran_Rider
    @Ran_Rider 2 роки тому

    Interesting driver motor, my question is this motor shield comlatible to solar pump 12V, 180W?
    tnx

  • @AdityaSingh-hx1tv
    @AdityaSingh-hx1tv 3 роки тому

    what is the max external voltage that we can use with the shield?

  • @shingrutashish5639
    @shingrutashish5639 2 роки тому

    How to control 4 dc motor with encoders by Arduino. Or which motor shield I go with . ?

  • @smilingladka
    @smilingladka 4 роки тому

    You posted that library part a bit quickly. Got confused what to. Brilliant tutorial tho ♥

  • @atmanandmurthy2324
    @atmanandmurthy2324 4 роки тому

    Hey can we connect 4 dc motors and one servo motor to it at once?

  • @raniachar6566
    @raniachar6566 3 роки тому

    I'm using an arduino mega in my project, can I connect the L293D motor shield with my arduino ?

  • @enriquehehezs4628
    @enriquehehezs4628 Місяць тому

    is there a way to make the motors run in turns? thank you for this video btw

  • @abhijithas9976
    @abhijithas9976 3 роки тому

    Which Arduino pin is used to connect or required the shield

  • @xempai2279
    @xempai2279 4 роки тому

    my motor was turning back and forth when i made a project and my control button is not working from when i downloaded the library from the website u have given

  • @ArmRehabHands
    @ArmRehabHands 3 роки тому

    best video so far on topic

  • @valee_mayzar
    @valee_mayzar Рік тому

    Can i get the l293d expansion module in proteus?

  • @mahdimansour2887
    @mahdimansour2887 9 місяців тому

    sir can I run 380 volts pump with this shield supplying currently from electricity directly as an external power supply???

  • @mirelpera2573
    @mirelpera2573 2 роки тому

    Very nice tutorial. I was wondering if a temperature sensor can be added in the scheme in order to change the rotation direction of the motors depending on the temperature read? Thank you.

    • @ExtantFrodo2
      @ExtantFrodo2 Рік тому

      You can use the 3x6 grid of connections to the +5, Ground and A0-A5 shown at 4:13 - 4:57 in the usual way.

  • @kakashiyt4739
    @kakashiyt4739 4 роки тому +1

    Can I connect 6 dc motors with shield ?

  • @abdullahbinsajeer3371
    @abdullahbinsajeer3371 2 роки тому

    thanks for sharing your valuble knoledge🙏

  • @joematarc5245
    @joematarc5245 3 роки тому

    do you know how to connect 2 steppers instead of dc motors?
    I wish to build the collision avoidance car, but with steppers instead of DC motors. For that you need 3 libraries, NewPing; servo, and AFmotor.
    very new with arduino, and has been a very frustrating ride so far...
    a bunch of information out there, but of little use.

  • @Draginx
    @Draginx 3 роки тому

    the led didnt turn on when i connected the power supply. Does this mean its broken and i have to buy a new one?

  • @ixanagi_
    @ixanagi_ 2 місяці тому

    I am currently using it in motor 4, but I don't know what digital pin to code it into.

  • @rizkyabdullah5347
    @rizkyabdullah5347 4 роки тому +2

    thank you very much, work 100% 👍

  • @gaganlanger6718
    @gaganlanger6718 4 роки тому

    How can I connect ir module as the shield occupies all pins of arduino

  • @CHANDRAKANTH-pk6dg
    @CHANDRAKANTH-pk6dg 3 роки тому

    Can we connect 5v leds to motor driver and also blinks them.

  • @hizonopusdie
    @hizonopusdie 5 років тому +14

    Another great video :)
    Got a request though can you make a tutorial like this, using DC motor and Servo motor with bluetooth

    • @tonibusljeta1325
      @tonibusljeta1325 4 роки тому

      i wuld like to see this turtorial, if you can share it :)

  • @syedashfaquddin2941
    @syedashfaquddin2941 6 місяців тому

    What should be the external power max. Voltage and min. Voltage for motor driver shield
    please reply

  • @jishabenny9183
    @jishabenny9183 2 роки тому +1

    sir , in my moter driver shield l293d, when i connect moters it is not working. i am useing 12 volt battery, plzz reply.

  • @andrewkeener5480
    @andrewkeener5480 4 роки тому

    I want to control two 12v dc motors.Will this board handle 12 v?

  • @YashJain-qh5tn
    @YashJain-qh5tn 2 роки тому

    Great........I really liked the way you explained it

  • @trendingvideostrendingvide9174
    @trendingvideostrendingvide9174 3 роки тому

    May you explain how does internal circuit exactly work

  • @prikundnani2622
    @prikundnani2622 5 років тому

    I appreciate you going in detail about every function

  • @prudhvi4734
    @prudhvi4734 4 роки тому

    Hi sir as same I want to connect 1.servo motor
    2. Two stepper motors
    3.hx711 which is connected with load cell where can I connect hx711 module to driver circuit

  • @santoshkedari8304
    @santoshkedari8304 5 років тому +1

    what is maximum range of voltage in L293d

  • @slkandy4136
    @slkandy4136 2 роки тому

    Can i use that to start a cooling fan

  • @rohanpawar8259
    @rohanpawar8259 2 роки тому

    Can we control 100-150 12v dc motors using such configuration?

  • @pavelkoryakin5750
    @pavelkoryakin5750 4 роки тому

    If I supply 12V to that board, can I run two DC motors rated at 12V and 1 servo rated at 7V ?

  • @kiye
    @kiye 4 роки тому

    Hello, is it possible to connect 3 servos?

  • @pratikjambotkar4626
    @pratikjambotkar4626 2 роки тому +1

    Sir can you help me to add two potentiometer for control two stepper motor speed and one stepper motor to change direction by any trigger like limit switch ... This setup is possible?? On L293D ??

  • @alecz1880
    @alecz1880 8 місяців тому

    i have a question, how do i use it without mounting it on the arduino. is it possible?

  • @paramjitsingh7546
    @paramjitsingh7546 5 років тому

    sir i want to run total of six motor for a project can you please suggest me how can i use motor driving circuit to run total of six motors

  • @nimarasuli2450
    @nimarasuli2450 2 роки тому

    L293d can run 2 motor for move and 1 for Weapons ؟

  • @pablitoolsen3682
    @pablitoolsen3682 3 роки тому

    What kind of batteries do you need to use?

  • @BTSARMY-zi6ph
    @BTSARMY-zi6ph 2 роки тому

    For some reason, the arduino ide won’t accept #include I’ve done everything you did in the video. Do you know what has happened?

  • @user-ir6ug6gk1f
    @user-ir6ug6gk1f 3 роки тому

    how to run 6-8 motors at a time ? which motor driver do we need to use.

  • @joelvale3887
    @joelvale3887 4 роки тому

    I'm using an IR to run my step motor using pin #6 if I install this shield there is no place to connect this wire for the remote control device to this shield.

  • @johnlestercedalla9230
    @johnlestercedalla9230 5 років тому +1

    Thankyou, it's very useful

  • @nagasaikatakamsetty3969
    @nagasaikatakamsetty3969 4 місяці тому

    I have connected 5V 2A to shield. Tried with/without jumper. Arduino is not powered up and not detected. any help is appreciated.

  • @34shubhammusmade10
    @34shubhammusmade10 3 роки тому

    Motor drive is attached to arduino uno can it drive on 12 volt

  • @vikasprajapati941
    @vikasprajapati941 3 роки тому +1

    Ooh it's really cool but make some tutorial on stepper motor. I've understand this now.

  • @wisdomofknowledge1626
    @wisdomofknowledge1626 3 роки тому

    What is the maximum voltage I can provide to motor shield?

  • @ncoworks
    @ncoworks 4 роки тому

    How I can use the digital pins from Arduino, because NOW the pins are covered? Can you help me pls

  • @he_good7264
    @he_good7264 Рік тому

    great video
    pls make tutorial for ultrasonic sensor with this

  • @muhammadabidisyraf1753
    @muhammadabidisyraf1753 5 років тому

    I have a problem to connect 4 DC motor,power pump,flame sensor ad servo...please please help me immediately

  • @calmology3988
    @calmology3988 3 роки тому

    I have a question: So I have the Elegoo Mega2560 Board can I use the Shield on it ? Or is it just for the UNO?
    I found some other Motordriver but I want to control 2-4 DC Motors and a SERVO.

  • @almirbajsini
    @almirbajsini 4 роки тому

    can i use accelometer with it (GY-521).

  • @mugpc8502
    @mugpc8502 5 років тому

    I have arduino uno , Bluetooth module HC-05 , and this motor driver... I have decided to make out a combat robot ... But I don't know that how can I use this motor driver ... Can you help me please ... I need a arduino code ? Hopefully waiting for your reply

  • @ferdinandhenkel4567
    @ferdinandhenkel4567 2 роки тому

    Can u run a nema 17 style bipolar stepper motor using this?
    Does it make any sounds? Wondering because i want to make a 3d printed clock an it has quite some gears inside so i need more touqe than that lil unipolar stepper that is usually used with arduino. I am looking for a Solution that doesnt require an extra power source for the stepper.
    If someone knows it would be really helpful cause I dont hace a lot of experience with electronics

  • @HENROCable
    @HENROCable 2 роки тому

    How do You write a Code to run 4 Dc Motors with that same Adruino and Motor Shield?