Arduino Servo Motor Control with Motor Driver Shield L293D

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Hobby servos are the easiest way to get going with motor control. They have a 3-pin 0.1" female header connection with +5V, ground and signal inputs. The motor shield simply brings out the PWM output lines from Arduino pins 9 and 10 to two 3-pin headers so that its easy to plug in and go. They can take a lot of power so a 9V battery wont last more than a few minutes! The nice thing about using the onboard PWM is that its very precise and goes about its business in the background. You can use the built in Servo library.
    Required Hardware:
    Arduino Board :
    goo.gl/UyGYeF (Banggood)
    amzn.to/2LZr6t4 (Amazon)
    Motor Shield L293D :
    goo.gl/9Ph44b (Banggood)
    amzn.to/3qADuic (Amazon)
    Servo Motor :
    goo.gl/Hxejko (Banggood)
    amzn.to/3avwe1N (Amazon)
    Recommended Items:
    Use Your Muscles in Project - amzn.to/3wdL45C
    37 Sensor & Module Packages - amzn.to/3m66WeQ
    Try this Robot Arm - amzn.to/3fq8DCl
    Best Resin 3D Printer - amzn.to/39tY8KB
    Arduino Compatible Kits - bit.ly/2J2AFF7
    Banggood Spring Sale - bit.ly/3slMbOn
    Download AFMotor Library (GitHub)
    github.com/ada...
    To install, click on Downloads in the middle of the page, select Download as zip and uncompress the folder.
    Rename the folder to AFmotor (check that the renamed folder contains the .cpp and .h files) and install into the Arduinosketches/libraries folder.
    Get Source Code: create.arduino...
    Social Media:
    / mertarduino
    / mertarduino

