Yewelink/Tuya WiFi Touch wall light switch

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Yewelink/Tuya WiFi Touch wall light switch

#1 Post by enesbcs » 20 Jun 2017, 01:21

It can be found on ebay as "WiFi Touch Wall Switch Compatible Work with Alexa", and look likes as the following pictures shows. 1-2-3 button and black/white version also available.
Image
With the 64x57mm size of its back, it will not fit in neither 65mm nor 80mm diameter in-wall socket. Maybe in external mounting box will do...
Image

It has an app named Yewelink, tried with it, sniffed the communication with Wireshark: after a short check-in to taobao.com the device logged in to the Amazon cloud. Also see some kind of MQTT communication, but i want to use my own server. (I do not like cloud based solutions)
So i opened it, found an ESP8266MOD inside.
Image
Found the RX, TX, GND on the 2x7 pin JP1, and a possible 3.3V location. (orange cable connected on picture)
Image
Image
On ESP8266 the GND has to be connected to GPIO0 at startup, than disconnect, after that it can be flashed with esptool (dio, 4mbit...)
I flashed with ESPEasy R120, but unfortunately this model does not have connected any relay to any GPIO of the ESP. Only ESP8266 RX/TX connected to a PIC16F1829 and the PIC is the main controller. Added Ser2Net device and try to listen packets. I hoped it will similar to Sonoff Dual, but i have no luck, packets were really different.
Fortunately i have found "Serial Communication Protocol Standard Edition" at https://docs.tuya.com/en/download/

I have created a working plugin and i added it to the Software section of this forum.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Yewelink/Tuya WiFi Touch wall light switch

#2 Post by papperone » 20 Jun 2017, 08:26

Great Job!
As I'd like to learn on this devices, do you know if by chance schematic and/or PCB are available??
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#3 Post by enesbcs » 20 Jun 2017, 21:42

papperone wrote:
20 Jun 2017, 08:26
Great Job!
As I'd like to learn on this devices, do you know if by chance schematic and/or PCB are available??
Thank you! I have asked API-s (or any documentation) from the ebay seller and also the manufacturer Yewelink, with no success. There are some PCB and general information on https://docs.tuya.com/en/hardware/Tuya- ... de3.0_pcb/ , but for this item that i bought it on ebay unfortunately neither is valid.
I was able to trace some of the lanes with multimeter, so i can tell which legs of the PIC16F1829 is on which pin of the 2x7 JP1 connector, and i found out which pin of the JP1 connector controls the relays.
There are several parts that i can not recognise, because it's far beyond my knowledge, and the PCB is multi-layered. I identified the PIC16F1829, ESP8266MOD, AMS1117, PN 8024R, and a Churod A1-S-112IA relay 12V/250V.

If you want to learn similar devices i recommend you JanGoe's ESP8266-Wifi-Relay or the ESPURNA.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Yewelink/Tuya WiFi Touch wall light switch

#4 Post by papperone » 20 Jun 2017, 23:53

enesbcs wrote:
20 Jun 2017, 21:42
papperone wrote:
20 Jun 2017, 08:26
Great Job!
As I'd like to learn on this devices, do you know if by chance schematic and/or PCB are available??
Thank you! I have asked API-s (or any documentation) from the ebay seller and also the manufacturer Yewelink, with no success. There are some PCB and general information on https://docs.tuya.com/en/hardware/Tuya- ... de3.0_pcb/ , but for this item that i bought it on ebay unfortunately neither is valid.
I was able to trace some of the lanes with multimeter, so i can tell which legs of the PIC16F1829 is on which pin of the 2x7 JP1 connector, and i found out which pin of the JP1 connector controls the relays.
There are several parts that i can not recognise, because it's far beyond my knowledge, and the PCB is multi-layered. I identified the PIC16F1829, ESP8266MOD, AMS1117, PN 8024R, and a Churod A1-S-112IA relay 12V/250V.

If you want to learn similar devices i recommend you JanGoe's ESP8266-Wifi-Relay or the ESPURNA.
Thanks, I knew both of those boards, but they both use the "chucky" and big PLM-HK01 transformer while in the one you showed it seems the power wupply is not a switching-trafo but a transformerless circuit I'd like to understand abe able to reproduce... Guess the only option is to order one by myself, can you post links to the one you bought?
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#5 Post by enesbcs » 21 Jun 2017, 07:50

