logo elektroda
logo elektroda
X
logo elektroda

Configuring GPIO on LSC Battletron LED Bar with BK7231N After Flashing OpenBK

figurant17 4695 9
ADVERTISEMENT
  • #1 20855298
    figurant17
    Level 2  

    Hello,

    I bought this LSC Battletron LED bar at Action for 13€, it has a BK7231N (https://www.action.com/fr-fr/p/3202651/barre-led-de-gaming-battletron-razer-chroma/)
    I successfully flashed OpenBK on it but I can't figure out how to configure the GPIO, I tried some pins but it didn't work.
    I attach some images of the inside and a backup of the original firmware.

    Thank you.

    Electronic printed circuit board with components on a black background. Image of the interior PCB of the Battletron LED strip. LED strip inside a casing with visible diodes and electronic components.
  • ADVERTISEMENT
  • #2 20856020
    p.kaczmarek2
    Moderator Smart Home
    I have extracted data from flash and it may shed some light:
    Code: JSON
    Log in, to see the code

    Text interpretation:
    
    Device configuration, as extracted from Tuya: 
    - Microphone (TODO) on P23
    - IR Receiver is on P26
    - SPI MISOmiso
    - SPI MOSImosi
    - Control Pin (TODO) on P6
    Device seems to be using CBU module, which is using BK7231N.
    And the Tuya section starts, as usual, at 2023424
    

    This means this it has some addressable LEDs, we have a WIP driver for that, but it's not finished. Would you like to try it out? It may not work correctly for your kind of LEDs. Are those ws2812b?
    Helpful post? Buy me a coffee.
  • #3 20856252
    figurant17
    Level 2  

    Yes, I can try.
    How to verify the model of the LEDs?
  • ADVERTISEMENT
  • #4 20858635
    figurant17
    Level 2  

    I tried the commands listed here: https://www.elektroda.com/rtvforum/topic3935979.html#20719946
    The LEDs lit up once, but after a reboot, I couldn't get it to work again.
    Now I'm getting the following error with the last command "SM16703P_Start": Error: CMD: before enable tx 0x0000c20c
    Error: CMD: enable tx 0x0000c20d
    Not every LED turned on, 4-5 were missing.

    Thanks
  • #5 20868153
    eliovital9
    Level 2  
    @p.kaczmarek2
    I have the same problem with this item https://www.action.com/fr-fr/p/3202821/bande-led-gamin-rgb-battletron/.
    The LEDs do not light up at all.

    
    Error:CMD:before enable tx 0x00003e0c
    Error:CMD:enable tx 0x00003e0d
    


    I get the error when executing the command. Do you want more information to help debug the problem?


    All commands logs:

    
    Info:CMD:[WebApp Cmd 'startDriver SM16703P' Result] OK
    Info:CMD:Register driver with 5 LEDs
    Info:CMD:[WebApp Cmd 'SM16703P_Init 5' Result] OK
    Info:CMD:Set Pixel 1 to R 255 G 0 B 0
    Info:CMD:Raw Data 0xee 0xee 0xee 0xee - 0x88 0x88 0x88 0x88 - 0x88 0x88 0x88 0x88
    Info:CMD:[WebApp Cmd 'SM16703P_SetPixel 1 255 0 0' Result] OK
    Info:CMD:Set Pixel 2 to R 0 G 255 B 0
    Info:CMD:Raw Data 0x88 0x88 0x88 0x88 - 0xee 0xee 0xee 0xee - 0x88 0x88 0x88 0x88
    Info:CMD:[WebApp Cmd 'SM16703P_SetPixel 2 0 255 0' Result] OK
    Info:CMD:Set Pixel 3 to R 0 G 0 B 255
    Info:CMD:Raw Data 0x88 0x88 0x88 0x88 - 0x88 0x88 0x88 0x88 - 0xee 0xee 0xee 0xee
    Info:CMD:[WebApp Cmd 'SM16703P_SetPixel 3 0 0 255' Result] OK
    Info:CMD:Set Pixel 4 to R 255 G 255 B 255
    Info:CMD:Raw Data 0xee 0xee 0xee 0xee - 0xee 0xee 0xee 0xee - 0xee 0xee 0xee 0xee
    Info:CMD:[WebApp Cmd 'SM16703P_SetPixel 4 255 255 255' Result] OK
    Info:CMD:Set Pixel 5 to R 100 G 100 B 100
    Info:CMD:Raw Data 0x5a 0x5a 0x5a 0x5a - 0x5a 0x5a 0x5a 0x5a - 0x5a 0x5a 0x5a 0x5a
    Info:CMD:[WebApp Cmd 'SM16703P_SetPixel 5 100 100 100' Result] OK
    Error:CMD:before enable tx 0x00003e0c
    Error:CMD:enable tx 0x00003e0d
    Info:CMD:[WebApp Cmd 'SM16703P_Start' Result] OK
    
  • ADVERTISEMENT
  • #6 20868213
    p.kaczmarek2
    Moderator Smart Home
    It seems that your LEDs may be ws2812b. We would need to adjust our driver for that, ws2812b timings are a bit different than SM16703's.

    I am not sure right now if ws2812b are marked in any way, but one could always try to temporary run the LED strip with ESP or Arduino to check.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #7 20869106
    eliovital9
    Level 2  

    I confirm that it works well with the WS2812B chipset. I cut a section of my LED strip that I managed to control via ESPHome. ESPHome configuration file with settings for WS2812B LED strip. Breadboard with connected ESPHome and a blue-lit WS2812B LED strip. Color wheel with a gradient and dropper icon.
  • #8 20869161
    figurant17
    Level 2  

    I tried too with an ESP and WLED and it's working well.
    LED strip emitting red light on a dark background.
  • #9 20869249
    p.kaczmarek2
    Moderator Smart Home
    Ok, good news, so I just need to get WS2812B running on OBK
    Helpful post? Buy me a coffee.
  • #10 20943448
    snakesrules94
    Level 8  

    Hi there,
    I've put a post in the temporary forum about this same game bar, with the same result...
    Now I've found this topic and realized that WS2812 are not yet supported by obk.
    @p.kaczmarek2: you can always have a look at the dump in my post as it seems different from the one in this post, maybe some glitch while dumping.

    Rgds.

Topic summary

The discussion revolves around configuring GPIO for the LSC Battletron LED bar equipped with a BK7231N chip after flashing OpenBK firmware. The user successfully flashed the firmware but faced challenges in configuring the GPIO pins, leading to issues with LED functionality. Various users shared their experiences, including error messages encountered during command execution and attempts to identify the LED model. It was suggested that the LEDs might be WS2812B, which would require adjustments to the driver since their timing differs from the SM16703 chipset. Some users confirmed successful control of the LED strip using ESPHome and WLED, indicating that the WS2812B chipset is compatible. However, it was noted that WS2812B support is not yet available in OpenBK.
Summary generated by the language model.
ADVERTISEMENT