![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/6895126200_1682088678_thumb.jpg)
Today I will present another Moes Smart Switch single relay module, this time distinguished by the fact that it additionally offers energy measurement. I will analyze its interior (main PCB and modules: WiFi and energy measurement) and show how to change its firmware so that it can be released from the manufacturer's cloud. Finally, I will provide a full product template, this time fully automatically exported from the Tuya configuration in JSON format.
Purchase, packaging, kit content
MS-101 was purchased from the Polish shipping service:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/1896646600_1684671557_thumb.jpg)
Initially, the name was SW SWT89, now it's just SW.
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/3922322800_1684671583_thumb.jpg)
parameters:
Quote:
Power supply: 90-250V AC (50/60Hz)
Maximum current: 16A
Maximum load: 3520W
Dimensions: 88x38x22mm
White color
Operating humidity: 5-95%
WiFi frequency: 2.4 GHz (does not work with 5 GHz)
Working temperature: -20 -75 degrees
This is how it looks in the manufacturer's application, which I have not tested:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/8750832300_1684671717_thumb.jpg)
Actual Packing:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/8524125000_1684671041_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/8453758100_1684671041_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/3508670500_1684671041_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/3822526700_1684671050_thumb.jpg)
Kit Contents:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/1596642900_1684671114_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/5335457700_1684671116_thumb.jpg)
QR code for the manual:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/3412891300_1684671162_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/1253871500_1684671162_thumb.jpg)
Interior of the MS-101
As with other products of this type in this case, all you have to do is pry:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/5119660100_1682088681_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/6895126200_1682088678_thumb.jpg)
Immediately inside a positive surprise. Varistor? Or even the X2 capacitor? Many manufacturers do not care a bit about such things, I met such relays only with a fuse resistor ... it is better than usual.
Then as standard, behind the bridge there are two electrolytic capacitors and a choke between them, then there is probably a converter without galvanic separation, on the PCB you can also see a separate WiFi module and an energy measurement module:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/4948784300_1682088782_thumb.jpg)
This energy measurement module is marked WMetBLi1 V1.0. You can also see the current/voltage shunt resistor, R13, coded R002, which is probably 0.02 ohms.
The WiFi module is WB2S, BK7231T, it is known:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/7322949000_1682088873_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/1680872800_1682088873_thumb.jpg)
View from above:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/2704248200_1682088957_thumb.jpg)
What does this 5V (and then 3.3V for AMS1117-3.3V) provide for this chip?
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/3289205900_1682089013_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/1085238000_1682089012_thumb.jpg)
There is BP2525.
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/3302755700_1682089119_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/5639912800_1682089119_thumb.jpg)
Another bottom of the PCB:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/2979458200_1682089234_thumb.jpg)
I desoldered it to take better pictures both modules (to change the firmware, you only need to desolder the WiFi module, and sometimes you can do without it). First we apply the flux, then we collect the tin with a braid:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/9250657900_1684671809_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/4306484400_1684671811_thumb.jpg)
Released modules:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/9788999000_1684671889_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/3554752400_1684671889_thumb.jpg)
So WMetBL11 V1.0 is a module for measuring energy ...
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/4229330600_1684671932_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/7033457500_1684671931_thumb.jpg)
This is the module from BL0937, along with the basic "hardware", but not complete, the current measuring resistor (shunt) is on the main PCB:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/1521234700_1684672052_thumb.jpg)
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/4585526900_1684672062_thumb.jpg)
Firmware change...
By default, we use BK7231 Easy GUI Flasher:
https://github.com/openshwprojects/BK7231GUIFlashTool
You can rely on our videos:
https://www.youtube.com/playlist?list=PLzbXEc2ebpH0CZDbczAXT94BuSGrd_GoM
The module is WB2S (BK7231T):
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/5311523300_1684672431_thumb.jpg)
Solder the power supply, RX, TX:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/1533003700_1684672171_thumb.jpg)
Whole layout:
![[BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement [BK7231T/WB2S] WiFi relay MS-101 16A SWT89 with energy measurement](https://obrazki.elektroda.pl/4675196800_1684672194_thumb.jpg)
Verbal description of the pins:
Device seems to be using WB2S module, which is BK7231T chip.
- Relay (channel 1) on P26
- WiFi LED on P6
- Button (channel 1) on P10
- BL0937 ELE on P7
- BL0937 VI on P8
- BL0937 SEL on P24
OBK template:
Code: JSON
Summary
I have already seen this type of "smart" modules in the version without energy measurement and I was wondering what the second, free slot in the PCB could be for ... I thought it was for another WiFi module, but nothing more wrong - it was always for the module energy measurement, such as presented here in the topic. Anyway, you would rather not have two slots for the WiFI module in the PCB of the relay, because from what I've seen, all these "standing" modules have a very similar, compatible footprint. There is a whole family of them: CB2S, FL_M99_V1, TYWE2S, TYZS6, TW-02, WR2, WB2, WBR2, WR2E, WB2S, WA2, XT-BL02 - all compatible with ESP-02S. Only that here you do not need to change WB2S, just upload:
https://github.com/openshwprojects/OpenBK7231T_App
As for the rest - the construction of this gadget is good, the manufacturer did not even omit the varistor, this is something. The price, in turn, is slightly higher than some sonoffs, but here we have the energy measurement ...
Cool? Ranking DIY Helpful post? Buy me a coffee.