Mike,  interesting. Had not thought about reflected light. Is there a way to use polarization to differentiate a signal reflected from the other side and not just from the fog?<div><br></div><div>Thanks,</div><div><br></div><div>Chip<br><br>On Thursday, August 25, 2016, Michael Monaghan <<a href="mailto:mike@chipworks.net">mike@chipworks.net</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Shane,<div><br></div><div>That's elegant and conserves power.  Only think I can think of that _might_ improve on it is to profile the beam break time to optimize the polling period.  Chip might get by with 3 tests a second instead of hundreds and that will feed his battery need.  ;)</div><div><br></div><div>I can confirm your suspicion that fog will reflect an IR beam.  We had a gates in Fernbank Forest that used a reflected IR carrier.  In heavy fog or rain, the sensor would false positive.  Another had remote sense instead of reflected.  In the same conditions it wouldn't detect carrier at all.  Both of these false positives would leave gates open for vehicle traffic crossing unsigned pedestrian pathways.  In the end we put a timer on them to close the gates and hoped no one ever stalled under them.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Mike</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 25, 2016 at 10:46 AM, Shane Trent via TriEmbed <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','triembed@triembed.org');" target="_blank">triembed@triembed.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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="javascript:_e(%7B%7D,'cvml','triembed@triembed.org');" target="_blank">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/8<wbr>2474/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>
<br>______________________________<wbr>_________________<br>
Triangle, NC Embedded Computing mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','TriEmbed@triembed.org');" target="_blank">TriEmbed@triembed.org</a><br>
<a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" rel="noreferrer" target="_blank">http://mail.triembed.org/mailm<wbr>an/listinfo/triembed_triembed.<wbr>org</a><br>
TriEmbed web site: <a href="http://TriEmbed.org" rel="noreferrer" target="_blank">http://TriEmbed.org</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br><br>-- <br>Sent from my iPhone - please excuse the typos<br>