MEGA reading CV but not writing

Dani Aug 13, 2016

  1. Dani

    Dani TrainBoard Member

    10
    17
    5
    Hello,

    I'm testing an Arduino MEGA 2560 with a Deek-Robot MOTORSHIELD. I have the bridge between pins 2 and 13, cut the pad on the bottom of the MotorShield, and feeding motorshield with 15Vdc (N scale).

    I'm using directly the Comm Monitor to send commands and everything seems to work perfect: I can start and stop current (<0>,<1>), manage trains in the main track, activate functions, I can read CV in the programming track (<R 3 1 2>).... but I can't write any CV in programming track (<W 3 5 1 2>). Always returns a -1 value and CV is not changed. Looks like from A1 pin always gets 0 value and returns -1 value.

    Any idea of what is happening? I also tried with another new MEGA and a new MotorShield also with the same results.

    Thanks in advance,
    Dani
     
    Scott Eric Catalano likes this.
  2. Dani

    Dani TrainBoard Member

    10
    17
    5
    Just to bring more information, I was testing with an Uhlenbrock decoder. Now I changed to another locomotive with a D&H decoder and it works, I can write and read.
     
    Scott Eric Catalano likes this.
  3. Terje

    Terje New Member

    4
    2
    1
    I have the same issue with an Arduino Uno with an Arudino motor shield R3, feeding with 15Vcc (H0 scale). The loc decoder is an Uhlenbrock 76320. I can read any CV, I can run the train on the op track, change speed, direction and everything, and read CV values both on operational track and programming track - the loc motor reacts - but I can't write to any CV neither on programming or on operational track. The serial monitor show the same return -1, and there is no reaction in the loc at all.
     
    Scott Eric Catalano likes this.
  4. Dani

    Dani TrainBoard Member

    10
    17
    5
    Looks like Uhlenbrock has many customized things out of the standards. In case of Loconet they have a custom configuration protocol called LNCV for their modules, so you need an Uhlenbrock command station to program them. Probably, happens something similar with their decoders so you have to end up with their whole system...... :(
     
    Scott Eric Catalano likes this.
  5. Terje

    Terje New Member

    4
    2
    1
    I kind of doubt that the error is in the Uhlenbrock. They state very clearly CV programming works with "all" centrals, and the DCC++ should "emulate" the commonality of these. It may be that it is more sensitive to timing or something. Has anyone checked out the decoders and verified who works and who doesn't ?
     
    Scott Eric Catalano likes this.
  6. Dani

    Dani TrainBoard Member

    10
    17
    5
    I tested the different decoder brands I have: Digitrax, D&H, LaisDCC and Uhlenbrock (I have just one). All decoders can be read and programmed from my Intellibox Basic, and just the Uhlenbrock do not work with the DCC++ command station.
     
    Scott Eric Catalano likes this.

Share This Page