sometimes you need a simple solution to an issue and you don’t mind if your main controller has to do the work. This IRPD requires the main robot processor to pick which side to look at, and requires it to “debounce” the results for reliably operation. But, it still works well without any complex program code.
‘Basic Stamp II Freq Counter
O555 con 7
freq var word
debug dec5 freq*10,cr
One of the nifty things that make the 555 circuit fun to use is that you can use it to do IR communications with other devices that read IR at 38KHz! If you run pin 4 of the 555 to a Stamp II port instead of just tying it high, you can use the serout Stamp II command to modulate the IR in such a fashion that other IR demodulator equiped devices can read it! I’ve done it, it works – Have fun.