Arduino passing a DCC command to Phoenix sound card code?

Darrin Warren Dec 28, 2016

  1. Darrin Warren

    Darrin Warren New Member

    1
    1
    1
    I currently have a model train (G Scale) system that drives an arduino mini via blue tooth and is battery powered. I have a phoenix sound card that is responding to triggers high/low on designated pins of the arduino. The phoenix sound card is limited in functions via pins as it only has six physical triggers. However the sound card can receive DCC signals and access many more functions.

    My goal is to use one of the arduino pins to send dcc commands to the dcc receptor of the sound card.

    Most of the projects I see are fairly complicated due to the fact they are sending the dcc signal over the powered rails and require interrupts.

    Since my project does not share signal and power over the same media I am looking for simpler code.

    Is there a project or resource you might be able to point me to?
     
    Scott Eric Catalano likes this.
  2. brendanf

    brendanf TrainBoard Member

    62
    54
    8
    Before I found DCC++ I wrote code for an Arduino that bit banged a DCC signal out of one of the pins. I used that to control a H bridge that generated my track signals. The code was largely based on the code I found here: https://developer.mbed.org/users/4180_1/notebook/controlling-a-model-railroad-using-mbed/. The code is easily adaptable, you have to scroll down to find the DCC stuff.

    The receptor on the sound card though, is it not looking for a conventional DCC signal?
     
    Scott Eric Catalano likes this.

Share This Page