Model Railway Sensors & Detection Part 2 - Train Detection and Automation with IR Sensors
Little Wicket Railway
0:00 / 0:00
Model Railway Sensors & Detection Part 2 - Train Detection and Automation with IR Sensors
34 924 просмотра · 6 л. назад
Little Wicket Railway
30,5 тыс. подписчиков
34 924 просмотра · 6 л. назад
A step by step guide to adding sensors to your layout using an Arduino and JMRI. Adding sensors is the first step in automation and can be used to control trains, signals and points.
Part 1 - we build the sensor hub and connect an infrared (IR) sensor. This can be used to provide feedback from analogue or digital layouts.
• Model Railway Sensors & Detection Part 1 -...
Part 2 - we use two IR sensors to automate a train controlled by JMRI on a digital layout.
JMRI Website
https://www.jmri.org/
Geoff Bunza's blog for sensor hub documentation:
https://model-railroad-hobbyist.com/n...
##### IMPORTANT INFORMATION #####
A few people have pointed out that the link to the files (script and sketch) on Geoff Bunza's website no longer works. I have uploaded these files to my GitHub area (https://github.com/LittleWicketRailwa..., but all credit should still go to Geoff Bunza for developing this system.
This is a simple way of adding sensor to a layout, but I would encourage anyone interested in this to explore the CMRI video series which uses the same hardware, but allows use of different sensor names, doesn't require a script to be run in JMRI and can be adapted to change inputs to outputs.
CMRI Part 1 - • Arduino, CMRI and JMRI - Part 1 - Combined...
CMRI Part 2 - • Arduino, CMRI and JMRI - Part 2 - Adding O...
CMRI Part 3 - • Arduino, CMRI and JRMI - Part 3 - Multi No...
########################################
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 Mega:
https://amzn.to/3poEBQK
https://ebay.us/Zl3sDT
Mega Sensor Shield:
https://amzn.to/3rTq80V
https://ebay.us/M2VnYX
Variable Voltage Power Supply:
https://amzn.to/3b4wtj9
IR Sensors:
https://amzn.to/2LQJmVF
https://ebay.us/rnR5wn
26AWG Servo Cable:
https://amzn.to/3daEp55
https://ebay.us/L1q3FE
Crimping Tool:
https://amzn.to/3tRJXHE
https://ebay.us/XE2Dxl
Servo Wires (male to male):
https://amzn.to/3alIrFS
https://ebay.us/HfgTaO
Chapters
0:07 - Introduction
1:08 - Tools & Equipment
2:19 - Steps
2:28 - Step 1 - Connect IR Sensors to Hub
4:33 - Step 2 - Build Sensor Gates
7:19 - Step 3 - Setup Sensors in JMRI
10:21 - Step 4 - Download and Modify Script
14:42 - Step 5 - Run Script