Yewelink/Tuya WiFi Touch wall light switch
Moderators: grovkillen, Stuntteam, TD-er
Re: Yewelink/Tuya WiFi Touch wall light switch
inside
- Attachments
-
- P80519-180556.jpg (731.16 KiB) Viewed 641060 times
Re: Yewelink/Tuya WiFi Touch wall light switch
the following
(resized image is better ...)
(resized image is better ...)
- Attachments
-
- P80519-180625.jpg (43.26 KiB) Viewed 641059 times
Re: Yewelink/Tuya WiFi Touch wall light switch
Nice! The four pins on the left side i think will be the VCC-RX-TX-GND, started with the sqaured one.
But i do not see any serial MCU on this device.
Re: Yewelink/Tuya WiFi Touch wall light switch
there is a world on the other side of the first pcbBut i do not see any serial MCU on this device.
- Attachments
-
- P80519-180709.jpg (41.12 KiB) Viewed 641050 times
Re: Yewelink/Tuya WiFi Touch wall light switch
I see one "CR302 B751T004BG" ??? what's this ?
and
I see one "8S103F3P6" :
this is 8bit MCU STM8S in tssop20 case
http://www.st.com/content/ccc/resource/ ... 226640.pdf
the four pin with the one square is not VCC-RX-TX-GND
is not connected to esp8266mod but is just connected to MCU
is VCC- SWIM-GND-NRST
the pin SWIN (Single Wire Interface Module) is communication protocol and debug module
http://www.st.com/content/ccc/resource/ ... 173911.pdf
the pin 21(U0RXD ) of ESP8266mod is connected to pin 2(UART1_TX) of MCU
the pin 22(U0TXD ) of ESP8266mod is connected to pin3(UART1_TX) of MCU
So even if the components and the jtag are not exactly the same, it seems that the logic remains the same. a esp8266 that manages only the wifi and communicates via tx rx has an MCU that manages all the hardware. it remains to be supossed that on Tx Rx transits the game of classic command of "tuya"
and
I see one "8S103F3P6" :
this is 8bit MCU STM8S in tssop20 case
http://www.st.com/content/ccc/resource/ ... 226640.pdf
the four pin with the one square is not VCC-RX-TX-GND
is not connected to esp8266mod but is just connected to MCU
is VCC- SWIM-GND-NRST
the pin SWIN (Single Wire Interface Module) is communication protocol and debug module
http://www.st.com/content/ccc/resource/ ... 173911.pdf
the pin 21(U0RXD ) of ESP8266mod is connected to pin 2(UART1_TX) of MCU
the pin 22(U0TXD ) of ESP8266mod is connected to pin3(UART1_TX) of MCU
So even if the components and the jtag are not exactly the same, it seems that the logic remains the same. a esp8266 that manages only the wifi and communicates via tx rx has an MCU that manages all the hardware. it remains to be supossed that on Tx Rx transits the game of classic command of "tuya"
Last edited by dxfantome on 02 Jun 2018, 21:04, edited 1 time in total.
Re: Yewelink/Tuya WiFi Touch wall light switch
no esp8266 pin is connected to the strange chip "cr302 ..."
hte pin 18 of esp8266mod is connected to MCU 8S103F3P6 pin 1 (UART1_CK)
no another pin of esp is connected to the mcu, nor to the various jtag
hte pin 18 of esp8266mod is connected to MCU 8S103F3P6 pin 1 (UART1_CK)
no another pin of esp is connected to the mcu, nor to the various jtag
Re: Yewelink/Tuya WiFi Touch wall light switch
Did you have any issues flashing. I'm trying to figure out how things work since the microcontroller is also connected to the ESP8266 uart line RX/TX pins, you'd end up having multiple devices possibly driving those pins.
Re: Yewelink/Tuya WiFi Touch wall light switch
Sounds logical to me, as it has to control three seperate dimmers.dxfantome wrote: ↑02 Jun 2018, 17:02
the pin 21(U0RXD ) of ESP8266mod is connected to pin 2(UART1_TX) of MCU
the pin 22(U0TXD ) of ESP8266mod is connected to pin3(UART1_TX) of MCU
So even if the components and the jtag are not exactly the same, it seems that the logic remains the same. a esp8266 that manages only the wifi and communicates via tx rx has an MCU that manages all the hardware. it remains to be supossed that on Tx Rx transits the game of classic command of "tuya"
Anyone got this flashed yet? I think we might have to connect to the esp pins directly to get thing working.
I’m a little worried about we’ll control the dimmers through espeasy, but let’s get it flashed first.
Re: Yewelink/Tuya WiFi Touch wall light switch
So, I was able to flash this anonymous dimmer, only to discover the default ESPEasy does not work. Flashing did work however.
I had to make the connections to the ESP manually "by hand", as you can see in the photo's. Not easy and you have to keep your hand really steady, but it worked. You can't really see, but I'm holding two pins (RX and TX). The yellow wire holds GPIO0 down.
Sorry for using similar colors, they don't come out right in the photo. Wiring is as follows:
- Brown = GDN
- Bright yellow = VCC 3.3V (next to brown)
- Darker yellow = GPIO0, attached to GND
- Red - TXD
- Green - RXD
I flashed the standard ESPEasy_R120_4096.bin, which did not work and ESPEasy_Mega_P165_4M_1MS_lwip20 from this discussion. Neither caused the ESP_-access point to show.
Reattaching the board to the rest of the device make all LEDs light up - it knows somethings wrong !
Will try more later.
I had to make the connections to the ESP manually "by hand", as you can see in the photo's. Not easy and you have to keep your hand really steady, but it worked. You can't really see, but I'm holding two pins (RX and TX). The yellow wire holds GPIO0 down.
Sorry for using similar colors, they don't come out right in the photo. Wiring is as follows:
- Brown = GDN
- Bright yellow = VCC 3.3V (next to brown)
- Darker yellow = GPIO0, attached to GND
- Red - TXD
- Green - RXD
I flashed the standard ESPEasy_R120_4096.bin, which did not work and ESPEasy_Mega_P165_4M_1MS_lwip20 from this discussion. Neither caused the ESP_-access point to show.
Reattaching the board to the rest of the device make all LEDs light up - it knows somethings wrong !
Will try more later.
Re: Yewelink/Tuya WiFi Touch wall light switch
OK, so a neighboring project is a little ahead of us here: https://github.com/arendst/Sonoff-Tasmota/issues/469
Re: Yewelink/Tuya WiFi Touch wall light switch
The neighboring project uses 1M firmware with no SPIFFS, and esptool with "dout" mode, i suppose you did not.zedd wrote: ↑22 Jun 2018, 11:34 I flashed the standard ESPEasy_R120_4096.bin, which did not work and ESPEasy_Mega_P165_4M_1MS_lwip20 from this discussion. Neither caused the ESP_-access point to show.
Reattaching the board to the rest of the device make all LEDs light up - it knows somethings wrong !
Will try more later.
Re: Yewelink/Tuya WiFi Touch wall light switch
I never heard this brand. But I like it
Smart home will finally come in our future living.
Knowing how to run a smart home device is sufficient and necessary.
Knowing how to run a smart home device is sufficient and necessary.
Re: Yewelink/Tuya WiFi Touch wall light switch
I got this similar device today but unfortunately I cannot get it into reset mode to pair with phone app. So I decided, if I can flash it with different firmware and found this post.enesbcs wrote: ↑28 Jun 2018, 07:12The neighboring project uses 1M firmware with no SPIFFS, and esptool with "dout" mode, i suppose you did not.zedd wrote: ↑22 Jun 2018, 11:34 I flashed the standard ESPEasy_R120_4096.bin, which did not work and ESPEasy_Mega_P165_4M_1MS_lwip20 from this discussion. Neither caused the ESP_-access point to show.
Reattaching the board to the rest of the device make all LEDs light up - it knows somethings wrong !
Will try more later.
Did you guys able to flash it and get it worked? If so, how.
By the way, the
is a capacitaive touch ICCR302 B751T004BG
Re: Yewelink/Tuya WiFi Touch wall light switch
Hello All, Need help regarding Tuya 4 gang Wifi Touch Wall light switch.
It has TYWE3S with esp8266 wifi chip. It also has MCU. I want to reprogram it and want to use it in home assistant. I also attaching its board view. Does anybody have its schematic or GPIO function list or some helpful material?
Also what is the IC number of MCU?
It has TYWE3S with esp8266 wifi chip. It also has MCU. I want to reprogram it and want to use it in home assistant. I also attaching its board view. Does anybody have its schematic or GPIO function list or some helpful material?
Also what is the IC number of MCU?
- Attachments
-
- 4 gang wifi switch pcb_4.jpg (289.51 KiB) Viewed 630305 times
Who is online
Users browsing this forum: Google [Bot] and 136 guests