How to use an Adafruit 16-Channel PWM HAT with a Raspberry Pi to Control Sixteen Servos

How to use an Adafruit 16-Channel PWM HAT with a Raspberry Pi to Control Sixteen Servos

Core Electronics

2 года назад

26,191 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@GunnerAl9
@GunnerAl9 - 28.01.2024 00:30

I'm confused on how the code you wrote gets from the Pi board into the Adafruit 16 Channel Servo Breakout Board? Does the sketch changes get loaded onto the processing board automatically as you change them, or is that a save command in the program. I have no experience in coding and I have to modify some servo movements for my R2D2 Droid for the halo projector lights. A great video, I learned a lot. Good verbal speed and very clear voice. Thank you.

Ответить
@ZenHulk
@ZenHulk - 05.01.2024 06:55

all i have is 6 or 7 volt servos and there is no help anywhere on planet earth

Ответить
@alexwu8502
@alexwu8502 - 18.12.2023 23:02

Hi Tim at Core Electronics,

I am Alex. I currently doing the work at my workplace. I am trying to find ways to use the Raspberry Pi System to make 6 or 8 servomotor running . I have a question as the information listed below:

1. I know you told me that you used the Adafruit 16 channel PWM Servohat to make more than 2 servomotor running. How many gpio pins do I need to make more than 2 servomotor running with the PWM servohat ?

2. Is it necessary for me to connect all the pins from the PWM servohat to the Raspberry Pi Model 3 Computer Board?

Ответить
@Toni73RU
@Toni73RU - 14.12.2023 02:43

А сколько максимум серво моторов можно подключить?

Ответить
@manyasterisks
@manyasterisks - 13.12.2023 22:22

Would it be possible to use this to tune motor RPM to chromatic note frequencies?

Ответить
@Videogame9559
@Videogame9559 - 18.11.2023 12:42

Hi would this work motor control board shim or hat small one

Ответить
@AnthonySherritt
@AnthonySherritt - 03.10.2023 23:08

This is terrific! I have my eye on doing animatronics. What would be a good library for sequencing/tweening servo settings?

Ответить
@abu8422
@abu8422 - 24.07.2023 16:30

Can I also control 16 12V DC motors ??

Ответить
@kavorka8855
@kavorka8855 - 20.05.2023 03:27

Hi, I didn't see you controlling all at the same time. I mean, simultaneously. Did you try that yourself? Thanks!

Ответить
@ahmedsherif6110
@ahmedsherif6110 - 07.01.2023 09:06

Is there any way to use PCA9685 with AVR? Cause I've tried hard to write a driver to it, but I faild.

Ответить
@antitialaman7301
@antitialaman7301 - 06.12.2022 17:09

Hello 😊

I'm stuck, I have my Raspberry Pi Zero, my PCA9685 and my servo, but the servo doesn't move. I think maybe you need extra power, maybe it's not enough with just Pi Zero, I don't know if you can confirm this for me. Because I imported the libraries and used your code and I didn't have any errors.

Another idea is... The pca9685 was sold to me broken (but it has a red light whren it is comnected).

Ответить
@urkoolabarria4163
@urkoolabarria4163 - 04.12.2022 20:33

Looks great. I have the material to build something similar synchronizing the sound with the movements. Where could I find a document with all the steps starting from 0? I need to read it slowly as a total beginner Thanks!

Ответить
@redpandarules3793
@redpandarules3793 - 28.11.2022 18:32

Hello! Thank you for the tutorial! One of the most well explained ones I found!
I managed to get 16 servos running, but I would like to go even further (Big project)
If I were to connect a second board in (SLA, SDA) continuation, then the 2 boards would have different addresses. How would this change the code? Is there a way to select the address when initializing the ServoKit function?
Thank you for your time and the tutorial again!

Ответить
@ihmSelbst
@ihmSelbst - 18.11.2022 21:42

Can it runs 16 Motors at the same time?

Ответить
@Shiven34567
@Shiven34567 - 04.11.2022 13:57

Would this work with regular DC motors

Ответить
@thedude2897
@thedude2897 - 21.10.2022 23:06

I have a ghostbusters trap that someone made. Has a chip in it and servos for the doors. They don't work right. So I can't just swap them out? I'd have to reprogram the new ones?

Ответить
@shailigupta4086
@shailigupta4086 - 12.10.2022 10:16

May you tell about how to program if we want to run 5 servomotor simultaneously.

Ответить
@johnconnor6735
@johnconnor6735 - 05.10.2022 00:57

is it possible for a raspberry pi to control a larger motor, like a windshield wiper motor or larger dc motor that can aid in helping a disabled person walk as long we we power it seperatley?

Ответить
@Videogame9559
@Videogame9559 - 20.09.2022 20:32

