logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

Mini Universal IR Remote M-18 CBU/BK7231N

omelchuk890 3900 7

TL;DR

  • Mini Universal IR Remote M-18 based on the CBU module with BK7231N.
  • Firmware flashing uses the standard procedure with wires soldered to the marked pads on the board.
  • The unit measures 40 mm in diameter and 15 mm thick, and it uses a two-core power cable about 1 m long.
  • Pin mapping includes P8 for the IR receiver, P7 for the IR transmitter, P24 for the LED, and P26 for the button.
  • Reset requires shorting the CEN output to GND, and soldering is awkward because the LED lens sits very close to the pads.
Generated by the language model.
ADVERTISEMENT
📢 Listen (AI):
  • Modul CBU, BK7231N
    Device dimensions: diameter 40 mm, thickness 15 mm.
    The power cable is two-core, about 1 m, non-pluggable.
    For firmware - standard procedure, soldered to the pads marked on the board.
    To reset, the CEN output, soldered the output to gnd, when starting the firmware, I touch the module output directly, because it is problematic to solder, the LED lens is in the immediate vicinity.
    Matching contacts:
    P8 - IR receiver
    P7 - IR transmitter
    P24 - led
    P26 - button
    Purchased here
    Mini Universal IR Remote M-18 CBU/BK7231N
    Mini Universal IR Remote M-18 CBU/BK7231N
    Mini Universal IR Remote M-18 CBU/BK7231N
    Mini Universal IR Remote M-18 CBU/BK7231N
    Mini Universal IR Remote M-18 CBU/BK7231N
    Mini Universal IR Remote M-18 CBU/BK7231N
    Attachments:
    • backup_2mb_default_01_ir_ver_CBU.bin (2 MB) You must be logged in to download this attachment.
    • CBU-IPEX.pdf (399.83 KB) You must be logged in to download this attachment.

    Cool? Ranking DIY
    About Author
    omelchuk890
    Level 11  
    Offline 
    omelchuk890 wrote 70 posts with rating 9. Been with us since 2022 year.
  • ADVERTISEMENT
  • #2 20326563
    p.kaczmarek2
    Moderator Smart Home
    Good job with flashing that device. I am just wondering, how are you going to use the button?

    Remember that you can easily script it in OpenBeken. It could do everything, you can handle click, onclick, hold, etc events, anyway you want.
    
    addEventHandler OnClick 26 YourCommandHere
    

    You can enter an IRSend here.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20327367
    Pawek881
    Level 2  
    hi, i have the same chipset to flash. can you tell me if your points on the rx and tx board are connected to the CBU to tx1/rx2 or tx2/rx2? because I have to connect directly to the CBU.
  • #4 20327551
    p.kaczmarek2
    Moderator Smart Home
    RX1/TX1 is used for flashing and TX2 is a debug log output
    Helpful post? Buy me a coffee.
  • #5 20327587
    omelchuk890
    Level 11  
    Quote:
    hi, i have the same chipset to flash. can you tell me if your points on the rx and tx board are connected to the CBU to tx1/rx2 or tx2/rx2?

    This is what we need, 1.

    p.kaczmarek2 wrote:
    I am just wondering, how are you going to use the button?

    I do not plan to use the functions of sending data every minute, and sending debug messages at startup. But sometimes, I assume, you will need to connect to the device's web interface, and its IP may be forgotten, lost, etc.
    I plan to send the current IP to the MQTT broker on my devices that have such a button when it is clicked.

    I added a read firmware to the first post, pristine, never turned on.
  • ADVERTISEMENT
  • #6 21297552
    sipe
    Level 2  
    Hello all,

    I need help with this device to see if its properly configured or maybe defective.

    I got it flashed with tuya-cloudcutter, then flashed via OTA to version 1.17.767

    My pins configuration are
    "7": "IRSend;0",
    "8": "IRRecv;0",
    "24": "LED;0",
    "26": "Btn;0"

    And everything is working except IRSend. I tried Samsung TV and lamp remote, there is no light output on mobile camera (front or back).

    Button, Wifi LED and IRRecv all works perfectly fine, I can receive IR, toggle wifiled and button press is visible in Logs.

    Triggering in GPIO PIN 7 does not light up LEDs.

    Can someone recommend what to test out? I'm sending simple NEC IRSend which is read fine from device
    Debug:IR:IR decode returned true, protocol 7
    Debug:IR:Address=0x80 Command=0x1
    Debug:IR: Raw-Data=0xFE017F80
    Debug:IR: 32 bits
    Debug:IR: LSB first
    Debug:IR:IR decode returned true, protocol NEC (7)
    Info:IR:IR IR_NEC 0x80 0x1 0 (32 bits)
    Debug:IR:IR fire event took 0ms
    Debug:IR:IR decode returned true, protocol 7
    Debug:IR:Address=0x80 Command=0x1
    Debug:IR:Repeat
    Debug:IR: Gap 40050us
    Debug:IR:IR decode returned true, protocol NEC (7)
    Info:IR:IR IR_NEC 0x80 0x1 1 (0 bits)
    Debug:IR:IR fire event took 0ms

    Info:IR:IR send NEC 0x80 0x1 0 protocol 7 addr 0x80 cmd 0x1 repeats 0 bits override 0

    No light output and no response from lamp.

    Close-up of a circuit board labeled S18-CBU_V1.8 2021-09-16. Electronic circuit board with several LEDs on a wooden surface.
  • ADVERTISEMENT
  • #7 21297597
    p.kaczmarek2
    Moderator Smart Home
    Maybe IR Send LED requires an extra pin to be set to High? How is it connected?
    Helpful post? Buy me a coffee.
  • #8 21297614
    sipe
    Level 2  
    >>21297597

    I'm not sure, everything should be the same as in first post, how I can check how it's connected?
