logo elektroda
logo elektroda
X
logo elektroda

WS2812 Christmas tree light set controlled by WiFi - test, Tuya, firmware change

p.kaczmarek2 
Coiled WS2812 LED strip with multicolored lights. .
What lights for your Christmas tree? Preferably the WS2812 - the WS2812 LED strip is distinguished from other strips by the fact that each LED can have a different colour at any given time. With classic PWM-controlled LED strips, all LEDs must necessarily be one colour, so the WS2812 is a big step forward if you want to display a greater variety of effects and animation. Here I will present such a ready-made kit, 10 metres of WS2812 lights powered from 5V together with a controller. Just right for Christmas tree lights. All for £80:
Smart Wi-Fi Fairy Light Christmas light set with Tuya app. .
To quote the description. 100 LEDs and even a remote control is included.
LED WS2812 Christmas light set with controller and remote. .
CR2025 battery for the remote control also included. I wonder if this longevity is true?
Close-up of technical details for WS2812B LED garland with an image of the lights. .
Specifications:
Technical specification table for WS2812 LED Christmas lights. .
But where did the solar power come from? That's some mistake.
Let's see what we get in practice:
Packaging of Smart Wi-Fi Fairy Light LED lights with rainbow effect. Box of WS2812 LED strip set with logos. Quick setup guide for LED strip set. .
Kit contents. The power supply is not there:
WS2812 LED set with remote control and USB controller. WS2812 LED strip and controller on a workbench .
Pairing instructions - the Bluetooth mentioned suggests to us that there is no ESP8266 inside, but a BK7231.
Instruction leaflet for app setup and Bluetooth connection with QR codes. Bluetooth configuration instructions for WS2812 LED strip Guide for configuring LED lighting using EZ and AP modes. User manual for WS2812 LED strips with configuration methods and integration with Amazon Alexa/Google Assistant. User manual for WS2812 LED strips with configuration methods and integration with Amazon Alexa/Google Assistant. .
As the product is quite unusual, I decided to test it both with the manufacturer's application and separately with OpenBeken (after changing the firmware)

Test with Tuya application .
We pair according to the instructions. In my case, the app immediately sensed the new device:
App screen for adding new devices, showing the option to add Smart Light. .
After entering the WiFi name and password, everything went smoothly:
Process of adding a smart lighting device to an app. Smartphone app with added Smart Light device. .
In the app, we are greeted by a panel like this:
App screen controlling LED lights in the shape of a Christmas tree. .
One colour can be set globally, but there is more...
App screen for controlling WS2812 LED lights with a red tree graphic. View of the smart LED lighting control app interface. .
You can also manually set the colour of the selected LEDs:
App screen for controlling WS2812 LEDs in a Christmas tree shape .
You can also set the number of LEDs in the strip, i.e. artificially lengthen or shorten the strip. Not bad!
App interface controlling LED lights. .
The 'Dynamic' tab, on the other hand, has animations:
App interface for controlling holiday decorations with LED animation settings displayed on screen. Smart Light app menu displaying LED tree-shaped light patterns. Smart Light app interface with different lighting modes. LED light control panel in an app. Three colors: green, blue, and orange in a Christmas tree shape. .
The choice is wide.
Here we also have a third control option - according to the rhythm of the music. Here, too, there are many modes to choose from, I haven't even tested them all. Certainly, the device can take music both from the microphone and from the phone (as a BT speaker, without playing it, of course):
Smart Light app screen with music rhythm, game, and romantic modes. Smart Light app screen with lighting modes. .
A schedule and countdown are also available:
Screenshot of Smart Light app showing schedule settings. App screen displaying schedule settings for turning off a light. .
Music modes also allow you to set their sensitivity:
Control panel of the app for smart LED lights App screen for controlling WS2812 lights with lighting modes. .
Example animation:


.


.



Firmware change .
The product can also be freed from the cloud and connected to Home Assistant. OpenBeken is uploaded:
https://github.com/openshwprojects/OpenBK7231T_App
Upload tool and instructions for flashing via UART:
https://github.com/openshwprojects/BK7231GUIFlashTool
To do this, we open the case - it's snap-on:
LH05-MICIR-V125 PCB module on a wooden surface .
PCB designation: LH05-MICIR-V125
By the way we can see the electronics inside, here we have the IR receiver, the button (from pairing) and the microphone and the 3.3V LDO regulator powering the BK7231N.
WS2812 LED controller with wires Close-up of an electronic circuit board with components. Close-up of a PCB with electronic components and labeled pads. Close-up of a PCB with electronic components. Close-up of a circuit board with electronic components. Close-up of a printed circuit board with electronic components. .
You will need 4 cables for programming - 3.3V, GND, RX and TX. The pads are signed:
Close-up of a PCB labeled LH05-MICIR-V125 with visible pads and labels. .
Here is my whole layout for programming, I have my own 3.3V LDO on the contact board, although for this particular device you could just as well use the LDO that is on the board there. It's just that sometimes I program separate modules such as the CB2S or WB2S and in their case there is no LDO already on the PCB so I have to have my own.
WS2812 LED strip programming set with breadboard and wires .
Soldered wires - you can see exactly which pad is which:
Image of a PCB labeled LH05-MICIR-V125 with soldered wires. View of a PCB with soldered wires.
BK7231 Easy GUI Flasher correctly detects GPIO roles:
Screenshot of Tuya configuration for a LED device using BK7231N .
Once the IR controller is running and the IRRecv pin is set, codes can also be captured from the remote control:
Screenshot of system logs with information on time, idle state, and IR transmission. .
Further configuration should follow the following themes:
Animations OpenBeken WS2812B - new HTTP panel integration, PixelAnim driver .
[Youtube] BK7231 LED strip programming and modification - adding IR receiver .
Then you can also use the DDP to send colour information:
DDP protocol - way to real-time LED animations over WiFi - OBK, xLights, configuration .
The operation itself after the firmware change is largely up to us, e.g. we decide how we map IR codes to commands.
You can also take a look here:
https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/autoexecExamples.md

