Problem with Boebot fastIRroaming.bs2 and bluetooth module.
Hello all,
Im having a weird problem. Initially, i had the fastIRroaming.bs2 program working perfectly on my boe bot (without the eb500 attached).
I had the I/O code exactly like in the manual:
· FREQOUT 8, 1, 38500·········· 'Send pulse to Pin8 for 1ms at 38.5kHz
· irDetectLeft = IN9··········· 'Store Left IR detection. 0 = Object. 1 = No object.
· FREQOUT 2, 1, 38500
· irDetectRight = IN0·········· 'Store right IR detection.
Then, when installing the eb500, a manual said to not put any pins in 0,1,5 or 6
so i moved the pins around (i had photoresistors on the board as well) to this:
· FREQOUT 14, 1, 38500·········· 'Send pulse to Pin8 for 1ms at 38.5kHz
· irDetectLeft = IN15··········· 'Store Left IR detection. 0 = Object. 1 = No object.
· FREQOUT 3, 1, 38500············ 'send·pulse to pin3 for 1ms·at 38.5kHz
· irDetectRight = IN2·········· 'Store right IR detection.
Now the pins are in their correct slots, but for some reason, my lower IR detector reading at pin2 is messed up. It always returns 0, even when·nothing is·infront of it. But when i take the eb500 out of the BoE, fastIRroaming.bs works properly again. My left detector works fine with eb500 in all cases.
Can someone tell me why this is so ? and how can i change it·so that i can use·fastIRroaming with the eb500 on the board?
even when i take out the pin @ P2, i still get a reading of 0.
THanks.
Im having a weird problem. Initially, i had the fastIRroaming.bs2 program working perfectly on my boe bot (without the eb500 attached).
I had the I/O code exactly like in the manual:
· FREQOUT 8, 1, 38500·········· 'Send pulse to Pin8 for 1ms at 38.5kHz
· irDetectLeft = IN9··········· 'Store Left IR detection. 0 = Object. 1 = No object.
· FREQOUT 2, 1, 38500
· irDetectRight = IN0·········· 'Store right IR detection.
Then, when installing the eb500, a manual said to not put any pins in 0,1,5 or 6
so i moved the pins around (i had photoresistors on the board as well) to this:
· FREQOUT 14, 1, 38500·········· 'Send pulse to Pin8 for 1ms at 38.5kHz
· irDetectLeft = IN15··········· 'Store Left IR detection. 0 = Object. 1 = No object.
· FREQOUT 3, 1, 38500············ 'send·pulse to pin3 for 1ms·at 38.5kHz
· irDetectRight = IN2·········· 'Store right IR detection.
Now the pins are in their correct slots, but for some reason, my lower IR detector reading at pin2 is messed up. It always returns 0, even when·nothing is·infront of it. But when i take the eb500 out of the BoE, fastIRroaming.bs works properly again. My left detector works fine with eb500 in all cases.
Can someone tell me why this is so ? and how can i change it·so that i can use·fastIRroaming with the eb500 on the board?
even when i take out the pin @ P2, i still get a reading of 0.
THanks.
Comments
Does your eb500 have a sticker that reads Rev C?
Andy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.
Sticker says eb500-SER D. the board of education is Rev C