A loco decoder converts the digital track signal into motor control, lighting and sound. This guide explains what they do, which protocols exist and how to choose.
A loco decoder is a small circuit board installed inside the loco. It receives the digital signal on the track — DCC, Motorola (MM) or mfx — and translates it into control signals for the motor, front and rear lighting and additional functions such as sound or smoke unit. Without a decoder a loco runs on analogue DC; on a fully digital layout it either stops or runs uncontrollably.
The command station (such as a Z21 or DCC-EX) sends a drive command with an address: "address 42 at speed 50%". Only the loco with address 42 responds. All other locos ignore the command. This allows running multiple locos independently — the core of digital model railway control.
Address settings and driving behaviour are configurable via CVs (Configuration Variables). The most commonly used is CV29, which sets direction, step mode and address type. See the DCC tools page for the free CV29 calculator.
Not all decoders speak the same protocol:
A sound decoder has a built-in DAC, amplifier and speaker output. It plays driving sounds (diesel, steam, electric), horn, whistles and other sounds based on function commands. Sound decoders are larger and heavier than non-sound variants; in smaller scales (N, TT) the available space is a limiting factor.
Well-known sound brands: ESU LokSound 5 / LokSound 5 micro, Zimo MS series, Doehler & Haass (sound variants). Well-known decoders without sound: ESU LokPilot 5, Zimo MX series, Lenz, Tams, Kühn, Uhlenbrock IntelliDrive.
| Brand | Key lines | Protocols | Sound |
|---|---|---|---|
| ESU | LokPilot 5, LokSound 5 | DCC, MM, Selectrix, M4 (mfx-compatible) | LokSound: yes · LokPilot: no |
| Zimo | MX series (no sound), MS series (sound) | DCC, MM | MS series: yes · MX series: no |
| Doehler & Haass | DH, PD | DCC, Selectrix | Sound variants available |
| Lenz | Gold, Silver, Standard | DCC only | No |
| Uhlenbrock | IntelliDrive | DCC, MM | Variants available |
| Tams Elektronik | LD-G, LD-W | DCC, MM | No |
| Kühn | N series, T series | DCC only | No |
| Märklin / Trix | mfx decoders | mfx, mfx+, MM, DCC | Variants available |
| Roco | various | DCC | No (generally) |
| Piko | various | DCC to be confirmed | No (generally) |
F0 is the headlight (front/rear, automatically switched by the decoder based on direction). F1 to F28 are freely assignable: each brand maps different functions to these keys, such as motor sound on/off, shunting mode (limited top speed), pantograph up/down, smoke unit, cab light. ModelRailPro operates F0 to F28 as standard via the driving interface.
The upper limit of function count varies by decoder brand and protocol; above F28, availability is brand- and protocol-dependent and not uniformly supported across all command stations.
Need a command station comparison? See Z21 vs DCC-EX or Z21 vs Märklin CS3. Setting CV values? Use the free DCC tools.