Infrared receiver troubles
willthiswork89
Posts: 359
i bought a infrared receiver module and a highout IR led. the receiver has three pins OUT,GND,VCC
i took this and did
P7~(red-red-brown-gold)->OUT
VSS->GND
VDD->VCC
then i did
P8~(Brown-Black-Red)->anode lead
VSS-> Cathode Lead
for the IR
now after that i wrote code that folows
irDetect VAR Bit
DO
FREQOUT 7,1,38000
irDetect = IN6
DEBUG HOME, "irDetect = ", BIN1 irDetect
PAUSE 100
LOOP
it always stays 1! so whats the matter?
oh yea the reciever model number is 276-0640 and the led is 276-0143 thanks for the help!
i took this and did
P7~(red-red-brown-gold)->OUT
VSS->GND
VDD->VCC
then i did
P8~(Brown-Black-Red)->anode lead
VSS-> Cathode Lead
for the IR
now after that i wrote code that folows
irDetect VAR Bit
DO
FREQOUT 7,1,38000
irDetect = IN6
DEBUG HOME, "irDetect = ", BIN1 irDetect
PAUSE 100
LOOP
it always stays 1! so whats the matter?
oh yea the reciever model number is 276-0640 and the led is 276-0143 thanks for the help!
Comments
I thought, the BS2/2e FREQOUT limit is 32767 kc, the other variants have higher FREQs possible.
But then, I said, "Hey, lookit" -- if you are going to FREQOUT then you can't do anything else; you cannot FREQOUT and irDetect at the same time.· STAMP doesn't multi-task.
You can probably set up the detector module to drive an LED when it detects the FREQOUT/IRED.
Post Edited (PJ Allen) : 6/23/2006 11:35:15 PM GMT
OP, we cannot guarantee other parts from other manufacturers will work with the exact schematics we use.· You may need to adjust things like the resistor on the LED depending on that LED rating.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edit --
Does the detector hang in a detect state long enough (delay-wise) to get snagged by the irDetect instruction?
Post Edited (PJ Allen) : 6/24/2006 12:47:43 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
pin 1 is OUT
pin 2 is GND
pin 3 is VCC
not sure the vcc? i take it like...vdd for the vcc and the vss to the gnd then a resitor to the input
Maybe the output needs to be "pulled up"...
Try a 1K-10K from OUT to VCC (+5, whathaveyou) and a jumper from DET-OUT to your irDetect stamp pin.· Get it?
Vcc = +V +5
Vss = GND
!!!
[noparse][[/noparse] Anybody-else here tonight, feel free to jump in... ]
Post Edited (PJ Allen) : 6/24/2006 1:40:01 AM GMT
thanks pj i dont mean to be a hassle at all i know im probably annoying as hell lol
-edit
oh yea and i also tried taking the power and the out to the same thing then briding from there but the reading stays one because its reading that voltage
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Straight from the battery???· Homework board.
Hey, Voltmeter -- try that test I suggested, gotta get that much right.
Post Edited (bennettdan) : 6/24/2006 3:07:58 AM GMT