domotique

I want to work with 4 infrared receiver, but with "IRremote" lab i can work just with one infrared receiver,could you help me to modify the program so that I can work with multiple receiver.?

You've posted the same question 5 different times now. This shows a clear lack of respect for this forum and personally I hope that nobody here will help you.

bill94l:
sorry

You continued cross-posting after apologizing for cross-posting. Ugh.

STOP CROSS-POSTING OR I WILL BAN YOU!

thnks for for the quick three answer by security officer Forum

bill94l:
thnks for for the quick three answer by security officer Forum

You're the one wanting help, not us, play by the rules.

We're all hobbyists here, it's not a help-desk, nobody has to reply.... make it more likely to get a reply by sticking to the rules.

thnks, but i dont know the rules because I never was in a forum sorry everybody

Ok cool.... by the way have a look here especially rule 13 :slight_smile:

Now with that out of the way, sit back and see if anyone can help. Someone will have an answer I'm sure.

One big advantage of a forum like this is the timezones make it pretty much 24hour. You may find an answer the next morning when you wake up since it was someone's day while you slept.

So be patient and pretty sure you'll get some response.

"I want to work with 4 infrared receiver,...could you help me to modify the program so that I can work with multiple receiver.?
4 receivers pointed in different directions? In different (remote) locations?
What is the 'big picture'?

who are in a different place in the garage the other in the living room ..... puts are all connected to the Arduino, program it doesnt not even with two receiver.?

this is my programme

#include <IRremote.h>

int RECV_PIN = 22;
int REC_PIN = 23;

IRrecv irrecv(RECV_PIN&REC_PIN);
IRrecv recv(REC_PIN);

decode_results results;
decode_results result;
void setup()
{
 Serial.begin(9600);
 irrecv.enableIRIn(); // Start the receiver
 recv.enableIRIn(); // Start the receiver
}

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

in this case it works as the receiver of the pin 23? why?

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.

I think that you can use two diodes to combine the two receiver outputs together and use one "recv_pin" (that is, using the 'standard sketch'.)
(Dwg attached.)

IMG_1861.JPG

thnks :slight_smile:
with this solution I can open the store (of kitchen) withe the IR receiver of the store(room),work with different pin is better?

I'm sorry but maybe I do not understand your question.
The effect is the same, in a way, as having pushbutton switches in two different rooms - either switch will trigger the same action/s.

thnks for your answre
I want to use four different infrared receiver in different Arduino pin,I can do this but i can't modify code :slight_smile: ?

Why must they go to different pins? Why is that necessary?

:slight_smile: :slight_smile: :slight_smile:
imagined the
kitchen receiver= 22
room receiver= 23
when I took the remote of kitchen in the room and I push open the blinds will sty close because i can make condition
for exp:
if(room receiver_decode){A=open; B=close; c=stop;}
if(kitchen receiver_decode){e=open; f=close; d=stop;}

I put two in the same broch receiver with receiver impore do I control both blind
because, kitchen receiver=room receiver =receiver
i can do just this condition, for exp:
if(receiver_decode){A=open(24HIGH); B=close(25HIGH); c=stop(26LOW);e=open(27..); f=close(28..); d=stop(29...);}
thnks for your answer.

I suppose that you have a Mega?
And I assume, rightly or wrongly, that you are trying to use Ken Shirriff's IRremote library?
I don't know if it can be modified to achieve the result you need.

:slight_smile:
yes i have an arduino mega :slight_smile:
i will try make it with PCF8574 "I2C protocol"

@bill94l - if you search thru the GitHub Issues for IRremote, you will find references on how to achieve multiple IR receivers with IRremote...