DCC++-

Discussion in 'Other Electronic Interfaces' started by Colin_W, Feb 23, 2017.

  1. Colin_W

    Colin_W Full Member

    Messages:
    230
    Likes Received:
    95
    Joined:
    Nov 19, 2016
    Still Pluggin away here, Have sensors lighting up on the track plan now, still seem to have a weird irritating problem on the two points servo's. IF I select one of them with the wi-fi throttle I can then switch it with the diagram in JMRI but not the second one. IF I then select the second one I can switch that one but not the first one.:hammer:Must be finger trouble somewhere. Mounting the sensors in the track today and will then try the routing system, possibly tomorrow.
    Shake a leg Paul need some moral support here :thumbup:. (Are you using JMRI ?).
     
  2. Toto

    Toto I'm best ignored Staff Member Founder Administrator

    Messages:
    15,419
    Likes Received:
    3,842
    Joined:
    Dec 5, 2017
    I know Paul ....... C'mon. We're all waiting .
     
  3. paul_l

    paul_l Staff Member Administrator

    Messages:
    9,858
    Likes Received:
    5,916
    Joined:
    Dec 5, 2015
    Yep sir you got me, a JMRI user.

    I tend to use routes to set the points.

    If you go to your Turnouts table, do they work reliably

    [​IMG]

    Click on the cmd button and that should toggle the position.

    Its displaying unknown, as there is no position feedback, and I hadn't operated the points.

    Many run a startup script to trigger all the points, both ways, then into the position required for the layout startup. This ensures the table shows the correct setting.

    When you have configured your points in the table, then you can create the routes.

    [​IMG]

    Clicking on the set button will activate the route.

    To create the route (or edit it in the future)

    [​IMG]

    Enter a name for the route, then select each point, and the required state it needs to be set to for the route. You can add sound files, and more importantly a delay between each point move. Can be helpful to allow capacitor discharge units to recharge, or allow a point to complete its movement before the next one starts.

    Paul
     
  4. Colin_W

    Colin_W Full Member

    Messages:
    230
    Likes Received:
    95
    Joined:
    Nov 19, 2016
    Thanks for the update Paul, not had chance to look again yet but will try later this week. Out of interest on the Panel Pro window do you get an extra tab for 'NCE' to enter sensors and turnouts or do you just use the JMRI Table to input them.
    Col
     
  5. paul_l

    paul_l Staff Member Administrator

    Messages:
    9,858
    Likes Received:
    5,916
    Joined:
    Dec 5, 2015
    The NCE tab, and in my case the MERG tab as well are there because of the USB interfaces, not tried the DCC++ as yet.

    You then need to create your track plan (or import an anyrail track plan), then for each turnout identify the accessory decoder address for the point. As I am using standard accessory decoders, i.e. connected to the track bus, then the interface will be via my command station (NCE PowerCab), so they will be NCE addresses.

    [​IMG]

    So from above NT = NCE Turnout, and the number is the accessory address, So NT6 is the point to access Platform 1 or the goods depot. NT100 sets the traverser to road A1.
    I could get the same result by pressing the PowerCab accessory button on the handset, enter the accessory number then select 1 or 2 for Normal or Thrown.

    Paul
     
  6. Toto

    Toto I'm best ignored Staff Member Founder Administrator

    Messages:
    15,419
    Likes Received:
    3,842
    Joined:
    Dec 5, 2017
    Like I do on Luib Bridge with my procab throttle and turnouts.:thumbs:
     
  7. Colin_W

    Colin_W Full Member

    Messages:
    230
    Likes Received:
    95
    Joined:
    Nov 19, 2016
    Hi Paul, There is a DCC++ Tab and that is where I have to insert the Sensors and Turnouts but there seems to be an odd way of saving them. There is a 'Save Turnout/Sensor' button but it seems that you have to use the 'Close' button with DCC++ then say no when it asks if you want to 'Save to the Base station' it then gives you the option to save to the Mega EEPROM to which you say yes. Then Edit and check that Feedback is set to 'Direct' and 'Turnout Automation' is set to No Feedback. If you save the turnouts you get multiple copies in the JMRI Table and it seems that they cross-talk and change characteristics. It now works... ish :facepalm: Tomorrow I'll look at routes and maybe scripts if I get chance. Thanks for the feedback, much appreciated mate.
    Col :headbanger:
     
  8. Colin_W

    Colin_W Full Member

    Messages:
    230
    Likes Received:
    95
    Joined:
    Nov 19, 2016
    C'mon Toto, where is that pioneering sense of adventure and excitement. Just pushing buttons when you could be going demented whilst surrounded by sharp implements, flying crockery and mains electricity :twitch::eek:.
    Going to get a beer and chill now.

    Col
     
  9. paul_l

    paul_l Staff Member Administrator

    Messages:
    9,858
    Likes Received:
    5,916
    Joined:
    Dec 5, 2015
    Yesterday, I visited Fraser Smith (featured in the March 2017 MERG Journal), of which turn into the inaugural meeting of the Dundee or Angus MERG group.

    A man definitely into the Dark side designing and making circuit boards.

    He also had a small test track, with a couple of points giving 3 sidings, set up to provide a test bed for train control via detectors, point control etc, etc all using MERG kits, and JMRI as the glue holding it all together.

    A great learning experience for me, and I know have a few tips stored away to complete the commissioning of my MERG CBUS CANACE8 input units for detection on Viccy Road.

    Looking forward to the next meeting.

    Paul
     
  10. Colin_W

    Colin_W Full Member

    Messages:
    230
    Likes Received:
    95
    Joined:
    Nov 19, 2016
    The Deeper you go the darker it gets. :avatar:

    Col
     
  11. cmcan

    cmcan Full Member

    Messages:
    474
    Likes Received:
    56
    Joined:
    Jun 11, 2016
    Hi All,

    I have been experimenting with DCC++.

    I have had an arduino uno for a while, but thought i might take the plunge to dcc via another route.

    I bought a clone of the motor shield from china (via ebay).
    I have conducted preliminary tests and the motor shield and the uno are functioning regarding dcc signals

    I bought a laisdcc decoder which arrived today. I put it in my heljan diesel and connected things to jmri and nothing. Not one to be easily deterred. After searching around a bit i found how to turn things on and was able get the loco to move however the program values kept jumping to 125 instead of 20. At least it moved. I was using a 12v dc source into the motor shield.

    All i need do is now figure how get my ipad throttle WiThrottle lite to control things and I'm on to the boxfile layout.

    Ill post visuals when im up an running

    Cameron
     
    jakesdad13 likes this.
  12. Alexander Lucas

    Alexander Lucas Full Member

    Messages:
    3
    Likes Received:
    0
    Joined:
    Aug 5, 2021
    Hi Paul

    I am very new to the model railway world and looking for all the help I can get. I recently acquired an Adafruit Mk1 motor shield and I am interested in knowing whether you were successful in implementing a solution using the DK motor shield as everything I have read seems to indicate that this would not work with the DCC++ solution without a major rewrite of the software or a drastic change to the board. Your advice would be greatly appreciated.
     
  13. paul_l

    paul_l Staff Member Administrator

    Messages:
    9,858
    Likes Received:
    5,916
    Joined:
    Dec 5, 2015
    Hi

    Unfortunately, I never got round to trying it, and have put my motor boards away in a safe place :facepalm:, probably in the loft which is even more worrying.

    Colin and Bob (RedpiperBob) have had good results using DCC++, already having a working NCE PowerCab system, and moving to O gauge, my priority moved to uping to power available to +5A, there was no urgency for this, as if we were going to an exhibition then Toto's PowerPro system was available. With last years redundancy / early retirement I was able to purchase a secondhand PowerPro system. However, the DCC++ system may get another test as a stand alone progrmming setup on the workbench would be both affordable and useful, but not just yet.

    Sorry not to have been of anymore help.

    Paul
     
  14. Alexander Lucas

    Alexander Lucas Full Member

    Messages:
    3
    Likes Received:
    0
    Joined:
    Aug 5, 2021
    :thumbup:Thanks for the feedback - I will give it a bash over the weekend and see what happens.
     
  15. paul_l

    paul_l Staff Member Administrator

    Messages:
    9,858
    Likes Received:
    5,916
    Joined:
    Dec 5, 2015
    I look forward to hearing your results, as it must be around two years since I've done any Arduino programing.

    I need to extract the finger, I have been starting to learn how to program PIC chips, with the aim of combining PICs and Arduino's for the Traverser control system, with the main control being handled by the Arduino (nano or Mega) and the input and feedback devices (Rotary encoder + OLED display) being managed by PIC devices all connected via I2C comms. The Arduino also having a DCC input to allow control from a DCC hand controller or JMRI.

    Paul
     

Share This Page