Go Down

Topic: How to distinguish two same IR remote controllers (Read 219 times) previous topic - next topic


I have two controllers that are the same, and i have one receiver.
I need to crate a game for 2 players, so that every player can use his own controller for playing. is it possible to detect on which controller the button is pressed?


hi !

can you be more specific on what the remotes are ?

most of them uses RC5 protocol, if they are both the same, chances are that are using the same transmit protocol, thus making the impossible to distinguish between each other. but i may exist a chance that a hidden data (within that trame) exists, and this data may be ignored from the receivnd device.

with an arduino, it's easy to find out what the trame is composed of. this way, you will know much easyer

have a nice day


This is what im using:

Library: https://github.com/shirriff/Arduino-IRremote

Code: [Select]
 * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
 * An IR detector/demodulator must be connected to the input RECV_PIN.
 * Version 0.1 July, 2009
 * Copyright 2009 Ken Shirriff
 * http://arcfn.com

#include <IRremote.h>

int RECV_PIN = 11;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
  irrecv.enableIRIn(); // Start the receiver

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value

Values that i get on arduino are the same for both remote controllers.


hi !

if both trames your receive (in the terminal displaying all ascii characters) are the same, this means, both transmitters sends the same thing with the same pressed button, thus making impossible to distinguish from each other.

remember that the trame is provided by the uctrl, so you can't tweak this part

have a nice day



Maybe use two cheap "Learning remotes" and teach them different codes? 

But they still can "collide" in real time.

Years ago some 'educational' computers came with IR remote keyboards.  You WILL believe what Tommy typed on Susie's computer...
Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131