Optical Detection Explained

Well, there I go again.  Earlier I posted a column celebrating the completion of all the hardware and wiring for my optical detection system (well, it’s not really complete….I still have to build the panels that will display the occupancy indicator LEDs).

Problem is, I just assumed all readers would know what I was talking about.  Not!  I’ve been informed that I should quit assuming.

So, I’ll try to explain in 3000 words or less, just what an optical detection system is.  Now keep in mind that my explanation here is strictly in the context in which I am employing said detection system.  And I will avoid getting into the directions that the electrons are traveling and the gory details of the circuitry that makes this all happen.

I have six staging tracks, all of which are hidden from normal viewing.  In order to ascertain where a train is while running on this track, I decided to employ a detection system.  There are several ways to detect a train, and I chose to employ optical detection.  The system utilizes photo-transistors (PTs) which can sense whether or not they are seeing light.  When they do, they will turn on, that is, they act as a switch and will close a circuit.  I have installed my PTs centered in the track between a pair of ties, with their tops just above the roadbed.  The PTs are wired to a circuit board located under the layout.

As a light source, I’m using infrared LEDs (IR-LEDs).  To avoid seeing light beneath the layout, and to make the circuit less susceptible to ambient lighting, I chose to use components that are sensitive to light in the infrared range.  This isn’t visible to the naked eye, and in fact, that’s what most TV remote controls use.  The PTs and the IR-LEDs selected are matched to their light spectrum and work in harmony together.  The IR-LEDs are mounted on the “towers” I spoke of in the last post, and are pointed down at the PTs.  They are simply wired to a 12 volt DC bus (a pair of wires).

The circuit board I mentioned above is the “brain” of the system.  The inputs to the board are the PTs.  The outputs are to plain old red LEDs which are used as indicators, installed on a simple panel with a track diagram.  Each indicator LED is placed on the track diagram at the location where a PT sensor is located on the actual track.

With the power on and the IR-LEDs shining brightly, the PTs see the light and the circuit board determines there is nothing out there as no PT is “closed”.  Therefore, no power is supplied to the indicator LEDs on the panel.  But when a train comes along, it blocks the light of an IR-LED shining on a PT below, and that PT turns on, which in turn lets the circuit board know that something is at that location.  It in turn lights up the appropriate panel indicator LED and you now have a visual indication of where the train is.

Simple, huh?

Actually, it really is.  I purchased the circuit boards already built up from a fellow hobbyist up in Canada.  All I had to do was install the PTs and IR-LEDs, and wire them up.

Your test will arrive in the mail later in the week.

-Jack

3 thoughts on “Optical Detection Explained

  1. Jack, I continue to be amazed at the increasing use of electronic technology in model railroading – it’s almost a sub-hobby unto itself to figure out those techniques. I’m impressed by the re-purposing of those steel brackets too. Nicely done. Matt

  2. Hi Matt,

    You’re right about how one can get buried in the sub-hobby of model railroad electronics. I used to be much more into it some years ago than I am now. My first big project was the TAT III throttle that Linn Westcott designed. When he later designed the improved TAT IV version, I had to build that also.

    Now-a-days, I’m content to just buy ready built stuff, or perhaps the circuit boards and assorted hardware to go with it (like the optical detector project).

    See you next month at Lou’s.

    -Jack

  3. Great concept about the scents. Freshly cut pine brings back memories of strings of pulpwood cars on ICG trains going through Hattiesburg. On the other hand, maybe a little light on the paper mill they were heading too!! Traveled up Hwy 61 between Vicksburg and Memphis the other day along the ex-Y&MV, still cannot stand the fact that they ripped the line out with the exception of a portion of the line in the vicinity of Clarksdale. Appreciate the posts Jack.

Comments are closed.