There are some practical modules in the Sonoff range. This also includes the "Sonoff iFan03". This is actually intended to be able to control ceiling fans and a connected lamp via remote control and WLAN.
Like many other Sonoff modules, the iFan03 module can also be equipped with the free Tasmota firmware.
How you can program the Tasmota – or other firmware – on the iFan03 is described in the following article.
Safety instructions
I know the following hints are always a bit annoying and seem unnecessary. But unfortunately, many people who knew it "better" from carelessness lost their eyes, fingers or other things or hurt themselves. In comparison, a loss of data is almost not worth mentioning, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Even the coolest project is worth no injury or other annoyance. https://www.nerdiy.de/en/sicherheitshinweise/
Affiliate links / advertising links
The links to online stores listed here are so-called affiliate links. If you click on such an affiliate link and store via this link, Nerdiy.de receives a commission from the online store or provider concerned. The price doesn't change for you. If you do your purchases via these links, you will support Nerdiy.de in being able to offer further useful projects in the future. 🙂
Requirements
Helpful Articles:
Before you start with this article, it makes sense to read the following articles.
Tasmota-Flash firmware
ESP8266 – flash .bin files in Windows with the “Esptool”
Required tools:
Required material:
Prepare the Sonoff iFan03 module for the flash process
In addition to the actual module, the scope of delivery of the Sonoff iFan03 also includes a 433MHz radio remote control which can be used to control the connected fan. Up to three speed levels can be set.
In addition, a small additional consumer, such as a lamp, can be switched on and off.

In order for the module to be programmed, you must first open the housing and remove the circuit board.

… that assignes a function to each pin.
The interesting pins are the three pins "VCC", "RX", "TX" and "GND". The module can be programmed with an alternative firmware via these pins.
Connect the USB to serial converter
For the actual programming process, you now have to connect a USB serial converter.

So that the USB-serial converter can communicate with the Sonoff module, you now have to make a few connections.
Four Dupont cables are best for this.

With these you have to connect the module and the USB serial converter according to the following pattern.
Sonoff module | USB to serial converter | colour |
VCC | VCC | editor |
TX | TX | Orange |
RX | RX | Yellow |
GBD | GND | Brown |
Perform the flash process
The actual flash process is described in the article Tasmota-Flash firmware.
If you want to flash a precompiled .bin file, you can also refer to the article ESP8266 – with the “Esptool” flashing .bin files under Windows.
Important: In order for your Sonoff module to switch to programming mode, you have to hold down the white button while you plug the USB-to-serial converter into the computer. then hold the button down for another three seconds and then release it. Then you can start with the programming process.
Set the appropriate template
As soon as you have flashed the Tasmota firmware onto the module, you still have to configure the firmware as Sonoff iFan03. The template below is suitable for this.
{"NAME":"SonoffiFan03","GPIO":[17,148,0,149,0,0,29,161,23,56,22,24,0],"FLAG":0,"BASE":71}
You can enter this template in the Tasmota interface under "Configuration" -> "Configure other". This should automatically configure the corresponding outputs and inputs on your iFan03.
Additional information
https://templates.blakadder.com/sonoff_ifan03.html
Have fun with the project
I hope everything worked as described. If not or you have any other questions or suggestions, please let me know in the comments. Also, ideas for new projects are always welcome. 🙂
P.S. Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you appreciate that I share this information with you, I would be happy about a small donation to the coffee box. 🙂
Shouldn't RX and TX be connected crosswise?
Hey Scriper,
Yes and no. Of course, the TX of the transmitter must be connected to the RX of the receiver. Unfortunately, the labels are not always clear. Sometimes the manufacturers also mark which pin of the remote station has to be connected.
But the good thing is that mismatching doesn't destroy anything. The only thing that doesn't work then, of course, is communication.
If in doubt, simply exchange RX for TX (or vice versa). 🙂
Best regards
Fabian
Can you still control with the 433hz rf remote after flashing with tasmota?
Hey,
yes thats possible. You can still control it via the remote. 🙂
Best regards
Fab
Which serial to usb device did you use? Do you have a link?
Hi Paul,
this one for example: https://de.aliexpress.com/item/1005001666154264.html
Best regards
Fab