Where can I fine the sketch to control a PCA9685 for controlling servos for turnouts using Arduino uno?
The Adafruit library for the board has some examples you can build off of. You'll have to also use some sort of port expander to get enough inmputs so all 16 servos can have a pushbutton or toggle to control it, as there aren't enough IO pins on an Uno. Or you could use a Mega.
https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library
--Randy
Modeling the Reading Railroad in the 1950's
Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.
Thanks. Had a computer crash and lost some sites.