user3716: I just bought VS1838B IR module (from here) and I’m trying to make it work. Below you can find the circuit to see how I have connected the 1838B IR receiver:

My Code (Here) :
#include <IRremote.h>

int RECV_PIN = 2;
IRrecv irrecv(RECV_PIN);
decode_results results;
#define CH1 0xFFA25D 
#define CH 0xFF629D
#define CH2 0xFFE21D
...
#define BUTON8 0xFF4AB5
#define BUTON9 0xFF52AD

void setup()

{

 Serial.begin(9600);

 irrecv.enableIRIn(); 

}

void loop() {
 

 if (irrecv.decode(&results)) 
  {

 if (results.value == CH1) 

 {

 Serial.println("CH-"); 
 }

 if (results.value == CH) 

 {

 Serial.println("CH"); 

 }

 if (results.value == CH2) 

 {

 Serial.println("CH+"); 

 }

 ...

 if (results.value == BUTON8) 

 {

 Serial.println("BUTON8"); 

 }
if (results.value == BUTON9) 

 {

 Serial.println("BUTON9"); 

 }
 irrecv.resume();

 }

 

}

But I'm not getting any output from Serial Monitor.
Can you help me for debugging it?

user9829: I could be wrong, but I believe that this receiver operates at 38kHz (at least that is listed in the specs), so the IR source must be oscillating at that frequency for this receiver to see it. Check out this link to see how to create a circuit to oscillate your IR LED:
http://www.electro-tech-online.com/threads/ir-emitter-at-38khz.94119/

user15333: void loop(void) {
   int numberpulses;

   numberpulses = listenForIR();

   Serial.print("Heard ");
   Serial.print(numberpulses);
   Serial.println("-pulse long IR signal");
   if (IRcompare(numberpulses, ApplePlaySignal)) {
      Serial.println("PLAY");
      if (ledState == LOW)
         ledState = HIGH;
      else
         ledState = LOW;

      // set the LED with the ledState of the variable:
      digitalWrite(ledPin, ledState); 

   }
   if (IRcompare(numberpulses, AppleRewindSignal)) {
      Serial.println("REWIND");
   }
   if (IRcompare(numberpulses, AppleForwardSignal)) {
      Serial.println("FORWARD");
   }
}


user34024: connect vcc to 5V
connect Gnd to GND
connect In to D11 pin onto Uno, Nano etc.
download the library from here and follow the instructions/where to unzip and removing the other folders/:
http://z3t0.github.io/Arduino-IRremote/
Open the Arduino program and paste this code onto a new Arduino project:
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}
void loop()
{
  if (irrecv.decode(&results))
    {
     Serial.println(results.value, HEX);
     irrecv.resume(); // Receive the next value
    }
}

Select 'Sketch'/Import Library from Arduino and select IRremote from the drop-down menu.
Upload the sketch
Open Tools/Serial monitor then select 9600 as baud rate
Use a Tv remote, IR car remote or the remote from the module.
You will see the HEX code of each button after pressing it.

user8807: i have also bought this IR receiver with a remote controller (as a kit), and i had the same problem, i changed the remote controller and it worked perfectly, so even if the IR and RC came as a kit it doesn't mean they will work, if you don't have another remote controller in hand you can use a lighter just to check if the IR is working.  

user8273: Looking further here
http://forum.arduino.cc/index.php/topic,188236.0.h...
I found the following
"Removing 
the files - libraries\RobotIRremote\IRremoteTools.cpp and 
libraries\RobotIRremote\IRremoteTools.h solved the problem. They are
example files which somehow are getting included. You can move those two 
files to some other location as backup."
I went to my libraries 
file and did this and can confirm that the example given above then 
compiles fine without downloading a new library. Its an Arduino 
libraries problem .
Either way will work
answer from here and worked for me
i use this code:
#include <IRremote.h>
int input_pin = 10; //set D10 as input signal pin
IRrecv irrecv(input_pin);
decode_results signals;
void setup()
{
    Serial.begin(9600);
    irrecv.enableIRIn(); // enable input from IR receiver
}
void loop() {
if (irrecv.decode(&signals)) {
        Serial.println(signals.value, HEX);
        irrecv.resume(); // get the next signal
    }
}


3716: <p>I just bought VS1838B IR module (<a href="http://www.robotistan.com/IR-Alici-Verici-Kumanda-Seti-IR-Receiver-Module-Wireless-Remote-Control-Kit,PR-1788.html" rel="nofollow noreferrer">from here</a>) and I’m trying to make it work. Below you can find the circuit to see how I have connected the 1838B IR receiver:</p>
<p><img src="https://i.stack.imgur.com/L6f6j.gif" alt="enter image description here" /></p>
<p>My Code (<a href="http://paste.ubuntu.com/8143467/" rel="nofollow noreferrer">Here</a>) :</p>
<pre><code>#include &lt;IRremote.h&gt;

