logo elektroda
logo elektroda
X
logo elektroda

Kanlux S A60 LED lamp 11.5W E27 RGBCW [CB3L / BK7231N]

p.kaczmarek2  Cool? (+2)

Here I will show the interior, the programming procedure and the configuration of the LED lamp leads Kanlux S A60 11.5W E27 RGBCW based on the CB3L module, i.e. the BK7231N chip. This is another lamp that came to me from one of the users in order to download the firmware from it for the tuya-cloudcutter project to allow the programming of other such products (from the same series) remotely and recognizing the roles of its WiFi module pins.
From what I can see, such an LED (colloquially called "bulb", although it is incorrect) costs less than PLN 30:

Product packaging, with model information and QR codes for the application:




A short test with the Tuya application
There is an indication on the package that it is for the SmartLife application, but it seems that Tuya also detects this product - no wonder, it's basically one environment, just sold under different names.
Pairing mode is activated as standard - turning the lamp on and off five times.

Tuya sees the lamp as "Kanlux S A60 11.5WE27 RGB ..."

Kanlux S A60 interior
I got the lamp open from a friend from the forum.

Here is the board with LEDs, it has the BP5778 driver:

But BP5778 only supports two channels, and we have five (RGB + CW) ...

Well, a board with a power supply / WiFi module and also with additional transistors for RGB:


The CB3L module is based on the BK7231N.


In this case, pins RX and TX are easily accessible. You do not need to desolder the module.
Bottom of the plate:



I haven't analyzed it that thoroughly anymore.

Uploading OpenBeken
I have already described the topic many times:
Light switch from the USA - Gosund Smart Switch SW5-A-V2.1 - BK7231T
Garden Tuya CCWFIO232PK Double Relay - BK7231T - Programming
For this device, I chose the method without CEN.
I soldered 4 wires:
- 3.3V
- mass
- RX
- TX
I have prepared a USB to UART converter in 3.3V mode and a 3.3V LDO regulator TC1264.
I reset the system by cutting off its power (I cut off 3.3V from the WiFi module). He managed to upload his batch via bkWriter 1.60, even though it is BK7231N. After all, there is also a way to z hid_download_py .



The rest as usual - WiFi configuration, MQTT ...


Pinout for OpenBeken
It is an RGBCW lamp, so it uses five PWM channels. Sequence as in the name - R, G, B, C and W. Below is the final PWM configuration:


This is enough to control the color and color of light from the OBK level - as well as their brightness.
This is how the OBK panel for RGBCW looks like:

(It is true that this is a screenshot from my table-test lamp with an uptime of 22 days, not from Kanlux, but this panel looks the same for each RGBCW ...)


Pairing with Home Assistant
As with other RGBCW.
https://www.elektroda.pl/rtvforum/topic3918447.html

Effects
A few pics with different colors:


Summary
Simple and easy to program lamp - there were no problems with getting to the TX / RX pads. Everything is convenient.
I ripped the batch and sent it to the authors of tuya-cloudcutter, hoping that they would add support for this product as well.
I also put the lamp together, although it came to me with bent pins.
And this is how 2 out of 4 lamps from the user are presented - the other two you will see soon, here is a small sneak peak:

The next two lamps (visible in the photo) will be interesting because they will have a previously unknown WiFi module with BK7231N. Very small module - the size of a fingernail. Then I will also examine its outputs and see how the module with 4 derived paths (including two for power supply and VDD) controls as many as five LED colors (RGBCW) - yes, via SM2135 ...

About Author
p.kaczmarek2
p.kaczmarek2 wrote 12455 posts with rating 10303 , helped 585 times. Been with us since 2014 year.

Comments

Mateusz_konstruktor 18 Sep 2022 20:36

Show off the way you reassembled these components together. [Read more]

p.kaczmarek2 21 Sep 2022 07:25

Forgive the slow answer. You can see the assembly of the lamp in its entirety in our video: The only thing that is not shown in the video, and sometimes it is worth doing it, is an additional catch... [Read more]

Mateusz_konstruktor 21 Sep 2022 14:58

Several times in this way I tried to merge the thread element with the body and in my opinion re-making this connection without a new thread and a specialized machine gives a poor effect. This is a thin... [Read more]

p.kaczmarek2 26 Sep 2022 09:19

And do you mean Tuya lamps now or some other? I solved this with a tiny amount of precisely applied glue, but it was not always necessary. As for the moment, all the E14 and E26 that I remake are... [Read more]

chtr 16 Nov 2024 16:33

Hi, I have this bulb, but with new pcb version, theres is on wifi standalone wifi module soledered to pcb, but everything is on same board. I tried flash this bulb with bk7231 flasher, but I'm getting... [Read more]

p.kaczmarek2 16 Nov 2024 18:10

Try lower baud speed, maybe? How do you connect it? You need a reliable power supply in order to flash Beken modules easily. Powering from 3.3V pin of USB to UART converter may not work, I use external... [Read more]

chtr 16 Nov 2024 23:58

I'm powering board from external regulated supply, and connecting to pc with FT232 converter. This error always occur at the same flash area, and only when writing (backup was created successfully) This... [Read more]

%}