Skip to content

Sonoff iFan02

The Sonoff iFan02 is supported in Tasmota from version 6.0.0b

Serial Flashing~

Please see the Hardware Preparation page for general instructions.

Flashing using only a USB to serial converter will not work as the unit draws too much current as can be observed by a flashing blue led on the PCA and a lot of serial gibberish. As AC is not connected to Gnd I used the available power supply of the unit and connecting the USB to serial converter to J3 pins Gnd, Tx and Rx.

The button is not connected to GPIO0 so flashing the unit requires some extra work. I managed to flash the iFan02 by soldering a wire to TP16 (GPIO00) on the bottom of the PCA. Keep this wire connected to Gnd during the power-on or reset process (pressing the button) and the unit will be in firmware upgrade mode. If you've soldered the gpio0 connection don't forget to unsolder before booting normally.

Connect RX -> TX | 3.3 -> 3.3 | TX -> RX | GND -> GND and connect TP16 to GND (as used in the TTL).

Press and hold the button while connecting to power.

If you have an Arduino you may be able to flash without providing an additional power source. I have successfully flashed using an Arduino Duemilanove with the atmel chip pulled out (basically using it for FTDI and 3.3v power regulation). Rx on Arduino goes to Rx on iFan02, Tx to Tx (no crossover like with FTDI). I did not have to press the button, only to ground TP16 while initiating the flash in Arduino IDE. The Arduino provides enough power to flash, however it will not boot into Tasmota unless you plug in to external power (it boot loops after flashing is complete).

Additional information~

  • See issue #2839 for user information
  • See issue #3412 light on after restore power

Functioning iFan02 in Tasmota WebUI

drawing

iFan02 PCA with TP16

drawing

Two users report the TP16 pad lifting after soldering a wire to ground as shown in picture. This renders it useless. It may be better to use a pogo pin contact, bare wire or solder and then epoxy/glue the wire in place, leaving it permanently.

Board Top Showing ESP8285

UNSHIELDED Board Top Showing ESP8285

ESP8285 Pinout

esp8285 PINOUT

Using hard wired push button switch attached to iFan02 GPIO to cycle speeds~

If anyone wants to setup a single push button switch attached to the GPIO3 Serial + ground In that will cycle through the speeds and turn off - after setting it in the configuration (GPIO3 to 11 Switch3) the console code is:

rule1 on switch3#state do FanSpeed + endon

Alternate Power Supply Schematic~

esp8285 PINOUT