Hi,
In a way you're right. Opto's are nice. But I'm not sure they'd work in my case. Just assume, I generate some tickle-voltage oscillating with say 1kHz at a few Volt. How can I insert it into a non-powered track with an Opto? With a transformer this has been done often (light power on DC?), I'm not sure whether a capacitor will work (it should by theory ;-)
The detection is the other side, the tickle voltage is sent through say a non-lighted car with a 1K-Ohm resistor accross the axle. The inserted voltage will result in a current of a few milli-amps - hardly enough to "enlighten" an opto... I'm not sure if there's a way to uncouple that current from track power reliably (again with capacitor or transformer).
So in principle I'm sure my system should work, but I'm also sure, practical conditions will leave very little tolerance, if this works at all...
Actually I did have another idea last night. There are capacitance based sensors to detect whether a room is filled (by a person) or not. These systems work with the air of that room as dielectricum and sense a change in capacity. Although I'm sure this would work in a model railroad scenario (provided the train occupies a significant part of that section of track) there is lots of doubt if this will work with train power supply on the same wire...
Hmmm... I'm almost through track-laying, next step is wiring the layout and then some scenery, this leaves enough time to think about occupancy
- until then the "optical" solution must suffice: just look if the track is free ;-)
Ciao...