logo elektroda
logo elektroda
X
logo elektroda

Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3

p.kaczmarek2 228 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3
    The OP-WF-A3 is a three-channel RGB LED colour strip controller offering control in two ways - via Wi-Fi from the Tuya app, or via the included remote control. Here I'll show the inside of it, then I'll change its software so that it can be programmed a bit like an Arduino, and finally I'll show the decoding of the remote control codes and their handling in the new firmware.
    Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3
    We bought the kit for £50 - it doesn't include the tape and power supply. The controller works with RGB tape from the factory, but after my modification it will be freely configurable - it will be able, for example, to handle also CCT tape (white temperatures) or several separate white tapes.
    Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3
    I do not discuss the Tuya application, I only include a photo of the instructions below:
    Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3 Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3 Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3 Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3

    Interior of OP-WF-A3
    Lift the cover, it's on a latch. There are no screws.
    Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3
    PCB designation: 240315 (date? 15 03 2024?) BK7231 RGBWY V0.1.
    Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3
    BK7231N is directly on the PCB. There is no separate Wi-Fi module. The antenna from the Wi-Fi is also in the form of a track on the PCB. In the power section there is an inverter to reduce the voltage. There is room for 5 transistors on the board, so theoretically there could be an RGB + CCT strip, but only 3 of them are manned. Next to the circuit there are signals for programming it on the pads.
    Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3
    On the other side we still have the microphone with amplifier:
    Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3
    Still left is the underside of the PCB - the tracks for the higher current are thickened and tinned:
    Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3

    Programming OP-WF-A3
    You will need a USB to UART converter. Here we have everything outputted to the pads. These need to be whittled down first:
    Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3
    Then we solder the wires:
    Software change and decoding of remote control codes from the Wi-Fi LED bar controller OP-WF-A3
    We upload the OBK:
    https://github.com/openshwprojects/OpenBK7231T_App
    We follow the instructions of our flasher:
    https://github.com/openshwprojects/BK7231GUIFlashTool
    Backup:
    https://github.com/openshwprojects/FlashDumps/commit/7c149aba30cc6e96e1b15167d2965c8de83cf81f

    The flasher should also detect the GPIO configuration, although this did not work out for this device.
    Code: JSON
    Log in, to see the code




    Configuration of the OP-WF-A3
    The PWM pins can be found using GPIO Doctor:
    GPIODoctor in OpenBeken - a convenient way to learn about GPIO roles in an IoT device
    OpenBeken GPIO interface with PWM channel settings and control buttons GPIO interface section with pin settings from P22 to P26 on OP-WF-A3 controller
    You have to trace the path to the IR receiver yourself - but I have already done that for you, it is on pin P26:
    Screenshot of OpenBeken GPIO config, P24 set to PWM and P26 to IRRecv
    We have to manually examine the IR signals - we restart the device after setting the IRRecv role and look in the log. We point the remote at the receiver and press the buttons. We look at what is being received.
    IR remote and OP-WF-A3 LED controller connected to a breadboard with wires
    On and off button:
    Device logs showing received IR codes in NEC format during LED controller operation
    The buttons are NEC standard. Codes 0x02 and 0x03 are responsible for switching on/off.
    Similarly, the brightness control:
    IR decoding logs from remote control using NEC format in OBK firmware
    In this way, we learn their codes and can then match OBK commands to them, as for example in the material on the BK7238:
    Tutorial/presentation on the operation of the NiceMCU BK7238/T1 IR remote control - Home Assistant
    You can still add buttons on their own to 'physically' control the LEDs - for me this is essential:



    A controller programmed in this way is compatible with Home Assistant:



    The converted strips can also be combined into DGR groups in this way:




    Summary
    This was a very simple product to convert. Just solder the cables, the pads are given as if on the palm of your hand. Upload the firmware and you gain new possibilities - you can freely script the buttons of the remote control, as well as add additional physical buttons and even additional sensors such as DHT11 or DS18B20. All this is, of course, compatible with Home Assistant. Such a converted product also works 100% locally, of course, without the manufacturer's cloud and poses a risk to user privacy.
    And which LED strip controllers do you use?

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 13332 posts with rating 11155, helped 612 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 21763999
    Pawel_
    Level 12  
    What is the microphone on this board used for? Control in time with the music, a modern colourophone of sorts?
  • #3 21764458
    p.kaczmarek2
    Moderator Smart Home
    Yes, this is for this Music mode. It is connected via the amplifier to pin P23, which is the ADC. I've presented several times on the forum how such bars react to music and the feedback was that the effect is quite poor, but it's not my place to judge that.
    E.g. here are the recordings:
    WiFi/IR LED strip - WX300P - music mode - hidden buttons [W800-C400]
    Helpful post? Buy me a coffee.
📢 Listen (AI):
ADVERTISEMENT