How to Control Speed of Servo Motor - Arduino Project

Sdílet
Vložit
  • čas přidán 8. 09. 2024

Komentáře • 80

  • @sadokfennira3005
    @sadokfennira3005 Před 5 lety +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 Před 4 lety +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 Před 2 lety +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 Před 3 lety +1

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

  • @fetrasiadhenis2517
    @fetrasiadhenis2517 Před 2 měsíci

    thanks for tutor...

  • @SamuelDWood
    @SamuelDWood Před 3 lety +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 Před 3 lety

    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 Před 3 lety

    Thanks! Nice explanation. Keep sharing your projects!

  • @TRCVJU
    @TRCVJU Před 2 lety

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

  • @mkr32
    @mkr32 Před rokem

    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 Před 4 lety +2

    thanks! now my eggbot pen is going down gently!

    • @saratbob
      @saratbob Před 3 lety

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

    • @superyarik
      @superyarik Před 3 lety

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

  • @prtprt3678
    @prtprt3678 Před 2 lety

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

  • @Poshoo
    @Poshoo Před 3 lety

    Thanks for the tutorial! beautiful voice :)

  • @Sampson2012bot
    @Sampson2012bot Před 3 měsíci

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

  • @313jacob
    @313jacob Před 3 lety

    Very nice. Thank you.

  • @user-yr5ky5ri6m
    @user-yr5ky5ri6m Před 5 měsíci +1

    this is controling direction not Control Speed

  • @ahmadhussainwebshare1001

    Awesome vedio

  • @Alt3zahen
    @Alt3zahen Před rokem

    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 Před 6 lety +1

    Nice and very helpful video

  • @michaelmeneghetti5794
    @michaelmeneghetti5794 Před 3 lety

    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 Před 4 lety +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 Před 3 lety

      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 Před 2 lety

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

  • @satyamusic1382
    @satyamusic1382 Před 3 lety

    GREAT VIDEO

  • @shankarnathmajumder
    @shankarnathmajumder Před 4 lety

    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 Před 4 lety

      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 Před 4 lety

    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 Před 2 lety

      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 Před rokem

    i need to set delay time with button

  • @indianandroidhacker6273
    @indianandroidhacker6273 Před 6 lety +1

    Nice video

  • @friday6600
    @friday6600 Před 3 lety

    instant subscribed

  • @niranjanpawar4802
    @niranjanpawar4802 Před 4 lety

    How many weight servo motor can lift?

  • @arrazi-uae5079
    @arrazi-uae5079 Před 5 lety

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

    • @icst4786
      @icst4786 Před 5 lety

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

  • @josipkrizan7212
    @josipkrizan7212 Před 4 lety

    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 Před 2 měsíci

    Please provide code Servo Motor

  • @p1ll0wt0p
    @p1ll0wt0p Před 3 lety

    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 Před rokem

      Have you found a solution? Same problem for me

    • @saitejapadhi2917
      @saitejapadhi2917 Před rokem

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

  • @caner8688
    @caner8688 Před 5 lety +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 Před 2 lety

    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 Před rokem

    where can I get the code?

  • @mydlarskimariusz2915
    @mydlarskimariusz2915 Před 5 lety +1

    SImple but you don show CODE ....

  • @whiemp5620
    @whiemp5620 Před 6 lety

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

    • @Circuitmagic
      @Circuitmagic  Před 6 lety

      not sure, which driver shield you are using?

  • @amirulhafiz4969
    @amirulhafiz4969 Před 5 lety

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

  • @elijahbyrd3370
    @elijahbyrd3370 Před 5 lety

    What's the name of that white bored ur using

  • @ClownWhisper
    @ClownWhisper Před 2 lety

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

  • @swaroopa4uable
    @swaroopa4uable Před 3 lety

    it did not work i have version:1.8.13

  • @marcus_w0
    @marcus_w0 Před 5 lety

    How to slow down your servo motor

  • @craigshornbyupgrades1136

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

    • @bharathbhat880
      @bharathbhat880 Před 3 lety

      move to is a loop

    • @craigshornbyupgrades1136
      @craigshornbyupgrades1136 Před 3 lety

      @@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 Před 3 lety

      czcams.com/video/SbNQX1elULg/video.html

  • @juancarlos-bq6ew
    @juancarlos-bq6ew Před 4 lety

    and didn´t found in your page :,

  • @thailoz944
    @thailoz944 Před 6 lety

    do you have the code for download

  • @indianandroidhacker6273

    Whats is price of servo

  • @juancarlos-bq6ew
    @juancarlos-bq6ew Před 4 lety

    did´t explaind the top code :,

  • @nilsayan2740
    @nilsayan2740 Před 4 lety

    Are you from India???

  • @visionaryrobotics4065
    @visionaryrobotics4065 Před 5 lety

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

    • @QD77
      @QD77 Před 5 lety

      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 Před 5 lety

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

    • @QD77
      @QD77 Před 5 lety

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

  • @WaywardWayta
    @WaywardWayta Před 5 lety

    Where is the code for the function you made?

  • @jayanthkumar73
    @jayanthkumar73 Před 2 lety

    Helo, can u pls send the code

  • @andreaschristodoulou4274
    @andreaschristodoulou4274 Před 4 lety +1

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

  • @TugaAlphaz
    @TugaAlphaz Před 5 lety +2

    i didnt like

  • @jamesmoon5632
    @jamesmoon5632 Před rokem

    That was poorly explained!!

  • @AJ-mw4nb
    @AJ-mw4nb Před 4 lety

    Average