L293D Motor control Module Tutorial - Run motors off the Arduino

Ғылым және технология

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
    @nooknorth2685 жыл бұрын

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

  • @sumantakumardutta986
    @sumantakumardutta9863 жыл бұрын

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

  • @onlyme3543
    @onlyme35433 жыл бұрын

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

  • @enricogironi8887
    @enricogironi88873 жыл бұрын

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

  • @laserdad
    @laserdad3 жыл бұрын

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

  • @quintonvehon2638
    @quintonvehon26382 жыл бұрын

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

  • @PiotrasSNK
    @PiotrasSNK5 жыл бұрын

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

  • @Ed19601
    @Ed196014 жыл бұрын

    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

  • @heinzvarghese4893
    @heinzvarghese48932 жыл бұрын

    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?

  • @mateuszfrydryszak3856
    @mateuszfrydryszak38564 жыл бұрын

    Thanks for this video man! You cured my headache!

  • @i.ncreator9918
    @i.ncreator99184 жыл бұрын

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

  • @Fungineers

    @Fungineers

    4 жыл бұрын

    Thank you

  • @GeorgeKWeah
    @GeorgeKWeah5 жыл бұрын

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

  • @helios-jj2wq
    @helios-jj2wq3 жыл бұрын

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

  • @TOYMALLMANJERI
    @TOYMALLMANJERI4 жыл бұрын

    PERFECTLY DONE .

  • @ethanblanca5573
    @ethanblanca55734 жыл бұрын

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

  • @Carob75
    @Carob752 жыл бұрын

    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?

  • @niceman567
    @niceman5674 жыл бұрын

    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.

  • @circuitguru4554
    @circuitguru45544 жыл бұрын

    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.

  • @ElPolloPolloPollo
    @ElPolloPolloPollo8 ай бұрын

    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?

  • @madhugn
    @madhugn5 жыл бұрын

    Perfect explanation. Thank you

  • @Sumee21051987
    @Sumee210519873 жыл бұрын

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

  • @ArmRehabHands
    @ArmRehabHands3 жыл бұрын

    best video so far on topic

  • @lukman6762
    @lukman67622 жыл бұрын

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

  • @LIGHTBULBCODING
    @LIGHTBULBCODING2 жыл бұрын

    PERFECT! Just what I needed!

  • @vinodnadoni5047
    @vinodnadoni50474 жыл бұрын

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

  • @mirelpera2573
    @mirelpera25732 жыл бұрын

    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.

  • @Bravaliya
    @Bravaliya4 жыл бұрын

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

  • @saviopullkotil2270
    @saviopullkotil22702 жыл бұрын

    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

  • @prikundnani2622
    @prikundnani26225 жыл бұрын

    I appreciate you going in detail about every function

  • @tb2.0editz26
    @tb2.0editz26 Жыл бұрын

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

  • @circuitguru4554
    @circuitguru45544 жыл бұрын

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

  • @biswajyotisengupta1174
    @biswajyotisengupta11745 жыл бұрын

    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?

  • @cyraxabir3961
    @cyraxabir39614 жыл бұрын

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

  • @georgekot6377
    @georgekot63775 жыл бұрын

    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.

  • @Rakeshpattar5
    @Rakeshpattar54 жыл бұрын

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

  • @azrifitri5049
    @azrifitri50493 жыл бұрын

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

  • @danielgeorgejohn3072
    @danielgeorgejohn30724 жыл бұрын

    This might help me a lot for my presentation ♥️

  • @Fungineers

    @Fungineers

    4 жыл бұрын

    Good luck!

  • @MrHomyachek
    @MrHomyachek5 жыл бұрын

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

  • @madzki80
    @madzki804 жыл бұрын

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

  • @napkin62
    @napkin623 жыл бұрын

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

  • @thaddeusaldrinreyes6981
    @thaddeusaldrinreyes69815 жыл бұрын

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

  • @rizkyabdullah5347
    @rizkyabdullah53475 жыл бұрын

    thank you very much, work 100% 👍

  • @YashJain-qh5tn
    @YashJain-qh5tn2 жыл бұрын

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

  • @rameshtripathy5978
    @rameshtripathy59783 жыл бұрын

    Nice description ! How can I operate 230 AC/DC 500W rating 4 numbers of motor by using Arduino ? Thank you !

  • @abdullahbinsajeer3371
    @abdullahbinsajeer33712 жыл бұрын

    thanks for sharing your valuble knoledge🙏

  • @bogdanslavian2980
    @bogdanslavian29804 жыл бұрын

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

  • @Hasspacher
    @Hasspacher4 жыл бұрын

    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.

  • @SK_Senthil
    @SK_Senthil4 жыл бұрын

    Great video and explanation 👏👏👏 You have mentioned in the video about A0-A5 can be soldered! What about Digital pins? I need to connect D3-D6 for some other sensors! How to do that with L293D !

  • @Fungineers

    @Fungineers

    4 жыл бұрын

    Thanks. You can use analog pins as digital too.

  • @Ran_Rider
    @Ran_Rider2 жыл бұрын

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

  • @enriquehehezs4628
    @enriquehehezs46282 ай бұрын

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

  • @mayankdhameliya5931
    @mayankdhameliya59315 жыл бұрын

    Hey ,Very useful video. Keep it up man. One quick question, can I use this motor shield for control 6 dc motor(forward/ backward) If not,what I can use instead.

  • @Fungineers

    @Fungineers

    5 жыл бұрын

    Thanks buddy. You can do up to 4 motors. You will have to stack another shield on top to control 8 motors. But battery voltage will also have to double.

  • @mayankdhameliya5931

    @mayankdhameliya5931

    5 жыл бұрын

    @@Fungineers thank you🙂

  • @johnlestercedalla9230
    @johnlestercedalla92305 жыл бұрын

    Thankyou, it's very useful

  • @Dustysundew
    @DustysundewАй бұрын

    Great tutorial 😁

  • @atmanandmurthy2324
    @atmanandmurthy23244 жыл бұрын

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

  • @prudhvi4734
    @prudhvi47344 жыл бұрын

    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

  • @mrs2832
    @mrs28325 жыл бұрын

    Great video !!!!! Hats off

  • @himanshubhoria1832
    @himanshubhoria18322 жыл бұрын

    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.

  • @ES-ll5uv
    @ES-ll5uv3 ай бұрын

    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.

  • @smilingladka
    @smilingladka4 жыл бұрын

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

  • @joematarc5245
    @joematarc52454 жыл бұрын

    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.

  • @diye.28
    @diye.282 жыл бұрын

    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 ?

  • @AdityaSingh-hx1tv
    @AdityaSingh-hx1tv3 жыл бұрын

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

  • @raniachar6566
    @raniachar65663 жыл бұрын

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

  • @narayan_das580
    @narayan_das5803 жыл бұрын

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

  • @djbusters
    @djbusters4 жыл бұрын

    Great explanation! thanks! :)

  • @satalaj
    @satalaj4 жыл бұрын

    Very well explained

  • @TankTurk
    @TankTurk5 жыл бұрын

    Hi Fungineers, thanks for the great video. Just a quick question, can I run 2 small DC motors, 1 servo and 1 stepper motor at the same time with this shield? TIA

  • @Fungineers

    @Fungineers

    5 жыл бұрын

    No, I think that will draw too much current. But you can connect 2 shields on top of each other and do it. They are really cheap so why not.

  • @TankTurk

    @TankTurk

    5 жыл бұрын

    Hmmm...so what's that all about supplying 0.6A per channel? I would have thought that if you stayed withing that limit then it'd be ok as long as the power supply had enough amps. Cheap enough as you said but don't have the room to stick another on top so will have to think of another solution. Thanks for the reply

  • @agungmuhammadiqbal3105
    @agungmuhammadiqbal31054 жыл бұрын

    Great Great Great, it's very useful

  • @floyd7401
    @floyd74015 жыл бұрын

    are carbon zinc AA batteries fine to use? and can you still run it with 4 AA batteries if you add an ultrasonic sensor or do you need more power?

  • @Fungineers

    @Fungineers

    5 жыл бұрын

    No need for more power. As long as batteries have the required voltage you can use any battery :)

  • @abhijithas9976
    @abhijithas99764 жыл бұрын

    Which Arduino pin is used to connect or required the shield

  • @HimanshuVerma-sr2hb
    @HimanshuVerma-sr2hb5 жыл бұрын

    THANKS SIR HELPED A LOT

  • @lgs4854
    @lgs48545 жыл бұрын

    Great Video!

  • @lonlandry69
    @lonlandry693 жыл бұрын

    Great work! Thanks.

  • @santoshkedari8304
    @santoshkedari83045 жыл бұрын

    what is maximum range of voltage in L293d

  • @joelortiz8833
    @joelortiz88332 жыл бұрын

    Hola q tal disculpa le quería poner unas 4 baterías 18650 de 4.7 volts y 8800mAh cada una mi pregunta era si el motor shield con el arduino lo soportan. PD. Estoy alimentando 4 motores, un servo y un ultrasonico

  • @he_good7264
    @he_good7264 Жыл бұрын

    great video pls make tutorial for ultrasonic sensor with this

  • @mahdimansour2887
    @mahdimansour288711 ай бұрын

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

  • @kakashiyt4739
    @kakashiyt47394 жыл бұрын

    Can I connect 6 dc motors with shield ?

  • @BertHeideveld
    @BertHeideveld5 жыл бұрын

    Thank you.

  • @almirbajsini
    @almirbajsini4 жыл бұрын

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

  • @joelvale3887
    @joelvale38875 жыл бұрын

    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.

  • @mouscool11
    @mouscool113 жыл бұрын

    With the expansion shield, there is no pinmode function?

  • @xempai2279
    @xempai22794 жыл бұрын

    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

  • @laudonidelia
    @laudonidelia5 жыл бұрын

    Great video! :)

  • @shingrutashish5639
    @shingrutashish56392 жыл бұрын

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

  • @syedashfaquddin2941
    @syedashfaquddin29417 ай бұрын

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

  • @trendingvideostrendingvide9174
    @trendingvideostrendingvide91743 жыл бұрын

    May you explain how does internal circuit exactly work

  • @Draginx
    @Draginx3 жыл бұрын

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

  • @suryatej6342
    @suryatej63424 жыл бұрын

    thank you it's helpful

  • @andrewkeener5480
    @andrewkeener54804 жыл бұрын

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

  • @user-xg4wn2pc1j
    @user-xg4wn2pc1j4 жыл бұрын

    Excellent ...keep it up sir..👏 👏 👏

  • @CHANDRAKANTH-pk6dg
    @CHANDRAKANTH-pk6dg3 жыл бұрын

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

  • @pavelkoryakin5750
    @pavelkoryakin57504 жыл бұрын

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

  • @hizonopusdie
    @hizonopusdie5 жыл бұрын

    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 :)

  • @muhammadabidisyraf1753
    @muhammadabidisyraf17535 жыл бұрын

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

  • @user-ir6ug6gk1f
    @user-ir6ug6gk1f3 жыл бұрын

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

  • @vikasprajapati941
    @vikasprajapati9414 жыл бұрын

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

  • @hemre1913
    @hemre19134 жыл бұрын

    thank you,it is very helpful

  • @jonyjohan8958
    @jonyjohan89585 жыл бұрын

    Great video thank you so much

  • @ferdinandhenkel4567
    @ferdinandhenkel45672 жыл бұрын

    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

Келесі