IWOOLE Table Lamp

The IWOOLE Table Lamp is a RGBW lamp normally configured using the Tuya Smart App. It is available from various retailers online or directly from iwoole.com.


1. Device overview


The following information relates to the desk model depicted above. A free-standing version and a desk version with a longer arm are available. They are likely to share the same internals and configuration, but I can not be certain.

My device had no external markings at all.

The device is a basic 4-channel PWM RGBW light in a simple elegant housing. The LEDs are not individually addressable. No other sensors, outputs or status LEDs are available.

The MOSFETs for the different color channels are connected as follows:

  • GPIO04: White

  • GPIO12: Green

  • GPIO13: Blue

  • GPIO14: Red

1.1 Internal markings


2. ESPHome configuration

Since there is only one RGBW light to configure the .yaml file is fairly straightforward. Alternatively, you could configure each channel as a separate light if desired. I prefer to use the color-interlock option along with the configuration below.

2.1 Example configuration

  name: "IWOOLE Table Lamp"
  #ESP type is ESP8266EX with 1MB flash

  board: esp01_1m

# Insert wifi and api configuration here

# Configuration for IWOOLE PWM light
  - platform: rgbw
    name: "Light"
    red: output_red
    green: output_green
    blue: output_blue
    white: output_white

  - platform: esp8266_pwm
    id: output_red
    pin: GPIO14
  - platform: esp8266_pwm
    id: output_green
    pin: GPIO12
  - platform: esp8266_pwm
    id: output_blue
    pin: GPIO13
  - platform: esp8266_pwm
    id: output_white
    pin: GPIO4

3. Flashing


The circuit inside will be exposed to mains voltage. Do not connect your device to the mains when flashing. Flashing this device via a serial connection will involve precarious soldering and cutting through insulating heat-shrink tubing which will have to be replaced. If you are uncomfortable with this, or are not confident around mains voltage, do not attempt to do this! Using the Tuya-convert method is preferred.

  1. Disconnect the device from mains voltage!

  2. Open the device. The plastic and aluminum halves can be separated by twisting the plastic part counter-clockwise. If you’re okay with a few scuffs you can also use a screwdriver (or a spudger) to separate the two halves.

  3. Remove the two screws holding the round plate with the LEDs. It is connected to the main PCB with a little cable. Make note of the orientation of this connection to ensure you reconnect it correctly later.

  4. Carefully remove the heat-shrink tubing around the two main PCBs.

  5. Like any ESP device, to flash this chip using serial you’ll need 3V3, GND, RX, TX and GPIO0


There are pads available for 3V3 and GPIO0 on the back. I have tried to find easier solder points on the front, marked in the image above. Be aware that the pin labeled VCC does not carry 3V3, but 24V DC. If, for any reason, you wanted to connect any other sensor or component, the exposed pin for GPIO5 can be used, in addition to RX (GPIO3) and TX (GPIO1).


I have made the following connections, I used the pad for GPIO0 because I did not know of the other connection point yet.

  1. Flash the chip as you would with any other, using ESPHome-Flasher or any other tool of your choosing. While this is not meant as a tutorial on flashing ESP chips, some general hints:

  • Always double-check your connections, and don’t change any when the ESP is powered. I fried one of these mood lights this way.

  • Ensure GPIO0 is connected to ground to get the device into programming mode, but also don’t forget to disconnect this when you expect the device to start in normal mode.

  • When working with a breadboard, an FTDI adapter and jumper wires, it is very easy for something to become disconnected. Try to use as few wires as possible.

  1. Re-apply some heat-shrink tubing or cover the PCBs in electrical tape. Make sure none of the traces or solder joints are exposed anymore. Re-connect the LEDs (see cable orientation in one of the images above).

  2. Screw down the plate with LEDs and close the device.

See Also