forked from DCC-EX/CommandStation-EX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request DCC-EX#36 from DCC-EX/sphinx
catchup
- Loading branch information
Showing
12 changed files
with
179 additions
and
48 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
.. include:: /include/include-ex-cs.rst | ||
.. include:: /include/include.rst | ||
.. include:: /include/include-l2.rst | ||
|EX-CS-LOGO| | ||
|
||
********************************** | ||
*Under Development:* Track Manager | ||
********************************** | ||
|
||
|tinkerer| |engineer| |githublink-ex-commandstation-button2| | ||
|
||
.. sidebar:: | ||
|
||
.. contents:: On this page | ||
:depth: 2 | ||
:local: | ||
|
||
.. warning:: | ||
|
||
This feature is under active development, meaning commands, features, and behaviour may change without notice. While we endeavour to keep these features functional, our development releases are updated regularly and we cannot guarantee there are no bugs that will have unexpected results. | ||
|
||
If using our development release and, especially, the Track Manager feature, we highly recommend keeping in touch with conversations and developments via our `Discord server <https://discord.gg/PuPnNMp8Qf>`_. | ||
|
||
You can also use our new GitHub issue templates to report a bug: |githublink-ex-commandstation-button2| | ||
|
||
Formerly referred to as "DC Districts", Track Manager is a new feature under active development to allow an |EX-CS| with the correct hardware and software to control up to 8 separate tracks in different modes including DCC main, DCC programming, and DC. | ||
|
||
One key item to note with DC vs. DCC is that in DCC mode, forward/reverse is determined by the DCC decoder, not the track, whereas in DC mode the direction is dependent upon the track polarity. | ||
|
||
Hardware requirements | ||
===================== | ||
|
||
In order to utilise Track Manager's DC mode, your motor shield must have a brake pin, and this must be defined in your "config.h" motor shield definition. | ||
|
||
If you are using a non-standard motor shield, you will need to validate if it is capable of this configuration. We will populate the list of compatible motor shields over time. | ||
|
||
If your intention is only to have multiple DCC main or programming tracks, this is not required. | ||
|
||
Track Manager commands | ||
====================== | ||
|
||
To configure Track Manager, a new command ``<= trackletter mode [id]>`` has been added, where: | ||
|
||
* ``trackletter`` is A through H | ||
* ``mode`` is one of MAIN, PROG, DC, DCX, or OFF (DCX is DC with reversed polarity) | ||
* ``id`` is the cab ID required when specifying DC or DCX | ||
|
||
To display the current Track Manager configuration use the command ``<=>``. | ||
|
||
For example, to configure a DCC main track, a DCC programming track, a DC track (using cab ID 100), and a reversed polarity DC track (using cab ID 101), these commands are required: | ||
|
||
.. code-block:: | ||
<= A MAIN> | ||
<= B PROG> | ||
<= C DC 100> | ||
<= D DCX 101> | ||
.. note:: | ||
|
||
When specifying a DC or DCX cab ID, be sure not to use one of your existing DCC locomotive IDs, otherwise and command sent to control a loco on that DC or DCX track will also operate your DCC loco with the same address. | ||
|
||
Note on PWM frequency | ||
===================== | ||
|
||
Different microcontrollers utilise different PWM frequencies, and at present, these default frequencies are in use rather than using software to define them. | ||
|
||
The side effect of these differing frequencies is that you may notice humming or sometimes squealing noises from older DC motors. | ||
|
||
The known PWM frequencies are: | ||
|
||
* Mega2560 - 122.55Hz | ||
* ESP32 - variable | ||
* Others (eg. STM32 Nucleo) - typically 1000Hz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.