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.
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...
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
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. :(((((((((((((
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?
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 :)
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.
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!
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?
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!
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!
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
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
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!
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: ruclips.net/p/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
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
Always great to hear that the tutorials are helping others! Thanks for watching!
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.
Hello... I can't find "PCA9685 Library". How can I find it?
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...
Thanks for this, i hooked mine up and none of the servos move, the power off the servo power pins is less than 1V on all of them, is that normal?
Great video! Can all servo motors be controlled individually simultaneously? If so, is there any appreciable delay? Thanks!!
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
Thanks Brainy -Bits,
I would also be interested in control the servos by bluetooth
Thanks for the video but the download of the PCA9685 PWM Module Library created by Andrew Davies from your website fails. Hope you can fix that.
this was super help full! So why isn't this used on 3d printers? Would this also be used for driving led's, what about the SX1509?
There's an adafruit version of this PCA, is there any significant difference between the two, do you think it's better ?
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?
If I have to power up the Arduino and the module with just one battery, which one could I use?
What resource has the joysticks? Can the movement be saved to an SD card and be replayed when an external trigger is activated?
what power supply did you use?
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. :(((((((((((((
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?
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 :)
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.
Awesome, thanks 👍
Just fyi: when I click on your channel it says "This channel does not have any content" 🤔
Bit strange 🤕
I guess it to old to use this teaching, I tried to download the HCPCA9685 library and page not found.
the library used in the code and the one in the download link on the web page isnt the same
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!
Is 2amps enough for all 4 of them??
how to link gyrompU6050+ PCA9685 on Same arduino nano
can i control 12 servos with this method ? with 1 joystick and 12 servo with pwm servo driver and arduino .
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?
Is there a way to convert the joystick into a Bluetooth controller? What about using a linear type joystick with this system?
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!
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!
I'm stuck here, it's all landing on the board. code checks out, connection check out, but nothing moves.
Please I need your help to Download a liabrary of HCPCA9685.h
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
Where do we download the library from
It seems that the PCA9685 library is unavailable on the website brainy-bits.com/tutorials. Can you fix that for us? Thanks!
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
Can you explain to us a way to control electrical appliances Bsthaddam arduino with Wi-Fi
Thank you for the suggestion, I will make a note of it for a future tutorial in the coming new year.
Hi, thank you for the tutorial, can i use the same wiring for arduino mega?
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!
Thanks Yvan, this is a good reference tutorial for future tinkering.
Have a good and safe Christmas!
Same to you Garth, I'll be making a new video between Christmas and New Year's... Thanks for watching and have yourself a Merry Christmas!
Please 🙏🙏 I didn't 😭 find a liabrary of HCPCA9685.h
for flysky rc?
could you make a video using leds?
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: ruclips.net/p/PLIt5AwStAEE6OqKoKUloO5-Iig7h3WVpQ
hey could you do a tutorial on the small wifi module(forgt the name xD) and arduino nano?pls
yes this module with a nano
Do you mean this one? brainy-bits.com/shop/modules/esp8266-esp-01-wifi-module/
Ok, will put on the list of upcoming videos :) Thanks for the suggestion and for watching btw!
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
Thank you so much
how to make a 6 v and 2 amp battery pack out of 18650 cell
You forgot to show how the PCA9685 and the joystick is wired up to the arduino.
very good
Thanks for watching!
only supports 5vollts external cannot barely turn a servo. MASETRO much better
ขอบคุณครับ
thanks a lot :)
Thanks for watching!
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
Please I need your help to Download a liabrary of HCPCA9685.h
Please I need your help to Download a liabrary of HCPCA9685.h