How to Control Speed of Servo Motor - Arduino Project

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ค. 2018
  • Hi Guys, It's all about controlling the speed of servo motor using Arduino. In this video, you can learn how to run servo motor as well as control the speed of servo.
    I have write some code method to make it easy. So visit my project page for Arduino code and more information
    Project page- coming soon!
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 79

  • @sadokfennira3005
    @sadokfennira3005 5 ปีที่แล้ว +38

    Hey :)
    appreciate the effort but I think if you could ve explained what you wrote there in your Code would be awesome. not everyone can understand it. maybe giving some details.

  • @TheRandomYoYo
    @TheRandomYoYo 4 ปีที่แล้ว +9

    Even though I would have appreciated more if you explained the code, I do enjoy trying to understand the code myself. And the idea for the code is pretty good. Thank you!

  • @gozeenpinjar
    @gozeenpinjar 3 ปีที่แล้ว +1

    Wow I was trying to build a logic similar to this, u made my life easy, thanks 😊

  • @ldelossantos
    @ldelossantos 3 ปีที่แล้ว

    Thanks! Nice explanation. Keep sharing your projects!

  • @bailidaniel
    @bailidaniel 3 ปีที่แล้ว

    Genial lo pude implementar y la verdad que se puede lograr cambios de velocidad y posición sin tener que entrar a modificar en los bucles.Muy bueno te felicito .

  • @prtprt3678
    @prtprt3678 2 ปีที่แล้ว

    This is very helpful for me. Thank you 😊❤️

  • @TRCVJU
    @TRCVJU 2 ปีที่แล้ว

    Very nice. Very helpful. Thanks a ton for sharing such a useful technical in formation.

  • @michaelmeneghetti5794
    @michaelmeneghetti5794 3 ปีที่แล้ว

    Thank you for the explanations and modification of the code. I have tried to add additional servos to the code and have been unsuccessful. Any help would be much appreciated.

  • @ClownWhisper
    @ClownWhisper 2 ปีที่แล้ว +1

    I I have tested out a lot of different servo sketches and I've played with the delay and it doesn't change a damn thing. It'll delay in between how fast a function occurs but it doesn't slow down the movement at all

  • @Poshoo
    @Poshoo 3 ปีที่แล้ว

    Thanks for the tutorial! beautiful voice :)

  • @313jacob
    @313jacob 3 ปีที่แล้ว

    Very nice. Thank you.

  • @Alt3zahen
    @Alt3zahen ปีที่แล้ว

    How would you program it to do 1 rotation per day or even 1 rotation per month?
    Can you control the rpm to 0.00001 or something like that?

  • @UtkarshK1
    @UtkarshK1 6 ปีที่แล้ว +1

    Nice and very helpful video

  • @mkr32
    @mkr32 ปีที่แล้ว

    chalange question i like video but i need human interface with out touching sofware mean i want three push buttons or momentry buttons if button one press speed one (20 what ever time change) if press button two it will wrk with speed two

  • @shankarnathmajumder
    @shankarnathmajumder 4 ปีที่แล้ว

    Thanks for the Video, but I want to know whether it is possible to move the 'Servo Arm' on behalf of some background Rythm (preloaded), if so then how fast it could be (maximum) ?

    • @patrickwheeler3112
      @patrickwheeler3112 4 ปีที่แล้ว

      Top speed would likely depend on the particular servo. You'd have to look for specific servo specifications, where you will find something like "Operating speed: 0.11 seconds/ 60 degrees (4.8V)."

  • @asv4k8
    @asv4k8 ปีที่แล้ว

    Can you do a video with faster servos that move at 0.07 s/60 degrees?

  • @satyamusic1382
    @satyamusic1382 2 ปีที่แล้ว

    GREAT VIDEO

  • @friday6600
    @friday6600 3 ปีที่แล้ว

    instant subscribed

  • @atulkhatavkar6986
    @atulkhatavkar6986 4 ปีที่แล้ว

    Hi thanks for this nice video How to decrease the speed of servo while using forward and reverse function? By increasing delay it is just increasing time of swewp but not decreasing speed of sweep please help

    • @ClownWhisper
      @ClownWhisper 2 ปีที่แล้ว

      Yes this is exactly my point it delayes the initiation of the next movement but it doesn't slow down the movement itself. I need a much slower less jerky movement from my project and i can't figure it out i'm very new to

  • @superyarik
    @superyarik 4 ปีที่แล้ว +2

    thanks! now my eggbot pen is going down gently!

    • @saratbob
      @saratbob 2 ปีที่แล้ว

      hi.. can you share the code for servo rotation please (saratbob@gmail.com)

    • @superyarik
      @superyarik 2 ปีที่แล้ว

      @@saratbob hi, hard to remember, but i use this library for my eggbot, you can dig into github.com/schlion/EggDuino

  • @craigshornbyupgrades1136
    @craigshornbyupgrades1136 4 ปีที่แล้ว +1

    error "moveTo not declared in this scope" when I tried your code, did you make an entry further up to declare moveTo ? Thanks

    • @starkex7230
      @starkex7230 3 ปีที่แล้ว

      Man, you need to write that function by yourself. Do you have some C learnings? Or Algorhytmes and data structures lections? moveTo function is in 2:43.

  • @ahmadhussainwebshare1001
    @ahmadhussainwebshare1001 2 ปีที่แล้ว

    Awesome vedio

  • @niranjanpawar4802
    @niranjanpawar4802 3 ปีที่แล้ว

    How many weight servo motor can lift?

  • @SamuelDWood
    @SamuelDWood 3 ปีที่แล้ว +2

    What is mapSpeed declared as? I did int. This code doesn't make any sense. Please share the whole code with declarations at the top. It "kina" works, but it only goes slow in 1 direction. I'm not following your logic.

  • @thailoz944
    @thailoz944 5 ปีที่แล้ว

    do you have the code for download

  • @indianandroidhacker6273
    @indianandroidhacker6273 6 ปีที่แล้ว +1

    Nice video

  • @whiemp5620
    @whiemp5620 5 ปีที่แล้ว

    bro can i use motor driver shield in place of motor driver with the same code?

    • @Circuitmagic
      @Circuitmagic  5 ปีที่แล้ว

      not sure, which driver shield you are using?

  • @Sampson2012bot
    @Sampson2012bot 23 วันที่ผ่านมา

    That's nice and all. But how is this supposed to help my hemorrhoid problem?

  • @nilsayan2740
    @nilsayan2740 4 ปีที่แล้ว

    Are you from India???

  • @indianandroidhacker6273
    @indianandroidhacker6273 6 ปีที่แล้ว

    Whats is price of servo

  • @josipkrizan7212
    @josipkrizan7212 3 ปีที่แล้ว

    hi friend can you help me about programming two servo motors with one button can we hear each other in the mail?

  • @jasonseng888
    @jasonseng888 ปีที่แล้ว

    where can I get the code?

  • @arrazi-uae5079
    @arrazi-uae5079 5 ปีที่แล้ว

    Thank you for the video. But why isnt it turning in 360 degrees ?

    • @icst4786
      @icst4786 5 ปีที่แล้ว

      ArRaZI - UAE Hobby servos are usually only capable of around 180 degrees.

  • @p1ll0wt0p
    @p1ll0wt0p 3 ปีที่แล้ว

    is there a maximum time the servo can take to rotate the arm? i am looking at a project that needs to take 7 days to loop. is that possible?

    • @Alt3zahen
      @Alt3zahen ปีที่แล้ว

      Have you found a solution? Same problem for me

    • @saitejapadhi2917
      @saitejapadhi2917 ปีที่แล้ว

      ​@@Alt3zahen delay should be increased but this microservo can't withstand it

  • @amirulhafiz4969
    @amirulhafiz4969 4 ปีที่แล้ว

    its a very clear explanation at the beginning. do you mind sharing the code please?

    • @GodsHumbleHacker
      @GodsHumbleHacker 4 ปีที่แล้ว +2

      its in arduino lol built into software xdxdxdxd

  • @mkr32
    @mkr32 ปีที่แล้ว

    i need to set delay time with button

  • @elijahbyrd3370
    @elijahbyrd3370 5 ปีที่แล้ว

    What's the name of that white bored ur using

  • @WaywardWayta
    @WaywardWayta 5 ปีที่แล้ว

    Where is the code for the function you made?

    • @GodsHumbleHacker
      @GodsHumbleHacker 4 ปีที่แล้ว +1

      it is in the arduino examples lol xdxdxdxd

  • @visionaryrobotics4065
    @visionaryrobotics4065 5 ปีที่แล้ว

    how can i control 2 servos independently for my robot arm?

    • @QD77
      @QD77 5 ปีที่แล้ว

      By declaring 2 servos. EG :
      Servo servo1;
      Servo servo2;
      void setup(){
      servo1.attach([pin#1]);
      servo2.attach([pin#2]);
      servo1.write(100);
      servo2.write(80);
      }
      Or you could use an array :
      Servo servos[2];
      void setup(){
      servos[0];.attach([pin#1]);
      servos[1];.attach([pin#2]);
      servos[0];.write(100);
      servos[1];.write(80);
      }
      Or write your own class / functions to manage them the way you want :)

    • @elijahbyrd3370
      @elijahbyrd3370 5 ปีที่แล้ว

      @@QD77 can u control let's say 5 servos at once using the same coding format?

    • @QD77
      @QD77 5 ปีที่แล้ว

      ​@@elijahbyrd3370 You can control as many as there are available pins on your Arduino.
      Just declare 5 servos (Servo servo1, servo2, servo3...) or an array of size 5 :
      Servo servos[5];

  • @juancarlos-bq6ew
    @juancarlos-bq6ew 4 ปีที่แล้ว

    and didn´t found in your page :,

  • @craigshornbyupgrades1136
    @craigshornbyupgrades1136 4 ปีที่แล้ว

    More info, I'm using a Nano, don't think moveTo is a valid command?

    • @bharathbhat880
      @bharathbhat880 3 ปีที่แล้ว

      move to is a loop

    • @craigshornbyupgrades1136
      @craigshornbyupgrades1136 3 ปีที่แล้ว

      @@bharathbhat880 thanks, that was 11 months ago and I have since learned a bit more and found the errors in my code and basic understanding of code. Please d to say my wee servo project worked out great in the end.

    • @craigshornbyupgrades1136
      @craigshornbyupgrades1136 3 ปีที่แล้ว

      th-cam.com/video/SbNQX1elULg/w-d-xo.html

  • @marcus_w0
    @marcus_w0 5 ปีที่แล้ว

    How to slow down your servo motor

  • @AljazJelen1992
    @AljazJelen1992 2 ปีที่แล้ว

    Thank you for the effort! But this kind of arduino coding style should be avoided at all costs. Delays to compensate speed? What happens if there is other code beside this stepper code? Delays will not give you deterministic speed!
    In simpler words, avoid delays at all cost. It blocks your code any everything is hanging. If you do some proper project and need delay, then use "millis()" implementation.

  • @juancarlos-bq6ew
    @juancarlos-bq6ew 4 ปีที่แล้ว

    did´t explaind the top code :,

  • @LOFIBAZ_Official
    @LOFIBAZ_Official 4 วันที่ผ่านมา

    Please provide code Servo Motor

  • @user-yr5ky5ri6m
    @user-yr5ky5ri6m 2 หลายเดือนก่อน +1

    this is controling direction not Control Speed

  • @caner8688
    @caner8688 5 ปีที่แล้ว +1

    you have started very clearly and good,and general style is like that as well. but at the and final explanation is very insufficient.and what is the ''else''code..thats not all buddy,u had to continue! ( i dont know if i have to remind for you to make us copy the code?..in turkey when we come across the situations like your situation we say '' u passed the ocean, but were drowned on the river.'')

  • @mydlarskimariusz2915
    @mydlarskimariusz2915 5 ปีที่แล้ว +1

    SImple but you don show CODE ....

  • @jayanthkumar73
    @jayanthkumar73 2 ปีที่แล้ว

    Helo, can u pls send the code

  • @swaroopa4uable
    @swaroopa4uable 3 ปีที่แล้ว

    it did not work i have version:1.8.13

  • @ClownWhisper
    @ClownWhisper 2 ปีที่แล้ว

    Please change the title to this video this does not slow down servo movement

  • @AJ-mw4nb
    @AJ-mw4nb 4 ปีที่แล้ว

    Average

  • @TugaAlphaz
    @TugaAlphaz 5 ปีที่แล้ว +2

    i didnt like

  • @andreaschristodoulou4274
    @andreaschristodoulou4274 4 ปีที่แล้ว +1

    I gave negative to this useless video because the poster did not even care to give some answers !!!

  • @jamesmoon5632
    @jamesmoon5632 ปีที่แล้ว

    That was poorly explained!!