logo elektroda
logo elektroda
X
logo elektroda

LN8825B Flashdump Resources, UART Pinout, and OTA Web App for Lightning Semi LN8825

divadiow 255 5
ADVERTISEMENT
  • #1 21809651
    divadiow
    Level 37  
    A new thread for Lightning Semiconductor (上海亮牛半导体科技有限公司 (Shanghai Liangniu Semiconductor / “亮牛半导体”)) LN8825 development.

    @insmod first revealed evidence of development here https://www.elektroda.com/rtvforum/topic4147664-150.html#21804979 then later OpenLN8825 PR appeared https://github.com/openshwprojects/OpenBK7231T_App/pull/1946

    LN8825B previously seen :
    https://www.elektroda.com/rtvforum/topic4023264.html
    https://www.elektroda.com/rtvforum/topic4089301.html
    Current Flashdumps :
    https://github.com/openshwprojects/FlashDumps/tree/main/IoT/LN8825B

    OpenLN8825 web interface with system details and control buttons

    Quick ref:

    A10 grounded at power-on - download mode
    Flash program B8 - U0RXD, B9 - U0TXD

    B6 - U1RX, B7 - U1TX

    Pinout diagram of the LN8825B IC with labeled pins and central GND marking

    LN8825 programmable I/O table showing GPIO, logic levels, and default directions

    Added after 7 [minutes]:

    for LN8825 ota in web app https://github.com/OpenBekenIOT/webapp/pull/256
  • ADVERTISEMENT
  • #2 21810219
    divadiow
    Level 37  
    OpenLN8825 boot log
    Code: Text
    Log in, to see the code


    Added after 2 [hours] 4 [minutes]:

    omg. one of the 3 LN8825B Tuya RGB controllers I've owned over the last 2 years IS still viable. I thought I'd killed them all

    Terminal showing LN8825 OpenBeken boot logs and Easy Flasher interface with flash status

    LN8825 electronic module with connected wires on blue mat

    Added after 9 [hours] 29 [minutes]:

    soldered and cleaned back up ready for PWM test. need to go out for a bit. coloured cables didn't match PCB marking from factory, so kept that.

    OTA 1946_merge_8775a20909f8 -> 1946_merge_07e9bff1fbb6 ✅

    OpenLN8825 device web panel with system status and control buttons Two PCB boards with Wi-Fi modules and wires soldered to labeled pins

    looks like IR has resistors and capacitor too so could try that out. could bridge resistors on CW and WW too I guess for other IO use

    Added after 3 [hours] 10 [minutes]:

    well, LLM was correct with these IOs being in use on this device (not from KV extraction). With my 3-pin strip I immediately get R, G and B to match:

    R=A11, G=A8, B=A7

    but only if I use GPIO dr to pull each high. As PWM the colours don't change much, even with LED tools. Power on/off button is not effective - the colours change a little instead.

    Code: JSON
    Log in, to see the code


    Added after 11 [hours] 1 [minutes]:

    1946_merge_07e9bff1fbb6 -> 1946_merge_4e2cdfd460bc ✅

    PWM looks good now! dimmer too




    Added after 5 [minutes]:

    getting something - A9

    Code: Text
    Log in, to see the code
  • ADVERTISEMENT
  • Helpful post
    #3 21812017
    insmod
    Level 30  
    I think LN pr can be merged.
    IR recv works fine.
    IR send seems to work fine (esphome IR receives what i sent), but i doubt that anyone would be using it.

    There's also LN882H SDK update (the only important thing is wifi lib, 1.5.0->1.6.0).
    Plus i added sockets count and idle hook.
    https://github.com/openshwprojects/OpenLN882H/pull/22
    Shall i merge it into LN8825 pr, or do it in separate one?
    I tested it, and nothing is broken.
  • ADVERTISEMENT
  • #4 21812120
    divadiow
    Level 37  
    insmod wrote:
    There's also LN882H SDK update (the only important thing is wifi lib, 1.5.0->1.6.0).


    very nice

    divadiow wrote:
    looks like IR has resistors and capacitor too so could try that out.


    of course it does. it shipped with IR 🤓
  • ADVERTISEMENT
  • Helpful post
    #5 21812121
    insmod
    Level 30  
    Just a notice for the future - cloudcutter won't be supported, because partition layout is different (and .ld subsequently)
  • #6 21819507
    divadiow
    Level 37  
    LN8825B OTA listing

    LN8825B Flashdump Resources, UART Pinout, and OTA Web App for Lightning Semi LN8825

    OTA to release worked

    LN8825B Flashdump Resources, UART Pinout, and OTA Web App for Lightning Semi LN8825
ADVERTISEMENT