IR Remote need some help


#1

Hi can someone help me pls,i started new home automation project,and i need to control some remotes (tv,dvd,etc.)im useing the MQTT server (Openhabian),and i found an project theat can help me,but its to complicated for me to modify to work whit openhabian.Can someone help me whit the arduino software ?

TY

ps: sorry for my english.

Here is the program : https://drive.google.com/open?id=18pxw8dRUYEIXCcbBziA4XeWIG-2h7X-c


#2

Hi I’ve had very little luck having the IR signals coming directly from an esp board, but I did manage to get an esp board send signals to an arduino (by modifying the sprinkler/relay code) with an IR transmitter and then have the arduino broadcast the IR signal and that worked perfectly, I know is a bit of a roundabout way to do it but it worked.
Not sure if it’s something to do with the way the esp chip sends signals but it just wasn’t broadcasting right, when I was trying to broadcast the . This way worked for me but if anyone has a better way to do it I’d love to know.


#3

I initially also tried to get my IR system to work using a EPS8266 and also Arduino Uno . Although others showed how to read remote control codes and output them I always received different codes and could never get my system to work. I then purchased a “Xiaomi Universal IR Remote Controller” ($21 from gearbest.com). I could manage to setup all my devices (2 TV’s, 2 Sound Systems, 2 Air conditioners and XBox One). I used the Miio Openhab binding to “learn” the IR codes, wrote them into Openhab rules and now I can operate all my devices via Openhab.

This has been a steep learning curve and I had to put up with and couple of annoyances but for me it turned out to be worth the trouble. Some of the issues are that the Xiaomi software is in Chinese. Setting up remotes was challenging and I had to use Google translate with screen shots of the app a lot.

I have been asked by a few people on the Openhab forum to write a Tutorial so I will be doing that and hope to have it out in a few days. I will post the link here if anyone is interested.


#4

Use LIRC. It can run on another pi and is automatically configured with openhab (you have to add the IP address)