I am into model railway and I am currently considering time-of-flight sensors to detect train presence on tracks (HO scale). However most TOF circuits come on PCBs and seem to be mainly available as integrated circuits and have many pins. So I am wondering if any such sensor could be set at a cable's end so to be tiny enough to be placed between two sleepers/ties.
Ah i had to look it up, but then i remembered this item. (itr8307) which is used in my digital heating radiator controller. Tiny Led and photo-transistor in one package. It will require a small reflector for the object passing over it, and i think it's IR, so it won't be visible to the human eye
That component is a simple reflection sensor. A TOF sensor is much more than that.
A reflection sensor is basically a switch. Yes/no reflection.
A TOF sensor is used to measure the round-trip or amount of reflected light, for exact distance.
To detect trains a simple reflection sensor is enough.
A powerful IR LED and a low sensitive sensor could make it less dependent on ambient light. Another small reflection sensor.
Leo..