IR Sensor Output

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Rohit
 
Posts: 7
Joined: Wed Jul 25, 2012 8:17 am

IR Sensor Output

Post by Rohit »

Hello everyone!

I'm brand spankin new to the Arduino world and unfortunately ran into a challenge... not surprising, right? I'm sure this has come up before but I had trouble finding it in the forum.

I am replicating the IR sensor project to capture the raw IR signal into the Serial window for a remote control I have.

Code: http://github.com/adafruit/Raw-IR-decoder-for-Arduino

I have this exact setup (sensor also from adafruit) with an Uno: http://learn.adafruit.com/ir-sensor/using-an-ir-sensor

I also tested the sensor with an LED beforehand to make sure it blinks when hitting my remote control...

Findings - upon setup, Serial window shows Ready to Decode IR! - great so setup worked. Hit the button on my remote - nothing... absolutely nothing appears in the window.

So that's baffling on its own for me because the wiring is all right. But here's the thing - if I disconnect the sensor output pin from Pin 2 and reconnect, it suddenly spits out these values then stops. All that output without hitting anything on my remote. If I hit a button on my remote, still nothing.

Any thoughts?

Thanks!

Rohit

Code: Select all

Ready to decode IR!



Received: 

OFF 	ON
35708 usec, 3060 usec
8520 usec, 8000 usec
8340 usec, 7960 usec
8400 usec, 7980 usec
8400 usec, 7960 usec
8380 usec, 7980 usec
8380 usec, 7980 usec
8420 usec, 8000 usec
8360 usec, 8000 usec
8360 usec, 7980 usec
8400 usec, 8020 usec
8360 usec, 8000 usec
8360 usec, 8000 usec
8400 usec, 8000 usec
8360 usec, 8020 usec
8360 usec, 7980 usec
8360 usec, 8020 usec
8360 usec, 8000 usec
8360 usec, 8000 usec
8360 usec, 8020 usec
8340 usec, 8020 usec
8300 usec, 8040 usec
8340 usec, 8020 usec
8340 usec, 8020 usec
8360 usec, 8000 usec
8360 usec, 8020 usec
8360 usec, 8000 usec
8360 usec, 8000 usec
8380 usec, 8000 usec
8340 usec, 8020 usec
8380 usec, 8000 usec
8360 usec, 8020 usec
8340 usec, 8020 usec
8360 usec, 7980 usec
8380 usec, 8000 usec
8380 usec, 8000 usec
8360 usec, 8020 usec
8360 usec, 8040 usec
8360 usec, 8020 usec
8360 usec, 8040 usec
8380 usec, 8000 usec
8340 usec, 8000 usec
8340 usec, 7980 usec
8340 usec, 7980 usec
8400 usec, 7980 usec
8360 usec, 8000 usec
8360 usec, 8020 usec
8360 usec, 8000 usec
8360 usec, 8020 usec
8340 usec, 8020 usec
8360 usec, 8000 usec
8340 usec, 8020 usec
8360 usec, 8000 usec
8380 usec, 8000 usec
8340 usec, 8020 usec
8360 usec, 8020 usec
8340 usec, 8020 usec
8360 usec, 8020 usec
8360 usec, 8000 usec
8360 usec, 8000 usec
8360 usec, 8040 usec
8320 usec, 8020 usec
8360 usec, 8000 usec
8340 usec, 8040 usec
8340 usec, 8000 usec
8340 usec, 8020 usec
8360 usec, 8020 usec
8360 usec, 8020 usec
8360 usec, 8000 usec
8360 usec, 8020 usec
8340 usec, 8040 usec
8320 usec, 8020 usec
8340 usec, 8020 usec
8380 usec, 8020 usec
8340 usec, 8000 usec
8380 usec, 8000 usec
8360 usec, 8020 usec
8360 usec, 8020 usec
8340 usec, 8040 usec
8360 usec, 8080 usec
8320 usec, 8120 usec
8300 usec, 8160 usec
8240 usec, 8140 usec
8220 usec, 8160 usec
8220 usec, 8140 usec
8220 usec, 8160 usec
8220 usec, 8160 usec
8200 usec, 8160 usec
8220 usec, 8160 usec
8220 usec, 8180 usec
8220 usec, 8140 usec
8220 usec, 8120 usec
8220 usec, 8160 usec
8240 usec, 8140 usec
8220 usec, 8140 usec
8260 usec, 8140 usec
8220 usec, 8140 usec
8220 usec, 8160 usec
8200 usec, 8120 usec
8220 usec, 8160 usec
18336 usec, 42880 usec
13312 usec, 43920 usec
46080 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 0 usec
0 usec, 30652 usec
49792 usec, 9856 usec
60668 usec, 3004 usec
3004 usec, 64712 usec
50112 usec, 33808 usec
1316 usec, 50148 usec
33648 usec, 9856 usec
60668 usec, 30652 usec
30336 usec, 10336 usec
33848 usec, 33648 usec
65532 usec, 5176 usec
33888 usec, 1316 usec
50148 usec, 51460 usec
1316 usec, 50148 usec
51460 usec, 65492 usec
15316 usec, 9856 usec
60668 usec, 200 usec
420 usec, 7740 usec
0 usec, 20000 usec
0 usec, 0 usec
0 usec, 16200 usec
17560 usec, 3940 usec
3920 usec, 3840 usec
3860 usec, 3960 usec
15440 usec, 25740 usec
60436 usec, 50916 usec
46572 usec, 54212 usec
28092 usec, 42412 usec
55964 usec, 22328 usec
57252 usec, 48696 usec
62856 usec, 31948 usec
63416 usec, 12812 usec
12228 usec, 34716 usec
53484 usec, 20456 usec
50104 usec, 38672 usec
5444 usec, 53572 usec
32728 usec, 8140 usec
8220 usec, 8140 usec
8220 usec, 8140 usec
8240 usec, 8140 usec
8220 usec, 8160 usec
8200 usec, 8160 usec
8220 usec, 8140 usec
8220 usec, 8160 usec
8200 usec, 8120 usec
8220 usec, 8160 usec
8220 usec, 8140 usec
8240 usec, 8140 usec
8220 usec, 8140 usec
8220 usec, 8160 usec
8220 usec, 8140 usec
8240 usec, 8140 usec
8200 usec, 8160 usec
8220 usec, 8160 usec
8220 usec, 8140 usec
8220 usec, 8160 usec
8200 usec, 8160 usec
8220 usec, 8160 usec
8200 usec, 8160 usec
8220 usec, 8140 usec
8240 usec, 8140 usec
8200 usec, 8180 usec
8200 usec, 8160 usec
8220 usec, 8160 usec
8200 usec, 8180 usec
8200 usec, 8140 usec
8240 usec, 8140 usec
8200 usec, 8180 usec
8200 usec, 8160 usec
8220 usec, 8140 usec
8220 usec, 8140 usec
8220 usec, 8140 usec
8220 usec, 8140 usec
8220 usec, 8160 usec
8160 usec, 8160 usec
8200 usec, 8160 usec
8180 usec, 8180 usec
8160 usec, 8240 usec
8120 usec, 8220 usec
8140 usec, 8220 usec
8140 usec, 8240 usec

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: IR Sensor Output

