Raspberry Pi Servo Motor Control - No Jitter!

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 69

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

    I was worried when I first ran the new code, jitters were still there. I ran it a second time and it worked perfectly. Thank you

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

    *GARY!!!*
    Good afternoon Professor!
    Good afternoon fellow classmates!
    Stay safe out there everyone!

  • @ziggggy53ify
    @ziggggy53ify 3 роки тому +3

    Excellent primer to servo programming in Raspberry Pi, plus a practical application!
    Bravo!!!

  • @jdeb0016
    @jdeb0016 Рік тому +1

    Thanks for your kind explanation and your code :) Before I was only using a GPIO pin and my servo motor was jittering too much but with the PiGPIO it is working fine!

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

    thank you dude!, i've been trying to program a robotic arm with a raspberry pi, when it wasnt slamming itself into the desk it was nearly backhanding me, this helped to explain why it kept shaking everywhere and so hard to control, thanks!

  • @GaryExplains
    @GaryExplains  3 роки тому +47

    First!!! 😂

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

    Really could have used this about a month ago for my Arduino, but hey, I got it sorted.
    Seeing how it's used on raspberry pi should be interesting!

  • @codyflanagan304
    @codyflanagan304 Рік тому +1

    Hey Gary,
    Thanks so much for your concise tutorial. It helped me out so much with my camera tracking project

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

    Thank you for such a clear presentation on how to control servos! I plan to use a Pi or Arduino to control a servo motor. The purpose of the servo is to control the back and forth (traverse) motion of a wire guide that feeds a guitar pickup winding motor. For a normal traverse motion and even winding on the pickup bobbin I am thinking a sin wave would be the 'normal' but also want to explore some irregular 'scatter patterns.' Perhaps just varying the time it takes to traverse would be enough. Otherwise perhaps sawtooth and other patterns could be used. Any thoughts or tips on what I wish to accomplish?

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

    Loved it! I plan to apply this to ESP32 S1 in CircuitPython. Fingers crossed.

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

    Helped me loads my servos so smooth now well happy mate

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

    REALLY NICE!
    The most guides are a bit old and not so detailed. Looking forward to see more! (As always!)

  • @BrunoPereira-mo6kg
    @BrunoPereira-mo6kg 3 роки тому +5

    Hi Professor!
    Could you make a video showing the LTPO screens refresh rate changing?
    OEMs say the refresh rate could change between 1 and 120Hz, but I haven't found a video testing their claims...
    Could you do that please 😁?

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

    Excellent! This was great and I'm already looking forward to the radar video.

  • @LuisWOLF-tz5th
    @LuisWOLF-tz5th 2 місяці тому

    Your channel is very good information I used is on the point with the code

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

    Man, I was looking for this for dayss!

  • @al-ihsan-institute
    @al-ihsan-institute 3 роки тому

    absolutely amazing video sir. may god bless you. my project is now saved.

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

    Good vid! Look fwd to see the radar in operation.

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

    Thank you so much. I really enjoyed this video. It was very helpful.

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

    Thanks million ,it also works on MS995 servo

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

    maaaan, that's incredible! This really worked, thank you!

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

    Very well explained. Can you please make a video on how to open/close a prosthetic arm using a servo. @Gary Explains

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

    Thanks, nice explanation.

  • @eriksmrkolj5792
    @eriksmrkolj5792 Рік тому +2

    very nice video👍 👍 👍

  • @JasonMayes
    @JasonMayes 3 роки тому +3

    Hi new to all this - can you let me know if i can connect 2 servos (exact ones you show here) to Raspberry pi 4b without any additional stuff? Or can it not power? My aim is to get a pan/tilt combo working with the raspberry pi camera 2 module. Totally new to this so any advice appreciated in the most minimal way possible - would rather not buy more stuff as it will go on a robot so want to keep weight to minimum.

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

      Did you find out?

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

      @@shadbud9198 worked for me for a pan tilt setup

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

    This was very helpful! Thank you!

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

    Garry, Thank you for this video :-)

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

    I subed because I love the into!

  • @3D_dreams
    @3D_dreams 2 роки тому

    Can u pls show how to reverse rotation of newer towerpro sg90

  • @MaxMax-wy7bi
    @MaxMax-wy7bi 2 роки тому +1

    Hi, I have to type after every reboot or normal Start: sudo pigpiod. Otherwise an error appears. How can I change that?

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

    very helpful video sir thank so much

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

    I think you might find using a PCA9685 servo controller will make things much easier for you.

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

    Form some reason, my servos won't stop at the min/mid/max positions, but instead just continue to rotate in whatever direction indefinitely

  • @bornach
    @bornach 3 роки тому +2

    The really cheap servos sold on Amazon and Ebay claiming to be Tower Pro are probably clones. Might explain why they don't adhere to the datasheet specs.

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

    Soundtrack is Arthur Tussik. :-)

  •  3 роки тому

    Hello Gary,
    Thank you for the nice intro, you're enticing me to use my Pi's GPIOs. Looks like fun!
    Well done moving the like/comment/subscribe/bell reminder to the middle. It may be problematic with the early leavers and the UA-cam auto-play feature or playlists. You may find convenient to use movie scripting principles, insert the reminder right at the middle point; the "point of no return" when you have your audience engaged and wanting more ;)

  • @Martin-fo9sj
    @Martin-fo9sj Рік тому +1

    Thank you, it saved me a lot of pain :D

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

    How you found the custom values for the min and max pulse width? How you know that these work for you?

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

    Excuse me Sir, why my raspberry always disconnected from the remote desktop after some minutes doing "Sudo pigpiod"?

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

    Hello Gary,
    I have been using the Raspberry Pi for a while now and we know how convenient it is to connect various sensors and modules using the GPIO pins.
    I recently found my Nordic Thingy 52 and realized I have the whole suite of sensors in one place that can be connected wirelessly to the Pi! I would like to know if there is an easy way for the two components to communicate?

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

    Excellent! Thank you!

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

    Thank you, This was a life saver :)

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

    Thank you

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

    Hello Gary,
    The sweep script is very nice. I'm new to Python as was wondering if there is an easy way to sweep from 70 to 110 º and back to 70º for just 100 cycles. Any help would be greatly appreciated.

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

    Can I use your method also on the Jetson Nano 2GB with a PCA9685 servo driver? 🤔
    My servo's are jittering too much.

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

    Thanks for this good explanation. :-)
    How can I add the terminal command "sudo gpiod" in the python script itself to start the deamon? And how to stop at at the end.
    Best regards.

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

    please make a tut for 360 servos

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

    how can i use two servos

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

    Hi ... I'm considering signing up for your newsletter, and was encouraged by your "no spam" statement. However, in the privacy policy linked from the sample newsletter it says "We use the information we learn from you to ... Send you newsletters, offers and promotions for our products and services, third party products and services, or special events by e-mail, text, or other another medium". Is there a way to sign up for the newsletter without getting spam from Android Authority? Thx.

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

      Unfortunately the privacy policy needs to be broad to cover every eventually and the complex nature of privacy laws on a global scale. It also covers more than just my newsletter. As I say in the video. If you sign up all you will get is my newsletter. Nothing else.

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

    oh nice. i guess this will make my autonomous weapon system a bit better. :-)

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

    Sweet!

  • @moatezbenabdallah7589
    @moatezbenabdallah7589 7 місяців тому

    What about Raspberry Pi 5 ?

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

    maybe i missed it. where did you get the servo.min() function? please treat us as noobs.

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

      It is part of gpiozero. The "servo" object is created first and then you can control it via that variable.

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

    Probably too bulky to shove all of them onto a remote plane
    The radar though, ooooh

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

    I don't understand why you call this motors SERVO-MOTORS: they are not SERVO, because they haven't any encoder for the feedback, then it's an open loop control, NOT a closed loop control. You will never be sure that the motor reaches the set position, you can do this only by means of a feedback that confirms the reached positions is the same as the set position

    • @MikePreston-darkflib
      @MikePreston-darkflib 3 роки тому +2

      Inside there is a potentiometer which encodes the current position, so they are servo motors.
      There are tutorials about how to change these servos into continuous rotation by modifying the pots.