Ir sensors not working

Having a problem installing ir sensors they will not work

That’s not much info or are you just complaining about IR detection?

EDIT:

LED room lighting can ding the IR sensors. I have LED replacement bulbs in my garage and the IR sensors can see the IR emitted from the overhead lighting.

Mel

My Model Railroad
http://melvineperry.blogspot.com/

Bakersfield, California

I’m beginning to realize that aging is not for wimps.

I tried IR detectors for my grade crossing signals, but finally gave up. The visible light ones work well enough, even in dim light, almost but not quite really dark.

If I hold my hand over them they work fine

I take it that they are reflective and don’t respond to rail traffic. Is your system home brew or purchased?

I’m using a Mel made IR beam break system that has worked very well for several years. I’m currently working on a new Signaling system using an Arduino MEGA and FC-51 IR detectors. The FC-51 is a reflective type and requires more detection modules than the beam break type.

The FC-51 is very low cost at 50¢ each off eBay. The published specs on the FC-51 is 11” but the best they will do for me is 3½” to 4”. I’m installing them on 14” centers. Bulk cost for the FC-51 is 50 for a bit under $20.

I have 8 installed between the ties and so far they work great.

They will work as beam break by remoting the emitter at 48" but that inverts the detector output

Mel

how high above them do you hold your hand? ?

one half to three quarter inch

the angular sensitivity can be somewhat narrow. for close distances, both emitter and sensor may need to be tilted toward one another.

Presumably both emitter and detector operate at the same wavelength.

ironically, some sensors require heat shrink tubing to limit their direction to avoid false detections.

Mel weren’t you having trouble with interference of overhead LED lighting?

Henry

Yes. When replaced my 8’ fluorescent tube lighting with 8’ LEDs the IR detectors could see some of the LED IR. It only changed the noise level a bit and I tweaked the sensitivity pots and that took care of it.

I would think a lot of LED lighting mite be a problem for IR detection. The LED replacements are much brighter than the old Fluorescent lights.

Mel

My Model Railroad
http://melvineperry.blogspot.com/

Bakersfield, California

ripgp30

I’m just curious, what IR detector are you using? I’m using the Arduino FC-51 modules. Their advertised specs say 2~30cm but out of 10 the best I can get out of one is 10cm or about 4”.

I bought another batch (50 for $20) and they are about the same as the first batch.

I they come with 5mm emitters and sensors and I have swapped them out with 3mm sensors and they seem to have a bit more range. The reason for swapping them out is the 3mm fit better between the ties.

I remoted the 3mm sensors to make installation and maintenance (adjustment) easier. I drill a 9/64” hole between the ties and e