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!
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!
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?
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 😁?
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.
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.
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 ;)
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?
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.
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.
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.
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.
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
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.
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
*GARY!!!*
Good afternoon Professor!
Good afternoon fellow classmates!
Stay safe out there everyone!
MARK!!!
Excellent primer to servo programming in Raspberry Pi, plus a practical application!
Bravo!!!
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!
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!
First!!! 😂
First to comment on first comment 😂😂
Gary Please Explain Harmony OS
lol!
Garry :) are the gpio pins interchable ?
Harmony OS is Android.
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!
Hey Gary,
Thanks so much for your concise tutorial. It helped me out so much with my camera tracking project
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?
Loved it! I plan to apply this to ESP32 S1 in CircuitPython. Fingers crossed.
Helped me loads my servos so smooth now well happy mate
REALLY NICE!
The most guides are a bit old and not so detailed. Looking forward to see more! (As always!)
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 😁?
Excellent! This was great and I'm already looking forward to the radar video.
You and me both!
Your channel is very good information I used is on the point with the code
Man, I was looking for this for dayss!
absolutely amazing video sir. may god bless you. my project is now saved.
Good vid! Look fwd to see the radar in operation.
Thank you so much. I really enjoyed this video. It was very helpful.
Thanks million ,it also works on MS995 servo
maaaan, that's incredible! This really worked, thank you!
Very well explained. Can you please make a video on how to open/close a prosthetic arm using a servo. @Gary Explains
Thanks, nice explanation.
very nice video👍 👍 👍
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.
Did you find out?
@@shadbud9198 worked for me for a pan tilt setup
This was very helpful! Thank you!
Garry, Thank you for this video :-)
I subed because I love the into!
Can u pls show how to reverse rotation of newer towerpro sg90
Hi, I have to type after every reboot or normal Start: sudo pigpiod. Otherwise an error appears. How can I change that?
very helpful video sir thank so much
I think you might find using a PCA9685 servo controller will make things much easier for you.
Form some reason, my servos won't stop at the min/mid/max positions, but instead just continue to rotate in whatever direction indefinitely
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.
Soundtrack is Arthur Tussik. :-)
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 ;)
Thank you, it saved me a lot of pain :D
How you found the custom values for the min and max pulse width? How you know that these work for you?
Excuse me Sir, why my raspberry always disconnected from the remote desktop after some minutes doing "Sudo pigpiod"?
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?
Excellent! Thank you!
Thank you, This was a life saver :)
Thank you
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.
Can I use your method also on the Jetson Nano 2GB with a PCA9685 servo driver? 🤔
My servo's are jittering too much.
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.
sudo gpiod = "sudo pigpiod"
please make a tut for 360 servos
how can i use two servos
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.
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.
oh nice. i guess this will make my autonomous weapon system a bit better. :-)
Sweet!
What about Raspberry Pi 5 ?
maybe i missed it. where did you get the servo.min() function? please treat us as noobs.
It is part of gpiozero. The "servo" object is created first and then you can control it via that variable.
Probably too bulky to shove all of them onto a remote plane
The radar though, ooooh
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
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.