logo elektroda
logo elektroda
X
logo elektroda

Heruled Tuya WiFi Smart LED Controller - Lightning Semiconductor LN8825B chip

divadiow 8280 48
ADVERTISEMENT
  • Helpful post

    LN8825B chip identified as non-flashable Tuya controller

    #1 20871361
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    I bought this hoping for an Espressif or Beken chip, but no luck.

    Tuya WiFi LED controller with remote and mobile app.
    Specification table with details for the Tuya WiFi model and HERULED controller for RGB LED strips.
    https://www.aliexpress.com/item/1005004613749484.html

    It appears to be a Lightning Electronics LN8825B chip, which has no mention on this forum or any other, that I can find. It seems no chance it's a rebranded version of something we can flash. The same situation as https://www.elektroda.pl/rtvforum/topic3989796.html

    https://developer.tuya.com/en/docs/iot-device...e?id=Kaiuyfgqxi1cl#title-0-Chipset%20platform


    LED controller with cable and remote on a red background.


    Close-up of a circuit board with LN8825B chip. Circuit board with LN8825B chip in a white enclosure with connected wires.

    I wouldn't recommend wasting your time with it.

    2026 Update - OpenLN8825 development: https://www.elektroda.com/rtvforum/topic4161139.html
  • ADVERTISEMENT
  • #2 20871453
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14755
    Help: 659
    Rate: 12879
    Well, is there SDK for this chip? Have you tried capturing the boot log?
    Helpful post? Buy me a coffee.
  • #3 20871823
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914

    I was about to capture the boot log, but it's either DOA or I've killed it somehow. Very annoying!

    I have not found the SDK yet.

    Would accidentally getting GND and VCC the wrong way round kill the device?

    P.S. What does Heruled mean?
  • ADVERTISEMENT
  • #4 20871841
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14755
    Help: 659
    Rate: 12879
    Heruled is the brand name of this device, as per specifications table from Aliexpress.

    Well, connecting power supply with reversed polarity is usually lethal for all unprotected devices.
    Helpful post? Buy me a coffee.
  • #5 20871847
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    lol. sigh. yes

    ok thanks
  • #6 20871856
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14755
    Help: 659
    Rate: 12879
    Do you have a multimeter to check what might have been damaged? Maybe at least MOSFETs are okay and they can be reused after making a ESP12 transplant.
    Helpful post? Buy me a coffee.
  • UART output present but baud rate unclear

    #7 20871986
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    I do have a multimeter but not sure I have the patience to work out what is wrong with it when theyre so cheap :s

    BUT

    There is still no sign of it for detection in any Tuya app or any new device in AP mode, but I seem to be getting something from the TX0/RX0 pins if I use the 12v DC adaptor. I cannot seem to get a baud rate that produces a clean output though

    
    ▒▒interface 0 is initialized
    interface 1 is initialized
    [01-03 18:12:15 TUYA InfoW▒▒▒}▒▒▒{▒}▒m▒{▒▒▒▒▒▒▒ݿ▒▒▒▒▒▒▒[?=▒?9>98:12:15 TUYA Debu                                                                                   g][uni_thread.c:218] Thread:sys_timer Exec Start. Set to Running Status
    [01-01 18:12:15 TUYA Debug][uni_thread.c:218] Thread:cmmod Exec Start. Set to Ru                                                                                   nning Status
    [0▒▒?▒▒▒▒▒▒WU]}k▒ݽum▒}▒▒▒}▒▒▒▒▒▒ٕ▒▒▒ѕɁoō▒▒▒▒▒▒▒▒▒▒▒jִ▒j▒▒▒▒Ҋ▒Ҋ▒▒U▒
                                                                    ▒T▒▒▒V▒▒ō}▒▒▒銊▒                                                                                   ▒j▒}▒ɽ▒jō}▒▒▒▒▒▒▒}▒▒▒▒j▒▒Hh▒j▒▒▒▒Ҋ▒R▒▒U▒
                                            ▒T▒▒▒V▒▒+▒}▒▒▒▒Ŋ▒▒j▒}▒ɽ▒ϊ▒jō}▒andler_cnt                                                                                   :2
    [?▒▒?▒▒▒▒▒▒▒U▒▒▒um▒▒▒▒▒{▒▒▒▒▒▒х▒́▒▒ɕ▒▒▒▒▒▒▒▒▒b▒▒▒▒х▒▒́J́*▒▒▒▒5jj▒▒▒j▒▒▒▒Ҋ▒Ҋ▒▒U▒
                                                                                ▒T▒▒                                                                                   ▒V▒5ٍ}▒▒▒▒▒▒}▒▒▒▒▒ʂ▒▒ٍ▒z▒▒▒▒▒▒b▒▒▒J▒▒с▒Ս▒▒▒▒5jj▒▒▒j▒▒▒▒Ҋ▒Ҋ▒▒Ue▒;▒ѥ▒▒um▒▒▒}▒▒٥▒▒▒▒▒                                                                                   O[▒▒▒?=▒▒?:=6>5▒?▒]VZ▒▒otice][tuya_light_lib.c:6792] ==== tuya light lib version                                                                                   :1.0.2 ====
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:2799] ------------- 728
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:1364] R:1023  G:0   B:0
    [01-01 18:12:15 TUYA Notice][tuye_light_lib.c:1371]▒22222▒:10:3  G:▒▒▒▒{▒?▒▒▒▒_?                                                                                   =▒?▒▒▒▒▒o▒▒▒▒Uu▒owmcu][vuya_device.c:157] -----check_reset_cnt----- 0 0
    [01-01 18:12:15 TUYA Notice][simple_flash.c:401] key_addr: 0x1e7000   block_sz 4                                                                                   096
    [01-01▒O▒▒▒▒▒▒▒Uu▒▒▒ݵ▒▒um▒▒▒}▒▒;▒7]▒mf_init succ
    [01-01 18:1▒:15 TUYA Notice][tuya_light_lib.c:6535] wifi statue 0
    [01-01 18:12:15 TUYA Notice][tuya_light_hard.c:738] wf config low▒mode
    _01-01 18:12:15 TUYA!No▒▒▒um▒▒u▒ݵ▒▒{▒▒▒▒▒}▒▒▒}▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒r▒r▒▒
                                                                      U▒▒▒▒▒▒▒▒Ҋ▒Ң▒Ҋ                                                                                   ▒j▒▒Hh▒j▒▒▒▒Ҋ▒Ҋ▒▒U▒
                       ▒▒WkVV▒E▒▒}▒▒٥▒▒▒▒�▒▒▒U▒
                                               )▒▒*▒)$▒'&)▒I▒▒*'ML▒▒0_PT:2.2_LAN:3.3                                                                                   ▒< BUILD AT:2020_09_10_14_41_46 FY▒um{uw▒wk▒▒_▒_▒w_▒▒_▒wk▒}W▒oo??3~>>
    IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:2 E                                                                                   NABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEE                                                                                   R_TO_NO▒M▒L:0 OPERATMNG_S][Wum▒▒▒▒▒▒▒▒mu[_[_{▒?▒w▒_[u{U[mW]_{OI^:<0RELIABLE_TRAN                                                                                   SFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 ENABLE_LAN_LINKAGE:0 ENABLE_LAN_L                                                                                   INKAGE_MASTER:0 >
    
    [01-01 18:12:15 TUYA Notice][t}ya_light_qrod.c:2008] prod mode = 0▒ aw[▒▒mmu▒▒▒▒                                                                                   ▒▒[▒▒u▒▒▒▒{m_mofe=2, GWCM_OLD=0
    [01-01 18:12:15 TUYA Notice][tuya_main.c:107] current product ssid name:tuya_}de                                                                                   {{▒Di▒connected.
    tm▒▒▒▒▒▒▒ݽ▒{{▒HwEr:UKI:0
    [01-01 18:12:17 TUYA Notice][tuya_main.c:110] ww_}▒▒m▒}▒▒}▒{}▒▒▒ݽ▒=?=▒=▒▒▒▒▒[01-                                                                                   01 18:12z17 TUYA Notice][gw_intf.c:3761] serial_no is not set
    [01-01 18:12:17 TUYA Notice_[gw_intf.c:3787] gw_cntl.gw_w▒m▒▒▒}▒▒~▒▒▒{?=▒?▒▒▒▒▒▒                                                                                   WUW_z▒ݥ͕um▒▒}▒▒љ▒▒▒ͺʂ▒:▒}▒▒ѱ▒▒▒}▒͵▒r▒}▒▒▒▒
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3791] gw_cntl.gw_wsm.md:0
    [?=▒▒▒▒=▒▒▒wU▒}▒▒ݵ▒▒um▒▒}▒▒ٙ▒▒▒▒ʚ▒ꁟ▒}▒▒ѱ▒▒▒}▒▒▒
                                                   ▒▒▒J▒▒▒▒▒j▒▒Hh▒j▒▒▒▒Ҋ▒Ҋ▒▒U▒
                                                                              ▒▒WkVV                                                                                   ▒u▒}▒▒љ▒▒�▒▒:▒}▒▒ѱ▒:▒}▒▒▒▒ɽ▒Ս▒}▒▒▒▒ҙ▒▒▒▒▒ʹ▒قͪ▒▒J▒▒▒▒▒▒▒▒▒ʹ▒▒▒ͪ▒5jj▒▒▒j▒▒▒▒Ҋ▒Ҋ▒▒Ue▒                                                                                   r▒ѥ▒▒um▒▒}▒▒љ▒▒▒▒▒}▒o▒▒}▒ݽ▒▒▒▒?▒▒▒▒[01-01 18:12:17 TUYA Err_[tuya_adapter_platfo                                                                                   rm.c:396] tuya_light_reg_get_wf_nw_stat_cb err:269268420
    [?=▒?O▒▒▒▒▒▒▒▒▒Uu▒m{▒_▒__▒}▒▒ݹ▒}▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒}▒▒▒▒▒}▒х▒с▒▒▒▒j▒▒H▒[01-01 1x:12                                                                                   :18 TUYA Notm▒W▒u▒_▒▒ݽ▒}▒▒▒ݽ▒▒▒}▒▒w▒{oogmw?oow>mode
    
    


    I've tried CH340 and PL serial adaptors. The CH340 doesn't seem to register any output at all. I'm not sure my external 3.3v is pushing enough current because I only get the log out when using a DC jack.

    I'm off home for Christmas now so won't be able to do anything more for a week or so. I could order another one too in case I have half-killed this one

    Added after 8 [hours] 46 [minutes]:

    I've ordered another one.

    I might cannibalise this one for its IR and transplant into the Energizer controller. https://www.elektroda.com/rtvforum/topic4020505.html
  • #8 20872183
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14755
    Help: 659
    Rate: 12879
    That's interesting, but I can't see SDK name there, only date: 2020_09_10_14_41_46
    Helpful post? Buy me a coffee.
  • SDK likely covers LN8825B variant

    #9 20874237
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914

    Interesting. I just came across this thread https://www.elektroda.com/rtvforum/topic4008545.html#20824130 and noticed that @sithyoda also had trouble getting a boot log with any baud rate.

    I notice the SDK is for LN882xx, so looks like it would also cover this variant.

    (Subheading in GitHub is "LN882H (LN882x family, H series) WiFi&BLE Combo*

    I'll keep an eye on the thread for any progress with these chips.
  • Legible boot log from RX0/TX0 on LN8825B

    #10 20898850
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    may be of less interest now with the progress in the other thread about the LN882H, but I managed to get a legible boot output from RX0/TX0

    
    interface 0 is initialized
    interface 1 is initialized
    [01-01 18:12:15 TUYA Info][mqc_app.c:175] mqc app init ...
    [01-01 18:12:15 TUYA Debug][uni_thread.c:218] Thread:sys_timer Exec Start. Set to Running Status
    [01-01 18:12:15 TUYA Debug][uni_thread.c:218] Thread:cmmod Exec Start. Set to Running Status
    [01-01 18:12:15 TUYA Info][sf_mqc_cb.c:42] register mqc app callback
    [01-01 18:12:15 TUYA Debug][mqc_app.c:118] mq_pro:5 mqc_handler_cnt:1
    [01-01 18:12:15 TUYA Debug][mqc_app.c:118] mq_pro:31 mqc_handler_cnt:2
    [01-01 18:12:15 TUYA Err][log_seq.c:848] log stats ufread fail, log status is empty
    [01-01 18:12:15 TUYA Debug][svc_online_log.c:290] svc online log init success
    [01-01 18:12:15 TUYA Notice][tuya_device.c:205] USER SET LOG_LEVEL_NOTICE
    
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:6792] ==== tuya light lib version:1.0.2 ====
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:2799] ------------- 728
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:1364] R:0  G:0   B:1023
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:1371] 22222R:0  G:0   B:1023
    [01-01 18:12:15 TUYA Notice][tuya_device.c:157] -----check_reset_cnt----- 0 0
    [01-01 18:12:15 TUYA Notice][simple_flash.c:401] key_addr: 0x1e7000   block_sz 4096
    [01-01 18:12:15 TUYA Notice][tuya_main.c:267] mf_init succ
    [01-01 18:12:15 TUYA Notice][tuya_light_lib.c:6535] wifi statue 0
    [01-01 18:12:15 TUYA Notice][tuya_light_hard.c:738] wf config low mode
    [01-01 18:12:15 TUYA Notice][tuya_device.c:279] ln_rgb_zfbdpln1ynr6p3um:1.0.1:Aug  9 2021:18:49:11
    [01-01 18:12:15 TUYA Notice][tuya_device.c:280] < TUYA IOT SDK V:2.1.2 BS:40.00_PT:2.2_LAN:3.3_CAD:1.0.2_CD:1.0.0 >
    < BUILD AT:2020_09_10_14_41_46 BY embed FOR ty_iot_wf_rtos_sdk AT ln882x >
    IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:2 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 ENABLE_LAN_LINKAGE:0 ENABLE_LAN_LINKAGE_MASTER:0 >
    
    [01-01 18:12:15 TUYA Notice][tuya_light_prod.c:2008] prod mode = 0, aging time = 0
    [user_main, 277]gwcm_mode=2, GWCM_OLD=0
    [01-01 18:12:15 TUYA Notice][tuya_main.c:107] current product ssid name:tuya_mdev_test1
    Disconnected.
    Disconnected.
    HwEr:UKI:0
    [01-01 18:12:17 TUYA Notice][tuya_main.c:110] wf_assign_ap_scan failed(-10161)
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3761] serial_no is not set
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3787] gw_cntl.gw_wsm.stat:0
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3790] gw_cntl.gw_wsm.nc_tp:0
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3791] gw_cntl.gw_wsm.md:0
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3831] gw_cntl.gw_if.abi:0 input:0
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3832] gw_cntl.gw_if.product_key:zfbdpln1ynr6p3um, input:zfbdpln1ynr6p3um
    [01-01 18:12:17 TUYA Notice][gw_intf.c:3833] gw_cntl.gw_if.tp:0, input:0
    [01-01 18:12:17 TUYA Err][tuya_adapter_platform.c:396] tuya_light_reg_get_wf_nw_stat_cb err:269268420
    [01-01 18:12:17 TUYA Notice][tuya_light_lib.c:6559] ==== tuya_light_start ====
    [01-01 18:12:18 TUYA Notice][tuya_light_hard.c:738] wf config low mode
    
    
  • Questioning LN8825B compatibility with LN882H dump method

    #11 20901187
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14755
    Help: 659
    Rate: 12879
    LN882H is almost supported and I need to get LN882H ASAP. I don't know how similiar LN8825B is, is this compatible with LN882H? Do anyone know?

    This fragment:
    
    < BUILD AT:2020_09_10_14_41_46 BY embed FOR ty_iot_wf_rtos_sdk AT ln882x >
    

    seems to suggest that they may be similiar.

    Have you tried to dump this chip memory with LN882H approach? @sweetlilmre you know a method of dumping, right?
    Helpful post? Buy me a coffee.
  • #13 20918517
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14755
    Help: 659
    Rate: 12879
    Do you think that LN882H build may be compatible with that? We can always take a risk and try to flash it.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #14 20918530
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914

    I have two LN8825Bs and I'm not bothered about killing them in order to experiment :)

    I have flashed the LN882H image posted in the Elivco thread a few days ago. Sadly, no OpenLN AP. I am erasing flash before flashing. :(

    Unless I'm doing it wrong. J-Link says flash successful. I'm using the LN882x jflash project from one of the FTP dumps.
  • UART flashing LN8825B by pulling A10 low

    #15 21023961
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    I've now managed to flash an LN8825B over UART using an official flasher GUI. You have to pull A10 down. I scratched the trace for A10 on this same LED controller as there are no A10 pads. Perhaps expectedly, LN882H OBK does not boot.

    Screenshot of the LN Serial Downloader program showing serial ports and log history.

    LN8825B microcontroller on a PCB with pin A10 marked.

    Close-up of a circuit board with LN8825B chip and connected wires.
  • ADVERTISEMENT
  • Helpful post

    Incomplete LN8825B SDK missing build files

    #16 21024157
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14755
    Help: 659
    Rate: 12879
    That's very good news! Let's try some SDKs, shall we?
    https://gitee.com/lightningsemi/ln882x-mcu
    Screen of the cloning process of the ln882x-mcu repository.
    Still, it doesn't seem complete...
    
    $ ./build.sh build mcu_no_os_xip_sample
    argv[0]:./build.sh
    argv[1]:build
    mkdir build
    -- The C compiler identification is GNU 11.3.0
    -- The ASM compiler identification is GNU
    -- Found assembler: /usr/bin/cc
    -- The CXX compiler identification is GNU 11.3.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++.exe - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- PROJECT:wifi_mcu_develop
    -- CMAKE_SOUECE_DIR:/cygdrive/w/GIT/ln882x-mcu
    -- Building project:firmware_XIP
    -- Build type: Debug
    CMake Error at CMakeLists.txt:35 (include):
      include could not find requested file:
    
        /cygdrive/w/GIT/ln882x-mcu/project/wifi_mcu_develop/gcc/gcc-arm-none-eabi.cmake
    
    
    CMake Error at CMakeLists.txt:36 (include):
      include could not find requested file:
    
        /cygdrive/w/GIT/ln882x-mcu/project/wifi_mcu_develop/gcc/target-def.cmake
    
    
    CMake Error at CMakeLists.txt:43 (include):
      include could not find requested file:
    
        /cygdrive/w/GIT/ln882x-mcu/project/wifi_mcu_develop/gcc/gcc-flags.cmake
    
    
    CMake Error at CMakeLists.txt:59 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/net/lwip-2.0.3/src" which is not an
      existing directory.
    
    
    CMake Error at CMakeLists.txt:60 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/net/iperf" which is not an existing
      directory.
    
    
    CMake Error at CMakeLists.txt:61 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/net/ping" which is not an existing
      directory.
    
    
    CMake Error at CMakeLists.txt:62 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/net/dhcpd" which is not an existing
      directory.
    
    
    CMake Error at CMakeLists.txt:63 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/kernel" which is not an existing
      directory.
    
    
    CMake Error at CMakeLists.txt:64 (add_subdirectory):
      add_subdirectory given source "/cygdrive/w/GIT/ln882x-mcu/components/fs/kv"
      which is not an existing directory.
    
    
    CMake Error at CMakeLists.txt:65 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/fs/nvds" which is not an existing
      directory.
    
    
    CMake Error at CMakeLists.txt:66 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/components/fs/partition_mgr" which is not an
      existing directory.
    
    
    CMake Error at CMakeLists.txt:67 (add_subdirectory):
      add_subdirectory given source "/cygdrive/w/GIT/ln882x-mcu/components/atcmd"
      which is not an existing directory.
    
    
    CMake Error at CMakeLists.txt:68 (add_subdirectory):
      add_subdirectory given source "/cygdrive/w/GIT/ln882x-mcu/components/wifi"
      which is not an existing directory.
    
    
    CMake Error at CMakeLists.txt:69 (add_subdirectory):
      add_subdirectory given source "/cygdrive/w/GIT/ln882x-mcu/components/fota"
      which is not an existing directory.
    
    
    CMake Error at CMakeLists.txt:70 (add_subdirectory):
      add_subdirectory given source
      "/cygdrive/w/GIT/ln882x-mcu/project/wifi_mcu_develop" which is not an
      existing directory.
    
    
    -- Configuring incomplete, errors occurred!
    See also "/cygdrive/w/GIT/ln882x-mcu/build/CMakeFiles/CMakeOutput.log".
    

    Wait, I've got something more complete:
    https://github.com/openshwprojects/ln882x-sdk
    I am not even sure if it's for LN8825 as well, but I will try...
    Helpful post? Buy me a coffee.
  • LN8825B module may be pin-compatible with ESP-12F

    #17 21024176
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    exciting!

    ready to flash whatever can be made. I'm trying to find a test/demo bin of something else to flash to be sure this chip still works. I've flashed back the factory dump of this device taken using jlink, but it doesn't seem to be booting. LN8825B is the device you have too.

    Still, I don't see LN8825B in use much. The LN engineer says they only ship dev boards to China but they did link to this product

    https://item.taobao.com/item.htm?id=768439707...26152495.1.27133bfdu34uX3&skuId=5274297133333

    which I assume is an LN chip module.

    Electronic module on a Taobao webpage.

    I'm wondering if it's pin-compatible with something - ESP-12F? - and could be used in a NodeMCU transplant.

    Added after 16 [minutes]:

    hires image of that module

    Electronic module with a green PCB and visible traces.
    Attachments:
    • Heruled Tuya WiFi Smart LED Controller - Lightning Semiconductor LN8825B chip MQ-12F_Taobao.jpg (484.76 KB) You must be logged in to download this attachment.
  • LN8825B flash tool and engineer gif

    #18 21024297
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    MQ-12F dual-mode module labeled WiFi/BLE.

    Illustration of an integrated circuit with pin labels. Table showing pin functions of LN8825B.

    https://blog.csdn.net/mqlinks/article/details/136698831

    Added after 1 [hours] 40 [minutes]:

    ordered a couple + W800. see what comes.

    Order list of two electronic products from Pandabuy warehouse.

    Added after 6 [hours] 46 [minutes]:

    Here is the LN8825B flash tool and a gif supplied by the Lightning Semi engineer.

    This tool is in English. It is a different program to the LN882H GUI flasher.
    Screenshot of Windows File Explorer with an open folder showing files including LN-Serial-Downloader-GUI.exe.
    Attachments:
    • LN-Serial-Downloader-LN8825B.zip (24.62 MB) You must be logged in to download this attachment.
  • #19 21025296
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    p.kaczmarek2 wrote:
    but I will try...


    Any joy @p.kaczmarek2 ?
  • LN8825B needs its own flasher and A10 test pad

    #20 21029890
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    no, LN8825B cannot be flashed with the LN882H flasher

    Added after 41 [minutes]:

    actually, there was no need to reveal A10 trace. There is of course a test pad for A10

    Close-up of a PCB with a probe pointing at a test pad labeled A10.

    Added after 39 [minutes]:

    don't know what's in these bins but some are definitely booting. there are a few LN8825x firmwares in the Lightning Semi FTP dumps

    Screenshot of a file list with binary files in a directory.

    The RF test bins do boot. I can tell RF is active because my PSU only registers enough current in use when RF is active. The bin "flashimage-connection_ln8825_20201019.bin" is the only one I've seen a uart log output for so far

    Screenshot with the message Console init ok! on a black background.

    At least I know my chip can boot and RF probably works. Haven't seen any visible SSIDs though
  • #21 21039376
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    p.kaczmarek2 wrote:
    Wait, I've got something more complete:
    https://github.com/openshwprojects/ln882x-sdk
    I am not even sure if it's for LN8825 as well, but I will try...


    @p.kaczmarek2 did this one fail too?

    There's also this which seems to have more files, though not all. it says LN8825X AND LN882H

    Screenshot displaying the SDK name ln882h and a description including LN882H (LN882x family, H series) WiFi&BLE Combo.
  • #22 21062932
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    I've found some LN8825B modules. Adding original and translated resources here for the record.

    MOL100D0
    MOL100P0
    Attachments:
    • M0L100D0低功耗Wi-Fi用户手册_V1.0.0_en.pdf (2.4 MB) You must be logged in to download this attachment.
    • M0L100D0低功耗Wi-Fi用户手册_V1.0.0.pdf (943.24 KB) You must be logged in to download this attachment.
    • WIFI模块选型表.pdf (259.92 KB) You must be logged in to download this attachment.
    • WIFI模块选型表_en.pdf (244.93 KB) You must be logged in to download this attachment.
  • Helpful post

    LN8825B firmware flash and UART log resources

    #23 21067377
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    from the same company - My Quick Links - MQLinks - who are selling the LN882H MQ-12F on Taobao, here are some more resources for their older LN8825B modules

    Screenshot showing folder hierarchy for LN8825B firmware.

    http://mqlinks.tpddns.cn:1888/DirectoryLister/?dir=WIFI\M0L1_LN8825

    I have flashed \M0L1_LN8825\firmware\at_uart\v1.3.1.006\at_mylinks_uart_pro.bin to the LN8825B LED controller and I get the following in uart log

    Screenshot of UART log messages from the LN8825B controller.

    Next I'll probably try getting it into AP mode with AT commands.

    I attach a zip of the whole M0L1_LN8825 folder in case it becomes unavailable
    Attachments:
    • M0L1_LN8825.zip (21.8 MB) You must be logged in to download this attachment.
  • Helpful post
    #24 21067448
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14755
    Help: 659
    Rate: 12879
    Yes, try to get some AT commands working, preferrably with source code, that can be a good base to start OBK port.

    I am currently doing WS2812B stuff for OpenBeken but once I finish, I can consider looking into LN8825B.
    Helpful post? Buy me a coffee.
  • #25 21068396
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    p.kaczmarek2 wrote:
    Yes, try to get some AT commands working


    :/

    nothing yet

    Screenshot of Uart Assistant software displaying data log and command sending.

    Error code list with highlighted code and message.

    Added after 8 [minutes]:

    ooh. -1s now with auto append checked

    Screenshot of UartAssist v5.0.3 interface showing COM settings and data log.
  • Helpful post
    #26 21074819
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    another LN8825B module for the records.

    http://www.scanway-tech.com/product/detail/34.html

    SHENZHEN SCANWAY TECHNOLOGY CO. LTD SCW-T503

    Electronic module with pin and component markings on a black board. Electronic module with metallic cover and gold pins. Electronic module Scanway Technology LN8825B. LN8825B electronic module on a white background.
    Attachments:
    • Scanway_SCW-T503.pdf (562.99 KB) You must be logged in to download this attachment.
    • Scanway_SCW-T503_en.pdf (798.22 KB) You must be logged in to download this attachment.
  • #27 21074840
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14755
    Help: 659
    Rate: 12879
    VDD/GND footprint matches TYWE3S/WB3S/CB3S/etc, does UART port also match?
    Helpful post? Buy me a coffee.
  • #28 21074899
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    scrambles my brain for some reason mapping pins around.

    this is LN882H vs LN8825B. LN882H (ESP-12F dimensions module MQ-12F)

    both UART sets are available on the LN8825B module but one set does not match.

    Comparison of LN882H and LN8825B modules with pins labeled on a black PCB and green module.

    Added after 26 [minutes]:

    Can't find the SCW-T503, MOL100D0 MOL100P0 for sale anywhere.
  • #29 21243200
    divadiow
    Level 38  
    Posts: 5209
    Help: 446
    Rate: 914
    not that there's much to be gained from it, apart from the experience doing it, I've bought some of these QFN32 .5 pitch boards to transplant the LN8825B chip from the LED controller onto. I'll post success/failure in due course! Wish me luck

    QFN32 adapter board with an integrated chip, displayed with the Jessinie logo.

    Close-up of a circuit board with an LN8825B chip and path markings.
  • #30 21243222
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14755
    Help: 659
    Rate: 12879
    Ambitious idea, do you plan to use hot air for that or.. what kind of approach? Also, LN requires a crystal oscillator, or doesn't it?
    Helpful post? Buy me a coffee.

Topic summary

LABEL_AI_GENERATED
Discussion centers on a Tuya WiFi smart LED controller using the Lightning Semiconductor LN8825B chip instead of the expected Espressif or Beken MCU. Initial attempts to identify an SDK, capture a boot log, and determine whether the device was damaged by reversed power polarity were inconclusive. Later posts confirm the chip family as LN882x/LN8825B, show that UART boot output can be obtained, and indicate that the LN882H flashing tools are not compatible with LN8825B. The thread then shifts to firmware experimentation: official Lightning Semi SDK resources are found, LN8825B firmware dumps and AT binaries are tested, RF test images boot, and some UART logs are produced, but OpenLN/OpenBeken images for LN882H do not boot on LN8825B. Hardware details are explored for possible transplant or breakout use, including QFN32 adapter boards, pin mapping, A10 boot strap, 40 MHz crystal requirements, decoupling capacitors, and UART/test-pad access. The discussion ends with progress toward a template entry and later OpenBeken PR work for LN8825/LN882H support, including IR receiver testing and firmware compatibility notes.
AI summary based on the discussion. May contain errors.

FAQ LABEL_AI_GENERATED

TL;DR: With 2 confirmed UART modes and one key quote — "You have to pull A10 down" — this FAQ helps Tuya tinkerers identify, log, flash, and recover Heruled LED controllers built around the Lightning Semiconductor LN8825B, including why LN882H OpenBeken builds do not boot on it. [#21023961]

Why it matters: LN8825B controllers look similar to other Tuya Wi‑Fi boards, but the wrong flasher, wrong boot pin, or wrong firmware wastes hours and can soft-brick cheap LED hardware.

Topic LN8825B LN882H
Boot / flash entry noted in thread UART flashing works when A10 is pulled low Different flasher path used by community
OpenBeken result LN882H build does not boot on LN8825B Used as working base for existing support work
Evidence in boot strings ...sdk AT ln882x Also part of LN882x family
Tool compatibility Official LN8825B flasher works LN882H flasher fails on LN8825B

Key insight: LN8825B and LN882H are related enough to share the LN882x family name, but not enough to treat firmware, flash tools, or boot behavior as interchangeable. [#21029890]

Quick Facts

  • The readable LN8825B boot log exposes Tuya IOT SDK V:2.1.2, tuya light lib version 1.0.2, firmware string ln_rgb_zfbdpln1ynr6p3um:1.0.1, and build date 2020_09_10_14_41_46. [#20898850]
  • A restored factory image later showed both EZ mode and AP mode, with Wi‑Fi status changing from 1 to 2 and AP startup messages such as "Start Successful". [#21809115]
  • The LN8825B QFN32 transplant discussion identified 6 power-related pins to tie to 3.3 V: pins 3, 4, 11, 17, 29, and 30. [#21264697]
  • The chip transplant notes also call for a 40 MHz crystal oscillator and recommend 100 nF decoupling capacitors for stable bring-up during bench testing. [#21243234]
  • Known LN8825B-related module names in the thread include MOL100D0, MOL100P0, and SCW-T503; one module footprint matched TYWE3S/WB3S/CB3S for VDD/GND, but UART pin matching was only partial. [#21074899]

1. What is the Lightning Semiconductor LN8825B chip, and how does it differ from the LN882H in Tuya WiFi devices?

The LN8825B is a Lightning Semiconductor Wi‑Fi SoC used in Tuya LED controllers, and it is not drop-in equivalent to LN882H. "LN8825B is a Wi‑Fi SoC that runs Tuya firmware, belongs to the LN882x family, and exposes UART boot logs and flashing paths, but it uses different flashing behavior and firmware compatibility from LN882H in this thread." The thread shows LN882H OpenBeken images do not boot on LN8825B, even though both reference ln882x. [#21023961]

2. What does Heruled mean on this Tuya LED controller, and is it a brand name or a module name?

Heruled is the product brand name, not the module name. One reply states it appears as the brand in the AliExpress specifications table for the controller. That means Heruled identifies the finished LED device, while LN8825B identifies the Lightning Semiconductor chip on the PCB. [#20871841]

3. How can I capture a readable boot log from a Tuya LN8825B smart LED controller over RX0/TX0?

You can capture a readable boot log by powering the controller from its 12 V adapter and reading RX0/TX0 instead of relying on a weak external 3.3 V source. 1. Connect to RX0/TX0. 2. Power the board with the normal 12 V DC jack. 3. Cycle serial settings until the Tuya log becomes legible. The readable log later exposed Tuya SDK 2.1.2 and the ln882x build string. [#20871986]

4. Why does the LN8825B boot log look garbled at some baud rates, and how do I find the correct serial settings?

The log looks garbled when the serial settings are wrong or when the board is not powered cleanly. The thread showed mixed output with CH340 and PL adapters, and clean output appeared only after further testing with the normal DC supply. The practical method is simple: sweep baud rates, keep voltage stable, and stop when the repeated Tuya lines become readable instead of partly corrupted. [#20898850]

5. What can happen if I accidentally connect VCC and GND backwards on an LN8825B LED controller?

Reversing VCC and GND can kill the controller. One reply states reversed polarity is usually lethal for unprotected devices, and the original tester suspected that exact mistake after the board stopped behaving normally. On a cheap LN8825B LED controller, that can mean no app detection, no normal boot, and partial or permanent damage. [#20871841]

6. How do you put an LN8825B into UART flashing mode, and what role does pulling A10 low play?

You put LN8825B into UART flashing mode by pulling A10 low during flashing. 1. Connect the UART flasher. 2. Force A10 low. 3. Start the official LN8825B flashing tool. The tester first scratched a trace because no A10 pad was visible, then later found there was a test pad for A10 after all. [#21029890]

7. Why doesn’t OpenBeken for LN882H boot on an LN8825B, even when flashing appears successful in J-Link or the official flasher?

LN882H OpenBeken does not boot on LN8825B because successful flashing is not the same as binary compatibility. The thread reports J-Link showed a successful flash, and later UART flashing also worked, yet the LN882H OBK image still produced no OpenLN AP on LN8825B. That points to runtime incompatibility between the two chip variants, not a simple flashing failure. [#21023961]

8. Which flasher and SDK resources actually work for LN8825B, and why does the LN882H flasher fail on it?

The official LN8825B GUI flasher works, while the LN882H flasher does not. The thread also identified usable LN8825B resources such as Lightning Semi FTP dumps, an LN8825x flash tool, and later AT firmware from the M0L1_LN8825 package. By contrast, one direct test concluded that LN8825B cannot be flashed with the LN882H flasher. [#21029890]

9. LN8825B vs LN882H: which parts are compatible for firmware development, flashing, and OpenBeken porting?

They are partly compatible for research, but not interchangeable for production flashing. The shared ln882x family naming suggests similar SDK ancestry, and one maintainer later said LN882H support was reused for LN8825 with only limited changes. Even so, the thread repeatedly shows you must use LN8825B-specific flashing methods and validate firmware behavior on real hardware. [#21813802]

10. What does the boot log line "BUILD AT ... FOR ty_iot_wf_rtos_sdk AT ln882x" tell us about LN8825B firmware compatibility?

It tells you the firmware was built against a Tuya RTOS SDK targeting the broader LN882x family, not a single chip. The exact line shown was BUILD AT:2020_09_10_14_41_46 ... AT ln882x, which explains why people explored LN882H similarities. It does not prove full binary compatibility, because LN882H images still failed to boot on LN8825B. [#20898850]

11. How can I restore a dumped factory firmware backup to an LN8825B and verify that AP mode and RF are working afterward?

Restore the dump, then verify both UART behavior and radio activity. 1. Flash the saved factory image back to the LN8825B. 2. Watch the boot log for wf config AP mode and WIFI_MSG_ID_AP_READY. 3. Confirm RF activity from AP startup messages and higher PSU current during RF test firmware. In January 2026, a restored backup reached AP mode and logged successful AP start events. [#21809115]

12. What is the Tuya IOT SDK shown in the LN8825B boot output, and what can it reveal about the device firmware version and product key?

It is the Tuya runtime stack embedded in the controller firmware, and it reveals exact build metadata. The readable boot output shows TUYA IOT SDK V:2.1.2, product firmware ln_rgb_zfbdpln1ynr6p3um:1.0.1, and product key zfbdpln1ynr6p3um. Those strings help identify the device family, firmware age, and the Tuya product profile tied to the controller. [#20898850]

13. How do I test whether AT firmware on an LN8825B is actually responding, and what should I try if basic AT commands return nothing or -1?

Flash a known AT image, open UART, and test command formatting before assuming the firmware is dead. One tester flashed at_mylinks_uart_pro.bin from M0L1_LN8825 and then tried basic AT commands, first getting nothing and later -1 when auto-append was enabled. If plain AT fails, vary line endings, enable auto-append, and keep the same UART path that already produced boot logs. [#21068396]

14. Which LN8825B modules and footprints are known so far, and how close are they to TYWE3S, WB3S, CB3S, or ESP-12F pin compatibility?

The thread identifies MOL100D0, MOL100P0, SCW-T503, and the MQ-12F-related comparisons, but pin compatibility is only partial. One direct comparison says the LN8825B module matches TYWE3S, WB3S, and CB3S on VDD and GND footprint, while UART mapping does not fully line up. Another post compares LN882H MQ-12F to ESP-12F dimensions, not full pin-for-pin equivalence. [#21074899]

15. What’s the best way to validate OpenBeken IR receive and send accuracy on LN8825B when NEC, EPSON, and UNKNOWN codes appear for the same remote button?

Use an external reference device, because OpenBeken IR timing was described as flaky. One contributor said a Flipper Zero is the practical baseline for checking what is really sent or received. Without that, the working rule was statistical: press the same button about 10 times and treat the code recognized most often as the best current match. [#21830940]
AI summary based on the discussion. May contain errors.
ADVERTISEMENT