Two IR LED one IR reciver
Lutamos
Posts: 26
Hi I am new to this forum it all seems promising for help with my question. Soo anyway Um like the title says I am wanting to just use one Ir receiver and two Ir led and I was wondering how I would go about programing that cause I am a newbie to programing the basic stamp. I have the Boebot USB kit.
I got my idea from this peace of hard ware I bought but I could never get it to work at all. www.lynxmotion.com/images/Products/Full/irpd01.jpg
Thank, you very much
Lutamos
I got my idea from this peace of hard ware I bought but I could never get it to work at all. www.lynxmotion.com/images/Products/Full/irpd01.jpg
Thank, you very much
Lutamos
Comments
I dont know what you want to do, my first impression is that you want to monitor two diffrent break points with one reciever. In that case, you just use diffrent modulations. One LED would send hi-low-hi-low-hi the other hi-hi-lo-lo-hi-hi They would have to fire one at a time, so 1 - 2 -1 -2 - 2. So it wouldnt have the best response time, but it would still be measured in ms.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
Similar to the following:
IR_Detect···· PIN· 9
IR_Left······ PIN· 10
Ir_Right····· PIN· 11
irDetectLeft··· VAR···· Bit············ ' Variable For Left IR Input
irDetectRight·· VAR···· Bit············ ' Variable For Right IR Input
Main:
DO
FREQOUT IR_Left, 1, 38500
irDetectLeft = IR_Detect
DEBUG "irDetectLeft = ", BIN1 irDetectLeft, CR
PAUSE 20
FREQOUT IR_Right, 1, 38500
irDetectRight = IR_Detect
DEBUG "irDetectRight = ", BIN1 irDetectRight , CR
PAUSE 20
DEBUG HOME
LOOP
END