TSOP1738 IR Receiver continuous detection using microcontroller

Status
Not open for further replies.

muthumani

Newbie level 6
Joined
Mar 17, 2009
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,360
My project is to detect continuous IR signal, once the IR path was blocked for more than 200ms it should sound a buzzer. So created a IR transmitter with 38Khz using 555 at one end. TSOP1738 connected to PIC micro controller at the receiver end. My observation is once the IR path was blocked means TSOP1738 became active low for approximately 100ms and goes high. My requirement is it should be low until IR path was blocked. Please suggest me an idea...
 

i think this would help you, but this code is for 8051. i left only the delay part

Code:
IR   equ P3.3
buzz equ P1.0	        
	
	org 00H
	mov P1,#00h
	
main:						
	jb IR,lop
lop:
   jnb IR,delay
   sjmp main
delay:



ret
end
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…