A good friend of mine designed and made a ditch lite board running off the serial data from my 2 railed Lionel TMCC trains.
I have used TMCC forever , since 97 , never had a board failure . I took scale 3 rail diesels and 2 railed the trucks , then just attached the wire for the center roller to the wipers touching the insulated wheels , simple.
Here is a video clip of the ditch lites , on current MTH or Lionel diesels the ditch lite flash on and off , this goes Dim to Bright like the real thang ! I know it looks like it is 3 rails , but is 2 rail , that is a test track so I can check 2 or 3 rail trains AC or DC.
This is triggered when the horn is blown ,and resets to full on after 30 seconds . I could have chosen a shorter timer but for me 30 seconds is what I wanted.