Hi Darrel,
Had to find some use for those itty-bitty 10F surface mount samples I had.
The whole board with regulator, PIC, resistor, etc, fit onto the back of the IR detector. Just ran wires off to the LED.
With 15mA through the LED I'm getting around 4' trip distance. You could get a lot more than that with higher LED current or a small array of LED's.
Now the wife wants one for triggering some aggravating "someone left the toilet seat up again" message...;o}.
P.S. Nice job on the instant interrupt routines. Handy stuff.
Note: In the above comments, so no one gets confused, this;
should read 10uS after the LED is off. I moved the bsf IRLED up a tad to adjust the LED duty-cycle.; goto Pulse above is 1uS once Cycles = 0, so it takes 8uS after the LED
; is off before we test the IR detector output
You can just move this up or down to adjust it as needed. Just spaced out changing the comment text.




Bookmarks