Sonoff Basic - FengtianGu/Sonoff-Tasmota GitHub Wiki

Sonoff Basic - the one that started it all!

Serial Flashing

Please see the Hardware Preparation page for general instructions.

You need to access the serial interface. The four serial pins (3V3, Rx, Tx, GND) are available in the middle of the PCB, right next to the on-board button. Newer version of the Sonoff module provide five pins below the button, ignore the pin furthest away from the Button (GPIO14 or I02) if available. The square pin right next to the button is the 3.3V line.

For flashing the sonoff basic V1.1, please hold the button while connecting the Plus Pole. The LED remains off until the flashing process is done and the board is rebooted.

The Sonoff Basic switch doesn't have memory to support all of the default services defined in user_config.h out of the box. If your switch is powering up but is showing a solid-blink-reset pattern see this FAQ entry for advice.

Sonoff Basic R2

Around November 2018, Itead changed the layout of the Sonoff Basic (issue #4515). The new board is labeled as Sonoff RF R2 POWER V1.0. Easily discerned from previous revisions by since its using wires instead of thick solder traces for mains power.

The new version of Sonoff Basic uses an ESP8285 SoC.

GPIO14 is no longer broken out to a contact on the PCB. Instead you can use GPIO2 labeled as IO2 on the board. Take care that GPIO2 is not being pulled low when the device is booting. Otherwise, the device will not boot into its regular operational mode.

Alternatively, you can use use GPIO3 which does not have any boot function restrictions. However, both of these GPIO are pulled high momentarily after boot. This means that any connected device may "blink" when the Sonoff is powering up.

Unlike GPIO3, the GPIO2 PCB contact is not prepared for a pin. You will need to solder your cable directly on the board. Be careful. Too high a temperature or long heating can damage the contact and its connectivity. You should also make sure that there is no tension on the cable. Affix the cable with a cable tie and perhaps some hot glue.

  • GPIO0 = BUTTON
  • GPIO2 = IO2 (no pullup)
  • GPIO12 = RELAY
  • GPIO13 = LED1

GPIO2 as a user configurable input is implemented in Sonoff Basic module since 6.3.0.15.

As an alternative to GPIO14 you can remove the bi-colour LED and use GPIO13 as input

use gpio13

You can remove the thick wires from the PCB to use the screw connection on the output side for low voltage. Then add a screw terminal next to the relay for the LINE OUT. This keeps all high voltage on one side of the board

Sonoff Basic R1

This is the board layout for first board version of Sonoff Basic.

gpios

  • GPIO 03 - RX PIN
  • GPIO 01 - TX PIN
  • GPIO 04 - Second image (must solder wire to pin on ESP chip)
  • GPIO 14 - Below GND PIN

pinout

gpio 14

Official Sources