Elektroda.com
Elektroda.com
X

[BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store)

dannyx323 2118 17
  • LSC Smart Led Light Strip RGBCW bought at Action store in NL at arround €20,-
    Brand: LSC
    Chip: BK7231T
    Module: Chip on pcb
    Article number: 3000342

    TODO: ir-remote and 3 buttons on module


    [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store)

    Settings with RGB CW without buttons and remote:
    [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store)

    [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store)

    [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store)

    Cool? Ranking DIY
    About Author
    dannyx323
    Level 2  
    Offline 
    dannyx323 wrote 3 posts with rating 1. Been with us since 2021 year.
  • #2
    p.kaczmarek2
    Moderator Smart Home
    Hello, thank you for determining the pins. The IR receiver is already supported by code, can you try it out? Just set the "IRRecv" role to the correct pin (find out which) and you should see the log info in the console when pressing a remote button.
  • #3
    dannyx323
    Level 2  
    Hi, work in progress i will post the results.
    How can i trace the hardware pin numbers to the software pin numbers in openbeken?

    I guested the pwm with trail and error.
    But the ir and button pins are visible on the pcb.
    But not the working pins in openbeken.
  • #4
    p.kaczmarek2
    Moderator Smart Home
    Here is the pinout of BK7231T:
    [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store)
    First pin is marked with dot. You can also take a look where a crystal oscillator is on the board and use it to determine which pin is where.

    Then, you should just follow traces. See where the trace from IR receiver goes.

    Regarding "hardware pin numbers" - OpenBeken is using directly BK pin numbers. So, P9 on my screenshot is P9 in OpenBeken. P26 (PWM5) is P26.... etc. P24 (PWM4) is P24..
  • #5
    dannyx323
    Level 2  
    Had ir kind of working but with the wrong actions and only some were reacting on pin 25
    After updating to version 1.15.36 lost ir calls in the logs.

    The 3 buttons (on pcb) are connected as follow but no reactions in log:
    ButtonS1=pin13 P15
    ButtonS2=pin12 P16
    ButtonS3=pin11 P14
  • #6
    p.kaczmarek2
    Moderator Smart Home
    dannyx323 wrote:

    The 3 buttons (on pcb) are connected as follow but no reactions in log:
    ButtonS1=pin13 P15
    ButtonS2=pin12 P16
    ButtonS3=pin11 P14

    On OBK panel, you are supposed to use "P15" etc indexing.

    For your LED driver, you should set:
    - IR Recv
    - set 3 PWM pins, with channels 1, 2 and 3
    - set one button - just a Button, second Button_NextColor, third Button_NextDimmer(channel doesn't matter for them in this case)
    Like in this topic (not yet translated, but you can see photos of configuration):
    https://www.elektroda.pl/rtvforum/topic3932026.html

    IR Recv will not work without configuration. You should be able to see IR codes receiving in log.
  • #7
    alfakenzo
    Level 6  
    I got the same LSC Led strip, but I got a BK7231N. I set the PWM but I can't get working the Ir remote. Maybe you can help. I add some photos. [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store)
  • #9
    alfakenzo
    Level 6  
    Which pin should be irecv?
  • #10
    p.kaczmarek2
    Moderator Smart Home
    I don't know, it depends on the device. You'd have to check them one by one or look at the PCB traces.
  • #11
    upin
    Level 2  
    I bought the same device as @dannyx323 in an Action store in DE at around €20.

    LSC Smart Led Light Strip RGBCW
    Brand: LSC
    Chip: BK7231N
    Module: Chip on pcb
    Article number: 3000342

    In my case the chip is a BK7231N (not ...T) like @alfakenzo reports.

    On the backside of the PCB is a board ID and a date. It reads: "K225P10-V1.1" and "2022.03.25"

    I used multimeter, PCB tracing, and oscilloscope to find the following assignments:
    Code: json
    Log in, to see the code


    Questions to the forum:
    * The PWM assignments work all nicely. But I cannot get the Btn and IRRecv to work. I am pretty sure the pin assignments are correct.
    * The PCB has a microphone which I have not traced, yet. How do I configure a mic and how can I use it?
  • #12
    p.kaczmarek2
    Moderator Smart Home
    @upin is the packaging/versionining the same? If not, please attach device/packaging photos so I can add it to templates list.


    upin wrote:

    * The PWM assignments work all nicely. But I cannot get the Btn (...) to work.

    Use the "Btn_SmartLED" role, it gives full control over the device with multiple clicks etc, see:



    of course, in your case you don't have to solder a new button, just use existing one

    upin wrote:

    * The PWM assignments work all nicely. But I cannot get the IRRecv(...) to work.

    You should see IR events in Web App log after reboot, see:



    [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store)

    upin wrote:

    * The PCB has a microphone which I have not traced, yet. How do I configure a mic and how can I use it?

    Not much work has been done for that kind of feature, but I would guess that it may be connected to ADC.
  • #13
    upin
    Level 2  
    Thank you, @p.kaczmarek2 , for your quick reply and helpful pointers.

    Yes, the packaging is the same. Even the article number is still 3000342. I attach some pictures of product packaging below.

    With your help I got IR and the hardware button working. Here is the configuration:
    Code: json
    Log in, to see the code


    Please find the images of product, packaging, and PCB attached.

    [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store)
  • #14
    User0815
    Level 3  
    Marke: LSC
    Chip: BK7231T
    Modul: Chip auf Platine
    Artikelnummer: 3000342
    Unten Backup vom original BK7231T LSC



    IR Code & Scripte

    Funktuniert BK7231T Config Chip IR codes

    backlog startDriver WEMO; startDriver SSDP

    addEventHandler2 IR_NEC 0x0 0xD led_enableAll 0
    addEventHandler2 IR_NEC 0x0 0x1F led_enableAll 1
    addEventHandler2 IR_NEC 0x0 0x0 led_dimmer 100
    addEventHandler2 IR_NEC 0x0 0x1A led_dimmer -100
    addEventHandler2 IR_NEC 0x0 0x19 led_basecolor_rgb #ff0000
    addEventHandler2 IR_NEC 0x0 0x1B led_basecolor_rgb #00ff00
    addEventHandler2 IR_NEC 0x0 0x11 led_basecolor_rgb #0000ff
    addEventHandler2 IR_NEC 0x0 0x17 led_basecolor_rgb #ff4500
    addEventHandler2 IR_NEC 0x0 0x12 led_basecolor_rgb #32cd32
    addEventHandler2 IR_NEC 0x0 0x16 led_basecolor_rgb #1e90ff
    addEventHandler2 IR_NEC 0x0 0x40 led_basecolor_rgb #ff8c00
    addEventHandler2 IR_NEC 0x0 0x4c led_basecolor_rgb #008b45
    addEventHandler2 IR_NEC 0x0 0x4 led_basecolor_rgb #551a8b
    addEventHandler2 IR_NEC 0x0 0xA led_basecolor_rgb #ffa500
    addEventHandler2 IR_NEC 0x0 0x1E led_basecolor_rgb #00c5cd
    addEventHandler2 IR_NEC 0x0 0xE led_basecolor_rgb #a020f0
    addEventHandler2 IR_NEC 0x0 0x1C led_basecolor_rgb #eeee00
    addEventHandler2 IR_NEC 0x0 0x14 led_basecolor_rgb #00ffff
    addEventHandler2 IR_NEC 0x0 0xF led_basecolor_rgb #ff1493

    Pin Belegung

    Pin6 PWM 3
    Pin7 PWM 1
    Pin8 PWM 2
    Pin9 IRRecv 0
    Pin14 Btn 0
    Pin16 Btn_NextColor 0
    Pin24 PWM 4
    Pin26 PWM 5
  • #15
    p.kaczmarek2
    Moderator Smart Home
    Hello @User0815 ,thank your for submitting the binary. Here's the extracted OBK template:
    Code: json
    Log in, to see the code

    Following template may not contain all pins, you can also check out the templates above if necessary.
    Interestingly enough, it seems slightly different than a previous template submitted by another user.
    Here you can learn how to import it:
    https://www.youtube.com/watch?v=VDbaLR_0YWs

    EDIT:I see you have found more pins that I extracted from the binary. Good job!
  • #16
    User0815
    Level 3  
    Marke: LSC
    Chip: BK7231N
    Modul: Chip auf Platine
    Artikelnummer: 3000342


    Ist für BK7231N

    IR Code & Scripte

    Funktuniert BK7231N Config Chip IR codes

    backlog startDriver WEMO; startDriver SSDP

    addEventHandler2 IR_NEC 0x0EF00 0x1D led_enableAll 0
    addEventHandler2 IR_NEC 0x0EF00 0x1C led_enableAll 1
    addEventHandler2 IR_NEC 0x0EF00 0x1E led_dimmer 100
    addEventHandler2 IR_NEC 0x0EF00 0x1F led_dimmer -100
    addEventHandler2 IR_NEC 0x0EF00 0x0 led_basecolor_rgb #ff0000
    addEventHandler2 IR_NEC 0x0EF00 0x1 led_basecolor_rgb #00ff00
    addEventHandler2 IR_NEC 0x0EF00 0x2 led_basecolor_rgb #0000ff
    addEventHandler2 IR_NEC 0x0EF00 0x4 led_basecolor_rgb #eeee00
    addEventHandler2 IR_NEC 0x0EF00 0x5 led_basecolor_rgb #6495ed
    addEventHandler2 IR_NEC 0x0EF00 0x6 led_basecolor_rgb #551a8b
    addEventHandler2 IR_NEC 0x0EF00 0x8 led_basecolor_rgb #ffd700
    addEventHandler2 IR_NEC 0x0EF00 0x9 led_basecolor_rgb #cdcd00
    addEventHandler2 IR_NEC 0x0EF00 0xA led_basecolor_rgb #eec900
    addEventHandler2 IR_NEC 0x0EF00 0xC led_basecolor_rgb #ffffff
    addEventHandler2 IR_NEC 0x0EF00 0xD led_basecolor_rgb #87cefa
    addEventHandler2 IR_NEC 0x0EF00 0xE led_basecolor_rgb #008b8b

    Pin Belegung

    Pin6 PWM 1
    Pin7 PWM 2
    Pin8 PWM 3
    Pin9 PWM 5
    Pin20 Btn_SmartLED 0
    Pin24 PWM 4
    Pin23 ADC 0
    Pin26 IRRecv 0



    Nachtrag Die Verpackung mit dem B7231N ist die Verpackung um einiges kleiner und auch die LED Strips sind andere. [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store) [BK7231T] - LSC Smart Led Light Strip RGBCW 20W(Action store)
  • #17
    p.kaczmarek2
    Moderator Smart Home
    Very good configuration example! That way one can use both IR remote and Btn_SmartLED to get full control over the LED strip.
  • #18
    alejandroflores8
    Level 1  
    Hello,

    Here is my configuration. It should be in the events section since I am not knowledgeable about the topic and I did it based on what I discovered at the time.

    If someone could correct them to create more beautiful effects, it would be of great help.

    Note: In the remote control, I set the minus (-) button to have colors to cancel the effects.

    
    backlog startDriver WEMO; startDriver SSDP
    
    addEventHandler2 IR_NEC 0x0EF00 0x1D power off
    addEventHandler2 IR_NEC 0x0EF00 0x1C power on
    addEventHandler2 IR_NEC 0x0EF00 0x1E add_dimmer 10
    addEventHandler2 IR_NEC 0x0EF00 0x1F add_dimmer -10
    addEventHandler2 IR_NEC 0x0EF00 0x0 led_basecolor_rgb #ff0000
    addEventHandler2 IR_NEC 0x0EF00 0x1 led_basecolor_rgb #00ff00
    addEventHandler2 IR_NEC 0x0EF00 0x2 led_basecolor_rgb #0000ff
    addEventHandler2 IR_NEC 0x0EF00 0x4 led_basecolor_rgb #F9E401
    addEventHandler2 IR_NEC 0x0EF00 0x5 led_basecolor_rgb #6495ed
    addEventHandler2 IR_NEC 0x0EF00 0x6 led_basecolor_rgb #551a8b
    addEventHandler2 IR_NEC 0x0EF00 0x8 led_temperature 362
    addEventHandler2 IR_NEC 0x0EF00 0x9 led_temperature 431
    addEventHandler2 IR_NEC 0x0EF00 0xA led_temperature 500
    addEventHandler2 IR_NEC 0x0EF00 0xC led_temperature 293
    addEventHandler2 IR_NEC 0x0EF00 0xD led_temperature 224
    addEventHandler2 IR_NEC 0x0EF00 0xE led_temperature 154
    addEventHandler2 IR_NEC 0xEF00 0xB add_temperature 10
    addEventHandler2 IR_NEC 0xEF00 0xF add_temperature -10
    addEventHandler2 IR_NEC 0xEF00 0x3 led_nextColor
    addEventHandler2 IR_NEC 0xEF00 0x7 backlog cancelRepeatingEvent 9531; cancelRepeatingEvent 9532; cancelRepeatingEvent 9533; cancelRepeatingEvent 9534; cancelRepeatingEvent 9532
    addEventHandler2 IR_NEC 0xEF00 0x10 backlog cancelRepeatingEvent 9531; addRepeatingEventID 0.01 -1 9531 add_dimmer 1 2; addRepeatingEventID 4.90 -1 9533 led_nextColor
    addEventHandler2 IR_NEC 0xEF00 0x11 backlog cancelRepeatingEvent 9532; addRepeatingEventID 0.01 -1 9532 add_dimmer 1 2
    addEventHandler2 IR_NEC 0xEF00 0x12 backlog cancelRepeatingEvent 9534; addRepeatingEventID 4.90 -1 9534 led_nextColor
    addEventHandler2 IR_NEC 0xEF00 0x12 backlog cancelRepeatingEvent 9535; addRepeatingEventID 0.01 -1 9535 add_dimmer 1 1