So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Liam Aps
#86724 Not sure if this has been posted before... Soldering required for this fix.
I found this to be the simplest fix for me.

1) Remove STC15F104W chip
2) Short pins 6 and 7 on pad where STC15F104W was removed
3) In Tasmota firmware, configure ESP-01 (ESP8266) RX=Relay1

April 9-2019
User avatar
By cgmckeever
#87769 Appears many have found this thread.

Some observations:

- There appear to be at least 3 different versions of this board.
--- I can confirm the one labeled v3 works out of the box sending the serial commands referenced in this thread
--- There is one labeled HW-655 that seems to work out of the box (unconfirmed)



As others have stated, with some modification, these will work. There are at least 3 different modifications listed in this thread that are close. All revolve around removing the microcontroller (https://www.youtube.com/watch?v=f8kW5INQMPU)

I have success:
- removing the 15F104 MicroController
- Connect v3.3 to GPIO0 with a 10kOhm resistor
- Connect pin 7 of the 15F104 to GPIO0
- NOT removing R4 as others have
- [url="https://github.com/cgmckeever/arduino-sketch/tree/master/esp-alexa-relay/relay-b
"]Use Pin 0 high/low for relay[/url]
- Disclaimer: I dont know if this thing will blow up or not

Who knows. Sucks that this board is such a pain in the ass. Re-iterate however, the v3 boards works
User avatar
By cgmckeever
#87781 First off, I wanted to thank @rickgtx and @pilol34 both their contributions to this thread was intense.

Second, for future explorers down this rabbit hole. This thread more or less has everything needed to get running. Either through the above mentioned MCU flash, or a bunch of different modifications to the board. Its all in here, you'll just need to read through this several times.

I have tried to document this https://github.com/cgmckeever/arduino-sketch/tree/master/esp-alexa-relay/relay-a#board-versions. Hopefully it helps as a good jump off point.
User avatar
By avilchez
#87787
pilol34 wrote:Hello;

I too was very disappointed when buying this module. When I connected it for the first time, it is flashing as shown on this link (https://www.youtube.com/watch?v=5Le9kNT_Bm4) and it was not responding at any of my orders.

After a rechere on the web, I found on the website of the manufacturer http://www.chinalctech.com/index.php?_m ... &p_id=1204
this note:
For this wifi relay module, because there are some counterfeit on other sales platform. So if the LED on-board (D2) are blink constantly (I guess the reason is the STC15F104W have not been programmed), it means the module were not produced in our factory, maybe you need to contact the seller directly. Best regards!

And then I realized that I had to program the module to solve the problem (I not found the original firmware).

Here are the results of my work after several days of work.

ATTENTION, The programming and or the alteration is under your resposability because it is always possible to do an error or mishandling that may endanger the module.

1. An FTDI232 interface is required to connect the USB protector to the module's RX TX pins. Here we use an interface to 5V.

2. Software is required to program the module's STC15F104W. Here I used stc-isp.exe (v6.86E) found on the site http://www.stcmicro.com/rjxz.html (Hey yes, I work under windows).

3. Create a program and compile it in .HEX format. Here I create a .asm program that I compile thanks to the AS31.exe utility from Paul's 8051 Tools at https://www.pjrc.com/tech/8051/index.html.

4.The program must be transferred to the module. It is necessary to think to cross the cables TX RX and one does not branch 5V power supply.

With the programe STC-ISP.exe we load the proramme .hex, we set the clock at 11.0592 MHz, and press the button DOWNLOAD / PROGRAM, Connect the 5V power supply of the module and wait until the transfert is finished.

5. In the COM Helper tab, test the module with commands A0 01 01 A2 and A0 01 00 A1 in HEX-Mode.

6. If the led lights up but the relay does not work, it will alter the module by swapping the resistors R3 and R4. This is probably the most delicate operation you will have to do.

7. Afterwards, follow the setup for the ESP-01 module.


To speed up your work, I give you my version of the program in .HEX format Which will save you from making the item 3. This program is transmitted as-is and without guarantee. I have not done advanced testing and it is not optimized.

I added to the program relay status reading commands.

B0 01 01 B2 -> Reading relay in text format ("ON" and "OFF" ending with a linefeed).
B0 01 00 B1 -> Relay reading in binary format (00 = ON and 01 = OFF).

B0 00 01 B1 -> Reading the firmware version in text format ending with a linefeed.

You just have to copy and paste into a text file with the extension .hex.

File: LcWifiRelayUartV1_0_9600_11mhz.hex

Code: Select all:0300000002017387
:03000B00020100EF
:10010000C0D0C0E075D00820010B20B019D2017D0D
:10011000047F092126DD0F7D03A2B0EB13FBDF0670
:1001200033F9C201D203DC1D7C03300018EE7009E4
:10013000C2B1880A7E09020145EAD313FA92B1DE00
:1001400004C200D202D0E0D0D032F5F0E52305237E
:10015000543F2434F8E5F0F622E4936006A312013C
:100160004A215922C200C201D202C203E4750C0323
:10017000F50D22787FE4F6D8FD75817F75D0107576
:100180008900758E80758A80758CFED28CD2A9D23A
:10019000B9D2AF12016475B1FB75B203C2B23002BD
:1001A00017E5226523543F600FC202E52205225461
:1001B0003F2434F88608D20030036CC203E5217076
:1001C00010A909B9A004C2054125B9B077D20541EB
:1001D00025147010AA09E509C3137068200546BAF2
:1001E0000162412514700CAB09E509C313705592E7
:1001F000044125AC09E92A2B6C7049200506A204AC
:1002000092B24144BA0122BB0008E4A2B233314A9F
:10021000414420B20890025D1201594144900259B4
:1002200012015941440521219EBB0010900262E455
:1002300093A312014AE49312014A414490026412CA
:1002400001594144752100219EA00101A2A0010095
:10025000A1B00100B1B00000B04F4E0A004F4646B9
:100260000A0001004C4320576966692052656C61A1
:1002700079202D206669726D776172652056312E66
:1002800030206279204C6F7569732050696C6F6EF5
:020290000A0062
:00000001FF


Now it's up to you to do the rest.

Good luck.

Please, can you post the .asm code?
Regards.