DCC-EX / Support-Planning

DCC++EX Repo to hold project planning documentation and processes
1 stars 1 forks source link

Ticket Submitted via Website #645

Open fire-bot opened 4 months ago

fire-bot commented 4 months ago

Sent by (dccextended@gmail.com). Created by fire.


Michael created a ticket

Name: Michael Aston

Email: michaelhughaston@icloud.com

Timezone: -5

Software: EX-CommandStation

Version: 4.0.x

Title: Reversing loop

Description: I want to add reversing loop control by detecting high (short circuit) current detection using the signal from the motor driver to trigger a relays on an Arduino relay shield to switch polarity on the reversing loop. I can write the software for this action but how do I insert it into the EX-CommandStation sketch.

Remaining email Quota: 100

habazut commented 4 months ago

Use version 5.2.18 Wire your track B to your reverse loop Execute the following commands (or put them in the startup): <= B MAIN><= B AUTO><1 B> Test if it works

Harald.

Asbelos commented 4 months ago

There are several automatic methods for handling this without short detection and without using an extra track output from your motor shield. Assuming this is a loop and not a Y or diagonal, then the polarity of the loop section only needs to match the state of the turnout. If it didn't you would not be able to pass over the turnout anyway.

Exrail can easily switch your DPDT relay in sync with the turnout position E.G below.

Others have written small scripts that automatically set the turnout as you approach it from either branch... this requires a couple of sensors and a tiny exrail script.

ONTHROW(100) SET(40) DONE ONCLOSE(100) RESET(40) DONE