logo elektroda
logo elektroda
X
logo elektroda

[BK7231N] New LSC Smart Mood light 3204432

snakesrules94 5673 22
ADVERTISEMENT
  • Helpful post
    #1 20943154
    snakesrules94
    Level 8  

    Hi all,
    here is a copy of my post on OBK github.

    I bought today some new smart light from action which afaik is not yet seen on the database :

    Box of LSC Smart Mood Light with visible feature information.
    Back side of LSC smart lamp packaging with product information.

    opening is quite easy by gently cutting the glue around the edge of the refractor and then it comes :

    Interior of a smart lamp with a visible circuit board and wires.
    Interior of a smart light with a visible circular circuit board featuring LED diodes.

    This time, the BK7231N is soldered directly :

    The image shows a printed circuit board with electronic components and a USB connector on the right.
    Circuit board with three visible buttons and the marking OCAL6C V2.3.

    The light is recognized in tuya app with fw 2.0.0.

    I've dumped the FW and submitted a profile for TCC so now this lamp can be flashed directly.

    Working profile (except mic/music functions):

    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Lsc Smart Mood Light",
      "model": "3204432",
      "chip": "BK7231N",
      "board": "on board",
      "flags": "1024",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "6": "PWM;1",
        "7": "PWM;2",
        "14": "Btn;5",
        "24": "PWM;3",
        "26": "PWM;4"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/1414285900_1706982172.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic4033331.html"
    }


    White, smart lamp with a rounded shape on a desk surrounded by boxes and cables.
    Back of the smart mood lamp with three buttons and a sticker with CE markings.

    Regards.
  • ADVERTISEMENT
  • #2 20943190
    p.kaczmarek2
    Moderator Smart Home
    Helpful post? Buy me a coffee.
  • #3 20943209
    snakesrules94
    Level 8  

    p.kaczmarek2 wrote:

    btw, how bright is this light in practice?


    Honestly speaking, I'm using it in my living room along with some other Philips HUE devices to make a colored ambient to watch TV and the result is not bad at all. Especially when you compare the price of this lamp to a Philips ... :-)
  • #4 20958525
    Rockking81
    Level 3  

    Hi, maybe a stupid question, but which pins do I use for my TTL to USB converter.
  • ADVERTISEMENT
  • #5 20958579
    p.kaczmarek2
    Moderator Smart Home
    I think you should consult our flasher readme:
    https://github.com/openshwprojects/BK7231GUIFlashTool
    or/and check out our flashing tutorials for BK7231:
    https://www.youtube.com/@elektrodacom
    you can also check BK7231 datasheet topics if you have a non-standard board and search for QFN case pinout:
    https://www.elektroda.com/rtvforum/topic3951016.html
    Helpful post? Buy me a coffee.
  • #6 20959172
    snakesrules94
    Level 8  

    Rockking81 wrote:

    Hi, maybe a stupid question, but which pins do I use for my TTL to USB converter.


    Hello, if you want to flash this particular model, I didn't identify pins directly on the board to flash the 7231N. The simplest way is with tuyacloudcutter as there is now a profile for this lamp.

    Regards.
  • ADVERTISEMENT
  • #7 20959324
    Rockking81
    Level 3  

    Hi, thanks for that pointer. So I dismantled this lamp, and it was not necessary. :)
  • #8 20960730
    p.kaczmarek2
    Moderator Smart Home
    The search for SPI DMA bug continues:
    https://github.com/openshwprojects/OpenBK7231T_App/pull/1055#issuecomment-1942166659
    There is still something slightly wrong and sometimes wrong colors are set. If anyone wants to join us and help, feel free to do so. We need to figure out what is wrong in
    https://github.com/openshwprojects/OpenBK7231...9b32a6383c9444b65ea/src/driver/drv_sm16703P.c
    Helpful post? Buy me a coffee.
  • #9 20965781
    alexandrethenard
    Level 1  

    Hi there,

    I've just flashed my device with tuyacloudcutter, working like a charm on its web interface, however I'm struggling to make it work with Home Assistant, I'm only getting RSSI info on MQTT, nothing else. Screenshot of the BK7231N device web interface showing device information and RSSI.

    Do you have an idea of what could be the issue? Thanks!
  • #10 21014582
    p.kaczmarek2
    Moderator Smart Home
    Hello @alexandrethenard , sorry for the late reply.
    The following may indicate that you haven't configured PWMs, or, to be more precise, that you did HASS Discovery before configuring the PWMs.
    You need to first configure PWMs (the GPIO, the template as shown in the first post), and then do again Home Assistant Discovery.

    Please refer to the video below for HASS Discovery procedure:



    If you have a different device and don't know which GPIOs are used, don't have a template, you can try doing Tuya config extraction:




    Let me know if the issue persists after repeating Home Assistant Discovery and I will try to help you futher in such case.
    Helpful post? Buy me a coffee.
  • #11 21091216
    igfotfrank
    Level 7  

    I have a similar problem. I just see the values for: Screenshot showing system data of OpenBK7231N.

    But no Lights. I selected as template the model: 3204432
  • #12 21091240
    p.kaczmarek2
    Moderator Smart Home
    What is your config? From what I can see, the 4-PWM discovery is missing?
    Helpful post? Buy me a coffee.
  • #13 21091257
    igfotfrank
    Level 7  
    Code: JSON
    Log in, to see the code



    LSC Smart Mood Light product packaging with BK7231N chipset and pin specifications.
  • #14 21091301
    p.kaczmarek2
    Moderator Smart Home
    I see. And are you using it in RGB + W mode, or in RGBCW mode (emulated cool)?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #15 21091317
    igfotfrank
    Level 7  
    Ahh my bad. I had both modi set.
    Now i have the flags: 0,1,2,10 and 24.
    And now it works.
    Thanks for the tip
  • #16 21091340
    p.kaczmarek2
    Moderator Smart Home
    So you're saying it works with "emulated cool" but not in the pure RGB+W? Well, that's still something we need to add, i guess.
    Helpful post? Buy me a coffee.
  • Helpful post
    #17 21171840
    ElektroTechnikus
    Level 8  
    Somehow I didn't particularly like the Mood Light. So now I've had another look at it and suggest the following changes:

    First make flag 24 work correctly:
    P6 = PWM, 0
    P7 = PWM, 1
    P24 = PWM, 2
    P26 = PWM, 4
    (not 1 - 2 - 3 - 4)

    You may also activate all buttons:
    P8 = Btn_NextColor (M button)
    P9 = Btn_NextTemperature (musical note button - to be held)
    P14 = Btn_SmartLED, 0 (on/off button - to be held to work as dimmer)
    Set flag 23 (for convenience)

    BTW: It would be nice if the first action of a button would only change the mode (RGB vs. C/W) when the mode needs to be changed - i. e. do not move the slider, do not change the color, but only change the mode and initially leave the last temperature or the last color. (If flag 23 is set switch on and force that mode only.)
  • #18 21177071
    p.kaczmarek2
    Moderator Smart Home
    If you want custom button interactions, you can easily script them in autoexec.bat:
    https://www.youtube.com/watch?v=kXi8S12tmC8
    Check out our scripting samples here:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/autoexecExamples.md
    You should set the role Btn_ScriptOnly and then manually script button events. Here is some random sample:
    
    // channels 1 to 5 are used
    setChannelType 1 toggle
    setChannelType 2 toggle
    setChannelType 3 toggle
    setChannelType 4 toggle
    setChannelType 5 toggle
    // Btn_ScriptOnly is set on P26
    addEventHandler OnClick 26 ToggleChannel 1
    addEventHandler OnDblClick 26 ToggleChannel 2
    addEventHandler On3Click 26 ToggleChannel 3
    addEventHandler On4Click 26 ToggleChannel 4
    addEventHandler On5Click 26 ToggleChannel 5
    
    Helpful post? Buy me a coffee.
  • #19 21261780
    nielspiersma
    Level 9  
    >>21091340
    I can confirm this is working as expected.
    Maybe we can update the template and have the flags enabled by default.
    Niels>>21014582
  • #20 21318230
    thordals
    Level 1  
    >>20959172 I'm old school, I like the smell of tin ;)
    I flashed today by soldering 0.2mm wire to access the UART pins
    UART pins :
    Close-up of a circuit board with wires connected to UART pins labeled 3.3V, TX, RX, and GND. Circuit board with wires soldered to UART pins.
  • #21 21411879
    Maximilian0017
    Level 6  
    Is there a way to get the music button to work?
    Ik is quite a nice feature for the kids.
  • #22 21411890
    p.kaczmarek2
    Moderator Smart Home
    Music button or do you mean the mic? We would need to check what kind of available open source implementations are there for this kind of feature.
    Helpful post? Buy me a coffee.
  • #23 21413100
    Maximilian0017
    Level 6  
    Yes, I did mean the Mic.

Topic summary

The discussion revolves around the LSC Smart Mood Light model 3204432, which utilizes the BK7231N chip. Users share their experiences with the device, including successful flashing with the tuyacloudcutter tool and integration with the Tuya app. The light is noted for its brightness and compatibility with other smart lighting systems like Philips HUE. Several users address technical issues related to GPIO configuration for Home Assistant integration, PWM settings, and button functionalities. Suggestions for improving the device's firmware and user experience are also provided, including custom scripting for button interactions.
Summary generated by the language model.
ADVERTISEMENT