<span id="mailbox-conversation">Brian,<div><br></div>
<div>Just change back to the 100k. The larger resistor provides a weaker pull-up and makes it easier for your IR signal to turn on the photo-transistor and pull down the output signal. The higher value of the 100k will make your sensor more sensitive to external light sources. But it sounds like your light shield on the  detector is keeping out any extra light. Just be careful in the future if you start getting false triggers due to new light sources or moving the track to a new location. </div>
<div><br></div>
<div>Another option would be using a smaller value resistor on your LED but you must stay under the LED current limit. I recommend the 100k pull- up since you already know it works. </div>
<div><br></div>
<div>Shane</div>
<div><br></div>
<div><br></div></span><div class="mailbox_signature">
<br>—<br>Sent from <a href="https://www.dropbox.com/mailbox">Mailbox</a>
</div>
<br><br><div class="gmail_quote"><p>On Sat, Jan 17, 2015 at 3:21 PM, Grawburg <span dir="ltr"><<a href="mailto:grawburg@myglnc.com" target="_blank">grawburg@myglnc.com</a>></span> wrote:<br></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><p>My train/conveyor project developed a glitch when I redid the protoboard I was using.  The key to the project was an pair of IR LED emitter/detectors (Sparkfun SEN-00241) that until the rework operated just fine when 4.5 inches apart. Both units were inside of 1/2" tubes so that room lighting did not affect them.   Circuit is attached. (I'm using 3.3 VDC)
<br><br>Now, here's the one change -- and it's actually due to an original mistake.  The schematic shows a 10k resistor going to the collector of the detector. That's what I thought I had used on the original board (the one that worked) but discovered I actually had a 100k. My new board does have the 10k and what is happening is that instead being able to have the emitter/detector work at 4.5" they only work at about 2". Meaning that voltage goes to Vout which is a pin on my MCP23008 port expander when the devices are much beyond 2 inches apart.
<br><br><br>Thanks,
<br>Brian Grawburg
<br><br><br><br><br><br><br><br><mailbox-attach filename="Conveyor_Railroad_LED.PNG" size="8247" mime="image/png" src="mailbox://attachment_download/FCF471D9-0B23-4941-BC53-D2E1AC2E679E/EFCF471D9-0B23-4941-BC53-D2E1AC2E679E_1490578164169507716/2"><Conveyor_Railroad_LED.PNG></mailbox-attach>_______________________________________________
<br>Triangle, NC Embedded Computing mailing list
<br>TriEmbed@triembed.org
<br>http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
<br>TriEmbed web site: http://TriEmbed.org
<br></p></div><mailbox-attach filename="Conveyor_Railroad_LED.PNG" size="8247" mime="image/png" src="mailbox://attachment_download/FCF471D9-0B23-4941-BC53-D2E1AC2E679E/EFCF471D9-0B23-4941-BC53-D2E1AC2E679E_1490578164169507716/2"><Conveyor_Railroad_LED.PNG></mailbox-attach></blockquote></div><br>