1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-04-20 20:21:18 +02:00
Asbelos 4e57a80265 Squashed commit of the following:
commit 3ac2fff70d2339992654a7b0da5784dcc9450fcb
Author: Asbelos <asbelos@btinternet.com>
Date:   Tue Jul 23 15:40:36 2024 +0100

    Create momentum.md

commit a08195332f2387d5a9e4ad32bb4128fe0d4ad406
Author: Asbelos <asbelos@btinternet.com>
Date:   Mon Jul 22 21:57:47 2024 +0100

    Cleanup of DCC Class reminders

commit 002ec5f176645b3a616a387b0357f54d84f99ede
Author: Asbelos <asbelos@btinternet.com>
Date:   Mon Jul 22 12:42:43 2024 +0100

    Cleaning access to speedByte

commit 854ddb0c6c696c808586eb8febaabb52261266bb
Author: Asbelos <asbelos@btinternet.com>
Date:   Sun Jul 21 10:15:07 2024 +0100

    Fix momentum algorithm

commit 916d3baf63eeab5d49682e748ba15a527cd8afa9
Merge: ab72a75 27dc805
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Jul 19 10:14:06 2024 +0100

    Merge branch 'devel' into devel_momentum

commit ab72a75d8fe4ac3859655ede97de2f25973a8864
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Jul 19 08:33:50 2024 +0100

    EXRAIL MOMENTUM

commit 8a623aa1cbd6616126983e76ecb2fb0c3595b177
Author: Asbelos <asbelos@btinternet.com>
Date:   Thu Jul 18 20:31:58 2024 +0100

     Momentum
2024-07-23 15:42:35 +01:00
2023-10-10 12:11:49 +01:00
2020-05-25 01:43:34 -06:00
2020-12-08 07:34:59 -05:00
2024-07-23 15:42:35 +01:00
2024-07-23 15:42:35 +01:00
2024-01-10 12:11:14 +00:00
2024-04-06 23:41:25 +01:00
2024-02-20 15:06:07 +01:00
2024-02-20 15:06:07 +01:00
2024-02-20 15:06:07 +01:00
2023-11-15 19:29:24 +00:00
2023-02-23 10:36:42 +00:00
2022-07-30 23:08:42 +02:00
2022-05-17 18:06:08 +08:00
2024-07-23 15:42:35 +01:00
2024-07-23 15:42:35 +01:00
2024-04-13 10:16:26 +01:00
2023-11-21 21:14:54 +00:00
2024-06-18 22:21:51 +02:00
2023-02-10 18:21:06 +00:00
2024-01-20 23:35:30 +01:00
2023-02-25 11:43:36 +00:00
2023-04-11 10:26:15 +10:00
2022-02-16 12:02:11 -05:00
2023-04-11 10:26:15 +10:00
2023-03-31 17:58:30 +01:00
2023-04-05 23:19:43 +01:00
2024-01-20 22:15:47 +01:00
2024-02-24 17:24:55 +01:00
2024-04-12 17:25:00 +08:00
2023-09-23 16:10:16 +01:00
2024-03-23 13:31:34 +10:00
2023-11-26 12:31:41 +00:00
2024-01-14 20:20:22 +00:00
2024-07-18 09:39:32 +01:00
2024-06-13 16:09:28 +01:00
2023-02-12 20:38:03 +01:00
2022-01-07 02:28:35 +01:00
2020-06-12 22:51:42 -06:00
2024-06-11 23:10:18 +02:00
2022-06-18 13:58:46 +01:00
2020-09-26 22:28:29 +02:00
2022-01-07 02:28:35 +01:00
2022-01-07 02:28:35 +01:00
2024-06-02 21:44:25 +02:00
2022-10-28 10:52:12 -04:00
2022-12-16 13:14:48 +00:00
2024-02-07 22:11:27 +00:00
2024-02-07 22:11:27 +00:00
2022-06-10 12:22:28 +01:00
2023-02-25 11:42:43 +00:00
2023-02-16 16:41:13 +00:00
2022-06-10 12:22:28 +01:00
2022-12-16 13:14:48 +00:00
2024-07-10 09:57:03 +01:00
2023-11-14 19:41:05 +00:00
2024-03-18 21:17:51 +01:00
2024-04-22 08:12:08 +02:00
2024-02-20 15:13:22 +01:00
2023-10-12 13:42:14 +10:00
2024-07-19 09:29:43 +01:00
2022-12-16 13:14:48 +00:00
2022-12-16 13:14:48 +00:00
2022-12-16 13:14:48 +00:00

