That's neat Mel!
You should write a manual for how to put Arduinos to work on a layout.
Dave
I'm just a dude with a bad back having a lot of fun with model trains, and finally building a layout!
Where did you find them?
hon30critterYou should write a manual for how to put Arduinos to work on a layout.
X1
Ed
i believe these devices will work OK is dark spaces
I had problems when I experimented with optical sensors embedded between the ties.
I built a system using IR opto-transistors and incandescent room lighting which has a broad enough spectrum to cover IR. This is why refective IR approaches may not work with incandescent or sunlight spaces.
I was given a system, I think from Iowa Scaled Engineering. I looked at the signals driving the emitters and found that they blank the transmitter periodically. This way they can determine if the sensor is really detecting the emitter or some back ground light.
I was also told, that best results were to use shrink-wrap tubing to shield the sensor.
i traded emails with Mel about this. He said he used 38 kHz optical detectors commonly used on TV remotes which filter for the corresponding frequency from the source and have gain control to adapt to room light conditions.
greg - Philadelphia & Reading / Reading
Mel,
I have twenty of these in my stack of things to do. My illness kicked me again and a lot has been put on hold. Glad to hear that these work as I hoped they would.
While waiting to get back in the layout room, I've had a good time reading your blog and following many of your links - thanks for the deversion.
Don
gregc i traded emails with Mel about this. He said he used 38 kHz optical detectors commonly used on TV remotes which filter for the corresponding frequency from the source and have gain control to adapt to room light conditions. greg - Philadelphia & Reading / Reading
hon30critter That's neat Mel! You should write a manual for how to put Arduinos to work on a layout. Dave
RR_MelTheir listing doesn’t say anything about shielding them. It also says it will drive a relay direct but no mention of the output current limitation of the LM393 chip being 20ma max.
welcome to (cheap chinese) arduino stuff . The number of people I've run across who've fried something because they didn't know they needed to check anything other than voltage is somewhat high.
-Dan
Builder of Bowser steam! Railimages Site
RR_MelGreg may be right about fluorescent lighting interference. I cut over to LED lighting in our house a year ago. I’ll run some tests under fluorescent lighting and post the results here.
shouldn't be a problem with florescent light using infared (IR) detectors. Sunlight and incandescents lights extend into IR wavelengths which IR detectors are sensitive to.
RR_MelI don’t have any plans on doing up an instructional thing, I’m not that knowledgeable enough on the Arduino stuff. It’s like my typing, hunt and peck.
You're way ahead of some of us. To me the keyboard is Cyrillic. ЩЩԘ
Henry
COB Potomac & Northern
Shenandoah Valley
Any decent IR system modulates the transmitter and the receiver uses a bandpass filter to look for that frequency. A steady on source like a fluorescent light may swamp the receiver and prevent it from seeing the pulse from the transmitter, but it also shouldn't flasly trigger (unless you used a modulation frequency that can be generated by a harmonic of 60Hz).
I also mentioned that it should be possible to auto-calibrate a system like this, at least on startup, if the receiver uses an analog input, and the threshold is adjusted under effectively a known condition until the receiver can see the transmitter. Then if the beam is blocked, it will detect as such because the receiver is calibrated for the ambient conditons. Probably not really needed for a pulsed IR system since most visible sources won;t have any effect on it.
--Randy
Modeling the Reading Railroad in the 1950's
Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.