papperone wrote:
20 Jun 2017, 23:53
Thanks, I knew both of those boards, but they both use the "chucky" and big PLM-HK01 transformer while in the one you showed it seems the power wupply is not a switching-trafo but a transformerless circuit I'd like to understand abe able to reproduce... Guess the only option is to order one by myself, can you post links to the one you bought?
Sure, i bought it from ostaring, not a high rated seller, but after 1 month, the device arrived to Europe from China. :)
I assume that some way it use the Churod relay 12V to transform it down. I suspect the big black rounded part without any label near the relay is doing the magic. (on third picture)

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Yewelink/Tuya WiFi Touch wall light switch

#6 Post by papperone » 21 Jun 2017, 10:13

thanks, looking closely at the pictures, the only components that I cannot identify is IC1 (the small 8 pin chip in the bottom); will you be able to read his data on top?
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#7 Post by enesbcs » 21 Jun 2017, 17:04

papperone wrote:
21 Jun 2017, 10:13
thanks, looking closely at the pictures, the only components that I cannot identify is IC1 (the small 8 pin chip in the bottom); will you be able to read his data on top?
The 8 pin chip close to C1 is a PN8024R

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#8 Post by enesbcs » 08 Jul 2017, 21:18

I've found another WiFi light switch, i hope it also will be a Tuya clone with ESP8266.. I've ordered today and waiting. It's EU version with rounded back according the pictures.

update: it's arrived, i've disassembled it to see what's inside.

Real EU version, with rounded back, neutral line needed, also an on unusual place.
Image
The ESP-12F module had a really interesting place above the first button directly under the glass. ESP module UART directly attached to a dedicated MCU, and the MCU controls the relays. (NO ESP GPIO used, UART seems standard Yewelink/Tuya solution)
Image
In the inside it looks like a bit crowded:
Image
Sorry for the quality, my LG phone is not a photo machine.
Image
Image

ESP UART is not accessible through pins, as the previous model, instead it need some soldering, i think... if i had some time, i will flash it with ESPEasy. I've found 3.3V&GND pins to ESP, other pins connects the relays with the MCU as i see.

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#9 Post by enesbcs » 20 Aug 2017, 18:34

enesbcs wrote:
08 Jul 2017, 21:18
I've found another WiFi light switch, i hope it also will be a Tuya clone with ESP8266.. I've ordered today and waiting. It's EU version with rounded back according the pictures.
Update: It's definitely a Tuya clone! With ESPEasy P165 plugin this touch wall light switch works!
Image

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#10 Post by enesbcs » 07 Nov 2017, 21:55

I've found another potential Tuya clone.
Currently i do not have this yet, but it's mobile app (named "Jinvoo Smart") contains evidence that it is licensed from Tuya, such as the previous "Yewelink" WiFi touch light switch. :)
https://www.ebay.com/itm/New-EU-Type-2- ... 2572146126

Image

countcobolt
Normal user
Posts: 29
Joined: 12 Jun 2017, 11:12

Re: Yewelink/Tuya WiFi Touch wall light switch

#11 Post by countcobolt » 22 Jan 2018, 16:27

Heyhey

can you confirm that this EU version works? I would like to set up these as simple "dummy" switches (basically set the switch for another Sonoff switch)

Kind regards

Steve

NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Yewelink/Tuya WiFi Touch wall light switch

#12 Post by NDR008 » 22 Jan 2018, 17:45

That would be nice - me too. :)

NDR008
Normal user
Posts: 35
Joined: 15 Jan 2018, 09:24

Re: Yewelink/Tuya WiFi Touch wall light switch

#13 Post by NDR008 » 23 Jan 2018, 11:40

Actually, I am just wondering, ESP's were first used by people over UART with ARDUINOs in the early days before unlocking its own MCU capability.
I guess these PIC based devices are following the same approach.

Couldn't we just cut the trace to the pic, and wire the GPIO of the ESP directly to the relay instead?

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#14 Post by enesbcs » 23 Jan 2018, 18:41

NDR008 wrote:
23 Jan 2018, 11:40
Couldn't we just cut the trace to the pic, and wire the GPIO of the ESP directly to the relay instead?
I think it can be done, but VDD and signal level is usually not designed to be 3V3 on the other components in these cases. (MCU working at 2.6V and the Touch switches wired directly to it, Relays works at 12V..)
I'am not so confident with the soldering iron, so if a problem can be solved in software, i prefer it. :)

barrymossel
Normal user
Posts: 12
Joined: 06 Mar 2018, 08:59

Re: Yewelink/Tuya WiFi Touch wall light switch

#15 Post by barrymossel » 06 Mar 2018, 13:14

