-
Notifications
You must be signed in to change notification settings - Fork 1
Hardware Preparation
You need to make the serial programming interface of the Sonoff module / the ESP8266 microchip available. In most cases the pins are available on the PCB but connectors need to be soldered or otherwise applied to allow interfacing. You'll furthermore need a USB UART TTL 3.3V Converter/Programmer (e.g. CP2102, CH340G, FT232, PL2303) (or if available use your RaspberryPi).
Be careful - some so called 3V3 FTDI cables actually supply 5v on the VCC line. I suggest you measure before connecting to your Sonoff.
Do not connect AC power and the serial connection at the same time
Shorting your serial interface with AC will fry your module or programmer and may also harm or destroy your PC. If you are not careful, your own health might be in danger. Always make sure to have all high power cables disconnected from the Sonoff module while being connected via serial/USB or even while the case of the module is opened.
The following table shows the connection between the connectors of the programmer and the modules. Pay attention to crossed RX and TX lines.
Programmer | Sonoff Module |
---|---|
3V3 | 3V3 / VCC |
TX | RX |
RX | TX |
GND | GND |
Some Sonoff modules expose a five pin header. The fifth pin is irrelevant for the serial connection. Please check the specific module pages to find out more.
The "brain" of the Sonoff module (normally the ESP8266) needs to be put into Flash Mode before the Sonoff-Tasmota firmware can be transferred. This is done by pulling the GPIO0 pin to GND while the chip is booting. On most modules the installed control button is connected to GPIO0 and GND, making entering Flash Mode very easy. On other modules you will need to connect pins on the PCB. See device specific articles for details.
To bring a Sonoff module into Flash Mode:
- Disconnect serial programmer and power
- Connect GPIO0 and GND (e.g., by pressing the on-board button or connection via cable)
- Connect the serial programmer (VCC, RX, TX, GND), e.g. by connecting the belonging USB cable
- Disconnect GPIO0 from GND (after one-two seconds)
If everything went well, you are now in Flash Mode and ready to continue with the Sonoff-Tasmota firmware Upload. If the upload is not able to start, disconnect the module and start the hardware preparations from the beginning.
Check the module specific instructions and restrictions documented in the device specific articles linked in the menu on the right 🡺
- Sonoff Basic
- Sonoff Dual
- Sonoff RF
- Sonoff Pow and Pow R2
- Sonoff Touch
- Sonoff 4CH / 4CH Pro
- ... (see menu on the right)
Home | Wiki | What's new | Tutorials | FAQ | Troubleshooting | Button usage | Commands | Rules
Home
Theo's Tasmota Tips
What's New
Getting Started
Upload tools
- SonOTA
- OTA over SCP
- Esptool
- Arduino IDE
- PlatformIO
- PlatformIO CLI
- Visual Studio Code
- Python HTTP OTA server
- Node Red OTA server and firmware manager
Usage
- Button Functionality
- MQTT Features
- Supported Commands
- Using Rules
- Sensor Configuration
- PowerOnState Configuration
- SwitchMode/SwitchTopic
- Button Multipress
- Energy Saving
- KNX Features
- Misc. Tips
Devices - Additional Info
- Sonoff Basic
- Sonoff SV
- Sonoff S20 Smart Socket
- Sonoff S26 Smart Socket
- Sonoff Dual / Dual R2
- Sonoff 4CH / 4CH Pro
- Sonoff RF and Slampher
- Sonoff RF Bridge 433
- Sonoff Pow / Pow R2
- Sonoff Touch
- Sonoff T1
- Sonoff B1 / B1 R2
- Sonoff iFan02
- Sonoff SC
- Sonoff PSA
- Sonoff S31
- Shelly 1 and 2
- Wemos D1 R1 & R2
- Wemos D1 Mini
- HuaFan Smart Socket
- Hyleton-313 Smart Plug
- MagicHome LED controller
- H801
- Arilux LC02
- SP108E LED controller
- Blitzwolf SHP2
- Tuya Dimmer
- PS-16-DZ Dimmer
- Armtronix Dimmers
- Other Devices
- retired
Home Automation Integration
- OpenHAB
- Home Assistant
- Domoticz - Manual configuaration
- Domoticz - Automatic discovery
- HomeBridge
- HomeSeer
- SmartThings
- IP-Symcon
- IOBroker
- TasmoAdmin
- Alexa
- Yeti
- NodeRed Examples
- Securing your Setup
Other Integrations
Further Topics
- MQTT Overview
- Remote Button
- Modified Kaku
- PZEM004T Energy Monitor
- IR Extension
- S20 sensor
- Wiring additional things to a module
- Sonoff Basic DHT11 Wiring
- Expand Sonoff 4CH with jack plug
- Defining new module types
- GPIO Locations
- JSON Status Responses
- Expand Sonoff Basic to 4MB Flash
- Time Proportioned Output support
- PID Control with Sonoff Devices
- Sensor-API
- Sensors Supported by Tasmota
- Syslog Setup
ESP32
Misc