You are a godsend, this was soo helpful. I just couldn't find a library as good as the one you found. And you explained it so well thank you! This has saved me so much time
Thank you thank you. All newbies need to start with a simple code that we can alter or build or, more importantly learn from. After many days searching, I found this. Not too fast...not too long. Brilliant.
Thankyou for this , I have the servo board and this tutorial is just what I need to start playing, I've run servos from pots using the PWM outputs but this looks far better as it doesnt tie up the processor for timing
I keep getting 'HCPCA9685' does not name a type; did you mean 'PCA9685'? Could you update or double check this code, please? I keep getting lots of errors...
I'll try to make another video with a linear slider and using a cell phone bluetooth to control the servos when I have some time. Thanks for the suggestion and for watching!
amazing. You are using the 5v 2A to power those big servos. How many of the smaller ones can you power with that? I have a 5v 1.3A source (cellphone charger) how many you think i can power?
I don't know what i am doing wrong, i can't control the servo motors :((((((((((( I can see the values came from monitor serial made by joystick, the servo motors response when I connect in the power... but i don't know what I have to do, to response. :(((((((((((((
This worked great for me,managed to mod the code to run multipul analogue inputs and more servos on an arduino mega... can you explain how you arrived at the value of 10 - 420 for mapping? it works great im just curious how the map function relates to the 1-2ms pulse width servos need. presumeably that means 205 is centre..
+ Brainy-Bits very cool tutorial!👍🏻 I have two questions, I didn't note that u used a common GND for both arduino board and the external power supply which u used to power the servo motors, didn't u do that? Then, is there any way to get rid of that noises when servo motor isn't in the position zero? Or it's something normal? And thx 😊
Good questions... The PCA9685 module takes care of the common GND since the module is powered by the UNO 5v and GND: You can check out the schematic here: brainy-bits.com/tutorials/control-multiple-servos-with-joystick For your second question, can you clarify what you mean by noise and position zero? Do you mean to make the movements of the Joystick less sensitive so the servos don't jitter as much? Thanks for watching btw :)
Brainy-Bits thank u for ur reply :) I meant, when the servo motor starts rotating for example to 90 degree position, it keeps vibrating (even gently) and u can hear it makes a loud tickity-tickety noise as long as it's stay in the new position (which is 90 degrees in my example), but, as it rotates back to its previous position, the sound disappears and it's quiet again!
Can a 4 channel system using 2 joysticks be done on a single arduino module? What resistance range do the potentiometers in the joysticks need to be? Can you make a video for a 4 channel system?
What power source do I need to move these servos? When I try an 7.4V LI-PO accum with a L7806 stabilizer, it can power up 2 servos only. If more, stabilizer becomes extremely hot and nothing works at all.
I want to build a hexapod robot with 12 micro servos sg90 (+- 200mA/servo), arduino uno, and pca9685 to drive all of the micro servo sg90 (12 servos); What do you think if i use 1 power supply from UBEC DC-DC regulator that has 8A-15A and 6V output ? And if i use 1 power supply from UBEC, is it better to connect the power supply to arduino uno or connect it to pca9685? why? thanks :)
Hi! I couldn't understand one thing because my English not good enough. My A4 A5 pins not empty I connected a sensor it is using these pins. If I understand truly I need to change the code with 0x70 and also I need to add resistors A4 and A5 pads. Am I right? Right here the second question Am I gonna use the resistors under these pads?
gracias por tu explicación. quisiera saber como modificar el codigo para mover los servos con un modulo bluetooth usando la pcb 9685 e intentado pero no lo logro
Can I use this code with a raspberry pi zero w? Would the pin configuration be the only difference between Arduino and raspberry pi? If not, do know where I can find python code to run a joystick with a PCA9658 and a pi? Thank you very much!
Yes it should work the same if you use a Mega since we are not using any interrupt pins which are different between the UNO and the MEGA. Thanks for watching!
Hi Tim, thanks you for pointing that out! I've gone ahead and fixed the link. You can go ahead and get the library now: brainy-bits.com/blogs/tutorials/control-multiple-servos-with-joystick Thanks for watching!
@@BrainybitsCanada PAGE NOT FOUND error. What library is used for this tutorial? There are multiple libs available for the PCA9685 in the IDE. Thanks in advance for your prompt reply; I noticed other viewers have asked the same question.
@@jeffrey-deitch Changed website a while back so some link are now broken, but you can use the Search to find them... Here's this one: www.brainy-bits.com/post/control-a-lot-of-servo-motors-using-a-joystick-arduino-and-pca9685-pwm-module
I'll keep that in mind for future videos. I have a couple of tutorials that use LEDs on my channel if you want to check them out: ru-vid.com/group/PLIt5AwStAEE6OqKoKUloO5-Iig7h3WVpQ
Brainy-Bits i forgot to mention that I want to use this as Like a part of a network so it would be awesome if ou could also show how to put a battery onto the nano
I keep getting this error message: C:\Users\miles\AppData\Local\Temp\.arduinoIDE-unsaved2023627-21676-ndttoc.exchg\sketch_jul27a\sketch_jul27a.ino:12:10: fatal error: HCPCA9685.h: No such file or directory #include "HCPCA9685.h" // Include the HCPCA9685 library created by Andrew Davies ^~~~~~~~~~~~~ compilation terminated. exit status 1 Compilation error: HCPCA9685.h: No such file or directory