Elektroda.com
Elektroda.com
X

[BK7231N/CB2L] Lumary 5/6 Inch Downlight - OpenBeken driver for KP18058esp LED controller

swpharis 1440 39
  • #31
    p.kaczmarek2
    Moderator Smart Home
    Hmm, maybe let's try with red, green and blue at full bright first. Here or in private message.

    Added after 30 [minutes]:

    I've got something from @DeDaMrAz , here's a screenshot (modified by me in paint):
    [BK7231N/CB2L] Lumary 5/6 Inch Downlight - OpenBeken driver for KP18058esp LED controller

    Added after 40 [minutes]:

    we're getting closer [BK7231N/CB2L] Lumary 5/6 Inch Downlight - OpenBeken driver for KP18058esp LED controller
  • #32
    DeDaMrAz
    Level 13  
    Progress :) build 1.17.189

    [BK7231N/CB2L] Lumary 5/6 Inch Downlight - OpenBeken driver for KP18058esp LED controller

    KP18058_RGBCW FF00000000 - turns light on
    KP18058_RGBCW 0000000000 - turns light off

    Added after 2 [hours] 54 [minutes]:

    @swpharis

    KP15058 is now decoded and supported in general :) pin assignment and configuration will be done in next day or two.

    If you want to test this - update to build 1.17.195 and use the following commands:

    startDriver KP18058 -> to start a driver
    KP18058_Map 0 1 2 3 4 -> to map channels where 0-4 is respectfully BGRCW
    KP18058_RGBCW FF00000000 -> meaning blue will turn on with full brightness
    KP18058_RGBCW 00FF000000 -> meaning red will turn on with full brightness
    etc...
    KP18058_RGBCW 0000000000 -> will power all LED's off

    You can try any channel with values from 00 to FF,

    The rest will follow, thank you for your patience and if you find this useful and want to contribute you can do so via this link - https://paypal.me/openshwprojects
  • #33
    p.kaczmarek2
    Moderator Smart Home
    Today I will add KP18058 pin roles so users can choose which GPIOs are used for communication, I will also try to address the brightness issue, it seems there is one more little thing we need to resolve..
  • #34
    DeDaMrAz
    Level 13  
    Ok driver implementation is almost 100% done.

    [BK7231N/CB2L] Lumary 5/6 Inch Downlight - OpenBeken driver for KP18058esp LED controller

    The only thing to play around is the KP18058_Map 2 0 1 3 4 (20134 -> RGBWC - this should be a default mapping but may change from device to device) that can be added to autoexec file and you can enable Flag 18 for smooth transition.

    All this is ready with latest build - 1.17.199

    The only thing left is pin assignment @p.kaczmarek2 said soon and this chip is 100% supported now.

    @swpharis please test on your device and report back, thanks.
  • #35
    swpharis
    Level 5  
    DeDaMrAz wrote:
    Ok driver implementation is almost 100% done.

    [BK7231N/CB2L] Lumary 5/6 Inch Downlight - OpenBeken driver for KP18058esp LED controller

    The only thing to play around is the KP18058_Map 2 0 1 3 4 (20134 -> RGBWC - this should be a default mapping but may change from device to device) that can be added to autoexec file and you can enable Flag 18 for smooth transition.

    All this is ready with latest build - 1.17.199

    The only thing left is pin assignment @p.kaczmarek2 said soon and this chip is 100% supported now.

    @swpharis please test on your device and report back, thanks.

    Running 1.17.199 - The driver loads OK. Driver commands return OK. How can I define pin assignment to test fully?
  • #36
    DeDaMrAz
    Level 13  
    Since your light is the same you can create autoexec.bat file and enter following commands:

    startDriver KP18058
    KP18058_Map 2 0 1 3 4


    and test, pin assignment will be complete in the next build.

    EDIT: pin assignments is currently hardcoded so P8 -> SDA and P7 -> SCL
  • #37
    swpharis
    Level 5  
    It is working perfectly on my setup. Thanks for the efforts in this. I'll be supporting the project shortly.
  • #38
    DeDaMrAz
    Level 13  
    Glad to hear that :) and happy to see it working on your setup as well.

    Feel free to reach out if you find any other interesting device that OBK is not supporting - yet :) or have any questions about this project.
  • #39
    p.kaczmarek2
    Moderator Smart Home
    Thank you for the cooperation, I have pushed the KP18058 pin roles selection support.
    [BK7231N/CB2L] Lumary 5/6 Inch Downlight - OpenBeken driver for KP18058esp LED controller
    It should be available in the next release.