Go Down

Topic: IR receiver setup help (Read 1 time) previous topic - next topic

tomer1510

I have an infrared sensor thats connected to A5, GND and 5v
and its supposed to send it to the computer and an LCD
it keeps sending random numbers/zeros
how do I set it up? pins and code please :)
and how can I make it so it reads ir input and send it to me as a number?
so I can make a disttinction with if's and control it with a remote
the model serial is BT38R 920

MarkT

Do you have more information, google hasn't heard of that device code.
[ I won't respond to messages, use the forum please ]

AWOL

Is the "920" the wavelength? (as in 920nm)

Quote
and how can I make it so it reads ir input and send it to me as a number?

Probably connect it as a potential divider.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

raron

Quote
the model serial is BT38R 920

I guess  (note the "guess"!) this is an integrated receiver (similar to TSOP2438), for decoding IR signals at 38kHz. In which case no voltage dividing is necessary. However I'd still recommend a low-ish resistor from it's output to Arduino's input, say 100-220 ohms or so (just in case you connect two outputs together). Btw you can (have to, probably) use a digital input, no need for an analog one.

Quote
how do I set it up? pins and code please smiley
and how can I make it so it reads ir input and send it to me as a number?
so I can make a disttinction with if's and control it with a remote

Pins are the easy part. As for code, not so easy really, except that there is an excellent IR library by Ken Shirriff that makes it easy anyway :) It that can cope with most remote control code formats (protocolls), and even for some unsupported via reading raw codes (if memory serves): http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html

Go Up