What is DCC++ EX?

DCC++ EX is the organization maintaining several codebases that together represent a fully open source DCC system. Currently, this includes the following:

  • CommandStation-EX - the latest take on the DCC++ command station for controlling your trains. Runs on an Arduino board, and includes advanced features such as a WiThrottle server implementation, turnout operation, general purpose inputs and outputs (I/O), and JMRI integration.
  • exWebThrottle - a simple web based controller for your DCC++ command station.
  • BaseStation-installer - an installer executable that takes care of downloading and installing DCC++ firmware onto your hardware setup.
  • BaseStation-Classic - the original DCC++ software, packaged in a stable release. No active development, bug fixes only.

A basic DCC++ EX hardware setup can use easy to find, widely avalable Arduino boards that you can assemble yourself.

Both CommandStation-EX and BaseStation-Classic support much of the NMRA Digital Command Control (DCC) standards, including:

  • simultaneous control of multiple locomotives
  • 2-byte and 4-byte locomotive addressing
  • 28 or 128-step speed throttling
  • Activate/de-activate all accessory function addresses 0-2048
  • Control of all cab functions F0-F28 and F29-F68
  • Main Track: Write configuration variable bytes and set/clear specific configuration variable (CV) bits (aka Programming on Main or POM)
  • Programming Track: Same as the main track with the addition of reading configuration variable bytes
  • And many more custom features. see What's new in CommandStation-EX?

Whats in this Repository?

This repository, CommandStation-EX, contains a complete DCC++ EX Commmand Station sketch designed for compiling and uploading into an Arduino Uno, Mega, or Nano.

To utilize this sketch, you can use the following:

  1. (beginner) our automated installer
  2. (intermediate) download the latest version from the releases page
  3. (advanced) use git clone on this repository

Not using the installer? Open the file "CommandStation-EX.ino" in the Arduino IDE. Please do not rename the folder containing the sketch code, nor add any files in that folder. The Arduino IDE relies on the structure and name of the folder to properly display and compile the code. Rename or copy config.example.h to config.h. If you do not have the standard setup, you must edit config.h according to the help texts in config.h.

What's new in CommandStation-EX?

  • WiThrottle server built in. Connect Engine Driver or WiThrottle clients directly to your Command Station (or through JMRI as before)
  • WiFi and Ethernet shield support
  • No more jumpers or soldering!
  • Direct support for all the most popular motor control boards including single pin (Arduino) or dual pin (IBT_2) type PWM inputs without the need for an adapter circuit
  • I2C Display support (LCD and OLED)
  • Improved short circuit detection and automatic reset from an overload
  • Current reading, sensing and ACK detection settings in milliAmps instead of just pin readings
  • Improved adherence to the NMRA DCC specification
  • Complete support for all the old commands and front ends like JMRI
  • Railcom cutout (beta)
  • Simpler, modular, faster code with an API Library for developers for easy expansion
  • New features and functions in JMRI
  • Ability to join MAIN and PROG tracks into one MAIN track to run your locos
  • "Drive-Away" feature - Throttles with support, like Engine Driver, can allow a loco to be programmed on a usable, electrically isolated programming track and then drive off onto the main track
  • Diagnostic commands to test decoders that aren't reading or writing correctly
  • Support for Uno, Nano, Mega, Nano Every and Teensy microcontrollers
  • User Functions: Filter regular commands (like a turnout or output command) and pass it to your own function or accessory
  • Support for LCN (layout control nodes)
  • mySetup.h file that acts like an Autoexec.Bat command to send startup commands to the CS
  • High Accuracty Waveform option for rock steady DCC signals
  • New current response outputs current in mA, overlimit current, and maximum board capable current. Support for new current meter in JMRI
  • USB Browser based EX-WebThrottle
  • New, simpler, function control command
  • Number of locos discovery command <#>
  • Emergency stop command <!>
  • Release cabs from memory command <-> all cabs, <- CAB> for just one loco address
  • Automatic slot (register) management
  • Automation (coming soon)

NOTE: DCC-EX is a major rewrite to the code. We started over and rebuilt it from the ground up! For what that means, you can read HERE.

More information

You can learn more at the DCC++ EX website

  • November 14, 2020
Description
No description provided
Readme GPL-3.0 31 MiB
Languages
C++ 84.4%
C 13.5%
PowerShell 1.6%
Shell 0.4%
Batchfile 0.1%