<div dir="ltr">Chip,<div><br></div><div>I think you could set timer for the carrier generation to produced 15 cycles and have the interrupt from the IR detector stop the pulse generation and set your result flag. So if you reach 15 cycles, the path to the reflector was blocked indicating an object in the path. This would let you keep your IR LED drive time as short as possible by turning off the drive as soon as the carrier is detected. So if your detector is awesome and locks in 7 cycles, it only get 7 cycles. If the detector needs 12 cycles, it gets only 12 cycles. </div><div><br></div><div>I wonder if heavy fog or rain would reflect enough of the IR to trick the receiver into believing it could ALWAYS see the reflective target?</div><div><br></div><div>Shane<br><div><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 24, 2016 at 11:57 PM Chip McClelland via TriEmbed <<a href="mailto:triembed@triembed.org">triembed@triembed.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Shane, <div><br></div><div>That makes a lot of sense.  By looking at a specific time and for a specific carrier frequency (38 kHz), I can better see the signal against the background noise.  </div><div><br></div><div>So, instead of a phototransistor circuit, I would use an IR receiver sensor such as this one - <a href="http://www.vishay.com/docs/82474/tssp4p38.pdf" target="_blank">http://www.vishay.com/docs/82474/tssp4p38.pdf</a></div><div><br></div><div>To reduce the duty cycle, I would only run the 38kHz signal in bursts or 10-12 pulses.</div><div><br></div><div>Will check this out.</div><div><br></div><div>Chi</div><div><br></div></div>
</blockquote></div></div></div></div>