Hi all, trying to perform a function on a model rail layout. I need to have a setup where a single trigger input, be it a simple momentary button switch, or a signal from an infrared sensor, or even a reed switch, it doesn't matter, but I require two outputs that switch from one to the other when the input is triggered. The outputs can be latching on, or just a momentary signal to drive a relay. Probably a momentary would be best. I am trying to set up a system where a train is sent down one direction, then reverse and be sent down the other track after it reverses back over the sensor trigger. I have the automatic reversing all worked out, jut the A/B output to switch the direction points of the track.I thought maybe something around a 555, or similar might do the job. Any help would be much appreciated.