Take a Big-Breath, and get ready to Dive-Deep...
Dear ???
First-off, interesting challenge as a "first go" DCC conversion!
I have to ask, what is it about the existing ex-factory SoundTraxx decoder which is prompting this rather-large "voyage of discovery"? Most modellers find the ST decoders to be more-than capable, reliable, and sonically-acceptable as-is?
Anywho, you asked some deep questions, so let's dive in...
Per the NMRA DCC Wiring Spec:
Orange = Motor +ve
Grey = Motor -ve
Black = Left Rail
Red = Right Rail
(Now, here's the bit that matters to your 6-wire loom)
Blue = Function Common (+ve volts)
White = Front Headlight (F0f)
Yellow = Rear Headlight (F0r)
Green = "Output 3"
Violet = "Output 4"
Brown = "Output 5"
NOTE! The decoder acts as a massive "Input> Output matrix",
IE Fn Command IN --> Decoder "matrix" --> Physical (specific wire color) "OUTput n"
which means that while we can predict that a "logical output" does to a given Physical "Wire color",
(EG "the Green wire flashes like a rotary beacon")
what we do NOT know, without further investigation,
which "F-key" (Function Input Command) controls what "Wire Color" output...
(IE when you press the "F?" button on your DCC throttle,
which of the colored-wires reacts/changes/does something?)
That said, to address some of your questions in-order of appearance:
Quote:
The loco has
- two working ditch lights,
- headlight,
- rear headlight,
- and number board lights.
3 function buttons control those four separate stations
(the headlights change front to back with direction of travel).
Let's nail down some "knowns":
Firstly, keep the following in mind: Whenever a Light can independently do something, it must have it's own specific discrete physical output wire. This Is Important to keep in mind, so you don't get tangled further down the line...
Moving on...
- In the DCC world, "F0" (Function Zero) is the "Headlight control".
It is commonly logically-broken down into "F0f" (Function Zero Front)
and "F0r" (Function Zero Rear)
Hopefully it is clear from this that Logically , One "F-key" (F0) is controlling TWO Physical Function Output wires,
with each wire being programmed so it only operates when the loco is in the appropriate "Direction".
As above, per NMRA Wiring spec, we KNOW that
White = Front Headlight (F0f)
Yellow = Rear Headlight (F0r)
(See, TWO wires, one for each of the "Headlights",
despite both being turned On/Off by the ONE common "F0" function key)
NOTE! I'm not mentioning the "Blue Common (+ve volts) because, well, it's common and connected as the "return path" for all "Function outputs".... it's kinda "just assumed to always be there, and along for the ride"...
So, go back, take your time, read it again til it makes sense,
then we can continue... (We'll wait... ).
Now, onto the next bits...
- We do NOT know (you have not stated) which "F-keys" on your DCC throttle control the "Ditch Lights" or "Number boards", so there will necessarily be some holes in the next comments which you are the-best-placed to answer. However, what we DO know is:
- The "Ditch Light" behaviour is another "Single Logical F-number key INPUT controls Multiple physical wire color Outputs" (particularly if the Ditch lights FLASH alternately in response to a Horn blast or similar)
- The "Cab Light" feels like a "Single Logical F-number key INPUT controls a SINGLE physical wire Output"
Therefore, with "White" and "Yellow" wires taken (Front and Rear Headlight respectively),
and THREE (3) LEDs/Bulbs to control with the THREE (3) remaining "Function output" wires
(2x "ditch lights" + 1x "cab light")
It's pretty safe to assume that the "Green", "Violet", and "Brown" wires feed the Ditch (x2) and Cab lights.
I'm assuming that it's:
- Green = Ditch Left
- Violet = Ditch Right
- Brown = Cab light
but that is an educated assumption, which really should be tested in-situ with a multimeter or similar...
but to gather them all together in table form:
Function Key Human-name Wire-color/Output Task/Location-on-loco
F0 (+ DIR = Fwd) Headlight White Front Headlight
F0 (+ DIR = Bkwd) Headlight Yellow Rear Headlight
Fx DitchLight Green Left Ditchlight
Fy DitchLight Violet Right Ditchlight
Fz Cab light Brown Cab light
NOTE! "F(letter)" Function keys are unknown/unconfirmed at this time
NOTE! I may have the Ditch and Cab Light <> color-wire assignment completely wrong,
and I do not own one of these locos myself to confirm here.
CHECK THOROUGHLY BEFORE PROCEEDING!!!
Quote:
This, after 2 wires change colors enroute for whatever reason, is the cab mounted board where they arrive up front:
2 things strike me:
- You'll note that the Violet Function Output wire is conspicuous by it's absence on this pic
(Where did Violet go?)
- The brown wires seem to have a connector on the end, where does that Connector go to?
(Hazarding a guess, it may be connecting to the Cab light? If YES, then the choice of "2x brown wires" may be an attempt to make them less visually-intrusive thru the cab windows?
Alternatively, they may be SPEAKER wires, in which case, you MUST go-back and do some serious investigation of exactly where the Green, Violet, and Brown Function wires actually come-from/go-to!!!)
Quote:
Here, somewhere on the detachable function board, is where the six light function wires need to go:
Note that there are some labels on the Decoder Buddy Aux board, which gets us started:
- "U+" = Function Common (+ve volts)
...now, where have I seen that before???
Oh yes, That's the BLUE wire...
- I see "0f" at Bottom Left and "0r" at Bottom Right of the pic...
...I'd guess they match the "F0f" (White) and "F0r" (Yellow) Headlight lines...
(...but c'mon, honestly, you were already waaaaaaaay ahead of me here, weren't you.... ).
Now, this is where it gets tricky, and We as the Modeller have to make some decisions.
- As above, there is no Official Specification or "Hard and Fast Rule"
RE "which F-number turns Ditch Lights and Cab Lights On/Off"
- The decoder Does Not Care, and can be configured to map (almost) ANY "F-key" INPUT to control any of the available "Wire color" Physical Outputs
(IE it could be "F1", or "F28" which turns the Cab light On/Off, or any "F-key" in between...
...the DCC system just issues the "Fn command",
and the Decoder works out which-if-any Physical-wire Output should respond...)
- That said, if we assume that the NixTrainz terminology of "An" terminals lines right-up in sequence behind the "F0f"/"F0r" Headlights, then _I_ would go with the following Physical Wiring config:
Task Wire Color DB Aux board terminal
Front Headlight White 0f
Rear Headlight Yellow 0r
Left Ditch Green A1
Right Ditch Violet A2
Cab light Brown A3
...and then program the new 21-pin decoder so "Output 3"/"A1" (Left Ditch), "Output 4"/"A2" (Right Ditch),
and "Output 5"/"A3" (Cab Light) respond to the required "F-key" Input commands...
Quote:
None of my Atlas locomotives have a blue wire anywhere, or anything besides red, black, and white; but I understand that is usually the best candidate for soldering at U+ to cover all lighting functions. Is that a safe bet?
Given what you've learned above, I would hope you've already worked-out that 3-wires
(Red, Black, and White) are not-enough for even a basic DCC "Motor only" install,
which means that the Atlas locos you are looking-at are either Analog (NOT DCC-equipped),
or have some hard-wired connections you are not seeing/identifying...
In the DCC world, the BLUE wire is explicitly and specifically defined as "Function Common (+ve volts)",
so Yes, "U+" can be safely assumed to be "the Blue Wire"...
(Unless someone has done something very silly, and Very Not-DCC-Spec!!!)
Quote:
Does each other color simply go to an individual function slot, one each?
See above, although the term "Function Slot" does not match any known DCC terminology?
What we can say is that, for each individually-behaving Light/LED,
there must be a matching discrete physical Output (color) Wire.
Quote:
The headlights front and rear have their own (red and black) wires for O"f" and O"r",
Um, close, but not-quite:
- YES, the Front Headlight is "F0f" (NMRA DCC Term) / "0f" (NixTrainz DB term)
- YES, the Rear Headlight is "F0r" (NMRA DCC Term) / "0r" (NixTrainz DB term)
- NO, in the NMRA DCC world, the Headlights are NOT the Red or Black wires!
(Again, if you have a loco which claims to be "DCC Ready" or "DCC Equipped",
and yet uses Red or Black wires for ANY of the Headlight or Function Outputs,
then someone has done something very silly, and Very Not-DCC-Spec!!!)
Quote:
Do you think any of them are supposed to be doubled up since right now 3 function buttons control 4 light functions ?
See above:
- the Headlight ("F0") function key on your DCC throttle simply sends a "F0 ON/OFF" command to the Decoder
- The Decoder recieves this "F0" command,
- the Decoder reads the "Current Direction" state,
- then enables the appropriate "Output wire" in consequence
(IE One "Function INPUT" is routed/mapped by the Decoder config to control TWO "Output wires")
- The Cab Light (Which Function key?) on your DCC throttle sends a "Fn On/OFF" command to the Decoder
- The Decoder recieves this "Fn" command,
- then enables the appropriate "Output wire" in consequence
(IE One "Function INPUT" is routed/mapped by the Decoder config to control ONE "Output wire")
- The DitchLight (Which Function key?) on your DCC throttle sends a "Fn On/OFF" command to the Decoder
- The Decoder recieves this "Fn" command,
- then enables the appropriate "Output wires" in consequence
(Simply turns any "Ditch Light" configured output ON or OFF)
- When the HORN (usually F2) command is received by the decoder,
it invokes an "flashing" mode on ANY OUTPUT which the decoder thinks is a "Ditch Light",
with ALTERNATE flashing for LEFT and RIGHT "ditch lights"
(This is why the TWO Physical Ditch lights each need THEIR OWN individual Output wires,
a SINGLE "Ditch Light Output" wire feeding both bulbs/LEDs would mean they could only flash TOGETHER,
not ALTERNATELY...)
I hope this helps...
Happy Modelling,
Aim to Improve,
Prof Klyzlr