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.
In this video I'm going to show you how to have Turnout Control With Arduino And Servos Using A PCA9685. 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.
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
S U P P O R T THIS C H A N N E L
LOCALS: https://trainofthought.locals.com
Rumble: https://rumble.com/c/TomKvichak
Amazon Link:https://www.amazon.com/shop/tomstrainsandthings
PayPal : https://paypal.me/tomstrainsandthings
Membership:
https://www.youtube.com/channel/UCE1TsLOIG2wxBZ7fe8512qw/join
Music on all videos from Epidemic Sound. Get One Month Free when you subscribe through this link. Here is a short playlist
https://share.epidemicsound.com/qj6qaj/?playlist=go4t525tjcjz70gskderneuviw4qdu6a
CONTACT INFORMATION:
workbenchwednesday@gmail.com
tomstrainsandthings@gmail.com
http://tomstrainofthought.com/
#tomstrainofthought
#structurekits
#floridatrainshows
Disclaimers: all opinions are my own, sponsors are acknowledge.
Intended for viewers over the age of 14