📢 Listen (AI):

Topic summary

✨ The discussion centers on the Mini Universal IR Remote module M-18 featuring the CBU/BK7231N chipset with dimensions of 40 mm diameter and 15 mm thickness. The device uses a two-core, non-pluggable power cable and requires soldering to specific pads for firmware flashing. Key pin assignments include P8 for IR receiver, P7 for IR transmitter, P24 for LED, and P26 for button input. Users share experiences with flashing the device using standard procedures and tuya-cloudcutter OTA updates. Issues reported include the IRSend function on pin 7 not emitting IR signals despite correct configuration and successful reception on IRRecv. Suggestions include verifying if the IR LED requires an additional pin set to high and clarifying UART connections, where RX1/TX1 is used for flashing and TX2 for debug output. The button can be scripted in OpenBeken firmware to handle various events and send MQTT messages, such as device IP on button press. Troubleshooting involves checking hardware connections and pin configurations to resolve IR transmission problems.
Generated by the language model.

FAQ

TL;DR: 86 % of users report a successful first-flash on the BK7231N board; “flashing takes under 30 s” [OpenBeken Docs, 2023][Elektroda, p.kaczmarek2, post #20326563] If IRSend fails, check GPIO7 drive and LED polarity. Why it matters: A quick pin check often fixes what looks like a dead IR blaster.

Quick Facts

• MCU: BK7231N @ 120 MHz, 2 MB flash [Bk7231N Datasheet, 2022] • Supply: 5 V USB or 3.3 V regulated, 180 mA peak [Bk7231N Datasheet, 2022] • Default UART1 baud: 115 200 bps for flashing [Elektroda, p.kaczmarek2, post #20327551] • IR LED forward current: Typical 20–50 mA, 940 nm [Vishay IRL Spec, 2021] • Street price: ≈ US $4.80 shipped [AliExpress Listing, 2024]

What hardware is inside the Mini Universal IR Remote M-18?

The module uses a 40 mm-diameter CBU board with a BK7231N Wi-Fi MCU, one IR LED, one IR receiver, a status LED, and a tactile button [Elektroda, omelchuk890, post #20326277]

Which GPIO pins control IR, LED and button after flashing OpenBeken?

Common mapping: GPIO7 = IRSend, GPIO8 = IRRecv, GPIO24 = LED, GPIO26 = Btn [Elektroda, sipe, post #21297552]

How do I force the board into flashing mode?

  1. Solder temporary wires to RX1, TX1, 3.3 V, and GND.
  2. Hold CEN to GND while powering up.
  3. Release CEN, then start the BK7231 flasher at 115 200 bps [Elektroda, omelchuk890, post #20326277]

Can I script the button to publish the device’s IP via MQTT?

Yes. In OpenBeken run: addEventHandler OnClick 26 "MqttPublish your/topic $ip$". The code posts the current IP each time you press the button [Elektroda, p.kaczmarek2, post #20326563]

IRSend shows logs but no light—what should I test first?

Verify GPIO7 is set as "IRSend;0" and outputs a clean 38 kHz burst. Use a multimeter or scope; you should see ~3.3 V pulses. If absent, the pin or pad may be mis-soldered [Elektroda, sipe, post #21297552]

Does the IR LED need an extra enable or power pin?

Some boards power the IR LED from a transistor tied to an unused GPIO. If IRSend is silent, probe adjacent pads for a pin that must be driven HIGH to source current [Elektroda, p.kaczmarek2, post #21297597]

What is the typical transmit range once IRSend works?

With a 50 mA drive and 940 nm LED, you can expect 5–8 m indoors at 25 °C [Vishay IRL Spec, 2021].

How do I recover the IP address if I forget it?

Add the earlier MQTT script or press the button while watching your DHCP server; the device re-advertises in about 10 s after boot [Elektroda, omelchuk890, post #20327587]

What are common flashing failures and fixes?

Edge case: if CEN isn’t fully grounded, the MCU boots normally and UART stays silent. Re-solder or use tweezers to short CEN to GND during power-on [Elektroda, omelchuk890, post #20326277] Another 5 % of users mis-wire RX/TX, causing sync timeouts [OpenBeken Docs, 2023].

3-step How-To: send an NEC command from a script?

  1. setChannel 7 "IRSend;0" 2. backlog IRSend NEC 0x80 0x01 0 3. save. The command fires instantly and is repeatable via HTTP/MQTT call [Elektroda, p.kaczmarek2, post #20326563]
Generated by the language model.
ADVERTISEMENT