logo elektroda
logo elektroda
X
logo elektroda

Yinsan Smart Bulb E27 RGBCWW Light Bulb - W600 - Teardown and Guide

pavlicanikola 885 3
ADVERTISEMENT
  • #1 20938686
    pavlicanikola
    Level 3  
    Unrelated: Hi, I am new here and would like to share progress I've made with a lightbulb in found in a flea market. Please message me if I haven't done something right or missed any information/rules. Thank you.

    I initially ported this device onto the firmware 1.17.308 but it lacked PWM functionality (Hence why I did not publish it). Now I've managed to get it working fully on version 1.17.439 thanks to some commits which fixed W600 PWM functionality (thanks to whoever did that fix, this wouldn't be possible without that).

    Smart LED bulb with colorful light.

    Two colorful YINSAN LED bulbs, one standing upright, the other lying on its side.

    Amazon link

    Person holding a YINSAN light bulb in hand.

    Person holding a smart bulb with visible text on its casing.

    This device was quite tricky to reverse engineer, but I've been able to get it running after a bit of elbow grease, so to speak.

    The first and trickiest part about this bulb is the disassembly because the bulb is glued together with silicon, which is quite tricky to remove.
    You can see some of the resulting scars from that in the second attached image. (Battle wounds :P)

    But, once opened, you could inspect further by removing the glue attached on the ring PCB and pulling it out of the light bulbs body.

    Interior of an LED bulb showing a circuit board and connections.

    An ESP-looking module would appear, that has the writing TW-05 on it. Now since I've partially destroyed mine while said disassembly, I'll attach an reference photo of what it USED to look like :)

    TYWE3L electronic module with CE markings and QR code.

    Except it has pins on the bottom and instead of the sticker it has TW-05 laser etched onto its metal case. A bit of imagination is required ;)

    Once pulled out, you'll be greeted with this. (Minus the debug wires I soldered onto it)

    LED bulb electronic circuit with exposed circuit board and visible components.

    In order to make use of this destructive process you'll need a soldering iron, bit of solder, a UART adapter (any that supports 3.3V would work), some small wires and a bit of patience.

    You'll need to solder 4 connections:

    Circuit board with RX, TX, GND, VCC labels.

    You can take off the white PCB above the main power board, but BE WARNED that you may damage the 6 pin header that's connecting the two. You HAVE BEEN WARNED.

    Once those connections were completed you will have to wire the module to your UART adapter as such:

    ModuleUART
    3v33v3
    RXTX
    TXRX
    GNDGND


    Once completed, you'll now have the ability to flash firmware for this device.

    This should be obvious, but do not put LIVE electricity into this device while flashing firmware onto it. Only after the device has been assembled and configured should it be plugged back into the mains AC.

    Download the firmware file off of the GitHub repository for the W600 specifcally. Make sure you get the FLS file.

    Screenshot of three firmware files, including OpenW600_1.17.439.fls.

    Linux specific (This is what I use, might work on Windows but am not sure):

    Download and install python3 and its appropriate pip package manager. This assumes you have serial drivers working and ready to use. If you don't, Google's your friend.

    Once installed issue the following command:
    
    pip install w600tool
    


    Once that's installed, plug in the UART device and remove 3v3 from the board. This is important.

    Once the UART device is plugged in, take note of its device name. Should be ttyUSB0 or ttyACM0 on most Linux distributions.

    Issue the following command:
    
    w600tool.py -p /dev/ttyWhateverYourUARTAdapterIs -u the_file_you_downloaded.fls -b 115200 --upload-baud 115200
    


    Once ran, it will get to the line.
    Quote:

    Push reset button to enter bootloader...


    You will QUICKLY have to plug in your 3v3 volts back onto the device. Might take a few tries, but once successful, you will have the firmware flashed onto the device.

    Once completed, your lamp would create a Wi-Fi access point. Connect to it and configure it to work with your wifi network. It should be named OpenW600_some_hex_value.

    In case you cant obtain the IP address on the new access point, try setting it to an static 192.168.4.10. Once done, you should be able to access the configuration interface on port 80 on IP 192.168.4.1.

    From there you can configure it to connect to your Wi-Fi network. Once done the device will reboot, get its own IP address (you'll have to find it with a port scanner tool) and host the configuration interface from port 80 again.

    Connect back to your main Wi-Fi, and find the new IP address of the bulb using a port scanner. Look for port 80.
    Once the new IP has been obtained, you'll have to click on the Launch Web Application button.

    Configuration of smart bulb software with high Wi-Fi signal.

    Once in there, go to the Import tab.
    Screenshot of a user interface with the Import tab.

    From there download the attached w600.zip, in there you will have a w600.json file. Open that file and paste the contents of it into this text box.
    Interface for entering OBK/JSON templates from Cloudcutter

    Once done, you will be able to control your Smart Light as you please.

    Have a good day :)
  • ADVERTISEMENT
  • Helpful post
    #2 20938699
    p.kaczmarek2
    Moderator Smart Home
    Hey, that's a very interesting teardown! I haven't seen W600 bulb in a very long time. It's a shame they don't ship with TYWE3S/TYWE3L (ESP8266 etc) anymore, but at least, we have OBK to cover most of the new platforms! Don't worry about having your topic in Temporary Posts, it's just that we need to review every post before publishing in order to prevent spammers from flooding our site.

    Regarding JSON, please fill the topic link and module name, and I will add it to our list here: https://openbekeniot.github.io/webapp/devicesList.html
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #4 20938893
    p.kaczmarek2
    Moderator Smart Home
    Helpful post? Buy me a coffee.
ADVERTISEMENT