stampic
IR module is an obstacle
avoiding pro for robot or any alarm system ,it uses the same method of a sonar
system in the cameras or alarm but it uses the ir signal instead
the stamp sends an 40khz for
a 10 ms at pin 14 that
drives the IR LED then monitor the ir module for reception of that signal
. if the signal bounces over an obstacle it will come back toward
the IR module
if noting in the range no signal will be received
their
might be interfering of a lot of man artificial lighting or TV remount
so the stamp sends the signal at 40khz for 10 times if more then
6 or 7 seven times signal is received then their is an obstacle
ahead confirmation .
in
the basic stamp application notes they used an 555ic
to
make the 40-khz by putting a 1 on the 555 pin 4 to
start
the 40khz frequency
and 0 to stop it , pin 3 of the 555
is
the out put of the modulation that drives the IR LED .but you have to
use an extra ic +resistance and capacitors and you must fiddle with the values
of the 555 resistance and capacitors circuit to find the exact
value
+ the extra hard wear
take
note that clear plastic will passes the ir signal
so
their will be no deflection and the black plastic will absorb all
of
the ir light so their will be no deflection .
and the light
colors objects
will
reflect more ir light then the dark colors so the sensing distance
will vary nothing is accurate in this world ????
add var
word
CONFIRM
var word
high 15
pause
100
low 15
top:
for CONFIRM
= 1 to
10
' SEND IR SIGNAL TEN TIMES
freqout
14,10,40
' AT PIN 14 out put FOR 10 ms 40 KHZ THE IDEAL
' FREQUENCY OF THE IR RECEIVERS MODULE
if in13
= 0 then addd 'signal is reflected
keep_on:
next
if add
> 6 then obstacle ' USING THE FUZZY LOGIC IF MORE THEN 6 HITS
THEN AN OBSTACLE
add =
0
' IS AHEAD
low 15
goto
top
addd:
add = add + 1
goto
keep_on
obsticel:
high 15 ' WHEN AN OBSTACLE IS RECOGNIZED THE PIN 15 GO'S ON
add = 0
goto
top
the
module and the ir led must be pointed to same direction
and
the led must be painted black oll sides leaving only the
front
exposed or raped with tape as i did
the
module i used is a general one used in the tv receiver's to pin point the connection
i hade to dismantle the iron case and for my good luck i found the vcc GND
& out labels printed on the pcb
or
you cane
USE
the SHF506 module it is very compact .the led size
the
ir modules is readymade receiver iT get the ir detector ,filtering ,amplifier
+demodulator the output of ttl level +buffer all in a caned box that
minimize the interfering
below
you cane see the ir LED LIGHT because most digital cameras are sensitive
for the ir light
