user45625: I want to use #include <IRremote.h> to receive information from an infrared remote control. It works perfectly with one IR receiver.
But I want to put three or four IR receivers:
IRrecv irrecv6(pin6);
IRrecv irrecv7(pin7);
IRrecv irrecv8(pin8);
IRrecv irrecv9(pin9);
IRrecv irrecv10(pin10);

And:
void setup() {
  Serial.begin(9600);
  irrecv6.enableIRIn(); // Start the receiver
  irrecv7.enableIRIn(); // Start the receiver
  irrecv8.enableIRIn(); // Start the receiver
  irrecv9.enableIRIn(); // Start the receiver
  irrecv10.enableIRIn(); // Start the receiver
}

Inside the loop function, I am checking each pin to see if there is any data received. But only the last pin (which means pin 10 above) is receiving the data and others are not.

user2881: That library only supports one IR receiver at a time. Try this fork that seems to have added multiple receivers support.

45625: <p>I want to use <code>#include &lt;IRremote.h&gt;</code> to receive information from an infrared remote control. It works perfectly with one IR receiver.</p>

<p>But I want to put three or four IR receivers:</p>

<pre><code>IRrecv irrecv6(pin6);
IRrecv irrecv7(pin7);
IRrecv irrecv8(pin8);
IRrecv irrecv9(pin9);
IRrecv irrecv10(pin10);
</code></pre>

<p>And:</p>

<pre><code>void setup() {
  Serial.begin(9600);
  irrecv6.enableIRIn(); // Start the receiver
  irrecv7.enableIRIn(); // Start the receiver
  irrecv8.enableIRIn(); // Start the receiver
  irrecv9.enableIRIn(); // Start the receiver
  irrecv10.enableIRIn(); // Start the receiver
}
</code></pre>

<p>Inside the loop function, I am checking each pin to see if there is any data received. But only the last pin (which means pin 10 above) is receiving the data and others are not.</p>
 2881: <p>That library only supports one IR receiver at a time. Try <a href="https://github.com/Neco777/Arduino-IRremote" rel="nofollow noreferrer">this fork</a> that seems to have added multiple receivers support.</p>
