How to Control Speed of Servo Motor - Arduino Project

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • 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!

КОМЕНТАРІ • 80

  • @sadokfennira3005
    @sadokfennira3005 5 років тому +39

    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!

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

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

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

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

    thanks for tutor...

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

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

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

    Thanks! Nice explanation. Keep sharing your projects!

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

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

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

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

    thanks! now my eggbot pen is going down gently!

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

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

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

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

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

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

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

    Thanks for the tutorial! beautiful voice :)

  • @Sampson2012bot
    @Sampson2012bot 3 місяці тому

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

  • @313jacob
    @313jacob 3 роки тому

    Very nice. Thank you.

  • @user-yr5ky5ri6m
    @user-yr5ky5ri6m 5 місяців тому +1

    this is controling direction not Control Speed

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

    Awesome vedio

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

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

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

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

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

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

    GREAT VIDEO

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

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

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

    i need to set delay time with button

  • @indianandroidhacker6273
    @indianandroidhacker6273 6 років тому +1

    Nice video

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

    instant subscribed

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

    How many weight servo motor can lift?

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

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

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

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

    Please provide code Servo Motor

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

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

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

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

    where can I get the code?

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

    SImple but you don show CODE ....

  • @whiemp5620
    @whiemp5620 6 років тому

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

    • @Circuitmagic
      @Circuitmagic  6 років тому

      not sure, which driver shield you are using?

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

    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

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

    What's the name of that white bored ur using

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

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

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

    it did not work i have version:1.8.13

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

    How to slow down your servo motor

  • @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 роки тому

      ua-cam.com/video/SbNQX1elULg/v-deo.html

  • @juancarlos-bq6ew
    @juancarlos-bq6ew 4 роки тому

    and didn´t found in your page :,

  • @thailoz944
    @thailoz944 6 років тому

    do you have the code for download

  • @indianandroidhacker6273
    @indianandroidhacker6273 6 років тому

    Whats is price of servo

  • @juancarlos-bq6ew
    @juancarlos-bq6ew 4 роки тому

    did´t explaind the top code :,

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

    Are you from India???

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

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

    Helo, can u pls send the code

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

    Where is the code for the function you made?

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

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

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

    i didnt like

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

    That was poorly explained!!

  • @AJ-mw4nb
    @AJ-mw4nb 4 роки тому

    Average