logo elektroda
logo elektroda
X
logo elektroda

Universal IR remote control receiver/transmitter for Wi-Fi - interior and firmware change ATLO-RC-IR

p.kaczmarek2  4 1092 Cool? (+5)
📢 Listen (AI):
Black IR remote shell, USB cable, and instruction sheet on white surface
I would like to invite you to a demonstration of the interior and software changes of the Tuya universal IR remote control. The device shown here is capable of receiving and transmitting infrared signals in various remote control standards such as RC5, RC6, NEC, etc. The whole thing is controlled from Wi-Fi, so various complex mechanisms and automations can be created, and even potentially paired with Home Assistant.

I will skip the tests with the Tuya app in this topic, as this has been presented before.
White box labeled Universal remote control with Tuya logo on top Box of ATLO-RC-IR-TUYA device with label and barcode visible Top of the device box with IR option marked in black
The adventure begins with the purchase of the hardware - in our country for around £30, probably cheaper in China. The kit also includes a USB cable, but this won't be of much use to us as it doesn't have a data line.
Tuya IR universal remote with USB cable and instructions on white background
Instructions (pairing with Tuya, etc):
User manual for Tuya universal IR remote control in Chinese language Universal IR remote Tuya instruction leaflet with usage and specs

Let's take a look inside:
Disassembled Tuya IR universal remote with visible PCB and casing
The construction of this device is very simple. The whole thing is powered by 5V from USB, so no converters are needed. An LDO AMS1117-3.3V regulator is sufficient, which powers the BK7231N located directly on the PCB. There are also separate IR LEDs on the PCB from the transmitter, pointing in different directions, and a single IR receiver.
Round PCB with BK7231N chip, IR LEDs, and Wi-Fi antenna trace visible.
Due to the low performance of the microcontroller GPIO, transistors were used here to control the transmitters:
Close-up of PCB with IR components, transistors, and status LEDs.
The Wi-Fi antenna is also in track form on the PCB:
Close-up of PCB with BK7231N chip, IR LEDs, and PCB Wi-Fi antenna
On the bottom of the PCB there are pads for programming. The signals from UART and SPI can be distinguished here.
Bottom of a blue circular PCB with a button and labeled programming pins
We program the device with our flasher, following the instructions from the repository:
https://github.com/openshwprojects/BK7231GUIFlashTool
We need a USB to UART converter. We solder the power supply, RX1 and TX1.
Round PCB with connected wires and a micro USB port for IR Tuya device
This also needs to be well powered. In the picture I have used an external LDO for this, although here you could just as well solder 5V to the input of the LDO found on the board. It's important that the BK7231 gets 3.3V at VDD, not a higher voltage. It can easily be damaged.
Tuya IR PCB connected to a breadboard with jumper wires and electronic components
Flasher correctly detects GPIO configuration:
GPIO configuration window extracted from Tuya device memory in flasher software
JSON Tuya:
Code: JSON
Log in, to see the code

You can read from here:
- wfst_pin - pin with status LED on it
- reset_pin - pin with pairing button
- infrr - pin with IR receiver
- infre - pin with IR transmitter
Description from the converter:

- WiFi LED on P24
- IR Receiver on P8
- IR Sender on P7
- Pair/Reset All Pin on P9

OBK template:
Code: JSON
Log in, to see the code



IR events can be handled according to our previous material:



It was also translated here:
Tutorial/presentation on operating the NiceMCU BK7238/T1 IR remote control - Home Assistant [EN]
Tutorial/presentation on operating the NiceMCU BK7238/T1 IR remote control - Home Assistant [EN]
The IRSend command is used to send data:
https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md

Note that there are two versions of the OBK available - the main one is the Arduino-IRRemote integration and the other is the IRRemoteESP8266. The IRRemoteESP8266 version supports additional protocols and can be downloaded here:
Firmware file “OpenBK7231N_1.18.190_irRemoteESP.rbl” highlighted in red box
OpenBeken is thoughtfully designed to support a wide range of use cases and anyone can select a version that suits them. If desired, you can also compile a custom configuration online - without having to install the compiler on your computer ( tutorial ).
https://github.com/openshwprojects/OpenBK7231T_App/releases/
For more information, I refer you to the documentation.
Command documentation:
https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md
Documentation of control via MQTT:
https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/mqttTopics.md

In summary , a device reprogrammed in this way can be connected to the Home Assistant and controlled from MQTT. You can receive signals (in MQTT format compatible with Tasmota) from various remote controls and use them to trigger automation, e.g. to control lighting, roller-blinds or other devices. You can also send your own signals from the HA level via this gadget - e.g. to control the TV (to switch it off or on at a given time) or maybe even the air-conditioning (provided its protocol is supported - in this case, I recommend versions with IRRemoteESP). Sending is also possible from the HA - the IRSend command according to the OBK documentation is sending on a Tasmota-style cmnd.
What applications do you see for this type of IR 'gateway'?

About Author
p.kaczmarek2
p.kaczmarek2 wrote 14049 posts with rating 11855 , helped 637 times. Been with us since 2014 year.

Comments

krzbor 30 Dec 2025 00:17

Is there any reason why you are connecting an external power supply instead of powering this via the USB plug? Then you only need to solder 3 wires - GND, Tx and Rx. [Read more]

p.kaczmarek2 30 Dec 2025 01:00

In this particular case, I think you could simplify and power this from USB, while soldering only GND, Tx and Rx. Then you could do the "power off"/"power on" cycle required by the flasher by disconnecting... [Read more]

krzbor 30 Dec 2025 23:12

Thanks for the clarification - I didn't know that. [Read more]

p.kaczmarek2 31 Dec 2025 00:08

Yes, there is no BOOT pin. Simply the flasher "catches the reboot". More precisely, there are two methods for this: - cycle disconnecting and restoring the power supply (I recommend this) - short-circuiting... [Read more]

%}