Let's Make Robots!



So i have a IR detector and it is hooked up to an arduino i have programed it with the help of this blog http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html i am doing the example that is named " How to recieve" 

Problem: whenever i click a button on my remote the number 0 apeers on the serial monitor. What does that mean?

I did not have any datasheet with this so i randomly connected the pins until i got it, however it overheated one of the times. Is it bust?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

yes, probably so.

red wire is +( 5V) (most of the time) this is a standard color for a positive voltage wire in a DC system

black wire is ground (GND) (most of time ) this is a standard color for a negative voltage wire in a DC system

blue wire is signal( pin 11)

I am using one of those ones that look like transistors. Do you always have to use pin  11?

I just read the blog that you linked to. I think a little time could have saved a component here. Let's break this down...

First off, he shows clearly in about 3 places how to hook up the IR receiver. It is shown in the picture as well as in the text. The fact that you mention it "overheated" is a pretty clear indication that it is indeed fried. Reading the blog you were following would have saved you a part. Next is the pin number. In the text, the author notes "eg" 11 as in "for example, pin 11" leading one to assume you could define your own pin. To follow that up, the example code starts with:

int RECV_PIN = 11;

IRrecv irrecv(RECV_PIN);

Thus, showing pretty clearly that you are defining the pin to be used.

I am sorry you fried a part here my friend but haste makes waste, methinks.



I had another thought along the lines of the fact that you are getting anything (a 0 is something) when you hit a key on the remote. If you were lucky enough to not have fried your sensor, this could be as simple as not using the correct protocol --I.e. Sony etc.