Below are some pictures of the actual device. Both the white LEDs and the RGB ones are very bright (a bit hard to tell from the pictures but they are).
Opening the device is very easy - a few screws and then the lid can come off.
After taking the cover off (be careful not break the wires when taking off the cover) this is what we find inside:
- White LEDs:
- RGB LEDs:
Below is a picture with an overview of the circuit board:
Also some closeup pictures of the components on the circuit board:
The Tuya CB3S module - there are no markings on the CB3S Module at all. In the second picture you can notice that I have gently pushed the capacitor (assume it is a capacitor ) a little bit out of the way to expose the CB3S module connections.
Since the Tuya module has been identified as a Tuya CB3S module the device will need to be flashed with BK7231N Below are some pictures from a test module that I had which further strengthen the case that it is a Tuya CB3S module:
I have added the light to Tuya Smart Life. Below are some screenshots of what options the device has in the Tuya app:
Through Tuya IoT I was able to get the DP IDs for the light (but I am not sure if Tuya MCU is actually used on this device):
Below are some pics on how I put the UART and Arduino Uno together:
Some notes for beginners like me on the above setup:
- had to use additional power source as UART will not provide sufficient power
- I tried intially to get power from the 5V pin on UART and use a 3.3V LDO but that did not work for me. So I got the Arduino Uno R3 kit that is powered with a mains external power supply
- Ground had to be connected from the Arduino Uno to the chip and the UART
As you can see in the picture below the Tuya CB3S module actually has some holes on the side.
So instead of taking the whole PCB out and solder wires I have decided to leave it in place and use the Arduino wires to push them slightly in, just enough that they stay put in the holes and don't actually come out.
In the picture below everything is connected and powered up.
Next I start BK7231 Easy UART Flasher on my Windows PC
Started to do a read/write test (and in the process I had to quickly short the CEN wire to the Ground wire). The test completed successfuly.
Next step was to select the Do firmware backup (read) only in BK7231 Easy UART Flasher. Original Tuya backup completed successfully. Backup file is attached below.
Next I have selected Do firmware write (no backup) to flash the device with OpenBK7231N_QIO_1.17.244.bin file. The flash was successful.
I have then removed all the wires from the device and put its cover back and tightened the screws. Next I have connected power to the device.
I saw its AP, connected to it and added the WIFI configuration. After the reboot the device was on my network and I could connect to it web interface
As you can see from the Tuya app screenshot this device has 2 individual configurations, 1 for the white LEDs and another for the RGB LEDs.
Also the GPIO config doesn't look like it had any meaningful information in it:
So through some trial and error I have managed to find the configuration for the white LEDs. With it I can toggle ON/OFF, control the brightness and temperature of the white LEDs.
With the RGB LEDs things are getting more complex, at least for me.
I have figured that if I set P8, 24 and 26 to LEDs at least I can confirm that I got the right pins. The result is:
P8 = 3 = RED Color
P24 = 4 = GREEN Color
P26 = 5 = BLUE Color
So at least I got the pins and color correct. However this is not how the configuration should be because I get 3 extra individual toggle buttons on the web interface. There is no brightness or color picker at all:
What I think we should have there is a another toggle button for the RGB LEDs with its own brightness and RGB color picker.
@p.kaczmarek2 - I might need your assistance to finish off the configuration of this device as I have no idea how to make the above happen. As mentioned white LEDs are working perfect is just the RGB ones that are not.
Hello, what is the expected use case of the ability to set the CCT and RGB modes independently? The following is currently not officially supported, because once you set 5 PWM pins, OBK tries to enable the classic RGB + CCT controller where you have to switch one of the two modes.
That is how the device works with the Tuya firmware. So it will be good to have it work the same with OBK. If I set all the pins to PWM, there are a few things wrong with it:
- One cannot independently control the on/off toggle of the white light and RGB ones as per Tuya firmware. - After you toggle the light on, if the dimmer/brightness is used, it switches off the white LEDs. - Similarly, for the temperature slider, if it turns off the white light. - The RGB color picker actually changes the white light temperature - the LEDs' color does not change at all. - The RGB LEDs are always red - I could not change them to another color.
Maybe there are more issues, but this is what I have picked up through my testing.
The top 2 sliders will control the white light, achieving in a way what the previous configuration did. The last 3 sliders sort of equal an RGB picker but in a weird way There are no on/off toggle buttons.
Any chance you can have OBK support the functions as they were in the Tuya firmware?