logo elektroda
logo elektroda
X
logo elektroda

BK7231N Pin Configuration for Battletron Monitor Strip with SM16703P Driver

User0815 699 8
ADVERTISEMENT
  • #1 21352323
    User0815
    Level 5  
    BK7231N Konfigurieren von den LEDs von Battletron Monitor Strip 90 cm

    Hallo an All,
    ich habe mir hier die Battletron Monitor Strip von Action gekauft, leider bekomme ich sie mit Pin6/Pin7/Pin24 für Music/Power/Mode nicht zum laufen.
    Könnte mir jemand die genaue Pin-Belegung geben? Der Treiber SM16703P, ist schon geladen aber sie funktionieren trotzdem nicht, nur wenn ich die Pins wie folgt belege Pin6 PWN3/ Pin7 PWM1 und Pin8 PWM2.
    Leider sind dann aber die Farben durcheinander, kann mir da jemand helfen?

    Danke & Gruß

    {
       "rgbtows":"700",
       "Jsonver":"1.1.4",
       "gmwb":"75",
       "title20":"0",
       "1err":"40",
       "totallen":"90",
       "gmwg":"70",
       "knum":"3",
       "k3pin_lv":"0",
       "leaderr":"15",
       "rgbtoch":"220",
       "wfcfg":"spcl",
       "colormin":"10",
       "bitseq":"0",
       "pmemory":"1",
       "gmkb":"60",
       "pairt":"180",
       "cmod":"rgb",
       "slidemod":"6",
       "micpin":"23",
       "rgbtocs":"0",
       "customcode":"00ff",
       "rstbr":"50",
       "ktime":"5",
       "0err":"70",
       "colormax":"95",
       "module":"CBU",
       "ctrl_lv":"1",
       "rstmode":"2",
       "irpin":"26",
       "sfunc":"1",
       "key_lv":"0",
       "wfct":"3",
       "rgbtowh":"35",
       "defbright":"100",
       "starterr":"20",
       "rstcor":"r",
       "rstnum":"{nc_tp",
       "ssid":"null",
       "passwd":"null",
       "md":"0",
       "wfb64":"1",
       "stat":"0",
       "token":"null",
       "region":"null",
       "reg_key":"null",
       "dns_prio":"0 }{uuid",
       "psk_key":"XFSb7Rxter5zlKmq1UpKCylRQxB6lCg5f9ohq",
       "auth_key":"Ymc9hPjQ9ScbqMxCTCli5INdtek6CYjb",
       "ap_ssid":"SmartLife",
       "ap_passwd":"null",
       "country_code":"CN",
       "bt_mac":"null",
       "bt_hid":"null",
       "prod_test":"false",
       "fac_pin":"3ppjov0jwtg4fouj }3",
       "sensimax":"2400",
       "micproc":"800",
       "k2lfunc":"0",
       "k3sfunc":"4",
       "miso":"17",
       "mosi":"16",
       "k1dfunc":"0",
       "irfunc":"1",
       "keyfunc":"1",
       "brifollow":"0",
       "ctrl_pin":"8",
       "adclimit":"2400",
       "k2pin_pin":"22",
       "sensimin":"400",
       "ismusic":"1",
       "k3pin_pin":"28",
       "key_pin":"20",
       "k2dfunc":"0",
       "k2sfunc":"6",
       "brightstep":"20",
       "remdmode":"0",
       "k3lfunc":"0",
       "colorpfun":"1",
       "CS":"15",
       "gmwr":"100",
       "colormaxp":"100",
       "gmkg":"60",
       "onoffmode":"0",
       "k3dfunc":"0",
       "colororder":"2",
       "k2pin_lv":"0",
       "LedNum":"72",
       "irfunset":"[[2",
       "aging":"0",
       "category":"0503",
       "SCL":"14",
       "gmkr":"80",
       "defcolor":"r",
       "crc":"79"
    }



    Device configuration, as extracted from Tuya: 
    - Microphone (TODO) on P23
    - IR Receiver is on P26
    - SPI MISO 17
    - SPI MOSI 16
    - Control Pin (TODO) on P8
    - Button (channel 2) on P22
    - Button (channel 3) on P28
    Device seems to be using CBU module, which is using BK7231N.
    And the Tuya section starts, as usual, at 2023424



    /
    / start driver
    startDriver SM16703P
    // delay 1s
    delay_s 1
    //enable power on P7
    SetChannel 56 1
    // use channel 10 as variable to store number of LEDs
    setChannel 10 72
    // initialize the driver
    SM16703P_Init $CH10
    // set iteration variable (channel 11)
    setChannel 11 0
    // loop setting R G B
    again:
    SM16703P_SetPixel $CH11 0 32 0
    addChannel 11 1
    SM16703P_SetPixel $CH11 32 0 0
    addChannel 11 1
    SM16703P_SetPixel $CH11 0 0 32
    addChannel 11 1
    if $CH11<$CH10 then goto again
    // apply changes
    SM16703P_Start


    Hier noch die Originale Firmware:
    Battletron... Strip.bin Download (2 MB)
  • ADVERTISEMENT
  • #2 21352965
    divadiow
    Level 34  
    I do believe the SM16703P driver is expected to work on SM16703P, WS2812B and then some other WS strips. Do you know what type yours is?

    ref: https://www.elektroda.com/rtvforum/topic4036716.html

    my question here to elektrodabot came from the fact that this controller here groups all these strips into one compatibility bracket:

    Compatibility table of chip types with LED strips.

    Assuming that's an accurate list of strip types that can be expected to behave correctly, perhaps yours is not one of those in that list

    Added after 2 [minutes]:

    also, OpenBeken has no support for microphones
  • #3 21352999
    p.kaczmarek2
    Moderator Smart Home
    WS2812 support is much better now, use autoexec.bat from here:
    https://www.elektroda.com/rtvforum/topic4057187.html

    If there is no light, please share 2MB backup. Oh, I see you did. @DeDaMrAz wanna try flashing it and scoping the P16, are the timings matching for WS2812?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #4 21353002
    DeDaMrAz
    Level 19  
    p.kaczmarek2 wrote:
    WS2812 support is much better now, use autoexec.bat from here:
    https://www.elektroda.com/rtvforum/topic4057187.html

    If there is no light, please share 2MB backup. Oh, I see you did. @DeDaMrAz wanna try flashing it and scoping the P16, are the timings matching for WS2812?


    Sure we can try that, but my WS2812 setup is working for almost a year now, but we can compare some waveforms.

    @User0815 One thing about autoexec, you can edit color order with the following command in autoexec

    startDriver SM16703P
    //SM16703P_Init <number of LED's> <color order>
    SM16703P_Init 196 GRB
  • #5 21353005
    p.kaczmarek2
    Moderator Smart Home
    Or maybe he just need to do that?
    Screenshot of LED driver setup instructions.
    My German is a bit rusty...
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #6 21353067
    divadiow
    Level 34  
    >>21353005 ah. forgot the simple thing of strip colour order!
  • ADVERTISEMENT
  • #7 21360682
    User0815
    Level 5  
    Hallo,

    ich komme einfach nicht weiter. Könnte mir jemand von euch genau aufzeigen, wie ich das anstellen muss mit dem LED Strip oder eine fertige autoexec.bat geben. Komme einfach nicht weiter, sehe den Wald vor lauter Bäumen nicht. Warum wird alles immer komplizierter, wo sind die guten Zeiten von Tasmota.

    Gruß und besinnliche Feiertage
  • #8 21360763
    p.kaczmarek2
    Moderator Smart Home
    It's hard to help when we don't have and don't see this device.

    Can you please show your current autoexec.bat and photo of current colors? How are colors mixed up? What is working and what is not working yet?

    It will be help us with investigating your issue.
    Helpful post? Buy me a coffee.
  • #9 21360948
    User0815
    Level 5  
    Hallo,
    ich habe die Farbenreihenfolge jetzt hinbekommen, bis auf warm und kalt weiß, per Schieberegler.

    Pins sind folgende:
    Pin 6:  PWM           3
    Pin 7:  PWM           1
    Pin 8:  AlwaysHigh    0
    Pin 16: SM16703P_DIN  0
    Pin 28: Btn_NextColor 0 



    Hier ist die Konfiguration der autoexec.bat, die ich verwende.

    backlog startDriver WEMO; startDriver SSDP
    startDriver SM16703P
    SM16703P_Init 196 GRB


    Hier noch die Fotos, bei den Fotos von Gelb und Orange, nicht wunder es sieht aus wie weiß, ist aber die passende Farbe.

    Red LED strip arranged in a teardrop shape.
    A pink LED strip light on the floor. Semi-circular blue LED strip on a wooden floor. Illuminated LED strip emitting light blue light on a floor. Green LED strip in an arc shape on a wooden floor. Circular glowing LED strip on a wooden floor. An LED strip in an arc shape emitting warm white light.

Topic summary

The discussion revolves around configuring the BK7231N for the Battletron monitor strip with the SM16703P driver. The user initially faced issues with pin assignments for Music, Power, and Mode, specifically with Pins 6, 7, and 24. Various responses provided insights into compatibility with different LED strip types, particularly WS2812B, and suggested using an autoexec.bat file to set the correct color order. The user eventually resolved the color order issue but sought further assistance with the configuration. The final pin assignments were shared, along with the autoexec.bat configuration that included commands to initialize the SM16703P driver and set the color order to GRB.
Summary generated by the language model.
ADVERTISEMENT