Комментарии • 47

  • @maker101io
    @maker101io  3 года назад +2

    Source Code: create.arduino.cc/editor/mertarduinotech/facb6cc1-12cf-46e1-9c88-e6d96a1891ec/preview
    Recommended Items:
    Use Your Muscles in Project - amzn.to/3wdL45C​
    37 Sensor & Module Packages - amzn.to/3m66WeQ​
    Try this Robot Arm - amzn.to/3fq8DCl​
    Best Resin 3D Printer - amzn.to/39tY8KB​
    Arduino Compatible Kits - bit.ly/2J2AFF7​
    Banggood Spring Sale - bit.ly/3slMbOn

  • @ninjahunter2199
    @ninjahunter2199 16 дней назад

    Nice work, especially that part u show which wires were inserted in the board

  • @CarlinComm
    @CarlinComm 8 лет назад

    Thanks for the reminder, I need to dig out the kits to see what parts I have, I am pretty sure I have a motor shield like that :)

  • @mariaeduardacamargo9717
    @mariaeduardacamargo9717 2 года назад +1

    what's the name of this simulator ?

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

    Thanks for everything, it's still good :-)

  • @benjaminlepourtois5735
    @benjaminlepourtois5735 8 лет назад +1

    Thank you very much for the tutorial

  • @GibetTheCatFOURTWENTY666XXX69
    @GibetTheCatFOURTWENTY666XXX69 7 лет назад +7

    how do u control 2 servos at the same time?? thank you for the video btw :)

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

    might be a dumb question, why do we write servo.attach(10) like how do we know that is the 10th pin?

  • @DamianekMAl
    @DamianekMAl 6 лет назад +2

    What is that virtual softener that you use to demo connection

  • @gaewing
    @gaewing 7 лет назад +1

    I am looking at a milling machine and am curious about the ClearPath SD family of motors with the Arduino Mega and Fusion 360. Most of the postings I seem to see are using the SC ClearPath motors. any advice? I am looking at motors in the 700 oz-in. size

  • @weirdolabdr6911
    @weirdolabdr6911 7 лет назад +1

    please make a video on controlling two dc motors with adafruit motor shield.

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

    Bro in this code library of ada fruit motor shield is no necessary

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

    If I would use two servos and I give power to Arduino with the USB, can I use a battery pack to power the servos ?

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

    Hey, I need a hand with a personal project. I wanna use the AFMotor and Servo libraries but also want to use the IRremote library with it too. But for whatever reason, the output for the IR remote is random when both libraries are active, but the Outputs are correct when I remove one of the motor libraries.

  • @harry._fr4108
    @harry._fr4108 4 года назад

    Thanks your video is great but where can I put a power supply on the L293D Kindly

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

    How does it only use pins 9 and 10 when you can control 4 DC motors?

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

    one question, this app with the simulation, how is the name?
    please, you can help me?

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

    Where did you get that fritzing part??

  • @mohammedhussein1082
    @mohammedhussein1082 7 лет назад

    I've the adafruit servo shield for arduino however I dont know how to develop the code for it to turn to a specific angle

  • @user-xb9ej7dg2f
    @user-xb9ej7dg2f 6 лет назад

    Спасибо, вы очень сильно мне помогли!

  • @IanChase09
    @IanChase09 6 лет назад

    i followed the instructions here, the only difference is that i am using an OSEPP servo shield, but it still uses the same library and same digital pins -- nothing will work though.

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

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

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

    you mentioned l293, so can one replace this with a l298n and connect that servo to it ???,
    why am i asking...i am a cheap guy and i have a few l298n laying around ...thanks for your reply

  • @calinmorar4327
    @calinmorar4327 7 лет назад

    How can I put female headers on the shield,because I can't control anything else if I use it... :(

  • @haipingwang7075
    @haipingwang7075 7 лет назад

    Thanks for uploading, my questions is about the arduino code name_servo.attach(10), physically pin10 is not connected. Does it mean attach 10 to pwm pin internally? Thanks.

  • @saisokuhashiriya8069
    @saisokuhashiriya8069 7 лет назад

    I'm wondering, how to move them from 90 to 180 degrees and then it turn back to 90 degree with one push of a button.. same goes to 90 to 0 degree, and getting back on 90 degree.. so it will always be on 90 degree..each time the button hit, they goes to one direction and get back to original position..

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

    pero para controlar el servo .... presionando una tecla o numero se mueva el servo como lo hago ? ..... esa ayuda seria genial

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

    Can we put pin servo to motor shield pin? Not on servo place, but on pin 1 - 9 motor shield. I want use 4 servos for my project and use this component.
    Pls answerr someone who knows

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

    what is the simulator ?

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

    which software pls tell

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

    Bro till how much mah battery we can plug to motor driver shield bro can I use 4.2 v 6000 mah battery of 2psc is the motors works good bro plz give me a solution bro plzz

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

    Anybody knows the music he's using?

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

    thank your code

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

    how can i do this with bluetooth? can u make a code for it?

  • @2dcoders110
    @2dcoders110 4 года назад

    dostum motor shield a hem servo hem step motor baglayabilir miyim

  • @Captain_Nemo-y7q
    @Captain_Nemo-y7q 5 лет назад

    Required is not spelt "Requiured".

  • @shubhodeepmandal1499
    @shubhodeepmandal1499 6 лет назад

    Why I need library??

  • @ahmedsaman3070
    @ahmedsaman3070 7 лет назад

    ❤️❤️❤️❤️

    • @ahmedsaman3070
      @ahmedsaman3070 7 лет назад

      Mert Arduino Tutorial & Projects you deserve it

    • @loaikingo6796
      @loaikingo6796 7 лет назад +1

      Mert Arduino Tutorial & Projects plz what the name of the simulation program you use

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

      @@loaikingo6796 I'd love to know too, if u found out let me know

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

      @@mahada2011 fritzing

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

      noha mahmoud Thank you so much 😍🌸

  • @hitezhsingh4493
    @hitezhsingh4493 6 лет назад

    😀😁😁