Re-arranged some misplaced R2/R1 information. Added back photo credit requested by @amayii0

Michael Ingraham 2019-05-28 09:39:14 -04:00
parent 971dcdc52f
commit ce1b6ea471
1 changed files with 23 additions and 25 deletions

@ -6,29 +6,30 @@ Please see the [Hardware Preparation](https://github.com/arendst/Sonoff-Tasmota/
<img alt="Sonoff Basic connection diagram" src="https://user-images.githubusercontent.com/2870104/30516551-ed12d69e-9b42-11e7-8373-1bfbbf346839.png" width="50%" align="right" />
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.
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 versions of the Sonoff Basic device 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.
For flashing the Sonoff Basic, hold the button while connecting the 3.3V power. 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.](https://github.com/arendst/Sonoff-Tasmota/wiki/Troubleshooting#running-out-of-memory)
If your switch is powering up but is showing a solid-blink-reset pattern see [this FAQ entry for advice](https://github.com/arendst/Sonoff-Tasmota/wiki/Troubleshooting#running-out-of-memory).
- GPIO00 - BUTTON
- GPIO12 - RELAY
- GPIO13 - LED1
* GPIO03 - RX PIN
* GPIO01 - TX PIN
### Sonoff Basic R2
Around November 2018, Itead changed the layout of the Sonoff Basic ([issue #4515](https://github.com/arendst/Sonoff-Tasmota/issues/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.
Around November 2018, Itead changed the layout of the Sonoff Basic ([issue #4515](https://github.com/arendst/Sonoff-Tasmota/issues/4515)). The new board is labeled as **Sonoff RF R2 POWER V1.0**. It is easily discerned from previous revisions since it uses wires instead of thick solder traces for mains power.
The new version of Sonoff Basic uses an ESP8285 SoC.
The new version of the Sonoff Basic smart switch uses an ESP8285 SoC with the 1MB flash integrated into the same SoC chip.
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.
GPIO14 is no longer broken out to a contact on the PCB. Instead, GPIO02 (no pullup) is broken out. It is labeled as `IO2` on the board. To use GPIO02, _**take care that it 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 GPIO03 (Rx)](https://www.youtube.com/watch?v=yavDqDzRdUk) 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.
Alternatively, you can use [use GPIO3](https://www.youtube.com/watch?v=yavDqDzRdUk) 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 GPIO03, the GPIO02 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.
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.
> GPIO02 as a user configurable input is implemented in the [Sonoff Basic module](Modules) (introduced in 6.3.0.15). If you use GPIO03, you must use a [device template]() (rather than selecting the Sonoff Basic module), and also disable serial logging ([`SerialLog 0`](Commands#seriallog)).
[<img src="https://camo.githubusercontent.com/7ee22f14cc707c04fa8ac357e4dd2a05da63852e/68747470733a2f2f7331352e64697265637475706c6f61642e6e65742f696d616765732f3138313132382f76653971673936382e6a7067" width="200" alt="label">
](https://camo.githubusercontent.com/7ee22f14cc707c04fa8ac357e4dd2a05da63852e/68747470733a2f2f7331352e64697265637475706c6f61642e6e65742f696d616765732f3138313132382f76653971673936382e6a7067)
@ -36,25 +37,22 @@ Unlike GPIO3, the GPIO2 PCB contact is not prepared for a pin. You will need to
[<img src="https://raw.githubusercontent.com/reloxx13/reloxx13.github.io/master/media/tasmota/sonoff-basic-r2/back.jpg" width="200" alt="back">](https://raw.githubusercontent.com/reloxx13/reloxx13.github.io/master/media/tasmota/sonoff-basic-r2/back.jpg)
[<img src="https://raw.githubusercontent.com/reloxx13/reloxx13.github.io/master/media/tasmota/sonoff-basic-r2/chip.jpg" width="200" alt="chip">](https://raw.githubusercontent.com/reloxx13/reloxx13.github.io/master/media/tasmota/sonoff-basic-r2/chip.jpg)
As an alternative to GPIO14 you can remove the bi-colour LED and use GPIO13 as input
![use gpio13](https://user-images.githubusercontent.com/47423730/52523999-1c1fad80-2c98-11e9-9b86-f50d82ff18cc.jpg)
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
![](https://user-images.githubusercontent.com/47423730/52523999-1c1fad80-2c98-11e9-9b86-f50d82ff18cc.jpg)
## Sonoff Basic R1
This is the board layout for first board version of Sonoff Basic.
![gpios](https://cdn.instructables.com/F8Q/0U89/J1WEQK7J/F8Q0U89J1WEQK7J.MEDIUM.jpg)
* 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
_(Image re-used from https://www.instructables.com/id/Use-Homie-Firmware-to-Drive-Sonoff-Switch-Module-E/ Thanks @amayii0)_
**Usable GPIO:**
- GPIO14 is broken out on the PCB adjacent to the GND pin.
![pinout](http://tinkerman.cat/wp-content/uploads/2016/06/pinout_back.jpg)
![gpio 14](http://evertdekker.com/wp/wp-content/gallery/sonoff/p1010285.jpg)
- GPIO13 - You must remove the bi-colour LED
- GPIO04 - You must solder wire to pin on ESP chip
![gpio 04](http://evertdekker.com/wp/wp-content/gallery/sonoff/p1010285.jpg)
## Official Sources
* [Itead Product Page](http://sonoff.itead.cc/en/products/sonoff/sonoff-basic)