Turnout Control With Arduino And Servos Using A PCA9685
Toms Trains and Things
In this video I'm going to show you how to have Turnout Control With Arduino And Servos Using A PCA9685. The pca9685 is capable of operating 16 servos from an Arduino Uno using only 2 wires. I will show you how to figure the range of the servo and the optimal throw for your turnouts through an Arduino sketch.
I will also cover how to hook up a switch and LED's for your control panel for each turnout you want to operate. This is all possible with the pca9685. Since this device only uses 2 wires for the control of all your servos, you can hook up 5 switch LED combinations on an UNO. With the help of a shift register, you can add more control for your turnouts.
Since the Arduino Mega has many more input/output pins, you are able to operate many more turnouts without the assistance of an external device.
Since the pca9685 is an I2C device, you can add many more devices to your project all on the same two wires by jumping through to another device.
Inspiration for this video and coding ideas came from; Brainy-Bits: https://www.youtube.com/channel/UCH2m9XX8jSyVMkZUXwETPTw/feed
Robojax: https://www.youtube.com/channel/UCkcBSig_Iu4ZnAIeCeG1TVg
CODE IN THIS VIDEO: https://tomstrainofthought.com/projects/
https://www.adafruit.com/product/815
Driver Library: https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library
Become a Member: https://www.youtube.com/channel/UCE1TsLOIG2wxBZ7fe8512qw/join
OTHER PLACES TO SEE TOM Web Page: http://tomstrainofthought.com/ Rumble: https://rumble.com/register/TrainOfThought/ Discord Invite: https://discord.gg/9JY8C2u
Subscribe To This Channel https://goo.gl/Af3bK0
BECOME A PATRON https://www.patreon.com/TomKvichak
CONTACT INFORMATION: tomstrainsandthings@gmail.com http://tomstrainofthought.com/ https://www.twitch.tv/tomstrains https://www.instagram.com/tomkvichak/ https://www.facebook.com/modelrailroadingbytom/ Rumble: https://rumble.com/register/TrainOfThought/ BitChute: https://www.bitchute.com/accounts/referral/traintom/ Discord Invite: https://discord.gg/9JY8C2u
S U P P O R T THIS C H A N N E L Patreon: https://www.patreon.com/TomKvichak Amazon Link:https://www.amazon.com/shop/tomstrainsandthings PayPal : https://paypal.me/tomstrainsandthings
PLAYLISTS OF INTEREST: What You Should Know Before Starting Your Model Railroad https://www.youtube.com/playlist?list=PLjjhnrIKSTSi3vSZbz0gPxhZAPWvw9eyK
Useful Tools For The Model Railroader https://www.youtube.com/playlist?list=PLjjhnrIKSTSgADOj1VFiGe9chmGdrNBCs
Model Railroading For Beginers https://www.youtube.com/playlist?list=PLjjhnrIKSTShrzvkLrtppcNJ0zObTcDyv
Electrical Projects Videos https://www.youtube.com/playlist?list=PLjjhnrIKSTSg3vBnObEMQzzProQXMBnge
Wiring On Your Model Railroad https://www.youtube.com/playlist?list=PLjjhnrIKSTShW9IeN-sVYz8fgRDqq_4Fo
Disclaimers: all opinions are my own, sponsors are acknowledge. Intended for viewers over the age of 14 ... https://www.youtube.com/watch?v=EUd4Fqot1Mc
110809750 Bytes