logo elektroda
logo elektroda
X
logo elektroda

[Solved] [BK7231T] Tuya RGBCCT LED Controller - not working, looking for pin assignment

schwabelbook 2289 2
ADVERTISEMENT
Treść została przetłumaczona german » english Zobacz oryginalną wersję tematu
  • #1 20512887
    schwabelbook
    Level 3  
    Hello,
    since I wanted to upgrade my classic RGB strips to RGBCC strips and the current controllers are running Tasmota, I looked for an RGBCCT controller at Tasmota and found this one: https://templates.blakadder.com/TY-6A-WiFi.html
    Now it turned out that a BK7231T is installed there instead of an ESP. I then came across openbk on the Internet and am very excited that there is also a firmware similar to Tasmota for this! :)
    So I have now flashed openbk on it, but am now faced with the problem that I can't get my new LED strip to work. I don't know the pinout, have tried various other RGBCCT device configurations and tried to copy the pin layout from Tasmota. However, I just can't get it to work by try and error. Others here in the forum seem to be able to find out the pinout directly, how can I find it out?

    I got the controller from aliexpress:
    https://de.aliexpress.com/item/725319185.html


    Thanks in advance. Attached are a few pictures of the inner workings

    [BK7231T] Tuya RGBCCT LED Controller - not working, looking for pin assignment [BK7231T] Tuya RGBCCT LED Controller - not working, looking for pin assignment
  • ADVERTISEMENT
  • #2 20517553
    p.kaczmarek2
    Moderator Smart Home
    Hello, you should have no problem setting up the PWM pins.

    BK7231 has 6 possible GPIOs with PWM :
    Pin no. Symbol I/O type Function
    5 PWM5 I/O GPIOP_26, which is connected to the P26 pin on the internal IC
    6 PWM4 I/O GPIOP_24, common GPIO, which is connected to the P24 pin on the internal IC
    7 PWM0 I/O GPIOP_6, which is connected to the P6 pin on the internal IC
    10 PWM1 I/O GPIOP_7, which is connected to the P7 pin on the internal IC
    13 PWM3 I/O GPIOP_9, common GPIO, which is connected to the P9 pin on the internal IC
    14 PWM2 I/O GPIOP_8, which is connected to the P8 pin on the internal IC


    This means that even by guessing, you have a good chance of hitting all the GPIOs you need after just a few tries.

    Remember that the channel order in OpenBK for RGBCW is Red=1, Green=2, Blue=3, Cool White=4, Warm White=5.
    (Alternatively you can also index from 0, that will work too).

    If, on the other hand, you don't want to guess, there are two options.
    1. Do you have a 2 MB flash backup of this device? I can check if the GPIO configuration is in it.
    2. You could try mapping the TYWE3S pinouts to WB3S:
    [BK7231T] Tuya RGBCCT LED Controller - not working, looking for pin assignment
    [BK7231T] Tuya RGBCCT LED Controller - not working, looking for pin assignment
    TYWE3S GPIO04 used for PWM 1 on Tasmota appears to be PWM3 on WB3S, i.e. P9. Etc.
    Helpful post? Buy me a coffee.
  • #3 20519807
    schwabelbook
    Level 3  
    I got it working and it's finally running!!! :)

    There were actually several problems at once.
    1. I mixed up the cables that go into the device and the LED strip has the following sequence "24V, G, R, B, WW, CW" but the connection from the tuya controller has: "24V, R, G, B, CW, WW" that was my first problem, why it didn't work by just trying out the PWM modes.

    2. The flag "Flag 8 - [LED] Alternate CW light mode (first PWM for warm/cold slider, second for brightness)" was set, I unchecked it. Another interference factor less!

    3. First of all I had a 12V power supply and not a 24V power supply. This caused the CW and WW not to work at all.

    So three problems at once, which prevented me from finding the right modes by guessing.
    By the way, the translation from Tasmota worked well!

    Many thanks for the instructions and many thanks in general to the community and developers who programmed and realised the firmware!

    Now the configuration:
    General/Flags: Flag 10

    Configure Module:
    P6 (PWM0): PWM, Channel 5
    P7 (PWM2): not configured
    P8 (PWM2): PWM, Channel 4
    P9 (PWM3): PWM, Channel 1
    P24 (PWM4): PWM, Channel 3
    P26 (PWM5): PWM, Channel 2
    [F]
ADVERTISEMENT