Dallee Electronics has some stuff that should be able to do that.
https://www.dallee.com/
They have a reverser, and they have detectors with "set" and"reset" functions.
Sheldon
If they are just going to shuttle back and forth, all you need is a reversing system - unfortunately Tam Valley stopped making theirs. But if this doesn't interchange to the rest of the layout, there's no reason the trolley line has to be DCC. There are DC shuttle devices that even have a middle stop.
For the track, from one end it would be a single track, then a turnout to split to a section of double track in the middle, then another turnout to go back to single track. A gentle spring keeps each turnout lined so that when you come from the legt, it goes to the upper track, when you come from the right, it goes to the lower track. No controls necessary. All you need is a circuit that has a sensor at each end to reverse direction, and a sensor in the middle to make a pause at the middle stop.
Azatrax has several options, but the only one they DON'T have it this design with the split in the middle.
--Randy
Modeling the Reading Railroad in the 1950's
Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.
I'm running HO scale on the Digitrax system. Ultimate goal would be automated so the trolleys don't collide of course. Length not yet determined, but at 3 feet if that would work.
I believe I've seen somewhere, a video on occupancy detection. I want to set up a streetcar line that uses sidings to enable two way traffic. Any suggestions on what to read or how to go about this?