Please see the Hardware Preparation page for general instructions.
Sonoff 4CH and Sonoff 4CH R2 use the same configuration but have slightly different boards. Check which version you own before proceeding.
Attention: The printed labels on the PCB for RX and TX may be incorrectly swapped as can be seen on the image. Regardless of the labels, the pin next to VCC33 is RX.
The Sonoff 4CH features four hardware buttons. Button marked FW/IO0 is connected to GPIO0 and can be used to bring the module into flash mode.
Sonoff 4CH R2
Board is labelled Sonoff 4CH R2 V1.0.
The RX and TX pins are correctly labelled on this PCB revision. The button labelled IO0 is connected to GPIO0 and can be used to bring the module into flash mode.