What is the best way to control a (old) Daikin AC unit with infra red ?
So far the option i found are
BroadLink RM Mini3 Black Bean (I saw some scripts on github to send command to it, but nothing for AC control)
Tasmota Firmware: I have a Sonoff RFBridge flashed with Tasmota Firmware, and there are some IRSend commands available for it. I guess I can add an IR module to an available GPIO ? Also, Daikin is not listed in the AC protocol supported (src code)
Logitech Harmony but seems to expensive …
I guess controling and IR AC unit is more complicated than sending a simple IRCode ?
(Note: the PI running openhab is not in the same room as the AC, cannot connect and IR emitter on it )
It can also learn commands so as long as you have the remote you should be fine.
Search the forum for broadlink
You can also use it for other IR items, TV, dvd…
Cheap and very versatile
As it’s done in the exemple above, you have to send the IR code directly to the MQTT server.
The IR Code to send is quite complicated to build, so I’ll modify the Server to accept all the parameters of my AC unit and build the code, like in this example
All new territory for me …
What I’m worried about now is how i’ll debug the the whole thing.
I’ve never use any arduino before.
Only familiar with arduino IDE because off Tasmota, but not as real developper …
Thanks to you all, I managed to get everthing working with an ESP8266 and the IRremote8266 github.
Only thing to improve now is the range of my IR led emitter.
ESP8266 is 3,3V only.
I tried this https://github.com/markszabo/IRremoteESP8266/issues/203#issuecomment-299788676 to go 5v and improve the range, but I don’t have any signal with this wiring.
So we add up: 2 diodes and a transistor = 1.7v + 1.7v + 0.7v = 4.1V
That leaves 0.9v across the resistor
We want to limit the current to 100mA (The diodes will sustain 50mA continuous but we are just pulsing signal so it will be ok)
Ohm’s law give R = V/I so R = 0.9v/100mA = 9 ohms which we round up to 10 ohms (easier to find)
Thank you, very nice and very clear ! I have 2 questions:
1st) It doesn’t matter if the ‘ESP’ input of the transistor is 3,3V ?
-> no risk 5V can go back to the ESP GPIO ?
2nd) For the 5V source, can I use the Vin pin of the NodeMCU ESP8266 (5v when USB powered)
-> no risk of having the 5v and 3.3v GPIO output of the ESP somewhat connected ?
oh yes on last question,
I have this 2 refs of transistor (from an arduino starter kit )
PN2222, BC547
Wich one is best ?
PN2222 is kind of the basic reference NPN transistor. You’ll be fine with that one.
What you are looking for is the max collector current. In this case 600mA. Our target is 100mA. Well within the tolerance of the transistor.
Hello i am trying to achieve the same result to manage a daikin IR! I had no problem to build the HW part with a NodeMCU and IR leds, with IRRemote library i can do something but i can’t understand how you tweak it to make it work with MQTT both readin/writing and which was your strategy on OH side.
Would you please share the tweaked .ino code to understand?
Thank you very much!