Dear All,
Sorry, I forgot hos to input code, can someone please remind me?
How is IRin and IRout really works?
I see the program for IROUT: in the command pdf.
[ for b1 = 1 to 10
irout B.1,1,5
pause 45
next b1]
The above is running in a "for next" loop and then pause 0.045 seconds. I would like to keep constant sending of say push button "5"
Do I have a coded constant pulse steam if i do the following?
[Main:
irout b.1,1,5 ;send IR signal pulsed as per button 6
goto main]
Then I need to receive the above pulse stream in another picaxe. This IR sensor is very precise focused towards the IR led on an other picaxe. If it moves away of the IR led direction, then there is no input anymore and the IR stream is 0.
I see the program for IRIN:
[main: irin [1000,main],C.3,b0 ; wait for new signal
if b0 = 1 then swon1 ; switch on 1
if b0 = 4 then swoff1 ; switch off 1
goto main
swon1: high B.1
goto main
swoff1: low B.1
goto main]
Can I do this to correspond with mi previous if it is correct:
[main: irin ,C.3,b0 ;Read pulse stream on C.3 and put in b0
if b0 = 5 then gostraight ; go to gostraight
els high B.1 ; start motor
goto main
gostraight: low B.1
goto main]
I could probably do this with a non modulated IR LED but where I intend to use this, I have lots of strong (hot) lights around that could influence the IR receiver. So, by modulating the sours and receiver, I hope to avoid interference from hot transmittors.
Thank you for helping me on the way.
Willy
Sorry, I forgot hos to input code, can someone please remind me?
How is IRin and IRout really works?
I see the program for IROUT: in the command pdf.
[ for b1 = 1 to 10
irout B.1,1,5
pause 45
next b1]
The above is running in a "for next" loop and then pause 0.045 seconds. I would like to keep constant sending of say push button "5"
Do I have a coded constant pulse steam if i do the following?
[Main:
irout b.1,1,5 ;send IR signal pulsed as per button 6
goto main]
Then I need to receive the above pulse stream in another picaxe. This IR sensor is very precise focused towards the IR led on an other picaxe. If it moves away of the IR led direction, then there is no input anymore and the IR stream is 0.
I see the program for IRIN:
[main: irin [1000,main],C.3,b0 ; wait for new signal
if b0 = 1 then swon1 ; switch on 1
if b0 = 4 then swoff1 ; switch off 1
goto main
swon1: high B.1
goto main
swoff1: low B.1
goto main]
Can I do this to correspond with mi previous if it is correct:
[main: irin ,C.3,b0 ;Read pulse stream on C.3 and put in b0
if b0 = 5 then gostraight ; go to gostraight
els high B.1 ; start motor
goto main
gostraight: low B.1
goto main]
I could probably do this with a non modulated IR LED but where I intend to use this, I have lots of strong (hot) lights around that could influence the IR receiver. So, by modulating the sours and receiver, I hope to avoid interference from hot transmittors.
Thank you for helping me on the way.
Willy