Raspberry Pi Pico W LESSON 36: Control a Servo With MicroPython

preview_player
Показать описание
You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

In this class we will be using the Sunfounder Raspberry Pi Pico W Keppler Kit. It will make things a lot easier if we are working on identical hardware. the link below is to amazon, and is for the identical hardware I will be using in this entire class.

In this video, I will show you how to control a servo using the Raspberry Pi Pico W. I show how the servo position is controlled by the pulsewidth of a pulse sent to the control lead of the servo. Enjoy!

#raspberrypipicoW
#servomotors
#micropython
Рекомендации по теме
Комментарии
Автор

Paul, over the years you have given us countless enjoyable hours of interesting, useful, and challenging projects. Heart-felt thanks.

quaternion-pi
Автор

Thanks Paul! I always enjoy th math component of the lesson, makes the code very portable...

Ed-fvrl
Автор

Thanks Paul, I am from Vietnam and I have watched from the first videos on this topic

quockhanhla
Автор

This is a very informative and UNDERSTANDABLE VIDEO! THANK YOU PAUL!

larryplatzek
Автор

Thanks Paul. I was able to find your mistakes before I wrote them down in my notes, but I still made one before i ran my code. A could not have done that a year ago! I love the math, I cant do it without my notes and you telling me when I need to use it.

stephenlightkep
Автор

Projects are flowing much more consistent with since I've been learning from doing and watching your current and past streams
I wish you get into ROS1 noetic its still a powerful pkg combining server running operation.. ROS2 I'ma wait a little on that, Ros 1 makes a lot of
sense without repetitive command structure to mimnic and already sweat operation.

timothydemyers
Автор

Another Great video by @PaulMcWhorter.

TheTechRancher
Автор

Warning! Warning! Will Robinson... The Raspberry PI-5 is finally coming out! 🥰 More stuff to learn. 😎 Thank you Paul for the Servo example.

qzorn
Автор

One thing I havent seen addressed in any pico servo video Ive watch is dealing with the servo voltage when they are run at the correct voltage. The pico is 3 volts . Servos to include the one you are using should be run at 5 volts to get the best speed / torque. This would require running the servo at 5 volts and the pico at 3. So does something has to be done signal voltage?

bgrant
Автор

Servo is not fidget toy! 😂😂😂
Thank you sir, another amazing lesson.

luizbergo
Автор

Paul, why do we use 0.5 ms for a 0° angle and 2.5ms for a 180° angle, if the datasheet for the Micro servo SG90 specifies 1 ms for 0° and 2 ms for 180°?

urbansotensek
Автор

Nice explanation for controlling a servo without using a library. I take it silly dog videos are ok? : - ))

MrCameronMoore
Автор

my servo seemed to run in reverse: assuming 90degrees is straight up...0 degrees being fully clockwise (on the right) and 180 being fully counterclkws (to the left.) ?How to reverse the motion? well I used the absolute value after subtracting the max & min values.
revrsVal = abs((writeVal-8191-1638))
servo.duty_u16(revrsVal)
Now 0degrees = fully counterclockwise, 90degrees = straight up and 180degrees = fully clockwise

chapgeo
Автор

Hello sir. I had posted this question yesterday in the comments section of lesson 29 of your jetson nano series. I thought you might miss it, so I'm posting it here again. I feel awful about posting it in wrong place but I'm strugging to find a solution.

My project will have an x-y gantry for which I need to use stepper motors instead of servo motors. What gear and python libraries will I need to use stepper motors with the Jetson nano?

ronakvyas
Автор

Has anyone else have the issue of ads getting longer. No problem with 1 second ones but later there are 2 ads with a lenght of 5 mins. One is stupid game and the other is for a security camera.

davidgoldsmith
Автор

Paul, how do you "calibrate" the servo to actually move between 0 and 180 degrees. Your servo overshot most of the angles. Would you have to customize the code for each individual servo?

bobvines
Автор

HI Paul, I am a grade 9 student and currently working with Arduino, I am very interested in robotics, electronics, and physics, (things like motors, engines, and moving stuff). I am currently following your Arduino tutorial (not raspberry pi). Is there anything you would recommend for me to use? Like a new type of Arduino that is more focused on robotics, or anything else that would suit my needs?

Also, I have really liked your Arduino videos, easy to understand.
Thank you.

Abishkarplayz-cheese-pgku
Автор

Guys the new raspberry pi 5 just got released

ParshvaPatel-iblm
Автор

Hi sir I need some help I have Arduino pro mini I need to read code from Arduino pro mini in Arduino software I need to know how it's work can you please help me

alibhai-tndg
Автор

I do the actual assigned homework and some extra credit. Sorry it's so long but I think is has some good info.
Thanks Paul for all you do.

keithlohmeyer