Hey guys,
I wanted to make an Ir reciever board, using the infrain command. But although the circuit is fine, the syntax is fine, i cant get any data out on to the terminal.
My basic test code on the transmitter is:
My Code for the Infra IN side is an 18X, connected on the Infrain Pin, and all the components are correct, i've checked and rechecked.
Code is simple:
Now, it should work, right?
I was searching around on the forum and i found out that if i connect a Piezo buzzer i can hear the Pulses. i did that on both the Tx and Rx. seems to be working fine, i can hear stuff.
Someone also said that we can also use the pulsin command to get the pulses in and then translate them... well when i did that, i used a TV remote, not a Sony one though... but the thing is that the pulses that are coming in to the terminal are different everytime i press the same button, depending on the duration i suppose. At one stage they settle down to a certain value... think it was 20...
Anyway, considering the situation. if i was to make an IR remote sensor, and the end user didnt know how long to press the button for, how will my system be able to understand that its the same command... and ignore the rest...
Im not sure if i made that clear or made it worse... but hoping that i can get some answers
Thanks
Kam
I wanted to make an Ir reciever board, using the infrain command. But although the circuit is fine, the syntax is fine, i cant get any data out on to the terminal.
My basic test code on the transmitter is:
Code:
; Transmitter. 08M. IR LED on out0 (infraout pin)
main:
for b1 = 1 to 10
infraout 1,5
pause 45
next b1
goto main
Code is simple:
Code:
main:
infrain
sertxd(infra,cr,lf)
goto main
I was searching around on the forum and i found out that if i connect a Piezo buzzer i can hear the Pulses. i did that on both the Tx and Rx. seems to be working fine, i can hear stuff.
Someone also said that we can also use the pulsin command to get the pulses in and then translate them... well when i did that, i used a TV remote, not a Sony one though... but the thing is that the pulses that are coming in to the terminal are different everytime i press the same button, depending on the duration i suppose. At one stage they settle down to a certain value... think it was 20...
Anyway, considering the situation. if i was to make an IR remote sensor, and the end user didnt know how long to press the button for, how will my system be able to understand that its the same command... and ignore the rest...
Im not sure if i made that clear or made it worse... but hoping that i can get some answers
Thanks
Kam