Summary .
A very interesting product. Works pretty well both with the manufacturer's app and after a software change. The control offered over the LEDs is really large and also the choice of animations is wide. The animations can also be played to the rhythm of music, which is also configurable and available in many modes, which I would not be able to show all of here, because who would want to watch a dozen videos? And with the inclusion of sound sensitivity changes there would be even more....
The most important thing for me was to change the firmware and this was also done - along with the remote control operation. The final configuration is up to you, you can customise everything.
Do you use this type of kit, or maybe you have done some projects based on WS2812 yourself? .

About Author
p.kaczmarek2
p.kaczmarek2 wrote 11842 posts with rating 9937 , helped 566 times. Been with us since 2014 year.

Comments

divadiow 06 Dec 2024 13:39

great work. cute little device. could I bother you for the factory firmware backup so I can have a poke at it? [Read more]

SylwekK 06 Dec 2024 14:34

. And yes, as a reminder, maybe someone will benefit 🙂 Lamps of mine . [Read more]

p.kaczmarek2 06 Dec 2024 17:17

@divadiow search for "ws2812" here: https://github.com/openshwprojects/FlashDumps/tree/main/IoT/BK7231N @sylwekk nice project, altough I would think about taking it one step futher. It should be possible... [Read more]

SylwekK 06 Dec 2024 20:29

. No no no, simplicity was the main goal of the project 🙂 As practice has shown the lights run with minor exceptions on program no. 0 i.e. all programs bit by bit over and over again and everyone is... [Read more]

divadiow 07 Dec 2024 08:20

oh, thanks. have been through those already :) [Read more]

ArturAVS 07 Dec 2024 08:56

@pkaczmarek2 Missing information on how much power these 100xWS2812 draws from USB at full brightness, as probably quite a lot.... [Read more]

Dawid90u 07 Dec 2024 18:24

Hi, I have identical LED strips. Once on one community group someone was selling these strips without a controller for a ridiculous amount of money and I decided I would make a Christmas tree kit out... [Read more]

sobel23 07 Dec 2024 22:52

Lights can be bought more cheaply on "Ali". From tuya about 50PLN for 10m. There are also similar, i.e. the string is the same but the controller is on bluetooth and their price fluctuates around 16 zł... [Read more]

p.kaczmarek2 10 Dec 2024 17:03

Good point @arturavs , I have now measured it and it comes out that it does not exceed 1A though: https://obrazki.elektroda.pl/2227312500_1733846466_thumb.jpg https://obrazki.elektroda.pl/2857558000_1733846466_thumb.jpg... [Read more]

divadiow 10 Dec 2024 20:52

these cloudcutter profiles can be used to exploit this device with firmware version 2.1.6 https://github.com/search?q=repo%3Atuya-cloudcutter%2Ftuya-cloudcutter.github.io%20key99cxdjku575h7&type=code ... [Read more]

morgan_flint 25 Dec 2024 20:43

I'm a big fan of this project: https://github.com/sblantipodi/glow_worm_luciferin https://github.com/sblantipodi/firefly_luciferin Quote from its creator: "Glow Worm Luciferin is a firmware for ESP8266/ESP32... [Read more]

jkwim 27 Dec 2024 08:15

Thanks for the heads-up! It did not struck me that the Tuya version of these LED strings would have a BK chip. Sometime back I bought few sets with Bluetooth controller and cut the controller off... [Read more]

zabolhubert 06 Jan 2025 18:42

Has anyone tried connecting 2x10m to one controller and setting more than 100 lights in the application ? (yes I know you can buy 200 lights from the manufacturer but they are more expensive than 2x10m) What... [Read more]

p.kaczmarek2 06 Jan 2025 18:52

I haven't tested it myself, but since the app allows you to set there number of lights up to 200, it should rather work? Just make sure you have the right power supply. [Read more]

zabolhubert 06 Jan 2025 21:17

I cut off the last diode of the first 100 because there wasn't enough wire at the end and soldered the next 100 on, definitely a good thing because with the "100" setting in the app 99 of the first chain... [Read more]

p.kaczmarek2 06 Jan 2025 21:43

But the drama, that is, this option of theirs that supposedly can be set to 200, is just "for show" and doesn't work? The one I showed in the first post? Sorry, if I had known, I would have warned you,... [Read more]

zabolhubert 07 Jan 2025 00:16

1. i doubt tuya is to blame here, rather the manufacturer of the lights and the code in the microcontroller, i searched to see if they made the 200 LEDs themselves, according to the post on allegro what... [Read more]

p.kaczmarek2 07 Jan 2025 00:32

Show where you saw the 200 LED version then maybe something will be thought of.... I often buy different products for testing anyway. These LEDs always use P16 (hardware SPI output) for strip control anyway,... [Read more]