logo elektroda
logo elektroda
X
logo elektroda

Alternative/new GPIO pinout of TYWE3S/ESP8285 WiFi module, Tasmota

p.kaczmarek2 
TYWE3S module with an ESP8285 chip.
Recently, while uploading Tasmota to another series of WiFi-controlled light switches, I came across something that really surprised me. It was a TYWE3S module with non-standard pinouts that did not match the Tuya documentation. Here I will provide its RX, TX and GPIO0 location and information on how to change its input in such a case.

I found the module in the Appio 9605 light switch, but from what I saw, it is repeated in the entire Appio series. It may also be found in other products.
Seemingly, it's an ordinary TYWE3S:
TYWE3S module soldered onto a PCB with connected wires for firmware flashing.
But standard flashing is not successful at all. For this reason, I desoldered it with hot-air:
TYWE3S module on a circuit board next to a hot-air tool.
I also removed the screen and started analyzing:
TYWE3S module with open shield next to a circuit board.
There is no ESP8266 + SPI Flash set inside, only ESP8285 with built-in 2MB memory.
TYWE3S module with ESP8285 chip visible after removing the shield.
This TYWE3S has no GPIO information on the description layer:
TYWE3S module with non-standard pinout. View of the TYWE3S module with non-standard pinouts.
TYWE3S module with exposed ESP8285 chip. Close-up of the TYWE3S module with ESP8285 chip.
I was about to analyze the PCB carefully to see what goes where, but I found mentions of this module on the Internet:
https://github.com/arendst/Tasmota/discussions/16500
TYWE3S WiFi module with marked pins: RX, TX, GPIO0, GND, and 3V3.
After soldering the wires according to the alternative pinout, I managed to upload Tasmota:
TYWE3S module with soldered wires on a wooden surface
I flashed according to: https://www.elektroda.pl/rtvforum/topic3990951.html
Then I soldered the module into place.
The module can probably be flashed into the system just like the old TYWE3S (as long as the UART port is not occupied, e.g. by TuyaMCU), but at the moment I don't know how to determine from the outside whether the encountered TYWE3S is "new" or "old"...

Summary
This module is described as TYWE3S but has pinouts that are incompatible with it. I guess only the ground and power supply are in the same place, but I didn't check other GPIOs either, because it's faster to just set 4 relays on the Tasmota and test the GPIO options one by one than to write it down. It can be distinguished from the old TYWE3S only by the fact that there is one ESP8285 under the screen, not ESP8286 + memory chip.
For reference, I will remind you of the pinouts of the old TYWE3S:
Diagram of TYWE3S module with crossed-out pin specification.
I really don't know how this could have happened and what was the motivation for such a pin swap, especially since all "newer" modules such as WB3S or CB3S have pinouts compatible with the old TYWE3S (even the UART location is the same), and here the UART is in a different place, but at least VDD/GND has not been changed, so there is probably no risk of damaging this module...
To sum up, I warn you - if you are unable to upload the firmware to TYWE3S, check if you have the version described in this topic.

About Author
p.kaczmarek2
p.kaczmarek2 wrote 12198 posts with rating 10145 , helped 580 times. Been with us since 2014 year.

Comments

KarolJuszkiewicz 28 Nov 2023 15:42

So this is a WiFi switch?! [Read more]

p.kaczmarek2 28 Nov 2023 16:09

TYWE3S is a WiFi module based on ESP8266 (or, as you can see, ESP8285), used in many Tuya products. Its documentation can be found here: https://developer.tuya.com/en/docs/iot/wifie3smodule?id=K9605ua1cx9tv ... [Read more]

KarolJuszkiewicz 04 Dec 2023 12:14

And what can you do with such a module? Since he surprised you [Read more]

p.kaczmarek2 04 Dec 2023 12:25

But are you asking about the WiFi module itself or the switch? TYWE3S is a module very similar to ESP12. Of course, you can also buy it as a module only, without an IoT device: https://obrazki.elektroda.pl/1494723800_1701688903_bigthumb.jpg... [Read more]

KarolJuszkiewicz 04 Dec 2023 12:32

I'm asking about the module itself because I'm thinking about making a WiFi camera (I'll create a topic about it later). [Read more]

%}