L293D Motor control Module Tutorial - Run motors off the Arduino

Поделиться
HTML-код
  • Опубликовано: 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 RUclips 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.

  • @mateuszfrydryszak3856
    @mateuszfrydryszak3856 4 года назад +1

    Thanks for this video man! You cured my headache!

  • @ArmRehabHands
    @ArmRehabHands 3 года назад

    best video so far on topic

  • @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

  • @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

  • @madhugn
    @madhugn 5 лет назад +3

    Perfect explanation. Thank you

  • @TOYMALLMANJERI
    @TOYMALLMANJERI 4 года назад +3

    PERFECTLY DONE .

  • @LIGHTBULBCODING
    @LIGHTBULBCODING 2 года назад

    PERFECT! Just what I needed!

  • @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

  • @napkin62
    @napkin62 3 года назад

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

  • @Sumee21051987
    @Sumee21051987 3 года назад

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

  • @YashJain-qh5tn
    @YashJain-qh5tn 2 года назад

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

  • @abdullahbinsajeer3371
    @abdullahbinsajeer3371 2 года назад

    thanks for sharing your valuble knoledge🙏

  • @Dustysundew
    @Dustysundew Месяц назад

    Great tutorial 😁

  • @prikundnani2622
    @prikundnani2622 5 лет назад

    I appreciate you going in detail about every function

  • @danielgeorgejohn3072
    @danielgeorgejohn3072 4 года назад +1

    This might help me a lot for my presentation ♥️

  • @rizkyabdullah5347
    @rizkyabdullah5347 5 лет назад +2

    thank you very much, work 100% 👍

  • @mrs2832
    @mrs2832 5 лет назад

    Great video !!!!!
    Hats off

  • @GeorgeKWeah
    @GeorgeKWeah 5 лет назад +7

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

  • @johnlestercedalla9230
    @johnlestercedalla9230 5 лет назад +1

    Thankyou, it's very useful

  • @user-xg4wn2pc1j
    @user-xg4wn2pc1j 4 года назад

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

  • @agungmuhammadiqbal3105
    @agungmuhammadiqbal3105 4 года назад +1

    Great Great Great, it's very useful

  • @HimanshuVerma-sr2hb
    @HimanshuVerma-sr2hb 5 лет назад

    THANKS SIR HELPED A LOT

  • @LIVEGAMEROfficial
    @LIVEGAMEROfficial 2 года назад

    Subscribed. I watched first video. Now i am a permanent subscriber

  • @satalaj
    @satalaj 4 года назад

    Very well explained

  • @lonlandry69
    @lonlandry69 3 года назад

    Great work! Thanks.

  • @djbusters
    @djbusters 4 года назад

    Great explanation! thanks! :)

  • @nishuahuja1688
    @nishuahuja1688 3 года назад

    Best explanation

  • @sarangalekamge1048
    @sarangalekamge1048 2 года назад

    So helpful. Thank you.

  • @designtech7788
    @designtech7788 4 года назад

    superb exaplation

  • @lgs4854
    @lgs4854 5 лет назад

    Great Video!

  • @rohitnandu9169
    @rohitnandu9169 2 года назад

    Thank you very much!

  • @suryatej6342
    @suryatej6342 4 года назад +1

    thank you it's helpful

  • @hemre1913
    @hemre1913 4 года назад

    thank you,it is very helpful

  • @jonyjohan8958
    @jonyjohan8958 5 лет назад

    Great video thank you so much

  • @carzycults6119
    @carzycults6119 3 года назад

    Great idea

  • @laudonidelia
    @laudonidelia 5 лет назад

    Great video! :)

  • @BertHeideveld
    @BertHeideveld 5 лет назад +1

    Thank you.

  • @smilingladka
    @smilingladka 4 года назад

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

  • @sagnikbiswas4457
    @sagnikbiswas4457 3 года назад

    Nice tutorial

  • @Bianchi77
    @Bianchi77 3 года назад

    Cool info, thanks :)

  • @psreenupsreenu7713
    @psreenupsreenu7713 2 года назад

    Without connecting to computer it works

  • @bojanmilojkovic3770
    @bojanmilojkovic3770 3 года назад

    My fledgling robot thanks you.

  • @jayaramannarayanasamy1521
    @jayaramannarayanasamy1521 3 года назад

    Thank you bro

  • @he_good7264
    @he_good7264 Год назад

    great video
    pls make tutorial for ultrasonic sensor with this

  • @kaindradjoemena7789
    @kaindradjoemena7789 3 года назад

    Thank you sir!

  • @RijushreeGuha
    @RijushreeGuha 4 года назад

    Thanku sir u just cleared all my doubts love from india 🇮🇳

  • @SchwanaCARDHUT
    @SchwanaCARDHUT 4 года назад +1

    Hello , very useful! information in detail on motor shield
    (L293D Module) with Arduino thanks so much ................

    • @Fungineers
      @Fungineers  4 года назад +1

      Thanks for appreciating my work.

  • @MakerTutor101
    @MakerTutor101 5 лет назад

    Thank for sharing

  • @umargul5644
    @umargul5644 2 года назад

    Well done

  • @chanakagamage8599
    @chanakagamage8599 3 года назад +1

    good thank very much

  • @sakalagamingyt3563
    @sakalagamingyt3563 7 месяцев назад

    Thank you very much.

  • @vikasprajapati941
    @vikasprajapati941 4 года назад +1

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

  • @theblok7940
    @theblok7940 Год назад

    Thank you

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

  • @anaslabanie471
    @anaslabanie471 5 лет назад

    very good 👍

  • @innayafauziahm6001
    @innayafauziahm6001 4 года назад +1

    Thanks... That's greet...

  • @hrishikeshsamant4857
    @hrishikeshsamant4857 4 года назад

    Thanks bro..I had completely forgot all the functions and codes

    • @Fungineers
      @Fungineers  4 года назад

      Sometimes I forget too...then I watch my previous videos haha

  • @EMCKiMiKiN
    @EMCKiMiKiN 5 лет назад +16

    ¡Excelente Explicación!, fue tan sencilla, que a partir de ella adapté para controlar 2 motores DC avanzando y en reversa, aquí el código:
    #include
    AF_DCMotor motor1(1);
    AF_DCMotor motor2(2);
    void setup() {
    // Configurar Velocidad del Motor e iniciar apagado para luego encenderlo en el Loop
    motor1.setSpeed(200);
    motor1.run(RELEASE);
    motor2.setSpeed(200);
    motor2.run(RELEASE);
    }
    void loop() {
    motor1.run(FORWARD); // Avanzar Motor 1
    delay(3000);
    motor1.run(RELEASE); // Detener Motor 1
    motor2.run(FORWARD); // Avanzar Motor 2
    delay(3000);
    motor2.run(RELEASE); // Detener Motor 2
    motor1.run(BACKWARD);// Retroceder Motor 1
    delay(3000);
    motor1.run(RELEASE); // Detener Motor 1
    motor2.run(BACKWARD);// Retroceder Motor 2
    delay(3000);
    motor2.run(RELEASE);// Detener Motor 2
    }

  • @elmahdielmahdi6895
    @elmahdielmahdi6895 4 года назад

    very nice Thank you ;)

  • @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.

  • @angelorondini5835
    @angelorondini5835 5 лет назад +4

    11:50
    To make the servo return to it's initial position you have to set it to 0 degrees not -20

  • @ethanblanca5573
    @ethanblanca5573 4 года назад +2

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

  • @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

  • @ahmedsamir330
    @ahmedsamir330 4 года назад

    Perfect :*

  • @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?

  • @vinodnadoni5047
    @vinodnadoni5047 4 года назад

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

  • @virendrasinhvaghela9579
    @virendrasinhvaghela9579 5 лет назад

    Nice

  • @SK_Senthil
    @SK_Senthil 4 года назад +1

    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 года назад +1

      Thanks. You can use analog pins as digital too.

  • @tb2.0editz26
    @tb2.0editz26 Год назад +1

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

  • @peterfarquharson9777
    @peterfarquharson9777 4 года назад

    thx

  • @circuitguru4554
    @circuitguru4554 4 года назад +1

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

  • @circuitguru4554
    @circuitguru4554 4 года назад +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.

  • @Bravaliya
    @Bravaliya 4 года назад

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

  • @ramudukuruva3268
    @ramudukuruva3268 4 года назад

    Hey fungineers, This tutorial was helpful. But, I am not able to decide which battery to use when using 4 DC motors with one shield. Thanks in advance.

  • @niceman567
    @niceman567 4 года назад

    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.

  • @Rakeshpattar5
    @Rakeshpattar5 4 года назад

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

  • @ElPolloPolloPollo
    @ElPolloPolloPollo 8 месяцев назад

    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?

  • @piolho278
    @piolho278 4 года назад

    GOOD!

  • @MrHomyachek
    @MrHomyachek 5 лет назад

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

  • @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?

  • @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

  • @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

  • @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.

  • @Ran_Rider
    @Ran_Rider 2 года назад

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

  • @enriquehehezs4628
    @enriquehehezs4628 2 месяца назад

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

  • @trendingvideostrendingvide9174
    @trendingvideostrendingvide9174 3 года назад

    May you explain how does internal circuit exactly work

  • @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?

  • @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.

  • @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?

  • @thaddeusaldrinreyes6981
    @thaddeusaldrinreyes6981 5 лет назад

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

  • @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.

  • @slkandy4136
    @slkandy4136 3 года назад

    Can i use that to start a cooling fan

  • @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 ?