New to DCC++ and DCC - Troubleshooting

bigsmooth Mar 2, 2018

  1. bigsmooth

    bigsmooth TrainBoard Member

    14
    2
    5
    I'm an aspiring model railroader and a while back got interested in building a DCC++ system for a layout I'd plan to build. Before jumping in with both feet, I built a simple test track and installed DCC++ on an arduino to try out the software.

    Fast forward to today and I've finally been able to get things working after dealing with some train and decoder issues. I've been able to successfully test and program two different decoders using JMRI. However, when moving both locomotives to the main track and selecting them with a throttle, as I increase the speed above 50%, the power to DCC++ and the track are automatically cut. I suspect this is due to a setting in the DCC++ software but I could also have programmed the locomotive incorrectly in JMRI. Any thoughts on where I can begin investigating to try and resolve the speed issue

    Edit:
    Should add the following that might be helpful:
    - HO layout running at 15v
    - Bachmann GE 44 tonner with factory installed decoder
    - SoundTraxx MC decoder test wired to track and DC hobby motor
     
    Last edited: Mar 2, 2018
    Scott Eric Catalano likes this.
  2. SP_fan_1951

    SP_fan_1951 TrainBoard Member

    93
    86
    6
    In the file CurrentMonitor.h there is a value CURRENT_SAMPLE_MAX = 300, which works great for N scale, but you might try increasing it to 500 for HO. The absolute maximum value is 1024 which effectively disables over current protection - NOT RECOMMENDED (unless you want to let the magic smoke out);)
     
    Scott Eric Catalano likes this.
  3. Atani

    Atani TrainBoard Member

    1,475
    1,783
    37
    what motor shield are you using? The defaults in the code are tailored to the arduino shield which has a 2A max output between both channels and is set to trigger at ~890mA.
     
    Scott Eric Catalano likes this.
  4. bigsmooth

    bigsmooth TrainBoard Member

    14
    2
    5
    I'm using the Arduino shield. I'll look in the code and see if bumping up the CURRENT_SAMPLE_MAX variable helps at all. Probably won't be for a couple days but I appreciate the help in being pointed in the right direction.
     
    Scott Eric Catalano likes this.

Share This Page