Git Product home page Git Product logo

dcc-ardu's Introduction

What’s DCC++

DCC++ is an open-source hardware and software system for the operation of DCC-equipped model railroads.

This is a fork of the DCC++ Base Station code base.

The DCC++ Base Station consists of an Arduino micro controller fitted with an Arduino Motor Shield that can be connected directly to the tracks of a model railroad.

What’s in this Repository

This repository, BaseStation-Uno, contains a complete DCC++ Base Station sketch designed for compiling and uploading into an Arduino Uno. All sketch files are in the folder named DCCpp_Uno. More information about the sketch can be found in the included PDF file.

To utilize this sketch, simply download a zip file of this repository and open the file DCCpp_Uno.ino within the DCCpp_Uno folder using your Arduino IDE. This can be done through the green Clone or download... button on the upper right. The master version is available behind this ZIP archive link as well.

Please do not rename the folder containing the sketch code, nor add any files to that folder. The Arduino IDE relies on the structure and name of the folder to properly display and compile the code.

The version on the Master branch is currently 11.0.7+haba. The high version number has been chose to avoid conflicts with the classic DCC++ code but should not indicate that dcc-ardu is "more".

  • Supports both the Arduino Uno and Arduino Mega (Mega untested)
  • Built-in configuration for both the original Arduino Motor Shield as well as a Pololu MC33926 Motor Shield
  • Built-in configuration and support of Ethernet Shields (for use with Mega only, untested)
  • Fixed: CV write in service mode (bitwise and bytewise)
  • Fixed: CV read in service mode (direct byte)
  • Emitsts a trigger pulse on pin 4 at end of preamble to be used with a scope if enabled in Config.h
  • Current limits implemented on main (board specific) and prog (250mA according to NMRA) track.
  • Current limits are enforced with t< 20ms if current > 2 * Imax and logarithmical slower if Imax < I < 2 * Imax
  • Ackdetect improved
  • RailCom cutout can be enabled in Config.h - experimental

Some notes taken during the project can be found in the docs corner.

This fork will be geared to be used together with JMRI and not as a standalone layout controller.

-Sun Apr 19 04:00:00 CEST 2020

dcc-ardu's People

Contributors

habazut avatar dccplusplus avatar

Stargazers

David from Löneberga avatar  avatar  avatar  avatar  avatar  avatar Daniel avatar Rasmus Kaj avatar

Watchers

James Cloos avatar  avatar

dcc-ardu's Issues

Loco suddenly stops due to false current overload

Hello Harald,

I have been running the latest build for a couple of days and have found the CV reading / writing to be much better. I do that on a short 1 meter programming track using a Mega and arduino shield.

Today I moved the code over to my main layout and started running 1 loco. I do monitor current using the "c" command and it bounced around a bit but averaged about 300. Everything ran fine for a couple of minutes and then the track shutdown due to a <p2 MAIN 3025> over current. That seemed odd so I did it again and sure enough a minute or two later it did it again. I then changed out locos to a generic Bachmann sound value diesel and it did the same thing.

I then loaded your code from about April 1st and ran the same Bachmann loco without issue. Here's the data from the serial monitor.

current

Thanks for all of the improvements you are making.

Regards,

Marty

Unable to use ProgTrack when using Arduino Mega and Ethernet Shield

I want to use the DCC++ Base Station with my Ardunio Mega and a Arduino Ethernet Shield.

Compiling works, Main Track works...
But programming decoders on prog track didn't work.
It seems, that the Base Station did not recognize any anwsers from the decoder.
On Pulse View DCC Communication doesn't show any abnormalities.

Update 25.10.2021 / 20:15:
It does not work even with the Mega when I remove the Ethernet Shield

Update 25.10.2021 /20:55:
Tried some a few other PINs insteadt of pin 2, without any result...
Tried the original DCC++ base station with the same settings an the same boards, it works...

Trouble reading / writing CVs using JMRI

Hello Harold,
I have been following the discussion on Trainboard and am very happy the team of talented coders is updating DCC++.

I downloaded your code on March 28 and using JMRI (4.18) everything works perfectly. I can read and write cvs and change the loco long address with no issues. Works perfectly.

Today I downloaded an update and cannot read or write. I receive the dreaded 308 error.
If I then reload the code from March 28 everything works again. It is 100 % repeatable.

Thank you for the effort you are putting into this.

Best regards,

Marty

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.