The Bernina railcar is a current LGB model with a sound decoder.
For electric locomotives, I’m not really interested in the driving sounds, but it’s nice to let the whistle toot occasionally. So I decided to control the motor directly via the CTC-Loco-Module-G2 and use the original LGB decoder for the sounds. This results in a wiring variant that hasn’t been shown before: I use both motor outputs for the motors and connect the DCC decoder to two half-bridges.
With the old CTC-Loco-Module-G, there was an unpleasant surprise at first: The LGB DCC decoder draws more than the 1-ampere limit of the half-bridge driver when starting. This led to the decision to install a more powerful 2-ampere driver in the CTC-Loco-Module-G2.
This is what the original electronics of the Bernina railcar looked like after opening the housing:
When designing the CTC-Loco-Module-G2, we also took into account the 4-pin connectors used in current LGB models: we optionally equip the track and motor connections with matching pin headers.
As usual with LGB models, the 3.5 A version of the CTC-Loco-Module-G2 is sufficient. In the picture, you can clearly see the two black cables with gray 4-pin connectors coming from the motor blocks and the brown-red cable between the two half-bridges and the DCC decoder:
I saved myself the trouble of connecting the many lighting cables to the CTC module: The DCC decoder can turn the lights on just as well as the CTC module.
There’s enough space in the Bernina railcar to install the CTC module in addition to the original DCC decoder:
I was glad to have the two helping hands of my wife when reassembling it.
Adjusting the Config
In the delivery state of the CTC-Loco-Module-G2, the light is connected to the CTC module. Since this isn’t correct in my case, I remove the light from the list of connected products using the minus button.
Then I select "Bridge-1" (HB-1 / HB-2) on the left and click the plus button under "Pins, Ports and Extensions" to add the DCC connection:
As usual with DCC, the standard address 3 is used.
I rename the "motor" added with the DCC extension to "DCC-Motor".
To make the driving light on the DCC decoder respond to direction changes of the motor on the CTC module, I add a trigger to the DCC motor:
For the trigger’s trigger, I select the main motor (Motor-1):
Then I complete the trigger script so that the DCC motor takes over all state changes from Motor1. Unfortunately, the parameter value "$" (take over value from trigger) cannot (yet) be selected in the CTC app, i.e. I had to select something else and then replace it with the "$" character in the HTML page. The finished trigger then looks like this:
Finally, I added and connected the whistle (locomotive sound from "universell-loks.xml") and the interior light (locomotive light from "universell-loks.xml"):
There are still various other sounds, but one whistle is enough for me.
I had actually forgotten to install the NFC reader – I’ll have to do that at some point.