Description Sometimes you want a simple solution to a problem and you don’t mind if your main controller has to do the work. This IRPD requires the main robot processor to choose which side to look at, and requires it to “debounce” the results for reliably operation. But, it still works really well without any complex program code.
The NAND gate is a standard 74LS00 that you can get anywhere – even Radio Shack, same with the 555, IR detector (RS Everlight or Sharp GP1U58Y) and IR LEDs can also be gotten at Radio Shack. Parts are easy to find and simple to connect. This does not require any fancy wiring or parts placement. Make sure that you use a .1uf bypass cap next to the 555 and next to the IR demodulator. Tweak the 2K pot until you have 38KHz, if you have a ‘scope, this is a 1/38,000 period, or about 26.3us. If you are using a Parallax Basic Stamp II for your robotic controller, you can feed the output of the 555 in an I/O port and measure the frequency very easily. The code to do this is below. It assumes that you are using port 7 as the 555 input port.
‘Basic Stamp II Freq Counter O555 con 7 freq var word Loop: count O555,100,freq debug dec5 freq*10,cr goto Loop |