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.
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/sicherheitshinweise/
The links to online shops listed here are so-called affiliate links. If you click on such an affiliate link and shop via this link, Nerdiy.de receives a commission from the online shop 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. 🙂
Before you start with this article, it makes sense to read the following articles.
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.
View of the components belonging to the Sonoff iFan03.
In order for the module to be programmed, you must first open the housing and remove the circuit board.
On the module you can see at the bottom …
… a connector for six contacts.
There is a label on the back of the 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.
Programming is easiest if you first solder on a four-pole pin header.
To do this, plug the pin header into the contacts as shown and …
… solder it to the board with some solder.
When soldered, it should look like the picture.
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.
View of the connected Dupont cables on the USB-serial converter.
View of the connected Dupont cables on the Sonoff module.
Another view of the Sonoff module with the connected USB-serial converter.
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.
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.
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 it that I share these information with you, I would be happy about a small donation to the coffee box. 🙂