No video

controlling lots of servos with a Raspberry Pi Pico

  Рет қаралды 13,236

pileofstuff

pileofstuff

Күн бұрын

Today I'm playing, experimenting and generally tinkering with the Raspberry Pi Pico microcontroller.
My review of the PiPico starter kit: • Review: Elecrow Raspbe...
Here's one of the resources I used to research this video: microcontrolle...
Elecrow Raspberry Pi Pico Advanced Kit with 32 Modules and 32 Projects Lessons
pileofstuff.ca...
Here's the manual: www.elecrow.co...
-----
My tip jar: / pileofstuff
My other tip jar (channel membership) : / @pileofstuff
If you are OK with me getting a commission on your purchases, feel free to use my affiliate links:
Ebay: ebay.to/33IF7PA
Banggood: pileofstuff.ca/...
Some other links to products may be affiliate links
odysee.com/@pi...
#ElectronicsCreators
-----
This isn't the only way to do it.
It's probably not the best way to do it.
But it's how I did it.

Пікірлер: 45
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist Жыл бұрын
Nice to see an example to show there is life outside libraries, this helps the beginner's understanding of how the hardware actually works. This could lead to them thinking I could increase the pwm frequency add an RC low pass filter and now I've got an analogue output. Nice video
@fredflintstone1
@fredflintstone1 Жыл бұрын
Meow!!!!!!!!!!!!!!!!!!!!!!
@andymouse
@andymouse Жыл бұрын
@@fredflintstone1 Squeak !
@andymouse
@andymouse Жыл бұрын
good idea !
@fredflintstone1
@fredflintstone1 Жыл бұрын
@@andymouse Cheese!!!!!!!!!!!!!!!!!!!!!!!
@RandomBitzzz
@RandomBitzzz Жыл бұрын
Great example of how to do this. Nuggets like this are great as starting points for bigger, more complex projects.
@jimlynch9390
@jimlynch9390 4 ай бұрын
Thank you. I really enjoy watching these types of videos.
@retireeelectronics2649
@retireeelectronics2649 Жыл бұрын
That was good for a chuckle, 15 servos and a pico, very nice.
@Videogame9559
@Videogame9559 8 ай бұрын
Thanks for this your only one explained you don't need servo driver board it's usually one servo running. I've got skulls jaw moving up and down on poreject skull.
@oracid
@oracid Жыл бұрын
Thank you very much !
@andymouse
@andymouse Жыл бұрын
Nice and to the point !
@fredflintstone1
@fredflintstone1 Жыл бұрын
What a fun video and informative great🙂
@Videogame9559
@Videogame9559 8 ай бұрын
That great news I only need 3 servo to work and. Could not get PAC9685 servo control board to work. I'll give it a go thanks great video
@frankowalker4662
@frankowalker4662 Жыл бұрын
Cool. Nice rats nest. :)
@Bob_Burton
@Bob_Burton Жыл бұрын
08:20 I was surprised to see a value of 9000 microseconds used as the top value in the for loop because I am under the impression that the top value for a servo should be 2000 microseconds
@conorstewart2214
@conorstewart2214 Жыл бұрын
That value is not microseconds, it is the number that the hardware pwm module counts to. The hardware PWM here is using a 16 bit counter and has a frequency of 50 Hz that means that 50 times per second that counter counts up to 65535 (there are 65535 counts per 20 ms), so then you can divide the period of 50 Hz (1/50) with the value it counts to (65535), which gives you that every count equals 305 ns, now if you multiply that by 9000 counts you get 2747 microseconds. It could be done better to get you exactly what you need like 2500 microseconds would be 8192 counts, here they probably just chose a round value like 9000 and went out of range of the servos, which isnt recommended.
@conorstewart2214
@conorstewart2214 Жыл бұрын
Also different servos sometimes use different min and max values, sometimes they can get better resolution if they go from like 0.5 ms to 2.5 ms or something like that, rather than the standard range of 1 ms to 2 ms, by going to 0.5 - 2.5 ms they get double the resolution.
@aqib2000
@aqib2000 Жыл бұрын
This is a good beginning but I was hoping for 2 simultaneously operation not just one after the other
@pileofstuff
@pileofstuff Жыл бұрын
That's not much different. Just send the same value to multiple servos at the same time.
@aqib2000
@aqib2000 Жыл бұрын
@@pileofstuff that’s not what I meant
@shroomy7199
@shroomy7199 Жыл бұрын
I like this
@brettb.345
@brettb.345 Жыл бұрын
My brain was in fact screaming “no, use an array with loops.” 😊
@pileofstuff
@pileofstuff Жыл бұрын
I know, I know... ;-)
@jyvben1520
@jyvben1520 Жыл бұрын
great demo, adding the power board was essential, the base for an 8 legged (16 feet) insect or a snake ... could be remote controlled when used with a Pi Pico Wireless ... 5 volts wasn't needed for the pico, does the servo need it ? a 1650 + stepdown convertor to 3.3V is probably enough to make it mobile.
@wrxs1781
@wrxs1781 Жыл бұрын
If you delve into the realm of new model airplane controls running on 2.4 ghz, you can remote control up to a mile away, line of sight.
@kyleallred984
@kyleallred984 Жыл бұрын
With the holidays approaching any projects planned for decor?
@pileofstuff
@pileofstuff Жыл бұрын
Wait... People think I actually plan ahead? 😉
@kyleallred984
@kyleallred984 Жыл бұрын
@@pileofstuff well, more specifically has the wife asked for anything to be made😁
@tinygriffy
@tinygriffy Жыл бұрын
a robot playing some sort of string instrument perhaps ?
@pileofstuff
@pileofstuff Жыл бұрын
Or waving 16 surrender flags after trying for too long...
@dtec30
@dtec30 Жыл бұрын
hmm wonder if you could make a servo analogue clock
@pileofstuff
@pileofstuff Жыл бұрын
As long as you spread the numbers around 180 degrees on the display (or add some gearing) it should be possible. Though the hands wound need to "rewind" to the start each day.
@nidzdotnet76
@nidzdotnet76 3 ай бұрын
or just get a PCA9685 that has header pins for the servo plugs and use that to plug all the servos in and then interface it with the PICO.
@pileofstuff
@pileofstuff 3 ай бұрын
There's plenty of valid ways to get to the same place.
@ericblenner-hassett3945
@ericblenner-hassett3945 Жыл бұрын
defining individually or a loop setting an array is ineficient compared to HEX data.. and way beyond most ' beginner ' videos and totally take away from 16 servos on one Pi PICO being adressed individually.
@ArjanvanVught
@ArjanvanVught Жыл бұрын
Although I am not in favor of the Pico, I do still like the video :-)
@kndskjnjdsksns
@kndskjnjdsksns Жыл бұрын
is it ok with 360 degrees?
@pileofstuff
@pileofstuff Жыл бұрын
I would assume so - I don't have any 360 degree servos to experiment with.
@user.A9
@user.A9 6 ай бұрын
Micropython or circuitpython?
@pileofstuff
@pileofstuff 6 ай бұрын
In this case, I was using micropython.
@whodatdere1
@whodatdere1 Жыл бұрын
1337 Great time
@jyvben1520
@jyvben1520 Жыл бұрын
13:37 is the end of the video
@whodatdere1
@whodatdere1 Жыл бұрын
@@jyvben1520 Look up 1337 meaning. You'll understand what I mean :)
@ZenHulk
@ZenHulk 7 ай бұрын
Why don't you all stop believing that a 9gram servo is a servo its nothing can do nothing works for nothing, most of them don't work out of the box.... LETS PUT 10 25kg or 40kg servos on the raspberry pi and watch it explode. i am so tired of 9gram servos being the test for everyone who thinks they're making a good video.
@pileofstuff
@pileofstuff 7 ай бұрын
The 9 gram ones are really cheap, which makes them approachable for beginners. The better ones can become prohibitively expensive if your project needs more than couple. Regardless, the control method is the same, so this demonstration is still valid no matter which servomotors you prefer to use.
Raspberry Pi Servo Motor Control - No Jitter!
13:52
Gary Explains
Рет қаралды 53 М.
Review: Elecrow Raspberry Pi Pico Advanced Kit
20:17
pileofstuff
Рет қаралды 7 М.
Кадр сыртындағы қызықтар | Келінжан
00:16
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 13 МЛН
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 27 МЛН
КАКУЮ ДВЕРЬ ВЫБРАТЬ? 😂 #Shorts
00:45
НУБАСТЕР
Рет қаралды 3,4 МЛН
Raspberry Pi Pico W LESSON 36: Control a Servo With MicroPython
36:02
Hacking my garage door with the Raspberry Pi Pico W
11:50
Jeff Geerling
Рет қаралды 339 М.
The Pi Pico has problems, so I made my own, the ProPico
7:17
Dmytro Engineering
Рет қаралды 37 М.
How to Control an RC Servo with a Raspberry Pi PICO
18:17
Making Stuff with Chris DeHut
Рет қаралды 3,2 М.
Raspberry Pi Pico Stepper Motors via PIO
25:17
Tinker Tech Trove
Рет қаралды 60 М.
How To Use A Servo With Raspberry Pi Pico
11:49
Core Electronics
Рет қаралды 20 М.
Raspberry Pi Pico W: Wireless Weather Station
17:13
ExplainingComputers
Рет қаралды 286 М.
Кадр сыртындағы қызықтар | Келінжан
00:16