Welcome to our Knowledge Base

Sonoff Mini OTA Tasmota Conversion (Legacy)

You are here:
< Back

Preinstall Setup

  1. Verify and/or update eWelink firmware version
  2. If quick pairing doesn’t work, use alternative pairing method
  3. Download the Sonoff DIY tool_01DIY85 from Github
  4. Install the DIY Jumper
  5. Modify your PC configuration to provide a Mobile hotspot:
    SSID: sonoffDiy (case sensitive!)
    Password: 20170618sn

Flash Initial Firmware

  1. Start the tool_01DIY85 utility and select firmware flash
  2. Select a Tasmota binary (e.g., tasmota-wifiman.bin) or your own self-compiled binary. It must fit in the available free program space. You can use the 2.3.0 Core for this initial flash since it has the smallest program memory footprint.  Do NOT use the tasmota-minimal pre-compiled binary as it does not allow you to change any settings.
  3. Quit DIY mode tool
  4. Stop mobile hotspot
  5. Power off the device and remove DIY jumper as it is no longer needed and might interfere with future Tasmota features that use GPIO16

Post Installation Setup

  1. Set up Wi-Fi to connect your device to your network
  2. Perform a Reset 5 to wipe any flash remnants BEFORE attempting a Tasmota OTA flash for the first time
  3. If you flashed tasmota-wifiman.bin, it is recommended that you upgrade to the firmware and Core variant that is needed for your device and use case (e.g., tasmota.bin). You must perform this update using the local File upload OTA. Do not use a web OTA for this step. Download the firmware file from the repository to your computer.Some users have reported that upgrading via web OTA from tasmota-wifiman.bin to another binary has resulted in an unresponsive device which has required a wired flash to recover.

Configuration Details

Once the desired firmware is on the device, continue the regular Tasmota setup process. Use the the appropriate Template from the repository to assign the device components to the GPIO pins. For example, the Sonoff Mini template assigns these GPIO:


GPIO
Tasmota
Component
Device
Function
0Button1 (17)Button
4Switch1 (9)S1/S2
12Relay1 (21)L Out
13LED1 (56)Link/Power Indicator

Sonoff Mini Relay

GLOBAL

Sonoff Mini
GPIO #Component
GPIO00Button1
GPIO01None
GPIO02None
GPIO03None
GPIO04Switch1
GPIO05None
GPIO09None
GPIO10None
GPIO12Relay1
GPIO13Led1i
GPIO14None
GPIO15None
GPIO16User
FLAGNone
{"NAME":"Sonoff Mini","GPIO":[17,0,0,0,9,0,0,0,21,56,0,0,255],"FLAG":0,"BASE":1}

Several free GPIO are available. The OTA jumper pin is the most accessible and very easy to use on a pin header.

PCB with GPIO's etc labelled
GPIODescription
0Button
1TX
2Available
3RX
4S2 (external switch input)
12Relay and red LED
13Blue LED
16OTA jumper pin
GNDS1 (external switch input)

References

Video tutorials

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Table of Contents