Aren't you making this more complicated than it needs to be? You will need a relay as you always want one lamp to be lit. Here's a diagram using my board, however if you don't mind a little contact bounce and some flicker, you can use a simple relay for the job. When the train is on the insulated rail section, the red light is on, when it leaves, it switches back to green.
|