In the previous video we configured an accessory that switches one port via a given DCC Address. But we can go further than that … the MARDEC software has the option to switch 2 ports via 1 DCC address.
This comes in very handy when for instance we have 2 inverse blinking lights, like with a railway crossing, we can configure a ‘double flash’.
Or … we can use a ‘double one shot’ to switch a solenoid turnout that has two coils. One coil gets a pulse when the DCC address switches to HIGH, the other coil gets the pulse when it switches to LOW. Beware never to connect solenoid coils directly to an Arduino or DCCnext or you’ll blow up the output pin. Use a FET module in between, as shown in the MARDEC user manual, to deliver the needed current.
The video shows both applications.
— 0 —
Hi Rudy. I have a question about train controller I am having problems when a loco arrives in a station then a small loco pulls out the carriages after which the main loco reverses out the carriages are pushed back then after the loco is turned around it then connects to the head of the train again ready to leave the station. The problem is the loco when reversing to connect want to drive to it’s original stop position . I know the manual has instructions in how to achieve this but I cannot work them out. Can you help Regards stuart
On Mon, 29 Jul. 2019, 8:32 pm rudysmodelrailway, wrote:
> RudyB posted: “In the previous video we configured an accessory that > switches one port via a given DCC Address. But we can go further than that > … the MARDEC software has the option to switch 2 ports via 1 DCC address. > This comes in very handy when for instance we hav” >
LikeLike
It’s the same loco, thus without any precautions it will use the same (now too far in) stop marker.
We can change that by placing a condition in the stop marker. Create a signal or a switch (if you wish it can be hidden) that you turn on at the start if the final schedule that runs the turned around train back into the block.
In that block you have 2 stop markers for this loco. One is for the first stop, which has as a condition that the signal or switch is turned OFF. The other one is for the turned around loc stop position, which has as a condition that the signal or switch is ON. Turn the signal or switch off again at the start of the ‘drive away’ schedule.
LikeLike
Please note:
It is NOT possible to connect a coil of a turnout directly to a DCCNext port.
That requires an additional MOSFET transistor as shown in the pictures on the MARDEC manual.
Nico Teering
LikeLike
Hi Rudy,
I have watched all your videos and find them very informative. However I don’t understand the electrical wiring aspects very well. So if I could make one suggestion that would help me it would be that you showed exactly how you connect all the various electrical wires between the Arduino and the LEDs.
Thanks
LikeLike
Here’s a link to my Arduino blog: https://rudysarduinoprojects.wordpress.com/2019/01/04/fun-with-arduino-03-connect-an-external-led/
LikeLike
In the Mardec manual there are several pictures showing the wiring.
You can downlaod it on http://www.arcomora.com/download
Nico
LikeLike
Hi Rudy I was working on my Layout and I was working on my well Cars To get them back up and running and I had a very bad fall And broke my Hip and the Drs. Can’t believe off the falling I have had They had to put a plate and pins in to try and save my life I am really sorry about Rudy I am really going to have to get real help with this And to get the full Layout up and running perfectly thanks again Rudy and I am really hoping you can help me with this problem Rudy it’s very difficult to explain right now
Teady BNSF Intermodal stationmaster28@gmail.com
On Mon, 29 Jul 2019, 11:31 am rudysmodelrailway, wrote:
> RudyB posted: “In the previous video we configured an accessory that > switches one port via a given DCC Address. But we can go further than that > … the MARDEC software has the option to switch 2 ports via 1 DCC address. > This comes in very handy when for instance we hav” >
LikeLike
I have sent you an email . we can discuss further over there.
LikeLike