PCA9685 16-Channel 12-Bit PWM Servo Motor Driver with Arduino.
ฝัง
- เผยแพร่เมื่อ 26 ม.ค. 2022
- The PCA9685 16-channel 12-bit PWM servo motor driver is used to control up to 16 servo motors using I2C communication with microcontrollers like Arduino and Raspberry Pi. It is used in applications involving use of many servo motors like in hexapods, quadcopter drones, robotic arms, spider robots and RC vehicles.
For code and schematics visit the link: mytectutor.com/how-to-use-pca... - วิทยาศาสตร์และเทคโนโลยี
i have been looking for an explanation as good as yours. awesome video.
Great explanation. Thanks for making this!
Great video. This was *exactly* what I was looking for, and you explained it very well.
Thanks for making this!
How can I control servo with this using Bluetooth?
Is it possible to control servos and motors on the same board at the same time?
I followed your code and everything is running like you said, but can I slow down the motors a little bit, thanks alot
One after the other is not the same as simultaneously. Did you try at least 2 together? Any lagging?
Where can get that adafruit library? Will not work without it.
Can it work with mg996r servo?
Something I noticed, you don't use the numberOfServos variable for some reason. If unused I would just remove it next time as it confuses the newer programmers on what is going on
what power supply you used (v,A)
Hi How to set up different angles to each servo and all should run at same time. code plz. Thanks.
I am trying to make a robotic arm can you make a video on it?
Perfect, great description.
Very nice video.
nice video!
I have all the pins in the right place, I installed the servo library, and I'm using a 5v power supply but nothing is moving no matter what code I upload
Hi bro. Have you done the project? My servo not moving. If you done plz help me
@@susmitasarkar6955 I ended up using a blender plugin for moving servos. It’s for animatronics, check it out!
Could you recommend a power supply for a beginner that will be good for variety of projects?
im a bginner myself i just bought 20 servos for a human robot project i use a portable charger i bought from walmart as my power supple and it works very well !
can someone help me my arduino and pca9685 doesn't even make my servo move :
I follow your all points. But motor not moving
Excellent explanation video. I have a question, What if I only need 5 Servo need to use this driver? which is better to use arduino PWM pins or servo driver PWM pins?
Theoretically you could put 6 servos on an Arduino Uno. But if you plan latter to add more, better go from the start with the PCA9685.
Also, making all the pwm working correctly together at the same time could be hard.
I never tried it, but I guess there is only one way to find out.
@@mylittleparody2277 Oh because PWM servo can't control servo together huh? and it can be done when we use this driver. Thanks for the explanation
@@AbdulRahman-jz3px Well, my bad.
I was thinking about doing it by hand, using the timers to control the PWM, and thus limiting the max number of servos to the timer output pins.
As it turns out, the official library allows to control 12 servos on an Arduino Uno (it disables the AnonlogOut()).
www.arduino.cc/reference/en/libraries/servo/
So, the best solution for you would be to use the Arduino Lib.
If you want to do it by hand, you need to set the timer to the first angle, and when the interrupt fires, set low the first servo's pin state, set high the pin for the second servo, reload the timer with the second servo, and wait for it to fire.
doing so and switching servos in a round manner would allow you to control multiple servos with one timer.
But it's probably easier to use the lib if you are not tied to bare metal.
could you potentially connect a female usbc soldering cable to the powersupply and get the power using a usbc charging cable?
yes, but just make sure that your load is below what your power supply can handle
I don't know why it's not working audrino is saying pwm library not exist
u have to add servomotor driver in arduino id
@@yahmedbacc8265 and how do you do that
@@-prime-4729 click Ctrl+shift+i search for adafruit pwm servo driver library and and then install it
Hello full code konjam send pannunga