how to use servo turnouts in DCC++Ex

jamescoleman1960 Jul 25, 2022

  1. jamescoleman1960

    jamescoleman1960 TrainBoard Member

    42
    15
    6
    Hello everyone
    I know this is a question probably asked but search didn`t reveal the answer I needed.
    I am setting up a small N scale layout and want to use just the DCC++ex CS to run it.
    It has 7 turnouts that will be actuated with a pca9685. I have read the reference chapter at the website
    and understand the commands needed to move the servos. When I enter a command nothing happens I
    have verified that the pca9685 is working properly with the adafruit servo sketch. What I need to know is were I need to define the servo`s, sensors, etc. Do they need to be defined in mysetup.h file in DCC++ex?
     
  2. jamescoleman1960

    jamescoleman1960 TrainBoard Member

    42
    15
    6
    I have figured it out the main issue I had was the pca9685 was set to address 0x42 and it wasnt being used to drive the servo`s by dcc++ex once I de-soldered the jumper and got the address back to 0x40 its working. Thanks for any thought that you have given to my problem!!!
     
  3. FlightRisk

    FlightRisk TrainBoard Member

    548
    237
    14
    Thanks for following up with your answer, that helps everyone. We have built-in support for the first 2 PCA9685 boards using the first 2 default addresses. Good catch to check the address. Did it tell you in the boot log that it found an I2C device and give its address? You can add more boards beyond 2 servo controllers and 2 GPIO expander boards, you just have to add a definition line for them and specify their address.
     
  4. jamescoleman1960

    jamescoleman1960 TrainBoard Member

    42
    15
    6
    Hello Fred
    I found the issue by looking in the serial monitor it showed I2C devices at 0x27 my lcd display and 0x42 the pca9685 I was using. I then checked <MY HAL SHOW> that`s when I discovered that dcc++ex had addresses 0x40 and 0x41 enabled only as downloaded for the pca9685 board. I am no computer whiz I just know enough to get into trouble LOL. Could you tell me where in the dcc++ex files to make the modifications to add additional boards I don`t need to add any to this n scale layout or my ho layout as I use jmri/cmri for it but others like me might find the info useful
     

Share This Page