Controller Features


WeMos D1 mini controller

Recommended controller for most projects

Uses ESP8266, memory from 4MB for the regular model and 16MB for the WeMos D1 mini Pro variant.

To load the firmware, simply connect to a computer via micro-USB cable. Sometimes it is required to install a driver depending on which chip is installed CP2104 or CH340g. It is not necessary to pinch or short any pins. SPI Mode: DIO. The board has an LED on GPIO2 and a Reset button. Most of the projects initially have GPIO settings, assuming that they will be loaded to the WeMos D1 mini controller. Of the specifics, the following can be noted:

  • GPIO0 - normally not used, should be high when turned on
  • GPIO1 and GPIO3 - we usually use them for the I2C-bus
  • GPIO2 - used to control the built-in LED
  • GPIO17 - ADC input with normalization (maximum voltage up to 3.3V)
  • GPIO16 - cannot be used for interrupts
  • GPIO15 - usually used to supply power to sensors (if required), must be low when enabled


Sonoff Basic Controller

2017 model

Uses ESP8266, 1MB PN25F08B memory (DOUT mode).

A USB-UART-TTL adapter is required to load the firmware, which is connected via GPIO1, GPIO3. For flashing it is obligatory to disconnect external power supply! GPIO0 button is pressed and 3.3V power is supplied through the adapter. SPI Mode: DOUT. After flashing, the same GPIO1 and GPIO3 pins are used as I2C bus. The controller confidently works with two devices:

  • via GPIO12 - built-in relay for 220V, recommended max. load power 500W
  • through GPIO14 - external relay is connected


Sonoff Dual controller

Model of 2017

Uses ESP8266, 1MB PN25F08B memory (DOUT mode).

A USB-UART-TTL adapter is required to load the firmware, which is connected via GPIO1, GPIO3. The external power supply must be disconnected for flashing! GPIO0 pin is connected to GND and 3.3V power is supplied through an adapter. SPI Mode: DOUT. After flashing, the same GPIO1 and GPIO3 pins are used as I2C bus. The controller confidently works with three devices:

  • via GPIO5 - built-in relay for 220V, recommended max. load power 500W
  • via GPIO12 - built-in relay for 220V, recommended max. load power 500W
  • via GPIO9 - external relay is connected