i am building on a "universal remote" that is supposed to use an Arduino to send IR signals to the individual devices (Projector, HiFi/BluRay, SAT Receiver) in our Home Cinema while it receives the input from another Arduino (the actual Remote) with those RF Links, because you cannot use 2 IR Receivers/Transmitters in the same room and the IRLib does not support sending and receiving at the same time either.
Now i have no problem using the RF Link/VirtualWire or the IR system individually, but combining them doesn't seem to work as intended. What am I doing wrong?
Pause- "because you cannot use 2 IR Receivers/Transmitters in the same room "
If your project is based on this false premise and becomes needlessly more convoluted, I'd recommend resolving this misunderstanding and reconsider the setup.
INTP:
Pause- "because you cannot use 2 IR Receivers/Transmitters in the same room "
If your project is based on this false premise and becomes needlessly more convoluted, I'd recommend resolving this misunderstanding and reconsider the setup.
Sorry that was a false statement. It's just that the IRLib didn't allow me to send and receive in the same sketch and my assumption that RF works better in my case why i chose to use the RF links. It's also me wanting to get involved more with the use of the RF links and VW library.
jremington:
Check the documentation for timer usage. There may be a conflict with Timer1.
I already tried the the timers 2 (default) and 3 but it didn't work as well.
DrAzzy:
When you say "it doesn't work as intended" what does that mean?
I thought i could easily combine the 2 sketches i made earlier to test either the IRLib and VW functionality but it didn't work out or what do you mean?
DrAzzy:
When you say "it doesn't work as intended" what does that mean?
jremington:
This phrase means nothing to us, and we can't help.
Sorry for any comprehensibility issues. I'm from germany. What I did before to test the code is incidental.
It's just the code i posted which i thought would work but doesn't. And i'm asking you why.
Now the compiler shows an error with my code even though i wrote the code again entirely. The universe hates me. I'll try it again tomorrow. Thanks guys.
INTP:
Is your IR LED on pin 13?
PS:
That's a problem. It needs to be on a PWM pin.
On Mega pins 2-13 are PWM. But I don't use pin 13 anyway
Oh, okay. I don't have a Mega and haven't used that IR library you're using. I used IRremote.
Can you give any useful information about where it is failing? Is the IR LED transmitting anything? Look at the LED through your phone cam and see if it lights up.