logo elektroda
logo elektroda
X
logo elektroda

LVL 60cm 45w CCT Ceiling Lamps (TYWE 3L and WB3L) - Configuring & Switching on Flash TYWE3L

cadseubi 1179 3
ADVERTISEMENT
  • #1 20649188
    cadseubi
    Level 3  

    Hello,
    LVL 60cm 45w CCT Ceiling Lamps (TYWE 3L and WB3L) - Configuring & Switching on Flash TYWE3L
    I bought four LVL 60cm 45w CCT ceiling lamps, two some time ago and two more recently, from AliExpress. Chipsets are TYWE3L and WB3L. I inspected and tested the drivers before flashing the chipsets. The chipsets are connected to the board of the driver by two rasters of 4 pins, however only 4 pins are used: Ground, Vcc, P6/PWM0 and P7/PWM1.
    With the lamp connected to the Tuya cloud, I measured the voltages on PWM0 and PWM1 to see how they varied as a function of the inputs given into the Tuya app. P7 changes from about 0 to 3.2V when brightness changes from 1 to 1000 in the app and it is perfectly linear: V_PWM1=3.2/1000*Brightness. Same behavior for color temperature on P6, it is perfectly linear.
    I flashed the two WB3L chipsets and made several attempts but couldn't replicate Tuya control. I ended with setting P7 as PWM on channel 1 and P6 as PWM_n on channel 2, now at least I get 3.2 volts on both when the two settings are at the top, however when I move one of the two slide controls both P6 and P7 are affected. But I must say that I made the settings knowing nothing about all the options that are available for configuration in the web app. For instance, what are flags for? start-up commands? How can I set up PWM0 and PWM1 reacting correctly to the two controls?
    As far as TYWE3L, Tuya Cloudcutter is not available for sw version 3.3.35. Can I flash on it the same sw that I used for WB3L? I made some trials, rising the EN to 3.2 volts, but it didn't work. However, I didn't make any serious attempt yet - may I ask for your advice?
    Another difference from Tuya: when I switch the light on, if brightness is set very high, more than 800/1000, the driver falters, the light loses Wi-Fi connection; it turns on again after some seconds with the light setting switched off. But I can switch on the lamp at 70% and then move it to 100% and it works. My guess is that the driver needs a smoother ramp-up of V_PWM1. It cannot accept a sudden jump from 0 to more than 2.5 or so. May I ask for your advice about it?
    Hereunder I am attaching a picture of the lamp, some configuration files that I downloaded from Tuya Dev Center, and the config files that I got while flashing.
    I could write a short and more detailed report with pictures, some info about the device, and flashing instructions if you believe that this could be of some help for the community (I see that there are already reports about other devices similar to this one, however, their settings didn't work for me)
  • ADVERTISEMENT
  • #2 20649777
    p.kaczmarek2
    Moderator Smart Home

    Hello, thank you for the provided information. Regarding the PWM issue, I don't think that measuring voltage is a good idea. PWM stands for Pulse Width Modulation, you need a scope to inspect that:
    Smartphone with WiFi lighting control app, Hantek oscilloscope, and LED strip on a table. Smartphone with a WiFi light control app, Hantek oscilloscope showing PWM signal, and glowing LED strip on a floor.
    A smartphone controlling LED lighting and an oscilloscope measuring the PWM signal on a LED strip.
    LVL 60cm 45w CCT Ceiling Lamps (TYWE 3L and WB3L) - Configuring & Switching on Flash TYWE3L
    If you think that the device behaves differently with OBK than with the original Tuya firmware, there are basically three options:
    - Tuya provides a different range of PWM control, for example only within the 5%-95% range, while OBK provides the full 0-100%
    - the PWM frequency of the Tuya device is different
    - you may also have a device with alternate PWM control, where one PWM controls brightness and the second controls temperature. If so, enable alternate CW mode in OBK flags


    I also never experienced this "WiFi shut down" issue. Can you try testing it with:
    - PowerSave 1 in the short startup command, so the WiFi module is in low power mode
    - smooth LED transitions flag enabled in the flags menu
    First try only the first option, then only the second, then both at once. I am wondering how it will affect your device. Let me know how it goes.

    If you have teardown pictures, please add them to the first post.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20650642
    cadseubi
    Level 3  

    Bingo!!! It works!!!
    Alternate CW light mode solved the configuration issue!!!
    It is also true that Tuya brightness variation doesn't start at 0, the range most likely is from 1% to 100%. The range 0% - 100% is good for me, however, are there also settings available for limiting the range?
    I tried PowerSave 1, smooth LED transitions flag, and then both together. Smooth LED transitions flag is the solution, PowerSave 1 has no effect (wifi is lost if there is no smooth transition). Problem solved.
    Just for your info, I configured the chipset when it was still connected with the power supply used for flashing, there was no loss of wifi then. The problem occurs only when the chipset is commanding the driver, so my guess is that there should be a fluctuation in power supply or kind of disturbance coming from the driver.
    Do you believe that TYWE 3L could be flashed? If not, I am going to add the first post including teardown pictures for WB3L only and then close the topic.
  • #4 20651058
    p.kaczmarek2
    Moderator Smart Home

    PowerSave 1 is still recommended; it reduces power supply stress, power usage, and heating.

    TYWE3L is a standard ESP8266 Tuya module; it can be easily flashed with Tasmota. Then you can use both Tasmota and OBK in Device Groups:



    Helpful post? Buy me a coffee.
ADVERTISEMENT