Help needed with IR detection!
Rayderon
Posts: 7
I am designing a tracking robot to 'hunt' for a IR emitting target robot. but i encountered some problems with the IR emitter part.
I used IR recievers mounted on the front of the tracking robot to look out for IR signals, the test program is as follow:
irdetectleft VAR Bit
irdetectfront VAR Bit
irdetectright VAR Bit
DO
irdetectleft = IN3
irdetectfront = IN2
irdetectright = IN1
DEBUG HOME, "irdetectright = ", BIN1 irdetectright
DEBUG CR, "irdetectfront = ", BIN1 irdetectfront
DEBUG CR, "irdetectleft = ", BIN1 irdetectleft
PAUSE 100
LOOP
I installed a test program to emit IR on another Boe-bot with the IR transmitter.
DO
FREQOUT 1, 1000, 38500
PAUSE 100
LOOP
However, the tracking robot IR recievers failed to detect the target Boe-bot with the IR transmitter. All devices are working properly. I am not sure what is the problem here. The parts worked fine when i attached all parts into the same boe-bot and moved the IR transmitter infront of the IR recievers, they are able to detect the IR but when i seperate the parts into different Boe-bots, the IR recievers failed to detect the IR from the IR transmitter. Anyone willing to help me with this? I will really appreciate it. Thanks!
I used IR recievers mounted on the front of the tracking robot to look out for IR signals, the test program is as follow:
irdetectleft VAR Bit
irdetectfront VAR Bit
irdetectright VAR Bit
DO
irdetectleft = IN3
irdetectfront = IN2
irdetectright = IN1
DEBUG HOME, "irdetectright = ", BIN1 irdetectright
DEBUG CR, "irdetectfront = ", BIN1 irdetectfront
DEBUG CR, "irdetectleft = ", BIN1 irdetectleft
PAUSE 100
LOOP
I installed a test program to emit IR on another Boe-bot with the IR transmitter.
DO
FREQOUT 1, 1000, 38500
PAUSE 100
LOOP
However, the tracking robot IR recievers failed to detect the target Boe-bot with the IR transmitter. All devices are working properly. I am not sure what is the problem here. The parts worked fine when i attached all parts into the same boe-bot and moved the IR transmitter infront of the IR recievers, they are able to detect the IR but when i seperate the parts into different Boe-bots, the IR recievers failed to detect the IR from the IR transmitter. Anyone willing to help me with this? I will really appreciate it. Thanks!
Comments