logo elektroda
logo elektroda
X
logo elektroda

Exploring Aiyato/DOIT/Cozylife Homekit 9W RGBWW E27/A60 Bulb with OpenESP32C2 Firmware {ESPC2-05]

divadiow 1869 5
ADVERTISEMENT
  • Helpful post
    #1 21261920
    divadiow
    Level 34  
    Here's a little look at a Cozylife Homekit 9W RGBWW E27/A60 bulb. A device very similar to many others like this Corui with a BL602 based DT-BL200 module: https://www.elektroda.com/rtvforum/topic3930622.html

    This bulb, like other Cozylife Homekit (non-Tuya) IoT devices is equipped with an Espressif module - the DOIT ESPC2-05 which is pin-compatible with the DT-BL200. It got a mention by @ferbulous here https://www.elektroda.com/rtvforum/topic3930622.html#20379018 as a suggested replacement for the BL200 module.

    Now though, Tasmota is not the only option for ESP chips, so I'll try the OpenESP32C2 firmware.

    Electronic module with visible capacitors and Espressif chip on a circuit board. Cozylife Homekit 9W RGBWW E27/A60 module on a wooden table ESPC2-05 circuit board on a wooden surface Electronic module with capacitors and a chip on a wooden surface. Electronic module with components on a wooden surface. Cozylife Homekit A60 module with visible capacitors and components on a wooden background

    With the two capacitors removed the module can be de-soldered using hot air.

    Cozylife Homekit bulb module on a wooden table

    and the VCC, GND, IO9, RX and TX soldered ready for flashing.

    Pin diagram of the ESPC2-05 module.

    ESPC2-05 module with wires soldered to the pins.

    from TX (74880 baud) on standard boot:

    Code: Text
    Log in, to see the code


    with IO9 grounded

    Code: Text
    Log in, to see the code


    and a confirmation of the chip using esptool.exe

    esptool.exe --port COm48 flash_id
    Code: Text
    Log in, to see the code


    then a firmware backup, attached

    esptool.exe --chip esp32c2 --port COM48 --baud 115200 read_flash 0x000000 0x200000 Cozylife_A60.bin
    Code: Text
    Log in, to see the code


    and finally the flash to latest ESP build OpenESP32C2_1344_merge_79a69adf9fe1.factory.bin
    Tasmota-Esp-Flasher interface with ESP32-C2 flashing logs.

    Screenshot of the OpenESP32C2 interface with Cozylife device.

    tomorrow I'll solder it back up and find the PWM pin config for a final template. Here are some more pics of the module in the meantime

    Espressif DOIT ESPC2-05 module on a wooden background. A60 Cozylife Homekit module on a wooden surface Cozylife Homekit A60 module mounted on a circuit board.
  • ADVERTISEMENT
  • Helpful post
    #2 21262152
    divadiow
    Level 34  
    I continued.

    Close-up of a circuit board with various electronic components and several connected wires.

    The assignments are simply the bottom row of GPIOs

    Code: Text
    Log in, to see the code


    I believe the single side solder pads IO1 and RX0 are just used to hold the module in place.

    Making the template

    Code: JSON
    Log in, to see the code


    OpenESP32C2 web interface with LED lighting settings

    https://www.aliexpress.com/item/1005007005261284.html
    Promotion of an RGBW LED bulb compatible with HomeKit, Alexa, and Google Assistant on AliExpress.

    Packaging of Aiyato smart bulb with a colorful gradient. Aiyato smart bulb with box and user manual on a table. Box displaying technical specifications for a 9W RGBWW Wi-Fi bulb.

    https://github.com/OpenBekenIOT/webapp/pull/151

    Added after 8 [minutes]:

    Image of an ESPC2-05 module with pin labels on a wooden surface.
  • ADVERTISEMENT
  • #3 21262246
    ferbulous
    Level 18  
    I think it’s pretty amazing how openbeken has expanded chip support beyond beken to include esp while tasmota is well still on esp only.
    I do wish we get better device group support like multiple device groups
  • ADVERTISEMENT
  • #4 21288699
    poldim1
    Level 2  
    I recently bought a similar Tuya bulb but the LN882HKI is a bare chip rather than a module. It was nice for the OEM to label all of the test pads. I'm going to try to upload the OpenBK7231N firmware when I get some spare time.

    AE details:
    Led RGB Light Bulb E27 Dimmable Ir Remote Control Lamp 5W 10W 15W RGBW RGBWW Led Spotlight Colorful Changing Lampada Decor Home
    https://www.aliexpress.us/item/3256807214151940.html

    Close-up of an electronic circuit with various components, including capacitors and resistors, on a printed circuit board. Printed circuit board with test pad markings and inscriptions. LED board labeled SD205-CCT with visible components and test pads. Close-up of a circuit board with an LN882HKI chip and test pad labels.
  • ADVERTISEMENT
ADVERTISEMENT