Тёмный

Control a 'LOT' of Servo Motors using a Joystick, Arduino and PCA9685 PWM Module - Tutorial 

Brainy-Bits
Подписаться 49 тыс.
Просмотров 49 тыс.
50% 1

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 68   
@Pigcogames
@Pigcogames 4 года назад
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
@BrainybitsCanada
@BrainybitsCanada 4 года назад
Always great to hear that the tutorials are helping others! Thanks for watching!
@mukageegee
@mukageegee 4 года назад
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.
@mattinkel7342
@mattinkel7342 7 лет назад
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
@melihapa3884
@melihapa3884 3 года назад
Hello... I can't find "PCA9685 Library". How can I find it?
@Messerwerkstatt
@Messerwerkstatt 7 лет назад
Thanks Brainy -Bits, I would also be interested in control the servos by bluetooth
@garthhowe297
@garthhowe297 7 лет назад
Thanks Yvan, this is a good reference tutorial for future tinkering. Have a good and safe Christmas!
@BrainybitsCanada
@BrainybitsCanada 7 лет назад
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!
@voidnull1836
@voidnull1836 3 года назад
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...
@roberttoyonaga171
@roberttoyonaga171 7 лет назад
Great video! Can all servo motors be controlled individually simultaneously? If so, is there any appreciable delay? Thanks!!
@mertgunes9854
@mertgunes9854 7 лет назад
There's an adafruit version of this PCA, is there any significant difference between the two, do you think it's better ?
@MatthewHartsuch
@MatthewHartsuch 7 лет назад
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?
@GaryMcKinnonUFO
@GaryMcKinnonUFO 4 года назад
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?
@Albert-DenAkker
@Albert-DenAkker 3 года назад
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.
@fgmoren312
@fgmoren312 7 лет назад
Is there a way to convert the joystick into a Bluetooth controller? What about using a linear type joystick with this system?
@BrainybitsCanada
@BrainybitsCanada 7 лет назад
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!
@ameenoxx1627
@ameenoxx1627 7 лет назад
Thank you so much
@francomartinez7150
@francomartinez7150 3 года назад
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?
@Create_o_raptor
@Create_o_raptor 2 года назад
the library used in the code and the one in the download link on the web page isnt the same
@igoraguiar00
@igoraguiar00 7 лет назад
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. :(((((((((((((
@mattinkel7342
@mattinkel7342 7 лет назад
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..
@tommyallehamn
@tommyallehamn 7 лет назад
+ 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 😊
@BrainybitsCanada
@BrainybitsCanada 7 лет назад
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 :)
@tommyallehamn
@tommyallehamn 7 лет назад
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!
@ameenoxx1627
@ameenoxx1627 7 лет назад
Can you explain to us a way to control electrical appliances Bsthaddam arduino with Wi-Fi
@BrainybitsCanada
@BrainybitsCanada 7 лет назад
Thank you for the suggestion, I will make a note of it for a future tutorial in the coming new year.
@fredly8730
@fredly8730 4 года назад
What resource has the joysticks? Can the movement be saved to an SD card and be replayed when an external trigger is activated?
@Fly4aWhiteGuy
@Fly4aWhiteGuy 5 лет назад
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?
@ricardomarrufo8302
@ricardomarrufo8302 3 года назад
If I have to power up the Arduino and the module with just one battery, which one could I use?
@diver2048
@diver2048 7 лет назад
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.
@billynugraha552
@billynugraha552 7 лет назад
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 :)
@did3d523
@did3d523 2 года назад
how to link gyrompU6050+ PCA9685 on Same arduino nano
@ameenoxx1627
@ameenoxx1627 7 лет назад
very good
@BrainybitsCanada
@BrainybitsCanada 7 лет назад
Thanks for watching!
@xforney
@xforney 3 года назад
I guess it to old to use this teaching, I tried to download the HCPCA9685 library and page not found.
@bigbogeyface
@bigbogeyface 3 года назад
Awesome, thanks 👍 Just fyi: when I click on your channel it says "This channel does not have any content" 🤔 Bit strange 🤕
@ninazzt3232
@ninazzt3232 2 года назад
ขอบคุณครับ
@ekrembuzlugol7475
@ekrembuzlugol7475 5 лет назад
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?
@jhonybaramu2551
@jhonybaramu2551 5 лет назад
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
@noirbac
@noirbac 7 лет назад
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!
@dhruvmistry6623
@dhruvmistry6623 5 лет назад
can i control 12 servos with this method ? with 1 joystick and 12 servo with pwm servo driver and arduino .
@saadslimati7469
@saadslimati7469 2 года назад
Please I need your help to Download a liabrary of HCPCA9685.h
@cervezatoledo9634
@cervezatoledo9634 7 лет назад
Hi, thank you for the tutorial, can i use the same wiring for arduino mega?
@BrainybitsCanada
@BrainybitsCanada 7 лет назад
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!
@Apock1239
@Apock1239 5 лет назад
I'm stuck here, it's all landing on the board. code checks out, connection check out, but nothing moves.
@mohammedkamran8559
@mohammedkamran8559 2 года назад
Is 2amps enough for all 4 of them??
@iliqnew
@iliqnew 3 года назад
Where do we download the library from
@KararEsamAkram
@KararEsamAkram 7 лет назад
thanks a lot :)
@BrainybitsCanada
@BrainybitsCanada 7 лет назад
Thanks for watching!
@danielmatias9030
@danielmatias9030 4 года назад
for flysky rc?
@timchen54
@timchen54 7 лет назад
It seems that the PCA9685 library is unavailable on the website brainy-bits.com/tutorials. Can you fix that for us? Thanks!
@BrainybitsCanada
@BrainybitsCanada 7 лет назад
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!
@jeffrey-deitch
@jeffrey-deitch 3 года назад
@@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.
@BrainybitsCanada
@BrainybitsCanada 3 года назад
@@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
@saadslimati7469
@saadslimati7469 2 года назад
Please 🙏🙏 I didn't 😭 find a liabrary of HCPCA9685.h
@mreyntjens5823
@mreyntjens5823 6 лет назад
could you make a video using leds?
@BrainybitsCanada
@BrainybitsCanada 6 лет назад
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
@thednemu3495
@thednemu3495 7 лет назад
hey could you do a tutorial on the small wifi module(forgt the name xD) and arduino nano?pls
@thednemu3495
@thednemu3495 7 лет назад
yes this module with a nano
@BrainybitsCanada
@BrainybitsCanada 7 лет назад
Do you mean this one? brainy-bits.com/shop/modules/esp8266-esp-01-wifi-module/
@BrainybitsCanada
@BrainybitsCanada 7 лет назад
Ok, will put on the list of upcoming videos :) Thanks for the suggestion and for watching btw!
@thednemu3495
@thednemu3495 7 лет назад
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
@arijitsahoo4355
@arijitsahoo4355 6 лет назад
how to make a 6 v and 2 amp battery pack out of 18650 cell
@AngryRamboShow
@AngryRamboShow 5 лет назад
You forgot to show how the PCA9685 and the joystick is wired up to the arduino.
@ZenHulk
@ZenHulk 10 месяцев назад
only supports 5vollts external cannot barely turn a servo. MASETRO much better
@protomechanics
@protomechanics Год назад
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
@saadslimati7469
@saadslimati7469 2 года назад
Please I need your help to Download a liabrary of HCPCA9685.h
@saadslimati7469
@saadslimati7469 2 года назад
Please I need your help to Download a liabrary of HCPCA9685.h
Далее
Control 16 Servos Using A PCA9685
18:22
Просмотров 73 тыс.
Using Servo Motors with Arduino
43:06
Просмотров 1,4 млн
The Most Elite Chefs Ever!
00:35
Просмотров 3,4 млн
IT'S MY LIFE + WATER  #drumcover
00:14
Просмотров 18 млн
Modus males sekolah
00:14
Просмотров 11 млн
Linking Multiple PCA9685 Servo Driver Boards
10:06
Просмотров 12 тыс.
Connect Up To 992 Servos To An Arduino, Using I2C
7:47
Coordinated stepper motor control (arduino)
47:11
Просмотров 354 тыс.