![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/6864388200_1628112812_thumb.jpg)
Hello, here I will sho the teardown, detailed photo documentation, PCB analysis and schematic drawing of another Tuya product. This time it will be a controller for 4 relays, pluggable into a DIN rail, controlled as usual via WiFi via a phone application.
Update 2022 - This device is fully supported by OpenBeken. Scroll down to find pin configuration and Home Assistant information
Product purchase
I found the product by searching for "4CH 4Gang Wifi Light Smart Switch 4 Channels Circuit Breaker IOS Android Tuya App Control interruptor wifi 4 canales ios" for about PLN 60 (supposedly in promotion, normally for less than PLN 100). Below are screenshots of the offer:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/6796875600_1627922409_thumb.jpg)
Graphics from the seller:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/7098243800_1627922447_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/6052711700_1627922457_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/7559954400_1627922479_thumb.jpg)
Kit contents
The set includes only a relay and instructions (I censored the seller's sticker because there is no need to do unnecessary advertising):
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/4165718700_1627923012_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/4384552500_1627923012_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/8583457500_1627923011_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/8117455400_1627923020_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/9402081900_1627923019_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/3999959500_1627923020_thumb.jpg)
Instruction (information on how to pair with mobile App, etc.):
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/5595663000_1627923187_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/2380456900_1627930893_thumb.jpg)
Controller:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/1804256500_1627923260_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/3217862000_1627923260_thumb.jpg)
Terminals:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/6497440400_1627923398_thumb.jpg)
Mounting mechanism on DIN rail:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/3897190300_1627923492_thumb.jpg)
After removing the plugs, you can reveal the buttons and LEDs informing about the status of relays and the device:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/7270698600_1627923577_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/5188795600_1627923591_thumb.jpg)
I do not know who would like to have these buttons covered, after all, without them, if there is a problem with WiFi, there is no way to control the device.
Pairing with original Tuya app
I have covered the pairing with Tuya topic many times in the past. This time it also was very easy, although Chinese characteres appeared as the name of the device.
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/6864388200_1628112812_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/5094318600_1628112835_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/8330203100_1628112847_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/4216822600_1628112849_thumb.jpg)
The Tuya application allows you to control each of the relays separately, as well as turn them off / on at once.
A few screenshots from the Tuya mobile app:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/1976187200_1628166425_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/6624440900_1628166422_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/5419179600_1628166421_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/7625340200_1628166423_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/1347915500_1628166424_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/8190519300_1628166425_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/6342673700_1628166426_thumb.jpg)
Teardown
The housing is held on four screws. There was no problem with unscrewing three of them, but I struggled with the fourth. At first I thought it was some kind of protection, but then I got the impression that something was wrong with its mounting:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/3934072000_1627923721_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/4103727700_1627923738_thumb.jpg)
In the end, it was possible to open without major damage (the tile in the corner has only a mass spout, by the way, the whole groundplane, including secondary side ground of the WiFi module is connected to the mains...):
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/1416039800_1627923847_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/6820783400_1627923847_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/3062851800_1627923858_thumb.jpg)
Relays only cut off the phase wire. The groundplane connects the primary and secondary sides, you can see in the photo that the mass reaches up to the mass of the 400V 4.7uF filter capacitor, which is just behind the rectifier bridge.
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/2486501200_1627923885_thumb.jpg)
There is a SMTT2A250V fuse on the input. The 2A rating is definitely a total exaggeration and I do not know why it is there, although maybe I misread the marking:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/1535831300_1627934952_thumb.jpg)
Next is the JK-ET 07D471K varistor, surge protection:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/2215078700_1627935229_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/7043763700_1627935341_thumb.jpg)
X2 class capacitor (X2 safety class capacitor), against EMI. JURCC X2-104 MPX / MKP:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/9193912700_1627935474_thumb.jpg)
Produced in China, the manufacturer provides its catalog notes, although they are quite poorly translated into English:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/1236192300_1627935632_thumb.jpg)
(this "capacity step down" in the diagram from the manufacturer should be called rather "capacitive dropper" and does not reflect what is in the device discussed here, in the discussed device there is a flyback pulse power supply)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/1819548300_1627935659_thumb.jpg)
MB10S rectifier bridge. Two electrolytic capacitors at 400V 4.7uF and a choke between them (PI filter). Next, the switching power supply system on the HX5923.
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/1694840300_1627984544_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/5747510500_1627984613_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/2644093600_1627989267_thumb.jpg)
On the manufacturer's website I managed to find a few pages from the HX5923 catalog note (I provide them as images, no pdf file available). HX5923 is a flyback converter controller with built-in MOFSET transistor working in PSR mode (Primary Side Regulation, voltage regulation by feedback through primary auxiliary winding, without optocoupler etc.).
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/2754677400_1627989447_thumb.jpg)
HX5923 pin roles:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/8327967600_1627989501_thumb.jpg)
Internal diagram
(also important to realize that e.g. between pins 5/6 - Drain, and pin 4 - CS, Current Sense, there is simply a MOSFET in HX5923):
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/3396892100_1627989521_thumb.jpg)
Characteristics:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/7987698000_1627989545_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/9267527900_1627989553_thumb.jpg)
A description of the operation:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/2212126500_1627989571_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/5357622100_1627989578_thumb.jpg)
After all, this converter does not provide galvanic separation because the manufacturer, instead of separating the "mass" of low voltage from the "high" one, connected them together (instead of putting a Y-class capacitor between them).
On the side of the secondary winding there is a single Schottky SS14 diode:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/4241204200_1628111628_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/7930003800_1628111703_thumb.jpg)
The power supply gives about 5V, there are also relays working at 5V. Next is the LDO regulator AMS1117 3.3 to get 3.3V for the module with WiFi:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/4514383500_1628111777_thumb.jpg)
The WiFi module is WB3S (unfortunately it is not based on ESP8266):
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/1303318700_1628111835_thumb.jpg)
The WB3S controls the relays through transistors. These transistors activate 5V on the relay coil, of course, there is a protective diode parallel to it, so 4 times:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/4433483600_1628111925_thumb.jpg)
J3Y was used here, or rather S8050.
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/9999471200_1628112305_thumb.jpg)
In the role of the 'freewheeling diode' there is a diode marked T4, i.e. probably 1N4148W:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/3976766400_1628112418_thumb.jpg)
In addition, you can see that the LEDs indicating the status of the relays are on the same WB3S pins as the transistors that control the relays.
The relays themselves are:
SHS-32F
32F-5V-HS-G
Their supply voltage tells us how much V is before AMS1117.
It's time to draw a diagram.
The schematic of Tuya SmartLife 4CH
The markings of the elements correspond to the markings on the board (e.g. EC1, EC2 convention for electrolytic capacitors).
The resistor values are given in the SMD code.
Power section:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/6529564500_1628153948_thumb.jpg)
A few notes about the scheme:
- F1, the fuse, the current rating is too high, it should be different (but the manufacturer gave it)
- RV - varistor, overvoltage protection
- X1, interference suppression capacitor (against noise emission into the network)
- EC1, L1, EC2 - pi filter
- R1, R2 - resistors with quite high resistance, after connecting the power supply slowly charge C3 so that the converter can start
- R7, D3 - when the inverter is working, the winding ensures charging of C3 so that the inverter can continue to work
- C1, R3, R4, D1 - snubber parallel to the primary winding. I am surprised here by the M7 diode, 1N4007, apparently the manufacturer decided that you do not need fast
- R8 and R9 are a voltage divider for feedback from the converter controller (to the FB - Feedback pin)
- R10 is the so-called a shunt, used to measure the current flowing from the primary winding, is a low-resistance resistor (connected to the CS - Current Sense pin)
For more information, please refer to the included catalog note HX5923.
WiFi module section + buttons:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/4208721600_1628153867_thumb.jpg)
I think the schematic should be easy to interpret, but it is worth emphasizing that the buttons have internal pull-up resistors (programmable in the WB3S itself), and the debouncing is implemented by software.
Relays section:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/7730633800_1628153912_thumb.jpg)
Update - OpenBeken and Home Assistant [2022]
[Update - 2022.07.13]
This device, of course, has been supported by my OpenBeken project for a long time . OpenBeken allows you to disconnect the device from Tuya cloud and control it entirely as you want, of course also providing Home Assistant compatibility, Tasmota Device Groups supports and much more.
I uploaded the firmware through bkWriter 1.60, according to:
Garden Tuya CCWFIO232PK Double Relay - BK7231T - Programming
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/9047967000_1657702955_thumb.jpg)
This is how the main panel looks like:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/2247594700_1657702117_thumb.jpg)
Here is the pin configuration:
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/9279371400_1657702334_thumb.jpg)
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/5149310900_1657702354_thumb.jpg)
Here is the startup setup (channels remember their state before power loss):
![Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic] Four-channel relay controller Tuya WiFi SmartLife 4CH 10A [schematic]](https://obrazki.elektroda.pl/1432383900_1657702421_thumb.jpg)
The relay also works with Home Assistant - here is the Yaml configuration (older format, but easy to convert to a newer one):
switch:
- platform: mqtt
name: "obk8C000000 1"
state_topic: "obk8C000000/1/get"
command_topic: "obk8C000000/1/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability_topic: "obk8C000000/connected"
- platform: mqtt
name: "obk8C000000 2"
state_topic: "obk8C000000/2/get"
command_topic: "obk8C000000/2/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability_topic: "obk8C000000/connected"
- platform: mqtt
name: "obk8C000000 3"
state_topic: "obk8C000000/3/get"
command_topic: "obk8C000000/3/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability_topic: "obk8C000000/connected"
- platform: mqtt
name: "obk8C000000 4"
state_topic: "obk8C000000/4/get"
command_topic: "obk8C000000/4/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability_topic: "obk8C000000/connected"
Summary
So here we have another product from Tuya that is not based on ESP (there is no TYWE3S, TYWE2S, etc. module). Luckily OpenBeken already supports it well, so there is no need for WiFi module swap.
It is also worth noting that the switching power supply from the inside of this device does not provide galvanic protection, so you should never touch the board (nor connect it to PC) while it's connected to mains!
Other than that, it should be a good and useful 4CH relays controller, especially with OpenBeken. I think I will surely find some use for it at my worplace.
Cool? Ranking DIY