int RECV_PIN = 2;
IRrecv irrecv(RECV_PIN);
decode_results results;
#define CH1 0xFFA25D 
#define CH 0xFF629D
#define CH2 0xFFE21D
...
#define BUTON8 0xFF4AB5
#define BUTON9 0xFF52AD

void setup()

{

 Serial.begin(9600);

 irrecv.enableIRIn(); 

}

void loop() {
 

 if (irrecv.decode(&amp;results)) 
  {

 if (results.value == CH1) 

 {

 Serial.println(&quot;CH-&quot;); 
 }

 if (results.value == CH) 

 {

 Serial.println(&quot;CH&quot;); 

 }

 if (results.value == CH2) 

 {

 Serial.println(&quot;CH+&quot;); 

 }

 ...

 if (results.value == BUTON8) 

 {

 Serial.println(&quot;BUTON8&quot;); 

 }
if (results.value == BUTON9) 

 {

 Serial.println(&quot;BUTON9&quot;); 

 }
 irrecv.resume();

 }

 

}
</code></pre>
<p>But I'm not getting any output from Serial Monitor.
Can you help me for debugging it?</p>
 9829: <p>I could be wrong, but I believe that this receiver operates at 38kHz (at least that is listed in the specs), so the IR source must be oscillating at that frequency for this receiver to see it. Check out this link to see how to create a circuit to oscillate your IR LED:</p>

<p><a href="http://www.electro-tech-online.com/threads/ir-emitter-at-38khz.94119/" rel="nofollow">http://www.electro-tech-online.com/threads/ir-emitter-at-38khz.94119/</a></p>
 15333: <pre><code>void loop(void) {
   int numberpulses;

   numberpulses = listenForIR();

   Serial.print("Heard ");
   Serial.print(numberpulses);
   Serial.println("-pulse long IR signal");
   if (IRcompare(numberpulses, ApplePlaySignal)) {
      Serial.println("PLAY");
      if (ledState == LOW)
         ledState = HIGH;
      else
         ledState = LOW;

      // set the LED with the ledState of the variable:
      digitalWrite(ledPin, ledState); 

   }
   if (IRcompare(numberpulses, AppleRewindSignal)) {
      Serial.println("REWIND");
   }
   if (IRcompare(numberpulses, AppleForwardSignal)) {
      Serial.println("FORWARD");
   }
}
</code></pre>
 34024: <p>connect vcc to 5V
connect Gnd to GND
connect In to D11 pin onto Uno, Nano etc.
download the library from here and follow the instructions/where to unzip and removing the other folders/:
<a href="http://z3t0.github.io/Arduino-IRremote/" rel="nofollow noreferrer">http://z3t0.github.io/Arduino-IRremote/</a></p>

<p>Open the Arduino program and paste this code onto a new Arduino project:</p>

<pre><code>int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}
void loop()
{
  if (irrecv.decode(&amp;results))
    {
     Serial.println(results.value, HEX);
     irrecv.resume(); // Receive the next value
    }
}
</code></pre>

<p>Select 'Sketch'/Import Library from Arduino and select IRremote from the drop-down menu.</p>

<p>Upload the sketch
Open Tools/Serial monitor then select 9600 as baud rate
Use a Tv remote, IR car remote or the remote from the module.
You will see the HEX code of each button after pressing it.</p>
 8807: <p>i have also bought this IR receiver with a remote controller (as a kit), and i had the same problem, i changed the remote controller and it worked perfectly, so even if the IR and RC came as a kit it doesn't mean they will work, if you don't have another remote controller in hand you can use a lighter just to check if the IR is working.  </p>
 8273: <p>Looking further here</p>

<p><a href="http://forum.arduino.cc/index.php/topic,188236.0.h" rel="nofollow">http://forum.arduino.cc/index.php/topic,188236.0.h</a>...</p>

<p>I found the following</p>

<p>"Removing 
the files - libraries\RobotIRremote\IRremoteTools.cpp and 
libraries\RobotIRremote\IRremoteTools.h solved the problem. They are
example files which somehow are getting included. You can move those two 
files to some other location as backup."</p>

<p>I went to my libraries 
file and did this and can confirm that the example given above then 
compiles fine without downloading a new library. Its an Arduino 
libraries problem .</p>

<p>Either way will work</p>

<p><a href="http://www.instructables.com/id/Remote-Control-Light-switch-ARDUINO/" rel="nofollow">answer from here and worked for me</a></p>

<p>i use this code:</p>

<pre><code>#include &lt;IRremote.h&gt;
int input_pin = 10; //set D10 as input signal pin
IRrecv irrecv(input_pin);
decode_results signals;
void setup()
{
    Serial.begin(9600);
    irrecv.enableIRIn(); // enable input from IR receiver
}
void loop() {
if (irrecv.decode(&amp;signals)) {
        Serial.println(signals.value, HEX);
        irrecv.resume(); // get the next signal
    }
}
</code></pre>