Post by adafruit_support_rick »

Rohit wrote:So that's baffling on its own for me because the wiring is all right. But here's the thing - if I disconnect the sensor output pin from Pin 2 and reconnect, it suddenly spits out these values then stops. All that output without hitting anything on my remote. If I hit a button on my remote, still nothing.
What you're seeing is just electrical noise happening as you plug in the sensor. It means that your code is working, but it does not mean that your wiring is correct.
Please post a detailed photo of your wiring.

Rohit
 
Posts: 7
Joined: Wed Jul 25, 2012 8:17 am

Re: IR Sensor Output

Post by Rohit »

Hi driverblock,

Thanks for your reply. I've attached photos of the wiring.

Thanks,
Rohit
Attachments
IMG_20120725_213641.jpg
IMG_20120725_213641.jpg (467.61 KiB) Viewed 1552 times
IMG_20120725_213617.jpg
IMG_20120725_213617.jpg (431.98 KiB) Viewed 1552 times

User avatar
adafruit_support_bill
 
Posts: 88091
Joined: Sat Feb 07, 2009 10:11 am

Re: IR Sensor Output

Post by adafruit_support_bill »

I am replicating the IR sensor project to capture the raw IR signal into the Serial window for a remote control I have.
Are you sure that your remote you has a compatible 38 KHz modulated signal?

Rohit
 
Posts: 7
Joined: Wed Jul 25, 2012 8:17 am

Re: IR Sensor Output

Post by Rohit »

Hi adafruit_support,

