Тёмный

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

Paul McWhorter
Подписаться 379 тыс.
Просмотров 7 тыс.
50% 1

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:
/ paulmcwhorter
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.
amzn.to/3ubMRs1
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!
[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. ]
#raspberrypipicoW
#servomotors
#micropython

Наука

Опубликовано:

 

25 сен 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 73   
@quaternion-pi
@quaternion-pi 10 месяцев назад
Paul, over the years you have given us countless enjoyable hours of interesting, useful, and challenging projects. Heart-felt thanks.
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
Thanks! Appreciate having on the channel.
@larryplatzek9017
@larryplatzek9017 10 месяцев назад
This is a very informative and UNDERSTANDABLE VIDEO! THANK YOU PAUL!
@Ed-fv9rl
@Ed-fv9rl 10 месяцев назад
Thanks Paul! I always enjoy th math component of the lesson, makes the code very portable...
@quockhanhla8339
@quockhanhla8339 8 месяцев назад
Thanks Paul, I am from Vietnam and I have watched from the first videos on this topic
@paulmcwhorter
@paulmcwhorter 8 месяцев назад
Welcome!
@TheTechRancher
@TheTechRancher 10 месяцев назад
Another Great video by @PaulMcWhorter.
@scottwait3585
@scottwait3585 10 месяцев назад
Thank you Paul!
@deniszawad
@deniszawad 10 месяцев назад
Great time good info.
@stephenlightkep1621
@stephenlightkep1621 10 месяцев назад
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.
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
Excellent!
@TheUnofficialMaker
@TheUnofficialMaker 3 месяца назад
you have the gift!
@qzorn4440
@qzorn4440 10 месяцев назад
Warning! Warning! Will Robinson... The Raspberry PI-5 is finally coming out! 🥰 More stuff to learn. 😎 Thank you Paul for the Servo example.
@luizbergo
@luizbergo 10 месяцев назад
Servo is not fidget toy! 😂😂😂 Thank you sir, another amazing lesson.
@timothydemyers7520
@timothydemyers7520 10 месяцев назад
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.
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
Welcome back!
@bgrant1512
@bgrant1512 6 месяцев назад
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?
@ronakvyas6595
@ronakvyas6595 10 месяцев назад
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?
@MrCameronMoore
@MrCameronMoore 3 месяца назад
Nice explanation for controlling a servo without using a library. I take it silly dog videos are ok? : - ))
@deniszawad
@deniszawad 7 месяцев назад
Mavelous
@chapgeo
@chapgeo 10 месяцев назад
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
@drdentin3215
@drdentin3215 10 месяцев назад
My homework for lesson 35. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2RBpyZ0GkdM.html I have been binging several astrophotography channels. I think the McWhorter following would appreciate this hobby. A lot of moving parts that need to work together. I digress. One of the presenters mentioned "silly cat videos" before ending the video. I had to smile. (Sorry I posted this on lesson 35 by mistake)
@urbansotensek4996
@urbansotensek4996 4 месяца назад
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°?
@bobvines00
@bobvines00 10 месяцев назад
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?
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
Just adjust the math. Find the write pwm value that puts the servo exactly at 180 then use that value in your equations of the line.
@Abishkarplayz-cheese-pg7ku
@Abishkarplayz-cheese-pg7ku 10 месяцев назад
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.
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
Start by going through all the arduino lessons, then do the Pico Pi lessons.
@Abishkarplayz-cheese-pg7ku
@Abishkarplayz-cheese-pg7ku 10 месяцев назад
@@paulmcwhorter Thanks, is there a set I need to buy online?
@TheTechRancher
@TheTechRancher 10 месяцев назад
Here is my Homework solution Link: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-WSLRbilrPH8.html Can't wait until the Trigonometry classes. 😃
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
LEGEND!
@ParshvaPatel-ib9lm
@ParshvaPatel-ib9lm 10 месяцев назад
Guys the new raspberry pi 5 just got released
@alibhai-tn8dg
@alibhai-tn8dg 10 месяцев назад
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
@charlotteswift
@charlotteswift 9 месяцев назад
Here's the link to my belated homework: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6i-pvMppmaE.html
@arnoldschmucker9977
@arnoldschmucker9977 10 месяцев назад
Redid the assignment per instructor suggestion so that the servo direction of rotation matches the potentiometer direction. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OU6QtEfFPS8.html
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
LEGEND!
@keithlohmeyer
@keithlohmeyer 10 месяцев назад
Homework submitted ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-aoL7jmaUhrQ.html 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.
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
Great video, thanks for sharing.
@jameslewellen150
@jameslewellen150 10 месяцев назад
What's a figet?? Long after my time.
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
Wow, Fidget is a very old word, even going back to my childhood. To fidget means to sort of release nervous energy by performing useless movements. The dictionary defines it as: Fidgeting is the act of moving about restlessly in a way that is not essential to ongoing tasks or events. Fidgeting may involve playing with one's fingers, hair, or personal objects. In this sense, it may be considered twiddling or fiddling. When I was growing up, fidgeting was viewed as a bad thing, or annoying behavior. Children were encouraged not to fidget. Nowdays, they try to give kids non-annoying ways to fidget, so they make fidget toys to allow release of the nervous energy in a harmless way.
@davidgoldsmith7475
@davidgoldsmith7475 7 месяцев назад
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.
@LorisHW
@LorisHW 8 месяцев назад
Getting caught up on lessons. Here is my HW: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-XuN6y1kvn-o.html. Thanks for the great lessons Paul!
@paulmcwhorter
@paulmcwhorter 8 месяцев назад
LEGEND!
@DrDave327
@DrDave327 10 месяцев назад
Thanks so much, Paul, for this awesome content! Here is my solution to your homework assignment. I was able to calibrate the servo using math, as you suggested in the comments.: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VnmLOB5zxcY.html
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
LEGEND!
@jimworden9021
@jimworden9021 5 месяцев назад
Homework for lesson 36 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-WE1hHaHAG88.html Thanks, Paul
@paulmcwhorter
@paulmcwhorter 5 месяцев назад
LEGEND!
@scottpettygrove7821
@scottpettygrove7821 10 месяцев назад
Homework solution here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Gf7Zfk-_3mw.htmlsi=4u0ix22EdGDlRkW2 Thanks for all the great content, Paul. Love the way you approach tech education.
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
LEGEND!
@alistaircook1997
@alistaircook1997 10 месяцев назад
Thanks for another great lesson Paul, my homework for lesson 36: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tCtxIg1BVz8.html
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
LEGEND!
@Rasspor
@Rasspor 10 месяцев назад
My servo is not a fig-it toy.
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
EXACTLY!
@abuahmedyahya3589
@abuahmedyahya3589 10 месяцев назад
ESP32 board is very important and very useful than Arduino and Pico
@lr3050
@lr3050 10 месяцев назад
My servo is not my fidget toy
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
EXACTLY!
@garethhunt6220
@garethhunt6220 10 месяцев назад
my fidget toy is not a servo!
@paulmcwhorter
@paulmcwhorter 10 месяцев назад
EXACTLY!
@abuahmedyahya3589
@abuahmedyahya3589 10 месяцев назад
Hi Paul. I think it is better to produce IOT with ESP32 course than this useless Pico course
Далее
Smart Sigma Kid #funny #sigma #memes
00:26
Просмотров 7 млн
Linus Torvalds: Speaks on Hype and the Future of AI
9:02
How To Use A Relay With Raspberry Pi Pico
11:59
Просмотров 24 тыс.
JPEG is Dying - And that's a bad thing
8:09
Просмотров 100 тыс.
Nokia 3310 top
0:20
Просмотров 4,3 млн