LGB Train

Goal: Automate LGB train tracks

 

Steps:

  1. Make a control centre
  2. Convert old battery locomotive to regular locomotive
  3. Convert manual "wissels" to remote controlled
  4. Create a loc decoder to allow multiple locs on the track
  5. Add loc sounds
  6. Make it possible to add a loop to a track

 

1. Make a control center

Goal: create a DDC control unit.

REPLACE WORDS WITH RIGHT TERMINOLOGY: Command station, Throttle, etc

 

Protocol LGB:  NMRA "DCC" standard

https://www.nmra.org/index-nmra-standards-and-recommended-practices

Assuming the max voltage of +/- 22V of DDC (source), requires a step-down converter able to withstand 44V input (minus de drop over de rectifier).

 

Basics:

 

Issue:

 

Testing and understanding data:

Explanation of bits:

Note: the red crosses. Here is the timing not within DCC specs

 

1.1 Making a control center / 'throtle'

Step 2: creating a user controller

 

1.2 Making a basic DCC receiver circuit

 

DCC track voltage

"Without causing you great headaches, here are the maximum track voltages for the four scale settings DCC is designed for:"

Scale Volts
Z 11(*)
N 12
HO 15
O/G 20

(source: https://dccwiki.com/Power_supply, with the exception of (*) which is from https://sites.google.com/site/markgurries/home/technical-discussions/boosters/nmra-track-voltages)

Frequency, rise times and fall time

While I could not find anything in the standard refering to rise times and fall time specifications. There is a hint in the https://www.nmra.org/sites/default/files/s-9.3.2_2012_12_10.pdf. It tells two things:

  1. 250 kbit/sec
  2. The risetime should be less than 0.5 usec for a voltage going from 10% of its max to 90% of its max

 

Starting point: http://www.mynabay.com/dcc_monitor/

On this website the following schematics can be found, in orange my corrections. Schematic components explained below the figure.

 

 

Rationale behind components and its values:

 

 

 

 

 

2. Convert old battery locomotive to regular electric locomotive

The start point was my old green battery LGB loc 99 5001. The plastic tracks were sold some time ago and this train was waiting for a make over to run on the regular electric tracks.

This means 2 things:

1. There needs to be a electrical signal pickup from the track

2. The voltage picked up from the track can be much too high. Remember it was a battery operated train, which means the motor was designed for ~3V DC. So a conversion is needed from the 12V...20V track to 3V.

Starting point:

=> Parked unsuccesfull !

 

3. Convering electrical LGB loc to DCC++

=> DONE, Working (explaining text pending)

 

4. Create a loc decoder to allow multiple locs on the track

=> DONE, Working (explaining text pending)

 

5. Convert manual "wissels" to remote controlled

=> DONE, Working (explaining text pending)

 

Thingiverse used part: https://www.thingiverse.com/thing:846677

Note that address byte starts always with "10" for accessory decoder.

Command for DCC++ starts with <a ...

 

 

 

6. Add loc sounds

6.1 Steam-whistle

Option 1: with MP3 player

Option 2: with ISD1820

6.2 Steam-engine

Based on White-noise generator:

https://www.eeweb.com/extreme-circuits/simple-white-noise-generator

 

7. Make it possible to add a loop to a track

 

8. Smoke out of loc

Started with example:

https://www.instructables.com/id/An-Inexpensive-Smoke-Fog-Generator/

 

 

9. Sounds to train station

=> DONE, Working (explaining text pending)

 

10. Full operational crossing (light, sound, movements)