1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00
Go to file
2021-11-21 22:53:17 +01:00
.github/workflows Update main.yml to use up-to-date pio for builds. 2021-03-31 21:00:07 +01:00
.vscode Add readme add back extensions and settings from Dave and fix gitignore 2020-07-01 09:06:03 -04:00
Release - Architecture Doc Remove obsolete docs 2021-08-04 08:54:29 +01:00
Release_Notes Update release_notes_v3.1.0.md 2021-05-15 22:13:33 -04:00
.gitattributes do not touch CR or CRLF of svg files 2020-11-26 15:55:52 +01:00
.gitignore Rename user module mySetup.cpp to myHal.cpp, and function mySetup() to halSetup() within it. 2021-11-15 12:50:02 +00:00
.travis.yml Initial commit 2020-05-25 01:43:34 -06:00
CommandDistributor.cpp AYSNC prog cmds from Wifi/Ethernet 2021-03-08 10:40:32 +00:00
CommandDistributor.h Passing outbound Ring to Withrottle 2020-10-26 13:31:51 +00:00
CommandStation-EX.ino MotorDriverContainer (multi-motordriver) start 2021-11-21 22:53:17 +01:00
config.example.h Merge branch 'master' into ESP32 2021-11-20 23:38:12 +01:00
CONTRIBUTING.md Create CONTRIBUTING.md 2020-12-08 07:34:59 -05:00
DCC.cpp MotorDriverContainer (multi-motordriver) start 2021-11-21 22:53:17 +01:00
DCC.h MotorDriverContainer (multi-motordriver) start 2021-11-21 22:53:17 +01:00
DCCEX.h Merge branch 'master' into ESP32 2021-11-20 23:38:12 +01:00
DCCEXParser.cpp Merge branch 'master' into ESP32 2021-11-20 23:38:12 +01:00
DCCEXParser.h Revisions to support Teensy 3.x and Teensy 4.x 2021-03-25 13:16:12 -04:00
DCCRMT.cpp remove extra zero bit 2021-11-19 00:34:56 +01:00
DCCRMT.h set RMT clock to microseconds 2021-11-19 00:03:21 +01:00
DCCTimer.cpp Wifi connect and waveform 2021-10-05 21:53:02 +02:00
DCCTimer.h should compile for all boards 2021-10-31 01:10:13 +02:00
DCCWaveform.cpp MotorDriverContainer (multi-motordriver) start 2021-11-21 22:53:17 +01:00
DCCWaveform.h Transmit DCC packet to loco 2021-11-15 22:28:30 +01:00
defines.h Merge branch 'master' into ESP32 2021-11-20 23:38:12 +01:00
DIAG.h Nano every2 (#129) 2021-03-07 15:58:35 -05:00
DisplayInterface.cpp Refactor OLED and LCD drivers (#178) 2021-07-13 21:15:38 +01:00
DisplayInterface.h Refactor OLED and LCD drivers (#178) 2021-07-13 21:15:38 +01:00
EEStore.cpp On <E> commmand, output EEPROM size and amount used. 2021-08-27 12:56:27 +01:00
EEStore.h Bump EESTORE_ID version. 2021-08-19 20:17:48 +01:00
esp32wdt.txt explain ESP32 watchdog 2021-10-24 12:59:28 +02:00
EthernetInterface.cpp defines/configig include tidy 2021-08-23 11:55:42 +01:00
EthernetInterface.h Update EthernetInterface.h 2021-11-11 23:59:50 +00:00
freeMemory.cpp first ESP32 compile 2021-10-05 10:39:08 +02:00
freeMemory.h Memory monitoring updates 2021-03-09 22:43:41 +00:00
FSH.h Merge branch 'master' into copyrightmessages 2021-07-31 15:32:02 +02:00
GITHUB_SHA.h Merge branch 'master' into ESP32 2021-11-20 23:38:12 +01:00
I2CManager_AVR.h I2CManager - support slower I2C speeds. 2021-10-08 13:28:43 +01:00
I2CManager_Mega4809.h Neil bugfixes. (#186) 2021-08-26 23:04:13 +01:00
I2CManager_NonBlocking.h Reduce I2C interrupt time 2021-11-15 14:30:27 +00:00
I2CManager_Wire.h Squash all commits on RMFT branch to create EX-RAIL branch 2021-08-03 17:12:25 -04:00
I2CManager.cpp I2CManager - support slower I2C speeds. 2021-10-08 13:28:43 +01:00
I2CManager.h Reduce I2C interrupt time 2021-11-15 14:30:27 +00:00
IO_AnalogueInputs.h Optimise HAL drivers for TOF sensor and Analogue Inputs 2021-10-05 12:48:45 +01:00
IO_DCCAccessory.cpp Update IO_DCCAccessory.cpp 2021-09-22 14:12:23 +01:00
IO_DFPlayer.h Improved HAL diagnostics 2021-09-21 13:43:52 +01:00
IO_ExampleSerial.cpp Add <D HAL SHOW> command to list HAL device configuration. 2021-08-27 15:44:26 +01:00
IO_ExampleSerial.h Various HAL enhancements. (#182) 2021-08-17 23:41:34 +01:00
IO_GPIOBase.h Fix GPIO Expander initial output state. 2021-10-15 18:44:51 +01:00
IO_HCSR04.h HAL driver enhancements 2021-09-21 11:02:23 +01:00
IO_MCP23008.h fix compile errors on ESP32 2021-11-21 00:51:59 +01:00
IO_MCP23017.h Fix GPIO Expander initial output state. 2021-10-15 18:44:51 +01:00
IO_PCA9685.cpp HAL driver enhancements 2021-09-21 11:02:23 +01:00
IO_PCF8574.h fix compile errors on ESP32 2021-11-21 00:51:59 +01:00
IO_VL53L0X.h Optimise HAL drivers for TOF sensor and Analogue Inputs 2021-10-05 12:48:45 +01:00
IODevice.cpp Improve validation of parameters to non-HAL digital calls. 2021-11-15 13:25:11 +00:00
IODevice.h Fix Arduino pin pullup initial state. 2021-10-21 16:43:42 +01:00
LCD_Implementation.h Refactor OLED and LCD drivers (#178) 2021-07-13 21:15:38 +01:00
LCDDisplay.cpp Squash all commits on RMFT branch to create EX-RAIL branch 2021-08-03 17:12:25 -04:00
LCDDisplay.h Changes associated with RCN-213 DCC Accessory Packet format 2021-08-23 12:43:14 +01:00
LCN.cpp Restructure Turnout class. 2021-08-19 21:22:59 +01:00
LCN.h copyright messages 2021-04-14 22:46:29 +02:00
LICENSE Create LICENSE 2020-06-12 22:51:42 -06:00
LiquidCrystal_I2C.cpp Neil bugfixes. (#186) 2021-08-26 23:04:13 +01:00
LiquidCrystal_I2C.h Neil bugfixes. (#186) 2021-08-26 23:04:13 +01:00
MotorDriver.cpp MotorDriverContainer (multi-motordriver) start 2021-11-21 22:53:17 +01:00
MotorDriver.h MotorDriverContainer (multi-motordriver) start 2021-11-21 22:53:17 +01:00
MotorDrivers.h YFROBOT: One more motor board with L298P 2021-10-29 22:30:01 +02:00
myAutomation.example.h SENDLOCO/START mixup 2021-08-15 17:17:41 +01:00
myHal.cpp_example.txt Update myHal.cpp_example.txt 2021-11-15 14:58:12 +00:00
objdump.bat Nano every2 (#129) 2021-03-07 15:58:35 -05:00
objdump.sh fix objdump.sh 2020-09-26 22:28:29 +02:00
Outputs.cpp Fix EEPROM handling for outputs. 2021-08-12 11:59:32 +01:00
Outputs.h Squash all commits on RMFT branch to create EX-RAIL branch 2021-08-03 17:12:25 -04:00
platformio.ini Add analogue inputs to HAL. 2021-09-11 13:35:11 +01:00
README.md Update README.md 2021-05-15 21:37:33 -04:00
release_notes.md Update release_notes.md 2021-05-15 22:12:09 -04:00
RingStream.cpp defines.h needed to get ESP32 macro on non-ESP32 2021-11-07 00:21:15 +01:00
RingStream.h protect ringstream 2021-11-06 23:51:32 +01:00
RMFT.h Squash all commits on RMFT branch to create EX-RAIL branch 2021-08-03 17:12:25 -04:00
RMFT2.cpp handle negative pins 2021-11-08 00:19:23 +01:00
RMFT2.h Auto power on and POWEROFF macro 2021-09-16 16:47:47 +01:00
RMFTMacros.h fix compile errors on ESP32 2021-11-21 00:51:59 +01:00
Sensors.cpp HAL: Minor optimisations 2021-09-23 10:54:27 +01:00
Sensors.h HAL: Minor optimisations 2021-09-23 10:54:27 +01:00
SSD1306Ascii.cpp Neil bugfixes. (#186) 2021-08-26 23:04:13 +01:00
SSD1306Ascii.h Squash all commits on RMFT branch to create EX-RAIL branch 2021-08-03 17:12:25 -04:00
StringFormatter.cpp 3.0.9 newlines 2021-03-30 22:01:37 +01:00
StringFormatter.h Assorted bits (#138) 2021-03-23 10:37:05 -04:00
Turnouts.cpp DCC Turnouts: Store address/subaddress separately. Enable address 0. 2021-09-22 10:38:11 +01:00
Turnouts.h DCC Turnouts: Store address/subaddress separately. Enable address 0. 2021-09-22 10:38:11 +01:00
version.h Merge branch 'master' into ESP32 2021-11-20 23:38:12 +01:00
WifiESP32.cpp preambles running 2021-11-14 13:10:16 +01:00
WifiESP32.h first ESP32 compile 2021-10-05 10:39:08 +02:00
WifiESP8266.cpp first ESP32 compile 2021-10-05 10:39:08 +02:00
WifiESP8266.h first ESP32 compile 2021-10-05 10:39:08 +02:00
WifiInboundHandler.cpp Squash all commits on RMFT branch to create EX-RAIL branch 2021-08-03 17:12:25 -04:00
WifiInboundHandler.h copyright messages 2021-04-14 22:46:29 +02:00
WifiInterface.cpp first ESP32 compile 2021-10-05 10:39:08 +02:00
WifiInterface.h first ESP32 compile 2021-10-05 10:39:08 +02:00
WiThrottle.cpp Restructure Turnout class. 2021-08-19 21:22:59 +01:00
WiThrottle.h Squash all commits on RMFT branch to create EX-RAIL branch 2021-08-03 17:12:25 -04: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 manu 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. All sketch files are in the folder named CommandStation-EX and its subforlders.

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 to you, click HERE.

More information

You can learn more at the DCC++ EX website

  • November 14, 2020