This is a tutorial about how to flash custom firmware onto the ESP8266 in the Sonoff Wireless Smart Switch. The Sonoff is a low cost mains relay with a fully customisable ESP8266 inside. Great for home automation hacking!

Parts list
-
Sonoff TH10 or TH16
-
A USB to TTL dongle CH340G (FT232RL or PL2303 based will also do), to flash the new firmware.
-
A 3.3V breadboard power supply (only required for testing, safer than using mains!)