Thanks Phil!
Dave
I'm just a dude with a bad back having a lot of fun with model trains, and finally building a layout!
Hi everyone
The part numbers that I was sent from Digi-Key were:
emitter was 754-1600-ND and the IC Phototrans IR was QSD123-ND.
The problem was I used the computer created drawing from an earlier thread to wire up the circuit . The drawing is correct but note on the emitter about the positive being the long terminal is placed over the top of the emitter which is the negative side. Oops. When I looked at the hand draw one at the start of this thread I could see my mistake.
Thanks again.
Phil
Phil!
I am so glad to hear that you solved your problem!
Perhaps you could post the replacement parts numbers so people don't have to search them out themselves.
Thanks
Thanks everyone.
I reversed the wires on the emitter LED and the circuit is now working. I will play with the resistor to fine tune the sensitivity.
Thanks again
cacole and gregc:
Thanks for responding. You know way more about this stuff than I do.
I did test the circuit on an actual piece of track with rolling stock and it seemed to work fine.
Phil:
You might want to contact Robert Frey who is the original designer of the circuit. If you scroll up the thread you will see a couple of posts by him. I am disappointed to hear that the specific components are discontinued. That makes things harder.
i believe these symptoms could be explained by the transistor receiver being too sensitive and/or the LED emitter not bright (how would you tell) enough.
the transistor/receiver can be made less sensitive to room lighting by reducing the resistor value in series with the photo transistor. A pot may make things easily adjustable.
the LED intensity can be increased by reducing the resistor value in series with it. There should be a spec for the LED max current. pick the resistor that give that value for the applied voltage.
somewhere, there is a good combination. shadowing the photo-transistor can also help
greg - Philadelphia & Reading / Reading
dadstruck I purchased my parts from Digikey, the photo receiver and infared that are listing on the sheet are no longer available. They shipped a cross referenced units. I have the shrink wrap on the photo cell 2" long. My problem is that the led stayed on all the time until I turned out all the light in the room. Phil
I purchased my parts from Digikey, the photo receiver and infared that are listing on the sheet are no longer available. They shipped a cross referenced units. I have the shrink wrap on the photo cell 2" long. My problem is that the led stayed on all the time until I turned out all the light in the room.
Hi Dave
I have tried constructing the circuit the way it is in the diagram. I purchased my parts from Digikey, the photo receiver and infared that are listing on the sheet are no longer available. They shipped a cross referenced units. I have the shrink wrap on the photo cell 2" long. My problem is that the led stayed on all the time until I turned out all the light in the room. When I moved the infared diode to the end of the shrink tubing on the photo receiver the led will not come on. Any suggestions. I have a basic knowledge of electronics from years back.
I like the circuit and how it should work is ideal for where I need it.
Ok - Its Dave again (hope you're not getting bored!)
I tested the detector again with it mounted between the rails so the IF reflects off of the bottom of the cars. The receptor was shielded with heat shrink tubing so that the tip of the receptor was about 5/16" below the bottoms of the ties and the heat shrink extended up to the bottom of the ties. I used a 1/16" drill bit inserted into the open end of the heat shrink touching the receptor tip to control the shrinkage.
Under normal lighting on my work bench the detector worked fine. My 'normal' lighting consists of two desk lamps with 23 watt compact florescent bulbs, a third desk lamp with a 50 watt halogen bulb and four 60 watt incandescent pot lights in the ceiling over the workbench.
I then held the detector within five inches of one of the compact florescents and there was no interference. Next I held the detector within five inches of the 50 watt halogen and the detector light did come on indicating interference. There is a lot of light at five inches from a halogen bulb, certainly more than would be on the surface of a layout.
I also experimented with different lengths of shielding in front of the receptor. At 3/4" nothing worked. At 1/8" there was a lot of interference. 5/16" seemed to work the best.
Obviously everyones' layout lighting will be different so you will have to play with the shielding to get the best performance.
Ken:
I did a rough test of your suggestion about mounting the detection circuit across the track on an angle to the cars.
With 12V supplied the detector worked with up to about nine inches between the emitter and receptor. However, there was a lot of interference from the light in my workshop. The receptor had to be shielded for about two inches from its tip towards the emitter, and the lights on my workbench had to be turned off, leaving only the 60 watt pot lights in the ceiling. That is not nearly enough light for daytime operations.
I then tested the detector at 9.2V. The detection distance was only reduced by about one inch, but the amount of interference was reduced fairly significantly. The receptor still required additional shielding.
I don't recall having a problem with interference from room light when I tested the detector mounted between the rails using reflected IF instead of direct. I will test that again and let you know what I find.
My conclusion is that the circuit may be too simple for use across the track where it is exposed to normal ambient light. Also, it would likely only be good for single track applications unless the components were mounted very close to the track.
It still looks like a cost effective method for detection in hidden (shaded) staging.
Thank you for pointing out another possible arrangement for the detector system. In fact, it would make more sense to mount the detector as you suggest in areas like hidden staging where the detectors don't need to be hidden.
I was more interested in finding something that could be easily hidden and used to control visible turnouts, hence the between the track setup. The circuit as shown won't do that all by itself. A relay would have to be added to deal with the voltage required for the turnout motor. When I get that far I will post a diagram with the added components. Maybe one of the electronic gurus (which I am definately not) could beat me to it.
I haven't tried them in the across track configuration that you suggest but I know you are right because I did test the detector with the emitter/receptor facing each other several inches apart. The 1 1/2" distance I gave was with the emitter and receptor mounted side by side with heat shrink tubing used to reduce the angle of detection on the receptor.
Thanks for your input.
hon30critterThey will consistantly detect at about 1 1/2".
I would be very surprised if all it can detect is within that short of a distance. Have you tried mounting and stagerring along the outside of the track the emitter and receptor so that they would not see the gap between cars? The first car would break the beam and it wouldn't see a space again until a very short car or the end of the train is detected. Just be sure the they are correctly aligned and you should get more than 1.5" operating area. Ken
Dave:
I removed this information because ALL my IR circuit links use Obsolete IR Parts. I need to update these links someday with "New" IR parts.
For “New” IR parts visit:
http://cs.trains.com/mrr/f/744/t/219552.aspx
Bob Frey
Website: http://bobfrey.auclair.com
Bob:
Thanks very much for your valuable contributions to the thread!
In fact, I have to give you credit for the original circuit that I started the thread with. I couldn't remember where I got it from but as soon as I saw your diagram I recognized it immediately.
EDIT:
I just realized that the original circuit was published in an article by you in MR in October 2009, with some corrections made to the published diagram in a later issue.
I hope that I have not broken any rules by posting your design.
Dave,
I am bumping this thread in the simple hope that a few fellow model railroaders who have not seen it might be interested.
If the bump is inappropriate, please let me know. Thanks Dave
I may build some of those, but get some panel mount meters, cheaper than a RRampmeter. Depends on where I end up before building my 'dream' layout - depending on the room size and track plan it will probably make more sense to distribute boosters around the layout than have long heavy bus runs from some central power panel. Master power panel with meters and stuff would look cool though.
--Randy
Modeling the Reading Railroad in the 1950's
Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.
hon30critter Thanks Rich: I have had Mr. Paisley's link stored for years. Great stuff! I built some of his circuits for double coil switch machines and they work well with the proper power supply. Dave
Thanks Rich:
I have had Mr. Paisley's link stored for years. Great stuff!
I built some of his circuits for double coil switch machines and they work well with the proper power supply.
Yeah, same here. I love his DCC amp meter for use with a cheap Harbor Freight multimeter. I built two of them and they have paid off. Quite well.
Rich
If you ever fall over in public, pick yourself up and say “sorry it’s been a while since I inhabited a body.” And just walk away.
Store this link and look around. There may be some ideas that may apply to this project. He has a lot of model railroad projects.
http://home.cogeco.ca/~rpaisley4/CircuitIndex.html#top
Actually a good "how do they work" was in MR back in the early 60's, an article by Linn Wescott, of course. Naturally it was all about Germanium tranistors, but the principle is the same. Or there are tons of web pages, even the Wikipedia article, if you really want to learn a little about this stuff.
I think that also fairly simple circuit from MR a while ago (correction posted here - as drawn int he magazine it was wrong) is the opposite type - turns on the load when the bean is broken, vs this one that turns off the load when the beam is broken. Or check out Rob Paisley's site, he's got a million of them. Don;t discount some of the ones that on the surface appear more complicated because they use an IC - some of those eng up with 2 or 4 detectors from just one IC - in the long run even cheaper than these simple transistor circuits.
dave
yes. i believe you understand the point i was trying to make. and Randy made some very good points. But i'd like to make 2 additional points:
1) don't know if you understand how transistors work. The base-emitter (BE) path, the one with the arrow has characteristics of a diode. if the voltage across the BE is greater than a diode drop, ~0.7 volts, the transistor begins conducting. In the Darlington case, there are two diode drops, so the voltage at the base of the darlington, the lead on the left side of the circle, needs to be above ~1.4 volts. The 220k resistor is pulling that voltage down and the photo-transistor is pulling up when active.
one question is how distinct is the voltage change at the base of the darlington when there is light or no light? This determines how reliable it switches, and this may be why the load, the LED and resistor, are where they are. but i don't think so. It would be nice if the light level needed to be a little higher to turn the circuit on than it needs to be to turn it off (hysterisis).
2) the circuit is active, the darlington is conducting, when the photo-transistor is active, hence when the light path is not broken. This may not be desired, it may be more convenient to to have something pass current when the light path is broken by the presence of a car.
another approach is to swap the positions of the photo-transistor and 220k resistor. This way the photo-transistor actually turns the darlington off instead of on. This way the the circuit become active when a car is present.
greg
The way Greg redrew it, you could even thoeretically use a different power supply for the load. A latching relay though, well, you'd need something else to turn it off. Any load within the current capacity of that Darlington transistor would be fine though. If the load is inductive, like a relay coil, it should have a regualr diode paralleled across the coil to prevent the inductive kickback when it releases from causing a damaging voltage spike in the transistor.
You COULD rig a latching relay with a normally closed button to make an auto-stop for a hidden siding - when the sendor is covered, the relay trips and cuts track power. To get the train back out, you press the button to cut the relay power until the train has moved enough that the sensor is no longer blocked. As long as the sensor is far enough away from the bumper so that the coupler doesn;t hit before the carbody blocks the sensor, and you don;t barrel into the siding at warp speed, it should easily stop without crashing.
GREGC:
I think I understand what you are suggesting, but let me see if I have it right:
In the original design the position of the red LED/ 680ohm resistor (would this be called the load?) influences the amount of power going through the sensor/transistor part of the circuit. If a different load was applied, i.e. the LED/resistor was replaced by a relay, the sensor/transistor might not work properly.
In your revised circuit, the load (please pardon me if my terminology is not correct) will not affect the sensing function, assuming it is within the limits of the power available and within the transistors's load range.
In other words, different devices could be powered using your circuit - yes? no? For example, could I use this with a latching relay to throw a turnout?
Thanks.
while i'm sure the circuit works as tested, i have to ask if the load driven by the circuit shouldn't be more conventionally on the collector side instead of the emitter side if the darlington pair?
the circuit on the left in the drawing below is what i believe is the circuit as proposed. I suggest that a more conventional approach would be the circuit on the right. One issue is the the load voltage, the LED/resistor in the drawing but possibly a relay, affects the voltage across the 220k bias resistor in the photo-transistor path. I believe the circuit on the right makes the photo-transistor path independent of the load.
however, i can see the need for some hysteresis, to partially latch the circuit on or off, which the proposed circuit may provide, but which i don't understand.
Randy and others:
I have actually tested the circuit at about 9.1 volts and it works fine.
The voltgae would have to be around 12V, give or take a little bit, so regulated may not be needed. To operate on a completely different cupply voltage, like a 9V DC supply, the values of the resistors would need to be changed. I calculated my last transistor circuit more than 25 years ago so off the top of my head I don't know what those values would be. Heck, 9V might even work as-is, but not any lower - testing a lower voltage to see if it works won't damage anything, just don't test OVER 12V. Worst that can happen if the voltage is too low is either it won;t light the LED or it will always stay lighted. Much lower than 9V and definitely that 680 ohm resistor connected to the LED will need to be reduced.
mlehman By filtered DC, I assume that's the same as a regulated DC source?
By filtered DC, I assume that's the same as a regulated DC source?
A regulated supply would be filtered. However, a filtered supply wouldn't have to be a regulated supply. Filtering means that a suitable capacitor has been added after the diode(s) to smooth out the DC. A simple AC transformer-diode bridge-capacitor circuit would be an example of a filtered, non-regulated supply.
Joe
BTW, I also wonder about operation at voltages lower than 12 volts, although that something I know I'll need to experiment with. Maybe one of our electronic gurus has a suggestion about that>
Mike Lehman
Urbana, IL