George Sephton
Senior Member
Tfdu6103 - IR Transceiver
Hi,
I was looking around at IR stuff and I need to create a bi directional IR interfact where one device won't confuse itself with where the IR data is coming from but I found this, TFDU6103 : http://www.vishay.com/ir-transceivers/list/product-81211/ It's an IR Transceiver but Im not sure how it works. Am I right in thinking if I point 2 at each other I can merely send 1 line of data: serout 1,N2400, ("DATA") and that could then the other end could use serin to get it then send it's own thing out?
Assuming I set it out like it says on P7 of the manual I could use these 2 scripts:
SEND:
RECEIVE:
It will be used with a PICAXE 28X1 and a 20M to send data in both directions.
Thanks,
George S.
Hi,
I was looking around at IR stuff and I need to create a bi directional IR interfact where one device won't confuse itself with where the IR data is coming from but I found this, TFDU6103 : http://www.vishay.com/ir-transceivers/list/product-81211/ It's an IR Transceiver but Im not sure how it works. Am I right in thinking if I point 2 at each other I can merely send 1 line of data: serout 1,N2400, ("DATA") and that could then the other end could use serin to get it then send it's own thing out?
Assuming I set it out like it says on P7 of the manual I could use these 2 scripts:
SEND:
Code:
Main:
high 0 ; Show we are sending Data
pause 250
serout 1,N2400, ("1") ;Send Data
low 0
goto Wait
Wait:
serin 0,N2400,b0
if b0 = "1" then found ;Show Data is returned
goto Wait
found:
high 1
pause 1000
low 1
goto Main
Code:
Main:
serin 0,N2400,b0
if b0 = "1" then found ;Show Data is returned
goto Main
found:
high 1
pause 1000
low 1
serout 1,N2400, ("1") ;Send Data Back
goto Main
Thanks,
George S.
Last edited: