logo elektroda
logo elektroda
X
logo elektroda

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

p.kaczmarek2 4704 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • 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.

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 11844 posts with rating 9941, helped 566 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 20837223
    KarolJuszkiewicz
    Level 12  
    So this is a WiFi switch?!
  • ADVERTISEMENT
  • #3 20837253
    p.kaczmarek2
    Moderator Smart Home
    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
    In addition, there are also similar modules, such as TYWE2S, also for ESP, and modules on other systems, but compatible with pinouts (more or less), such as CB3S or WB3S.

    These types of modules can be found in various types of WiFi-controlled devices, for example in WiFi switches, or thermostats, or smart sockets (usually TYWE2S/CB2S/WB2S), and so on. Even in Blitzwolf's "smart fryer" (whatever it is) I saw TYWE3S.

    All this is interesting because such products can then be changed from a WiFi module to some open source software in order to free the device from the cloud and modify it at will.

    The full list of IoT devices we describe can be found in the link below:
    https://openbekeniot.github.io/webapp/devicesList.html
    The search engine supports searching by name, keyword and module name (enter "TYWE3S", select ESP and search)
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #4 20845831
    KarolJuszkiewicz
    Level 12  
    And what can you do with such a module? Since he surprised you
  • ADVERTISEMENT
  • #5 20845841
    p.kaczmarek2
    Moderator Smart Home
    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:
    Image of four ESP8266-12F WiFi modules with price offers.
    In the normal, popular version, TYWE3S has pinouts compatible with ESP12, but in this topic I am describing its alternative version, where the pinouts are completely mixed up (except ground and power supply).

    You can implement many interesting projects on ESP12, e.g.:
    Clock on ESP12 and MAX7219 display - tutorial - part 1, ArduinoOTA, basics
    Helpful post? Buy me a coffee.
  • #6 20845849
    KarolJuszkiewicz
    Level 12  
    p.kaczmarek2 wrote:
    But are you asking about the WiFi module itself or the switch?

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