Skip to content

IR Remote & RC Switch libraries incompatibility #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
BlackyS opened this issue Feb 2, 2017 · 2 comments
Open

IR Remote & RC Switch libraries incompatibility #111

BlackyS opened this issue Feb 2, 2017 · 2 comments

Comments

@BlackyS
Copy link

BlackyS commented Feb 2, 2017

Hello,
In a small project, I would like to receive an IR Signal from a TV Remote (=> I'm using the IRremote library https://github.com/z3t0/Arduino-IRremote here) - and trigger a 433MHz switch in order to switch it on/off.

Both library are working fine separately (!!!), IR remote as receiver and RC switch as transmitter, but when use those together it doesn't work and the RC switch library doesn't send anything to my light switches devices (but I'm still able to receive/decode IR signals)

I found some references where others are facing a similar problem and the suggestion was, that maybe there is a timer/interrupt issue which is disturbing those to libraries.
(IRremote is using 1x timer + interrupt ... and a tried it with both timer1 or timer 2 of my ATmega328/Nano ... = same behaviour)

But what is confusing to me: in the RC Switch send() function I could not identify any interrupt or timers, hence how could this interfere than with IRremote?

Another strange thing is: my piece of code was in a working environment for more than a 1/2 year now, and I just wanted to replace my broken RC-433MHz-Plug with a new one ... so I just wanted to changed the 433MHz Datagram (to match the new Plug) and after the new compiling/upload it stopped working....
... very confusing ...

Any idea what is going on here?
THX!!!

@BlackyS
Copy link
Author

BlackyS commented Feb 3, 2017

I guess I found a - maybe not very clean - solution ... but better than nothing.

I now simply disabled all interrupt before calling the RC-funtion send() -in order to send a 433MHZ datagram, and enable all interrrupts right after it.

  noInterrupts();
        myRCSwitch.send(17492,24);
  interrupts();

... as I said: better than nothing :)

@1technophile
Copy link
Collaborator

1technophile commented Apr 7, 2017

Hello,

Take a look at the software part of this tutorial:
https://github.com/1technophile/OpenMQTTGateway/wiki/Setup-Arduino

I have both libraries working well on arduino after having modified IRremote/boarddefs.h as explained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants