MENU

Fun & Interesting

Servo Motor Control for Model Railways Part 2 of 3 - Servo Point Motor

Little Wicket Railway 44,950 lượt xem 4 years ago
Video Not Working? Fix It Now

This is the second part in a three part guide on how to connect servo motors to an Arduino and control them using JMRI in order to throw points or operate semaphore signals on a model railway.

This will work for both analogue and digital layouts and is a step towards layout automation.

It's also very cheap compared to other methods of operating points such as using digital accessort decoders, capacitor discharge units (CDUs) and solenoid motors.

Links to other parts of the series:
Part 1 - https://youtu.be/ayOoUkdjHtg
Part 3 - https://youtu.be/iif6l52lLks

Calibration and Servo Sketch Files: https://github.com/LittleWicketRailway/ServoControl

Links to resources needed in tutorial:
JMRI software - www.JMRI.org
MERG - www.merg.org.uk

Ebay and Amazon Affiliate Links
(Full disclosure, as an Amazon Associate and Ebay partner I earn from qualifying purchases through these links and this helps to support the channel)

Arduino Uno:
https://amzn.to/2ODZoTO
https://ebay.us/HYHkvP

Servo Driver Board (PCA9685):
https://amzn.to/2NoTKo3
https://ebay.us/rVpaAJ

SG90 Servos:
https://amzn.to/2N3uzY4
https://ebay.us/Xvuu72

Variable Voltage Power Supply:
https://amzn.to/3b4wtj9

26AWG Servo Cable:
https://amzn.to/3daEp55
https://ebay.us/L1q3FE

Crimping Tool:
https://amzn.to/3tRJXHE
https://ebay.us/XE2Dxl

Chapters:
00:00 - Introduction
01:48 - Safety
02:11 - Components & Tools
04:21 - Step 1 - Upload calibration sketch
05:47 - Step 2 - Mount servo and connect to point
06:48 - Step 3 - Calbrate range of motion
10:32 - Step 4 - Modify and upload sketch
11:38 - Step 5 - Download and install JMRI
12:39 - Step 6 - Connect Arduino to JMRI via CMRI
13:51 - Step 7 - Create turnout in turnout table
15:05 - Step 8 - Setup turnout in layout editor
16:59 - Summary

Comment