Raspberry Pi Servo Motor Control - No Jitter!

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024

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

  • @GaryExplains
    @GaryExplains  3 ปีที่แล้ว +46

    First!!! 😂

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

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

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

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

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

  • @LuisWOLF-tz5th
    @LuisWOLF-tz5th 13 วันที่ผ่านมา

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

  • @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 2 ปีที่แล้ว

    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!

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

  • @moriartymw
    @moriartymw 7 วันที่ผ่านมา

    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.

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

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

  • @pisceesian1
    @pisceesian1 หลายเดือนก่อน

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

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

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

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

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

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

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

    Helped me loads my servos so smooth now well happy mate

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

    Thanks million ,it also works on MS995 servo

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

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

    Thanks, nice explanation.

  • @FourTweny
    @FourTweny 10 หลายเดือนก่อน

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

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

    very nice video👍 👍 👍

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

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

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

    Man, I was looking for this for dayss!

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

    This was very helpful! Thank you!

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

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

    Garry, Thank you for this video :-)

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

    very helpful video sir thank so much

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

  •  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 TH-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 ;)

  • @ToxicBananaFish
    @ToxicBananaFish 11 หลายเดือนก่อน

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

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

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

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

    Soundtrack is Arthur Tussik. :-)

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

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

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

    I subed because I love the into!

  • @Martin-fo9sj
    @Martin-fo9sj ปีที่แล้ว +1

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

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

    Excellent! Thank you!

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

    Thank you, This was a life saver :)

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

    Thank you

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

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

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

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

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

    please make a tut for 360 servos

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

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

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

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

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

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

    Sweet!

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

    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.

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

      sudo gpiod = "sudo pigpiod"

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

    how can i use two servos

  • @moatezbenabdallah7589
    @moatezbenabdallah7589 4 หลายเดือนก่อน

    What about Raspberry Pi 5 ?

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

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