Dcc++EX Turnout with i2c and PCA9685

tror Dec 14, 2020

  1. tror

    tror New Member

    3
    0
    1
    Hello, I wanted to ask how I set up switches with servo drive in DCC++ EX. The vohrgehen with eibem decoder is clear to me.

    Only the direct connection to an Arduino on which also DCC++EX runs is not clear to me.

    I have a PCA9685 on an Arduino Mega I2C bus, which works fine so far, with a test sketch.

    Unfortunately I do not understand the source code completely. As far as I can see, this is already implemented, but I do not know how to address this with the <T> commands, or with JMIR.

    In the documentation it is also not listed.

    Thank you and thanks for the excellent software that has brought me back into the hobby.
     
    Last edited: Dec 14, 2020
  2. rkmAT

    rkmAT New Member

    8
    3
    1
    tror likes this.
  3. tror

    tror New Member

    3
    0
    1
    Thank you very much. I will have a look at it, but it looks more understandable to me now.
     
  4. rkmAT

    rkmAT New Member

    8
    3
    1
    You are welcome. Feel free to ask me if you have any questions.
     
  5. tror

    tror New Member

    3
    0
    1
    the turnout control works very well, thank you.
     
  6. Ash

    Ash TrainBoard Member

    106
    67
    8
    If you use JMRI to control turnouts, you might consider the CMRI/RS-485 connection. It is useful where I2C wire length could be an issue. Think of it as a separate bus for accessories.

    Here is a link on my implementation which also includes MCP23017 boards for lights, buttons, relays and occupancy detection. https://www.trainboard.com/highball...-out-card-for-jmri.116454/page-2#post-1141569

    I am not adverse to using DCC for accessories, but CMRI/RS-485 seems to be working well for my DIY approach. I have no commercial DCC throttles/controls/accessories. I plan to get a lokprogrammer, unless someone provides a DIY approach for loading sound files.
     
  7. FrenchSR

    FrenchSR New Member

    3
    0
    3
    Hi rmkAT. Downloaded the servo_turnout sketch and uploaded to my Mega2560 with WiFi module but WiFi doesn't work. If I load CommandStation-EX WiFi is fine. Is there a bug or am I doing something wrong?
    Regards FrenchSR
     

Share This Page