Please help - DCC++ with Arduino Mega 2560 & Motor Shield - DCCpp_Controller

Wolfye Feb 14, 2016

  1. Wolfye

    Wolfye TrainBoard Member

    11
    6
    2
    Hi all, thanks in advance for any assistance you can provide.
    I have set up my Arduino Mega 2560 with a Deek-Robot Motor Shield
    I cut the power from the shield to the Arduino as I'm putting 15V through it for a HO setup
    I have pins 4 & 13 connected on the Arduino.
    When I load the DCCpp_Controller I connect successfully to COM3 as follows
    upload_2016-2-14_15-24-37.png
    When I click the POWER button, three of the four output lights come on on the motor shield - both lights on output A and only the -ve light on output B.
    Also, if I have a locomotive on the programming track when I click POWER on, the loco takes off in reverse and shoots across the table on the track.
    Putting a multimeter on the programming track, it detects 14.4VDC when the POWER button is on.
    Firstly, should I see more lights on at the OUTPUT connectors?
    Secondly, any idea why the loco takes off?
    Cheers,
    Chris
     
  2. Wolfye

    Wolfye TrainBoard Member

    11
    6
    2
    I also note that the two communications lights on the Arduino are constantly flashing while the Controller is running.
     
  3. Wolfye

    Wolfye TrainBoard Member

    11
    6
    2
    Please ignore my question above.
    For some reason I had PIN 4 and PIN 13 connected. I have changed this to PIN 2 & PIN 13 connected and now it's all working!
     
  4. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8
    Hello,

    I have exactly the same issue. I did connect PIN 4 to PIN 13 because the video are showing this. Where did you find the solution?

    Regards

    JEZ
     
  5. mikegillow

    mikegillow TrainBoard Member

    116
    117
    13
    The video predates some code changes that were made that changed some of the pin assignments. Please refer to this documentation page for wiring details.
     
    Wolfye likes this.
  6. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8

    My mistake. Thank you Mike!
     
  7. Texas Cosmos

    Texas Cosmos New Member

    4
    1
    1
    Hi All... I'm a newbie to DCC . I've got Arduino with WiFi running ok. I built a couple of Geoff Bunza's decoders & am Pulling my hair out trying to figure out why DCCpp_Controller is Locking up & giving error codes like ... ( Couldn't create a writer ) When I start Dcc I get a constant feed of ( Couldn't save. Will retry ) I open help, Select Serial , scan, select Emulator & it freezes up & gives error ( Couldn't create a writer for C:\program files(x86)|Arduino\Libraries\DCCpp_Controller\DccStatus.xml ) & the path is GOOD...The Highlighted line number in processing is lone 101. Have no idea what line is causing the (Couldn't Save. Will Retry) on startup... I'm using Processing Ver 3.2.3. Should I go get Ver 3.1.2 ? I hope the Arduino Motor Shield R3 motor Shield isn't the problem. I can't find the DEEK motor shield.
    I looked in device manager & Arduino is on Com1, 115,200. After Scan Com1 shows up very light text, 192.168.1.169.. light text... Emulator Dark Bold Text... For some reason I guess Processing IDE doesn't See Com1 actually..... GRRrrrr....

    With JMRI Decoder Pro I have no problem connecting to the Arduino....

    Any HELP very appreciated..... Thanks ... Alan
     
    Last edited: Feb 2, 2017

Share This Page