And two other potential clones:
https://www.banggood.com/1-Gang-1-WIFI- ... 16178.html (uses the app from Tuya as you can see in the description).
https://aliexpress.com/item/WiFi-Switch ... 67947.html (uses YeWeLink app)

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#16 Post by enesbcs » 06 Mar 2018, 17:38

barrymossel wrote:
06 Mar 2018, 13:14
And two other potential clones:
https://www.banggood.com/1-Gang-1-WIFI- ... 16178.html (uses the app from Tuya as you can see in the description).
https://aliexpress.com/item/WiFi-Switch ... 67947.html (uses YeWeLink app)
The first one seems to be the same S1W-1 that i bought and using in my pantry with ESPEasy+P169. The second one seems to be a little different, but as the description mentions yewelink app, that should be compatible also. Anyway, after the Sonoff T1 arrived, and there are a very little difference in prices, i rather choose 2gang Sonoff T1 devices in the future, as they are easier to flash.

barrymossel
Normal user
Posts: 12
Joined: 06 Mar 2018, 08:59

Re: Yewelink/Tuya WiFi Touch wall light switch

#17 Post by barrymossel » 07 Mar 2018, 09:54

enesbcs wrote:
06 Mar 2018, 17:38
The first one seems to be the same S1W-1 that i bought and using in my pantry with ESPEasy+P169. The second one seems to be a little different, but as the description mentions yewelink app, that should be compatible also. Anyway, after the Sonoff T1 arrived, and there are a very little difference in prices, i rather choose 2gang Sonoff T1 devices in the future, as they are easier to flash.
Sure, they are easier to flash, but also less attractive in my opinion. I really do not like the logo and blue accents when no led is turned on. Is it possible to exchange out those front panels anyway?

barrymossel
Normal user
Posts: 12
Joined: 06 Mar 2018, 08:59

Re: Yewelink/Tuya WiFi Touch wall light switch

#18 Post by barrymossel » 28 Mar 2018, 18:28

barrymossel wrote:
06 Mar 2018, 13:14
And two other potential clones:
https://www.banggood.com/1-Gang-1-WIFI- ... 16178.html (uses the app from Tuya as you can see in the description).
https://aliexpress.com/item/WiFi-Switch ... 67947.html (uses YeWeLink app)
The both are identical except for the print on the glass. GPIO4 is connected to the relay. The button is connected to a CRS02A chip, which is connected to Rx of the ESP.

And how would I continue now? Any help?

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#19 Post by enesbcs » 28 Mar 2018, 20:01

barrymossel wrote:
28 Mar 2018, 18:28
The both are identical except for the print on the glass. GPIO4 is connected to the relay. The button is connected to a CRS02A chip, which is connected to Rx of the ESP.
And how would I continue now? Any help?
I assume this is a one button version. CRS02A is a simple schottky diode, so you can use RX as a simple GPIO-3 after setting it in ESPEasy:
Tools->Advanced->Enable serial port (check box unticked - so disable!)
Tools->Advanced->Serial log level: None
And of course enable "Rules" in Advanced.

Now you can set up things according to the Sonoff Touch Rules:
https://www.letscontrolit.com/wiki/inde ... noff_Touch
Just replace GPIO numbers.
touch: 3 instead 0
relay: 4 instead 12

If RX does not hold state, and works like a push button, you can use for example a Dummy variable to hold a state, or any likable solution.
Last edited by enesbcs on 28 Mar 2018, 20:04, edited 1 time in total.

barrymossel
Normal user
Posts: 12
Joined: 06 Mar 2018, 08:59

Re: Yewelink/Tuya WiFi Touch wall light switch

#20 Post by barrymossel » 28 Mar 2018, 20:03

enesbcs wrote:
28 Mar 2018, 20:01
barrymossel wrote:
28 Mar 2018, 18:28
The both are identical except for the print on the glass. GPIO4 is connected to the relay. The button is connected to a CRS02A chip, which is connected to Rx of the ESP.
And how would I continue now? Any help?
I assume this is a one button version. CRS02A is a simple schottky diode, so you can use RX as a simple GPIO-3 after setting it in ESPEasy:
Tools->Advanced->Enable serial port (check box unticked - so disable!)
Tools->Advanced->Serial log level: None
And of course enable "Rules" in Advanced.

Now you can set up things according to the Sonoff Touch Rules:
https://www.letscontrolit.com/wiki/inde ... noff_Touch
Just replace GPIO numbers.
touch: 3 instead 0
relay: 4 instead 12
Will try this weekend. But I also have the two button version. Should I do the same with that one?

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#21 Post by enesbcs » 28 Mar 2018, 20:07

barrymossel wrote:
28 Mar 2018, 20:03
Will try this weekend. But I also have the two button version. Should I do the same with that one?
I doubt that the two button version also works with a simple diode. It has to be:
1/ a smarter MCU with an own program and RX+TX communication,
viewtopic.php?p=26321#p25988

2/ or two separated GPIO for the two buttons, which is easy.

barrymossel
Normal user
Posts: 12
Joined: 06 Mar 2018, 08:59

Re: Yewelink/Tuya WiFi Touch wall light switch

#22 Post by barrymossel » 30 Mar 2018, 17:39

Didn't measure the two button yet. Will do that later.

vandalon
Normal user
Posts: 6
Joined: 14 May 2018, 16:01

Re: Yewelink/Tuya WiFi Touch wall light switch

#23 Post by vandalon » 14 May 2018, 20:21

enesbcs wrote:
07 Nov 2017, 21:55
I've found another potential Tuya clone.
Currently i do not have this yet, but it's mobile app (named "Jinvoo Smart") contains evidence that it is licensed from Tuya, such as the previous "Yewelink" WiFi touch light switch. :)
https://www.ebay.com/itm/New-EU-Type-2- ... 2572146126

Image
Did you ever test this one, and if so, can you confirm if it works and tell me where the ground/3v/tx/rx pins are? :)

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#24 Post by enesbcs » 14 May 2018, 23:19

vandalon wrote:
14 May 2018, 20:21
Did you ever test this one, and if so, can you confirm if it works and tell me where the ground/3v/tx/rx pins are? :)
Sorry, since the Sonoff T1 EU version arrived, i do not buy any other type.

vandalon
Normal user
Posts: 6
Joined: 14 May 2018, 16:01

Re: Yewelink/Tuya WiFi Touch wall light switch

#25 Post by vandalon » 15 May 2018, 07:46

I understand :). I don't like the looks very much of the sonoff though.

dxfantome
Normal user
Posts: 11
Joined: 25 Apr 2018, 09:29

Re: Yewelink/Tuya WiFi Touch wall light switch

#26 Post by dxfantome » 18 May 2018, 14:50

Hello
Where is your research on this type of material?
I am very interested in the subject ;) :
pin, protocol between the MCU and the esp etc ...
possible flashing? espeasy?
I share tonight information that I have for the moment. picture of my model etc.
I think we all want to be able to make it work with our own home automation server (domoticz, openhab or other).

ps: still sorry for my english, i'm french, and i'm using an automatic translator :oops:

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#27 Post by enesbcs » 18 May 2018, 19:16

dxfantome wrote:
18 May 2018, 14:50
Where is your research on this type of material?
I am very interested in the subject ;) :
pin, protocol between the MCU and the esp etc ...
possible flashing? espeasy?
I've tested two Tuya compatible model [1] [2], but there are several more, that i don't i do not have, and you only know if it is compatible, when you buy it, and try... the Tuya serial API is documented (between the MCU and the ESP), and the necessary ESPEasy plugin P165 can be found on the Playground repository, precompiled binaries also attached to the first forum entry.
But i'll warn you: IF A WIFI SWITCH IS TUYA COMPATIBLE IT IS NOT NECESSARILY SERIAL DRIVEN, IT IS AN OPTION! There are some Tuya recommendation about direct ESP GPIO controlling without an MCU, but if it has an MCU and the mobile application refers to "Tuya" somehow, than the Tuya serial API should work.

dxfantome
Normal user
Posts: 11
Joined: 25 Apr 2018, 09:29

Re: Yewelink/Tuya WiFi Touch wall light switch

#28 Post by dxfantome » 19 May 2018, 19:49

So I will post here my investigations (or create a new post?) Since this seems to me in the context of your work.
Here is my model:
compatible tuya
dimmer
3 buttons (+, on / off, -)
equipped with an ESP8266MOD
bought less than 15 € (postage included)
Attachments
P80519-180455.jpg
P80519-180455.jpg (12.78 KiB) Viewed 9132 times
Last edited by dxfantome on 19 May 2018, 20:05, edited 1 time in total.

dxfantome
Normal user
Posts: 11
Joined: 25 Apr 2018, 09:29

Re: Yewelink/Tuya WiFi Touch wall light switch

#29 Post by dxfantome » 19 May 2018, 19:51

face led touch
Attachments
P80519-183545.jpg
P80519-183545.jpg (379.01 KiB) Viewed 9137 times

dxfantome
Normal user
Posts: 11
Joined: 25 Apr 2018, 09:29

Re: Yewelink/Tuya WiFi Touch wall light switch

#30 Post by dxfantome » 19 May 2018, 19:52

inside
Attachments
P80519-180533.jpg
P80519-180533.jpg (296.27 KiB) Viewed 9139 times

dxfantome
Normal user
Posts: 11
Joined: 25 Apr 2018, 09:29

Re: Yewelink/Tuya WiFi Touch wall light switch

#31 Post by dxfantome » 19 May 2018, 19:53

inside
Attachments
P80519-180556.jpg
P80519-180556.jpg (731.16 KiB) Viewed 9897 times

dxfantome
Normal user
Posts: 11
Joined: 25 Apr 2018, 09:29

Re: Yewelink/Tuya WiFi Touch wall light switch

#32 Post by dxfantome » 19 May 2018, 20:03

the following
(resized image is better ...)
Attachments
P80519-180625.jpg
P80519-180625.jpg (43.26 KiB) Viewed 9896 times

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#33 Post by enesbcs » 19 May 2018, 20:28

dxfantome wrote:
19 May 2018, 19:52
inside
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.

dxfantome
Normal user
Posts: 11
Joined: 25 Apr 2018, 09:29

Re: Yewelink/Tuya WiFi Touch wall light switch

#34 Post by dxfantome » 19 May 2018, 22:47

But i do not see any serial MCU on this device.
there is a world on the other side of the first pcb
Attachments
P80519-180709.jpg
P80519-180709.jpg (41.12 KiB) Viewed 9887 times

dxfantome
Normal user
Posts: 11
Joined: 25 Apr 2018, 09:29

Re: Yewelink/Tuya WiFi Touch wall light switch

#35 Post by dxfantome » 02 Jun 2018, 17:02

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 :geek:
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" :D
Last edited by dxfantome on 02 Jun 2018, 21:04, edited 1 time in total.

dxfantome
Normal user
Posts: 11
Joined: 25 Apr 2018, 09:29

Re: Yewelink/Tuya WiFi Touch wall light switch

#36 Post by dxfantome » 02 Jun 2018, 17:26

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

galak
Normal user
Posts: 3
Joined: 04 Jun 2018, 04:16

Re: Yewelink/Tuya WiFi Touch wall light switch

#37 Post by galak » 04 Jun 2018, 15:58

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.

zedd
Normal user
Posts: 3
Joined: 21 Jun 2018, 23:14

Re: Yewelink/Tuya WiFi Touch wall light switch

#38 Post by zedd » 22 Jun 2018, 10:06

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" :D
Sounds logical to me, as it has to control three seperate dimmers.
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.

zedd
Normal user
Posts: 3
Joined: 21 Jun 2018, 23:14

Re: Yewelink/Tuya WiFi Touch wall light switch

#39 Post by zedd » 22 Jun 2018, 11:34

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.
IMG_20180622_111910.jpg
IMG_20180622_111910.jpg (647.23 KiB) Viewed 9559 times
IMG_20180622_111901.jpg
IMG_20180622_111901.jpg (862.59 KiB) Viewed 9559 times
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.

zedd
Normal user
Posts: 3
Joined: 21 Jun 2018, 23:14

Re: Yewelink/Tuya WiFi Touch wall light switch

#40 Post by zedd » 26 Jun 2018, 11:25

OK, so a neighboring project is a little ahead of us here: https://github.com/arendst/Sonoff-Tasmota/issues/469

User avatar
enesbcs
Normal user
Posts: 410
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Yewelink/Tuya WiFi Touch wall light switch

#41 Post by enesbcs » 28 Jun 2018, 07:12

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.
The neighboring project uses 1M firmware with no SPIFFS, and esptool with "dout" mode, i suppose you did not.

Maxime28
Normal user
Posts: 1
Joined: 15 Nov 2018, 11:51

Re: Yewelink/Tuya WiFi Touch wall light switch

#42 Post by Maxime28 » 15 Nov 2018, 11:58

:roll: :roll: :roll: :roll: I never heard this brand. But I like it

adhossain
Normal user
Posts: 1
Joined: 20 Sep 2019, 18:40

Re: Yewelink/Tuya WiFi Touch wall light switch

#43 Post by adhossain » 20 Sep 2019, 18:45

enesbcs wrote:
28 Jun 2018, 07:12
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.
The neighboring project uses 1M firmware with no SPIFFS, and esptool with "dout" mode, i suppose you did not.
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.

Did you guys able to flash it and get it worked? If so, how.

By the way, the
CR302 B751T004BG
is a capacitaive touch IC

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests