Trains.com

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

servo turnout control

1299 views
2 replies
1 rating 2 rating 3 rating 4 rating 5 rating
  • Member since
    June 2018
  • 5 posts
servo turnout control
Posted by juan wise on Monday, August 24, 2020 3:07 PM

Where can I fine the sketch to control a PCA9685 for controlling servos for turnouts using Arduino uno?

  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Monday, August 24, 2020 7:56 PM

 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.

  • Member since
    June 2018
  • 5 posts
Posted by juan wise on Tuesday, August 25, 2020 11:46 AM

Thanks.  Had a computer crash and lost some sites.

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Users Online

There are no community member online

Search the Community

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
Model Railroader Newsletter See all
Sign up for our FREE e-newsletter and get model railroad news in your inbox!