In this video I go in detail through the Arduino sketch I created for my first set of turnouts controlled by servos. With the right code it's easy to control multiple servos with switches.
#modelrailroad #arduinonano #arduinoproject
For a free copy of the sketch, visit https://pacificcoastminiatures.com/mo... - you can copy the code, paste it into a new sketch in the Arduino IDE and modify it for your own needs.
To download the Arduino IDE, go to https://www.arduino.cc/en/software
If you have any questions about the code, please leave a comment below.
If you liked this video, be sure to give it a thumbs up! Remember to subscribe to the channel and hit the notification bell so you can get notified when a new video is posted.
Here are the products I used that are directly being referenced in the sketch:
3PDT stomp switches: https://amzn.to/3PDdAtb
Elegoo Nano boards (3 pack): https://amzn.to/3RoYade
Nano I/O Expansion Sensor Shield: https://amzn.to/3sSzMqd
As an Amazon Associate I earn from qualifying purchases.