Thoughts
Dear Larry,
In only a vague order of appearance and/or preference.
- Worth reviewing this thread, as one of the more-recent investigations into "automation" R&D
https://model-railroad-hobbyist.com/node/38389
and if I may
https://model-railroad-hobbyist.com/node/38389?page=0#comment-415836
(Inc many relevant Links and Related Reading)
Quote:
Because this problem is staging, there are at least three track options with two turnouts. Clearly to succeed the system needs to know what tracks are empty & determine the route to get there.
Easily achieved using Optical (IR or visible light) or Track-Current detection. Commercial and DIY options abound.
Quote:
The control system is DCC
This can be both a blessing and a curse, both at the "command station" level
(which make/model of DCC system in-play?)
and at the Decoder level
(What functions/capabilities/commands does the decoder know/understand/respond-to?
If the fleet of locos on the layout have various make/model decoders,
then some locos may play fair, while others do not...
...starting with Automation as a "Must have" may have "obliged decoder choice" implications for the entire fleet).
From a long-time-ago, just one example
https://model-railroad-hobbyist.com/node/6281
Quote:
The entire problem in staging is TBD.
...which, by definition means nothing can be decided until the "Problem Definition/Scope" is "determined".
Good thing we're having this conversation then...
(Something about "...the journey of 1000 miles starts with a single step..."??? )
Quote:
The elements will likely be off the shelf.
While this is "logically desirable", the reality is that
"...the more tailor-made/specific the problem-definition and resulting matching solution is,
the less-likely it is to be avaiilable in "turnkey" or "off the shelf RTR" form..."
We'll revisit this in a bit...
(In the mean time, re-read thru the Thread linked-to above...
...it's instructional on this point)
Quote:
the decision maker may not be.
By "Decision Maker", I take it you mean the "Brains" of the Automation system?
If Yes, then Yes, Absolutely agree,
esp if whatever "Brains" you choose are expected to not just drive this yard,
but be "extensible" to cover the (eventual/envisaged) whole layout worth of Automation.
Quote:
Or it may be a computer that is specifically dedicated for these automation activities.
IF you are considerng "automating" this yard in isolation,
and keeping it that way forever more,
then an Arduino
(DIY coding and home-knitted I/O interfacing)
or NCE MiniPanel
(NCE-specific "Programmable Macro controller"
with built-in Input/Trigger and NCE-Cab-Buss Output/Command interfacing)
will likely achieve your desired results in one form of another.
IF however, you are thinking "long game" and looking to deploy an "extensible" system which can grow to cover not-just this yard, but the entire layout,
then a dedicated machine running some form of automation software/scripting, running on a "dedicated PC" is the logical appropriate solution.
(JMRI is the "obvious" US-market-popular answer, but there are others,
again see the linked thread above)
Quote:
To help kick this off, the automation activity could consist of:
- train x enters the staging area.
- Is this "inbound train" under Human/Manual Operator control,
(Human "keep driving" til a "mimic signal" tells them to "Stop!")
or has it already been "siezed" and is being "driven"/controlled via the Automation system?
(IE metaphorically the human-operator "crew" has "gotten off the train at the crew-change point",
and the "next traincrew", aka the Automation system,
"gets on the train and drives it onward" IE into the relevant staging-track "parking spot")
- Does the Inbound Train care which of the available staging tracks it "lands" on?
("...any track, as long as it's empty..." VS "Extra 123 West ALWAYS parks on Staging Track #2")
- Does the subsequent (possibly hours/days/weeks/next-session later) use of that train have any Order, Sequence, or Timing restrictions?
IE if the staging yard is literally just a "send whatever train is next" holding-tank to provide a "constant passing-parade of trains",
and "which specfic train comes next" does NOT have any timetable/operational/sequence importance,
then "automating" both the Trains and the Yard-Throat Routing systems becomes a Lot Easier...
...alternatively, if "Extra 123 West is THE Next Train",
then Extra 123 West may be Obliged to be sitting on "Staging Track #2",
so the Automation systems KNOWS What train it is Sending, and When...
Quote:
the automation system guides the train safely to an empty section of the staging track
Is that
"the automation systems guides the train to AN (IE "ANY") empty staging track..."
OR
"the automation systems guides the train to THE (IE "a Specific Defined") empty staging track..."
The Former can be easily achieved as an isolated system with an Arduino, and an appropriate set of Input (Detector) and Output (Turnout swichmotor driver) interface or "edge devices".
The Latter is a far more complex problem to solve, requiring:
- Knowledge of Which Specific Train is "inbound"
- Knowledge of Which Specific Staging Track the nominated Train needs to be directed-to
- (Optional) Knowledge of If/When/Where that Nominated Train will be required again
Now, "which specific train" can be addressed by:
- Loco (RailCom, Decoder and Command-Station dependent)
- Loco (RFID)
- Train (Software/Sequence-recorded "dead reckoning" VS "dumb" block-occupation detection)
but is not "trivial" to achieve, esp with any degree of reliabiility, determinism, and/or "self-healing".
"specific train to specific track" really does send us straight to "dedicated PC with automation software",
even if the "Scope of Works" will Never extend beyond controlling Only this staging yard.
Quote:
& shuts the down power to that section.
Ah, this right here is where "decoder specific" kicks-in,
and variations in DCC loco setup can make for Pleasure or Pain.
In no particular order oof preference:
- Simply "dropping power" to a DCC loco will NOT stop the Command Station sending "Go FWD @ xx SpeedStep/Speed" commands to the rails.
Ergo, IF that loco Happens to see power again for whatever reason,
possibly minutes/hours after the last operator Consciously noted what that train was doing,
it will start moving "Unexpectedly", with "mild-confusion/panic" being the least-worst possible outcome.
- ++ to the above if locos are equipped with stupidly-high-capacity KA/CK/SA circuits
("...when I say whoa, I means WHOA..." means NOTHING to a KA/CK/SA,
the trains is now UNControlled, may roll for inches beyond the Clearance Point,
and are you/the Operators Ready For That?)
- Intelligently stopping a DCC train using one/any of the following:
- "Stop on DC" braking
- "Stop on Asymetrical DCC" braking
- "Set SpeedStep = 0" brake-generator braking
is arguably a better, more-controlled, and "can handle any loco, inc KA/CK/SA-equipped units" solution,
BUT has implications for Command-Station, Decoder, and Automation-deployment choices.
(NMRA DCC Spec says "Ahem, CV27!",
US-Manuf DCC equipment/decoder manufs apparently respond "Don't care"....)
Again, I'd hope you've read thru the above-linked thread,
so already have links to relevant reading/resources RE the above "braking systems",
but in case you haven't, Google "DCC BitSwitch" for one set of commmercial options...
In short (Too Late),
- What you're considering is entirely possible
- Rest Assured that the Rabbit-Hole you are peering down is absolutely deeper, darker, and potentially more angst-laden than your worst-fears might currently suggest
- "Off the Shelf" components can be used to construct a Complete Solution
- Some of the "Best/Most-application-suitable" components Will Likely NOT be the ones you would Otherwise Prefer to use, and may well be from Euro manufacturers
- ...but it will NOT be operational without some degree of bespoke "knitting" the components together,
- and Absolutely, there WILL be Some form DIY programming or "coding" involved.
Looking forward to hearing the results of your considerations, and any futher questions you may have...
Happy Modelling,
Aim to Improve,
Prof Klyzlr