ITEAD Sonoff switches and sockets - cheap ESP8266 Wifi+MQTT hardware

mqtt
wifi
sonoff
Tags: #<Tag:0x00007fd322673f70> #<Tag:0x00007fd322673bd8> #<Tag:0x00007fd3226739d0>

(Chris S) #427

Sorry I got so excited about the ease of the OTA is didn’t see the context of your question :see_no_evil:


(Nadir Syed) #428

You are talking about this one?





(Garry Mitchell) #429

Yes, that is the one.


(Nadir Syed) #430

That is the one I flashed TASMOTA to.

Now trying to get ESP_EASY to flash.
Flashing tools did not work, so trying arduino IDE instead.
But I am having arduino issues right now.


(Nadir Syed) #431
New photo by Nadir Syed

(MN) #432

@NDR008: How did you flashed this. Because it’s no SONOFF. The PCB for my looks like this.


(Jerome) #433

Looks like there is a “normal” esp chip connected, so you should be able to connect/solder +3V, TX, RX, GND on the chip directly even if there’s are no pins 9n the pcb.

Can you post a side view or tell us what esp model is used there. It should be printed on the top of it.


(Nadir Syed) #434

It does not have to really be a Sonoff, but an ESP8266 based device (which it is) - the sideways looking module is the ESP8266 with very small memory.
Unfortunately, i am struggling to get ESP-easy to flash (the esp-easy guys say it should work, but I cannot find anyone who did it before).
But I definitely flashed TASMOTA.

You need to wire-up 4 wires for 3.3V, GND, UTX and URX.
GPIO0 needs to be connected to GND to put it into flash mode.


(Nadir Syed) #435

It is an ESP8266-S3:


(Jerome) #436

Thanks for the detailed answer. That’s more help than i can provide without the hardware in front of me. :slight_smile:


(Nadir Syed) #437

Surprisingly, there is no name on the chip.


(Tom) #438

I hope you remove the programming wires before using it in earnest.
The slot in the PCB through which they pass is an air gap to separate the low voltage and mains voltage areas of the board.


(MN) #439

Could you tell us which color is for what? :slight_smile:

3,3V: ??
GND: ??
UTX (TRN): ??
URX (RCV): ??

and where is GPIO0?


(Nadir Syed) #440

In my setup:

Red is 3.3
Brown is GND
Orange and Yello are TX/RX (not sure which is which).
Green is GPIO0.

However, a few posts before I added a link to the datasheet, so it is possible to figure it out too.

On the other hand - if anyone manages to flash ESP-Easy, please tell me how.

FYI - I flashed it with ARDUINO.
You need to use -DOUT mode to flash it.


(MN) #441

@NDR008: Thank you… Also for the hint with the manual :wink:
I will try this evening or tomorrow flashing with ESP_Easy, because the modul I got almost for free. I’ll report.

Regards
Michael


(Nadir Syed) #442

Gave it a go yet?


(Crimeacs) #443

Instead of asking for help I will contribute.

After I have spent 3 evenings installing OpenHab I found it useful to post my own guide, and highlight parts I’ve spent most of my time on:

Project. Sonoff S20 - OpenHab2 - Siri integration

  1. Openhabianpi is installed on Raspberry Pi as per instructions (easy, no troubles, instruction is clear)
  2. Install drivers for USB-to-Pin adapter (CP2102 in my case)
  3. Flash Sonoff S20 as described here
  4. Install Mosquitto
  5. Set-up MQTT on Sonoff as per instruction
  • Note ClientID should be different from one you give in 5.
  • Host should be external IP address (to check this, do following from terminal):
ping openhabianpi
  1. Install Homekit addon, but change port number to 51826 as suggested here
  2. Install Openhab cloud

(MN) #444

Till now no success with flashing TASMOTA

Using PlatformIO and Arduino. Sketch will be compiled, but uploading hangs. If I start the module in normal mode, I see something on the Serial Monitor, but only garbage.
Speed is 115200. Is this correct? I also set the mode to DOUT

In Arduino I select “Generic ESP”


(Nadir Syed) #445

I am having issues to reflash too even though I managed last time.

Check your Arduino settings against this:


(Nadir Syed) #446

Describe the hangs too.