logo elektroda
logo elektroda
X
logo elektroda

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

p.kaczmarek2 2139 18
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • 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? .

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 11838 posts with rating 9933, helped 566 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 21335575
    divadiow
    Level 34  
    great work. cute little device. could I bother you for the factory firmware backup so I can have a poke at it?
  • #3 21335669
    SylwekK
    Level 32  
    p.kaczmarek2 wrote:
    and maybe you have done some WS2812-based projects on your own?
    .

    And yes, as a reminder, maybe someone will benefit 🙂
    Lamps of mine .
  • ADVERTISEMENT
  • #4 21335942
    p.kaczmarek2
    Moderator Smart Home
    @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 to map the LED positions (either by hand or automatically) onto the 2D image and then use them to play animations.... it could look good, depending on the diodes density. Of course, it would also require WiFi access...
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 21336275
    SylwekK
    Level 32  
    p.kaczmarek2 wrote:
    It should be possible to map the position of the LEDs...etc...
    .

    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 happy because there are no ferocious Chinese combinations 🙂 .
  • #6 21336713
    divadiow
    Level 34  
    p.kaczmarek2 wrote:
    search for "ws2812" here:

    oh, thanks. have been through those already :)
  • #7 21336738
    ArturAVS
    Moderator
    @p.kaczmarek2 Missing information on how much power these 100xWS2812 draws from USB at full brightness, as probably quite a lot....
  • #8 21337414
    Dawid90u
    Level 23  
    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 of them.
    I connected the strips in series to an ESP32 and uploaded the WLED project. I chose some interesting effects that don't make a Christmas tree disco.
    One full LED strip (100xLEDs) draws about 1.5A when white, assuming that we power the LEDs from both sides of the kit.
    This is where the big downside comes in. The power line is a thin wire. The last leds are heavily distorted colours at maximum brightness. This is why I connected the power supply at each end/beginning of the next LED strip. At my Christmas tree I fit 2x10m so I have 3 power lines: at the beginning, in the middle and at the end. The power lines go down the middle of the Christmas tree so you can't see them.
    Another disadvantage of these leds is that they are white. Green would mask better :) .
    I power the whole set with a 5V/4A power supply.
    Below is a sample:


    .
  • #9 21337798
    sobel23
    Level 16  
    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ł 10m/100LED + esp32 live mini kit and for less than 30zł we have a set with WLED (combined offers) - admittedly we do not have any mapping, but the price does its own :) .
  • ADVERTISEMENT
  • #10 21342052
    p.kaczmarek2
    Moderator Smart Home
    Good point @ArturAVS , I have now measured it and it comes out that it does not exceed 1A though:
    Smartphone and connected LEDs with a current meter showing 0.59A. Controlling LED lighting using a smartphone Smartphone with LED light control app, meter displaying 0.84A, and lit LED string lights. Smartphone displaying a Smart Light app next to glowing LED lights and a current measurement device. Smartphone with an app for controlling LED lights and a connected meter showing 0.62 A current. Smartphone with a light control app next to a set of red LED lights. Smartphone with an app controlling LED lights, display showing power consumption of 0.21A. Smartphone with an app controlling LED lights, display showing power consumption of 0.21A.


    @divadiow other firmware:
    https://github.com/openshwprojects/FlashDumps/commit/73aa1fef02722115e670a7e03d97f2c573f1996e
    Helpful post? Buy me a coffee.
  • #12 21362430
    morgan_flint
    Level 14  
    p.kaczmarek2 wrote:
    maybe you have done some projects based on WS2812 yourself?

    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 boards designed for the Firefly Luciferin software, the combination of these software create the perfect Bias Lighting and Ambient Light system for PC"

    The main application is for monitors/TVs to produce something like Phillips "Ambilight" (illuminating the TV surroundings with the same colors as the edge of the screen in that area), but also has other effects (fixed color, VU meter for music, rainbows, etc.)

    It even has the possibility to flash the microcontroller from a browser, similar to ESPhome
  • #13 21363735
    jkwim
    Level 12  
    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 and used the strings with WLED. Tuya version was much more expensive of course.

    RGB LED string lights with Bluetooth offer on AliExpress

    Even for the Christmas tree I used these with WLED (We do not celebrate Christmas but as a practice our children always make a Christmas Tree and I setup the lights).

    I used WLED's segment features to logically break the 20m string in to multiple sections and apply different effects.

    Too bad I had ordered few more of the Bluetooth sets (which did not arrive before Christmas as expected anyway).

    I should have ordered the Tuya ones and cascaded them via WiFi with a single WLED device and DDP Protocol.
  • #14 21380479
    zabolhubert
    Level 2  
    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 is in the Tuya app is enough for me, I have more of these 10m ones and I don't know if it makes sense to connect them together....
  • #15 21380500
    p.kaczmarek2
    Moderator Smart Home
    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.
    Helpful post? Buy me a coffee.
  • #16 21380816
    zabolhubert
    Level 2  
    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 and the first of the second chain work. Unfortunately when I click a larger number than 100 in the Tuya app it reverts to the previously set number of diodes that were working, so I suspect there is a hard max set in the code and the app has the same look no matter if you connect to the original 100 or 200 lights. Maybe someone has access to the 200 and is able to rip the software that is there as long as the same microcontroller is there too?
  • #17 21380870
    p.kaczmarek2
    Moderator Smart Home
    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, but I didn't even think it was that poor with this Tuya software.

    A copy of the batch from my product is on my flashdumps repository https://github.com/openshwprojects/FlashDumps/tree/main/IoT/BK7231N search ws2812

    Do you have the same controller as me? Maybe it is possible to update the tuya soft in the options? With our flashdumps you can read the batch and upload the new one, but remember to keep a backup of yours: https://github.com/openshwprojects/BK7231GUIFlashTool

    Show pictures of what controller you have.
    Helpful post? Buy me a coffee.
  • #18 21381076
    zabolhubert
    Level 2  
    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 this thread is about was made by some "nexoo" (i have the same board as you with the controller the same) but i didn't find it, with offers of similar lights compatible with tuya which are 20m long and 200 LEDs rather some other manufacturers and i can't see from the pictures the same board with the controller but it is hard to say without having in hand what is sitting there....

    2. cool, but you also have the same soft as me certainly made for 100 LED so it won't do anything :) .

    3. we'll see maybe I'll find somewhere else or hear from someone who bought a 200 LED from another manufacturer then the flasher will come in handy
  • #19 21381083
    p.kaczmarek2
    Moderator Smart Home
    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, so potentially there's a good chance of a rework.

    Added after 3 [minutes]: .

    Wait and in this review wasn't the soft on 200:?
    Programming the WS2812 Christmas tree lights. Broken Tuya app. Will a DIY solution work better? .

    Added after 1 [minutes]: .

    type CTree
    https://github.com/openshwprojects/FlashDumps/tree/main/IoT/BK7231N
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around the use of WS2812 LED strips for Christmas tree lighting, highlighting their ability to display multiple colors simultaneously, unlike traditional PWM-controlled strips. Users share experiences with a 10-meter WS2812 kit, which includes 100 LEDs and a remote control, priced at £80. Concerns about power consumption at full brightness and the need for adequate power supply are raised, with one user noting that a single strip draws about 1.5A. Alternatives to the Tuya-controlled strips are discussed, including cheaper options available on platforms like AliExpress. Users also explore firmware modifications and the potential for connecting multiple strips to a single controller, with some reporting limitations in the Tuya app regarding the maximum number of LEDs supported. The conversation includes references to various firmware projects and the challenges of using Tuya software.
Summary generated by the language model.
ADVERTISEMENT