DCC++ Arduino and Velleman Motorshield

Gerard A. Wassink Apr 8, 2017

  1. Gerard A. Wassink

    Gerard A. Wassink TrainBoard Member

    13
    11
    2
    Hi guys,

    I got me a Velleman motor shield on an Arduino UNO. This motor shield is supposedly 100% compatible with the Arduino one. I downloaded the Arduino code for the DCC++ command station and loaded it into the Arduino. A couple of warnings and deprecations, but nothing serious. So far, so good...

    Now I start the thing up, looking at the serial monitor and it shows me the status of the Arduino, the name of the motor shield and the pin numbers used. But then the program seems to end; it says:

    "PROGRAM HALTED - PLEASE RESTART ARDUINO"

    So, the serial communication works, but: after this, it does not respond on any commands.

    Any ideas?

    Gerard
     
  2. crusader27529

    crusader27529 TrainBoard Member

    247
    167
    11
    Please post the complete output from the serial monitor.......
     
  3. Gerard A. Wassink

    Gerard A. Wassink TrainBoard Member

    13
    11
    2
    Crusader, thanks for your response. In the mean time (okay, I should have done that before...) I found at least partial answers in this thread.

    The contraption now works in the sense that I can control a loc using "Processing 3", a Java GUI around DCC++.

    It does however not yet listen to the POWER button. This afternoon (it's 7:30 am here now) I will proceed testing and puzzling...

    Gerard
     
  4. Gerard A. Wassink

    Gerard A. Wassink TrainBoard Member

    13
    11
    2
    In the thread I mentioned in my last post, two changes are mentioned. Mad those and DCC++ is starting to function. Could not switch on and off power yet tho...

    Until I realised that I had the power jumpers on the Velleman board wrong. They were on 5 (for PWRA) and 10 (for PWRB). Those were the wrong positions as I saw in the DCCpp_Uno.h file. It should be 3 for MAIN (PWRB) and 11 for PROG (PWRA).

    Repositioned the jumpers accordingly and now it works. I can switch power on and off, the main track works, programming track works in principle (I can see and hear the commands going to the engines) but not able to program the somewhat more power hungry H0 decoders yet...

    I'm one happy railroader...

    Gerard
     
  5. Tohema

    Tohema New Member

    4
    0
    3
    Hallo Gerard, net als jij ben ik ook met de DCC++ bezig; krijg echter e.e.a. niet werkend. Met commando <1> zet je alle 4 LEDS op de Motor Shield aan, maar verder kom ik niet. Hoever ben jij?
    Groeten, Henk
     
  6. Jeffrey Davidson

    Jeffrey Davidson New Member

    1
    0
    1
    Hi Gerald,

    Curious if you were ever able to program locomotives using the Velleman motor shield?

    If so, could you share what you did to get it working.
     

Share This Page