Great question - I'm not sure actually. I tried my Panasonic tv remote and a Frigidaire A/C remote, neither of which output anything to the serial.

Any thoughts on how I can find out?

Side note: I did do the initial test as noted on the website to connect an LED to see if it flickers upon pressing a button, which it did.

Thanks,
Rohit

User avatar
adafruit_support_bill
 
Posts: 88091
Joined: Sat Feb 07, 2009 10:11 am

Re: IR Sensor Output

Post by adafruit_support_bill »

If the initial test blinked the led, then it is probably a compatible remote.
Your wiring looks correct. But breadboard connections can sometimes be flaky. Try moving to a different section of the breadboard.

Also, make sure there is no other IR interference in the room. (wireless speaker systems, keyboards mice etc).

Rohit
 
Posts: 7
Joined: Wed Jul 25, 2012 8:17 am

Re: IR Sensor Output

Post by Rohit »

Still no luck.

Maybe I got a bad IR sensor? Tried to revert back to the IR sensor test with the LED and now I don't see it blinking with various remotes...

Any other thoughts / suggestions?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: IR Sensor Output

Post by adafruit_support_rick »

Different wires, different breadboard locations. You might even try soldering wires to the leads of the IR detector - those leads are long, so if you solder to the very ends, you haven't really lost the ability to do something else with it later on.

Rohit
 
Posts: 7
Joined: Wed Jul 25, 2012 8:17 am

Re: IR Sensor Output

Post by Rohit »

New wires - soldered on... still nothing.

Any other ideas? New sensor?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: IR Sensor Output

Post by adafruit_support_rick »

contact [email protected] and reference this thread for a replacement

Rohit
 
Posts: 7
Joined: Wed Jul 25, 2012 8:17 am

Re: IR Sensor Output

Post by Rohit »

Thanks driverblock. A new sensor is on its way :)

compukid
 
Posts: 18
Joined: Fri Jun 15, 2012 1:19 am

Re: IR Sensor Output

Post by compukid »

Thank you rohit, I too am a newbie and trying to mimic the IR sensor projects on adafruit. I actually gotten a step further and have the IR sensor working, but when I try to output it to an IR LED nothing happens. I am using the same code from the "Making an intervalometer" but it is not working for me.

I would agree with the step your taking and get a new sensor I am sure it will work then, this setup was no problem.

With that said can we keep this thread going as I would like to discus the output? I attached both the sensor output as well as the code I am using for the IR LED transmitter. Like I said above I am using the code from the intervalometer, but my goal is to get the correct IR code for my AC and set it up on another board with a temp sensor and have the arduino turn on my AC based on temperature. I do not know if my AC remote is 38Mhz or if I need any arduino libraries. So far I have "tested" The IR LED output by using the camera trick. (Camera's can pick up the quick burst of light from the IR LED and from a camera so I can see the led turn on) I was able to see it wasn't very strong so I connected a transistor (P2N2222A) to the LED and it seems a little stronger, but may not be enough. All I know is I am stuck and can use outside help.

Thank you
Attachments
IR_Transmitter.txt
IRLED code
(2.51 KiB) Downloaded 202 times
Pattern3.txt
IR Sensor output
(1.2 KiB) Downloaded 184 times

compukid
 
Posts: 18
Joined: Fri Jun 15, 2012 1:19 am

Re: IR Sensor Output

Post by compukid »

Rohit,

I just saw your second picture and again I am new, but from looking at it you have you have the sensor on column C on rows 16,17,18
then you have all the wires on row B 16,17,18. try moving the wire connected to PIN2 to column A on the bread board but keep it in the same row. The wires maybe too close causing a short. If the new IR sensor doesn't work I would try another bread board if you haven't already.

Rohit
 
Posts: 7
Joined: Wed Jul 25, 2012 8:17 am

Re: IR Sensor Output

Post by Rohit »

Hi compukid,

Thanks for the advice - I did receive my new sensor last night and it provided an output - so thank you to everyone on the thread for helping me debug the issue.

I haven't analyzed my output yet for the next step, so I'll defer to others to assist you with your issue for now.

Thanks,
Rohit

compukid
 
Posts: 18
Joined: Fri Jun 15, 2012 1:19 am

Re: IR Sensor Output

Post by compukid »

I am glad it worked Rohit. I actually went in another direction and got it to work the way I need it to. I hope you have better luck than I did with this method.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”