Hi would do this with controlling it with flysky receiver and audunio or raspberry pi any help please

Ответить
@krishnakanthajith2350
@krishnakanthajith2350 - 21.08.2022 04:58

Could you tell me how we can chain two pca9685 using this python library

Ответить
@Didanihaaaa
@Didanihaaaa - 19.08.2022 06:13

Good job. I have a question. I want to rotate the servo and once it done I want to clean the pin. I see that is done in GPIO by calling stop method however I am not sure how to stop using adafruit hat. My experience shows that the servos tend to gitter while trying to stop at a constant position. thanks for help.

Ответить
@whitneydesignlabs8738
@whitneydesignlabs8738 - 12.08.2022 19:03

Great tutorial and great code. Thanks for the help. Got this board up and running and testing with a servo in minutes.

Ответить
@floridian080
@floridian080 - 24.07.2022 05:54

Great tutorial, thank you. Is there a hat with built in potentiometer(s) that could be used to control the servos? Otherwise potentiometer control would require a chip such as mcp3008 and the libraries to work with it.

Ответить
@martinled7493
@martinled7493 - 12.07.2022 10:00

Hi. This is a very detailed video thank you for that. I'm done with the soldering part and have put the hat on my pi. But do you know if it can run one servo without additional power to the hat? and only use power from the pi? I want a portable setup to control the servo on my RC car :)

Ответить
@ozcanison
@ozcanison - 07.06.2022 17:54

What about moving multiple servos at the same time, instead of in sequence?

Ответить
@robertoamaya6980
@robertoamaya6980 - 07.06.2022 04:54

Amazing
I want to write a app python for this.

Ответить
@chattarikapollaor2973
@chattarikapollaor2973 - 24.05.2022 15:59

Hi Tim, I am wondering that instead of using Adafruit 16-Channel PWM / Servo HAT for Raspberry Pi - Mini Kit, can I use another servo driver which is the PCA9685 and go with the same of your code and method/process that you have made to control multiple servos?

looking forward to your advice ^^
Thank you

Ответить
@tishinpadilla100
@tishinpadilla100 - 09.05.2022 04:29

"Very Satisfying." That hat close-up footage is very good.

Ответить
@oskarmozdzen2697
@oskarmozdzen2697 - 08.04.2022 23:09

Can I control 6 7,4V servo motors with this controller?

Ответить
@RolandsZeltins
@RolandsZeltins - 06.04.2022 21:14

Thank you for awesome, video.
I couldnt get in my country any Raspberry Pi model except that with keyboard Raspberry Pi 400

My qesution is, how do I align, correctly pins using GPIO Ribbon Cable for Raspberry Pi Model A+/B+/Pi 2/Pi 3/Pi 4 - (40 pins)?

Because side what goes in Raspberry Pi 400 is marked and goes in only one way, buy other side I can plug in bouth ways in Adafruit 16-Channel PWM / Servo HAT for Raspberry Pi - Mini Kit

Need help.

Ответить
@mike0rr
@mike0rr - 12.03.2022 14:27

So does this shield just reduce the amount of wires needed to control several servos using I2C, or does it do more.
I was mostly wondering if this still uses software to control the servos or if it's hardware. Just overthinking things and looking into getting rid of servo jitter on a project.

Ответить
@ToPProjectsCompilation
@ToPProjectsCompilation - 12.02.2022 12:35

Hey, your projects are really amazing. We want to feature them on our channel. There is no money involved. If it sounds good, then please reply. Just have a look at our channel to get a clear idea.

Ответить
@si9lix6
@si9lix6 - 20.01.2022 19:20

Thanks for the video, helped me a lot! Just one question: It looks like the hat uses all the GPIO pins of the Raspberry Pi. Does this mean I can‘t do anything else with the Pi like for example connect an IMU?

Ответить
@instaZeki_
@instaZeki_ - 16.01.2022 19:52

can i control a servo with a 2811 ic? For each color chanel one servo

Ответить
@syedhasanaskaririzvi3659
@syedhasanaskaririzvi3659 - 11.01.2022 08:15

The final code can be shortened by using loop.

In setup section above the while loop we can have one for or while loop for variable say i to go from 0-15. Then we can just put one line and instead of number put i.

Same in while loop we can have 2 loops one for the n where we can use this n as t/n and in that loop we can have a nested loop for value say j to go from 0-15. And now just replace whole with only 3 lines and place j instead of number.

And there you have it. A reduced code with same functionality.


Though hat's off to the creators and for well explained tutorial 🔥

Ответить
@cx3268
@cx3268 - 10.01.2022 09:24

S0 for example, told to go to 0 position. Mill the motor try to hold it at 0 position if force is presented to rotate it?
OR does the controller release power to that servo after it gets to its position.
OR can you tell it to release power to hold position for any one of those servos?

Ответить