Hello,
I am currently trying to use the Arduino Uno with an IR sensor and am currently only receiving readings like this...
0
1023
0
1023
etcetc
Does anyone have any suggestions as to why this might be?
Thank you!
Hi,
What connections and code are you using??
Working Examples Here
A receiver like a TSOP of some variety can only give a 0 or 1 output, which is what you're getting if you read it on an analog pin.
In the presence of a carrier you get one value (the ones I've seen are active low, so the 0) and with no carrier, a 1 (or the 1023 analog).
Looks to me like it's working as advertised.
what you're getting if you read it on an analog pin.
Yes. However any use which intends to get back what button was pushed uses a digital input and some code (usually a library) which decodes the series of pulses received.
terryking228:
Yes. However any use which intends to get back what button was pushed uses a digital input and some code (usually a library) which decodes the series of pulses received.
OP didn't say anything about buttons and pulses (ie, a tv type remote). He might be just sending an unmodulated carrier.
In fact he didn't even say it's a tv remote type receiver: it might just be a high/low ir proximity sensor
As you asked:
What connections and code are you using??
.... along with hardware details. (Code as in tv remote code if applicable, AND code as in Arduino sketch)