Trains.com

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

DCC-friendly occupany detectors

2268 views
6 replies
1 rating 2 rating 3 rating 4 rating 5 rating
  • Member since
    April 2015
  • 469 posts
DCC-friendly occupany detectors
Posted by Enzoamps on Thursday, April 9, 2015 2:33 AM

From May issue, I believe there is a drawing error in the schematic for the simple circuit, figure 4.  As drawn, the relay contacts are across (parallel) the relay coil.  That means when the relay energizes, the contacts close and short across the coil.  That won't work.  Either it would damage the transistor or it might turn the relay into a buzzer.  Or if the normally closed contacts are across the coil, when it tries to energize, the coil is shorted across.  The relay contacts should not be wired to the coil.

The wiring in figure 7 is accurate.

  • Member since
    July 2009
  • From: lavale, md
  • 4,678 posts
Posted by gregc on Thursday, April 9, 2015 3:05 PM

i agree, the relay contacts don't need to be part of the relay driver circuit.   The schematic is drawn incorrectly.

it's also unclear if by -9VDC they mean a -9V source relative to ground or simply the ground side of the +9VDC source.

not sure why there's a capacitor across the relay coil

A think a more interesting design would use a capacitor to determine a reference level due to the ambient light conditions that could be compared to the level on the photo-transitor.   That would avoid the need for adjustment.

greg - Philadelphia & Reading / Reading

  • Member since
    April 2015
  • 469 posts
Posted by Enzoamps on Friday, April 10, 2015 12:36 AM
From the article, I assumed the -9v meant the negative side of the +9. Not the usual notation. In the article, he mentioned the cap as a bit of delay to prevent the relay from dropping out as the spaces between cars passed over the sensor.
  • Member since
    July 2009
  • From: lavale, md
  • 4,678 posts
Posted by gregc on Friday, April 10, 2015 3:25 PM

Enzoamps
In the article, he mentioned the cap as a bit of delay to prevent the relay from dropping out as the spaces between cars passed over the sensor.

wouldn't it make more sense to put the capacitor across the photo-transistor which operates with less current instead of the higher-power relay path.   At the very least, a smaller capacitor could be used.

wouldn't it be more conventional to put the relay on the collector side of the transistor, or is it intentional to provide some latching behavior?

Because the relay voltage will vary with the current through it, the turn-on/off voltage at the base will vary.   If the emitter were at ground, like the phototransistor, the turn-on/off voltage would be independent of the current through the collector.

greg - Philadelphia & Reading / Reading

  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Friday, April 10, 2015 7:03 PM

 Used to be they'd build and test a circuit before publishing it in MR. There are clearly several design issues with this one, perhaps in an attempt to oversimplfy things. Bob Frey's optical detector was about as simple as it gets.

 Yes, the cap should probably be opn the low current said. And yes, an open collector configuration is much more efficient. As drawm it makes a nice buzzer as long as the phototransistor is blocked and until it burns out the driver transistor - the relay will pull in, instantly short, drop open, pull in - over and over. Good thing there's a dioode across the coil. The usualy way to make a buzzer is to run the relay coil through the NC contacts, at which point the relay will buzz at a frequency mainly determined by how fast the contacts move. Running a wire to one of the coil leads (with no diode) will make a nice shocker machine.

                      --Randy

 


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

  • Member since
    July 2009
  • From: lavale, md
  • 4,678 posts
Posted by gregc on Sunday, April 26, 2015 6:16 AM

an alternate circuit was asked for on a different forum.   I bench tested the circuit below using scrap parts.    It has fewer and less expensive components.

it's too bad that the article both had a misprint and is a more complicated design than necessary.  Such articles can be stepping stones for modelers to learn, build and design their own circuits instead of relying on $$ commercial products.

for me, building such circuits is a significant and satisfying part of building a model railroad similar to building your own turnouts.   When someone suggests to me that there's a commercial product for $$, I think about building by own.

greg - Philadelphia & Reading / Reading

  • Member since
    December 2004
  • From: Pa.
  • 3,361 posts
Posted by DigitalGriffin on Monday, April 27, 2015 9:41 AM

Why not just wrap one of the track wires around a magnet coil (transformer) then through a rectifier, then use that lead to feed with a cap in parallel a base pin transitor.  The Collector is connected to the relay power source and the Emmiter to the occupancy sensor or LED.    Just be sure to measure the base pin voltage before you hook it up to the cap or transistor or you may go "BOOM"  This can be corrected with either more or less wraps around the magnet or a voltage divider circuit.

Parts List:


1.  Transistor

2.  Capacitor 

3.  Relay

4.  two resistors (voltage divider circuit)

5.  Wire and metal core to make transformer.

Another popular way is to just put four diodes (two each way in parallel) across one leg of the track for your base source on the transistor.  But I don't like this approach as it causes a 1.4V voltage drop to the track.

Don - Specializing in layout DC->DCC conversions

Modeling C&O transition era and steel industries There's Nothing Like Big Steam!

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Users Online

There are no community member online

Search the Community

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
Model Railroader Newsletter See all
Sign up for our FREE e-newsletter and get model railroad news in your inbox!