logo elektroda
logo elektroda
X
logo elektroda

[CB3S/BK7231N] SB436 single relay - QS-WIFI-S03 WiFi - change of firmware

p.kaczmarek2 
QS-WIFI-S03 Wi-Fi switch module and its packaging with instruction manual. Today we are reworking another WiFi-controlled relay so that it works fully locally, without the manufacturer's servers. The product shown here can be purchased in our country for around £40. It appears under the name QS-WIFI-S03, also sometimes called SB436.
Black box labeled SB436 on a wooden background. Box of the Wi-Fi Switch Module QS-WIFI-S03 on a wooden background. Box of WiFi relay QS-WIFI-S03 labeled SB436
Instruction manual and wiring diagram (to be consulted yourself):
Instruction manual for the QS-WIFI-S03 Wi-Fi switch module on a wooden surface. Installation instructions and wiring diagram for the QS-WIFI-S03 WiFi relay.
Normally it is for use with the Tuya app, but here I focus on changing the firmware.

Interior of QS-WIFI-S03 Undo the cover:
Open interior of the QS-WIFI-S03 module showing electronic components.
Inside classically - a relay, here an SCH-T76-1A-5S, some fuse resistor and probably a non-isolated step-down converter.

I wonder what happens in place of BE1 - a buzzer?
Typical application circuit diagram of PN8016 chip. PN8016 generates 5V, separately then further we have LDO 3.3V powering the WiFi module.

Changing the QS-WIFI-S03 firmware
According to our flasher's instructions:
https://github.com/openshwprojects/BK7231GUIFlashTool
We need a USB to UART converter and four cables:
Diagrams of the CB3S WiFi module with pin labels.
We solder the power supply, RX and TX.
First the power supply:
QS-WIFI-S03 relay circuit board with connected wires on a wooden background.
Then the RX and TX:
Interior of QS-WIFI-S03 module with electronic circuits on a wooden background
The whole circuit:
QS-WIFI-S03 relay programming setup with USB to UART converter and breadboard.
Flasher when reading the batch correctly detects the Tuya configuration:
Code: JSON
Log in, to see the code

Can be imported into OBK:



It is also possible to use the importer:
https://openbekeniot.github.io/webapp/templateImporter.html
Word description:

Device seems to be using CB3S module, which is BK7231N chip.
- Relay (channel 1) on P6
- WiFi LED on P8
- TglChannelToggle (channel 1) on P24
- Pair/Toggle All Pin on P9

Template OBK:
Code: JSON
Log in, to see the code


Summary
The conversion was seamless and the flash tool detected the configuration itself. I can recommend this product. The only thing worth remembering is to enable PowerSave 1 on it in OBK (add to autoexec.bat) as these power supplies inside are not very well made and the high current draw could degrade the electrolytic capacitor too quickly. Then the situation from the topic would repeat itself:
How do I fix a smart device that crunches, squeaks and makes strange noises? Other than that - no problems when changing the software, can be recommended.

About Author
p.kaczmarek2
p.kaczmarek2 wrote 11858 posts with rating 9943 , helped 566 times. Been with us since 2014 year.

Comments