-->
Page 27 of 29

Re: Trouble with ESP-01 + 1Ch 5V relay from LC Technology

PostPosted: Fri Mar 27, 2020 9:35 pm
by pilol34
Hi Bizebua

The module must be turned off before you start programming it and after starting the burn operation you re-power the module.

Regards.

Bizebua wrote:Hi there!

I tried to do the flashing of the STC 15F104W on my ESP-01 board, as explained below by pilol34.
- I use an FTDI232 interface, jumper setting: 5V
- Download the software - ok (I use Win 10)
- Connection between the FTDI232 and the relay board:
RX - RX
TX - TX
GND - GND
5V - 5V
- I removed the ESP8266 module from the relay board

When I start the STC-ISP (V6.87B) tool, I set the COM port (=#4 in my case), the MCU type (STC15F104W) and press "Check MCU". From here, nothing happens.
Even when changing TX-RX and RX-TX connection, no result.

What am I doing wrong?
Any advices for me?

Thanks a lot!
Best regards!


Re: Trouble with ESP-01 + 1Ch 5V relay from LC Technology

PostPosted: Sat Mar 28, 2020 10:10 pm
by pilol34
Good morning all;

It is not easy to debug a module because several possibilities could be the cause of the problem.

  1. To begin with, I offer you a first simple program that will allow us to validate the proper functioning of the equipment and the smooth running of its programming. This program causes the module LED to flash every 2 seconds and you can hear the relay click every second.

    File: LcWifiRelayBlinkV1_0_11mhz.hex
    Code: Select all:0300000002011EDC
    :03000B00020115DA
    :10010000758900758E00758A00758CDCD28CD2A939
    :10011000D2B9D2AF22D52005752064B2B232758132
    :100120005F75970075880075C13775B20075B100AD
    :0F01300075B0FF75206412010043C11002013940
    :00000001FF

    If the relay does not work normally, check resistors R3 and R4.
    R3 = 4.7K (472)
    R4 = 10K (103)

    If LED flashes too slow or too fast, check clock speed setup in the burn program STC-ISP because the clock speed is very important for the proper functioning of the program.
    H/W Option -> Input IRC frequency -> 11.0592 MHz
    Capture_STC_ISP_HW-Option.PNG


  2. If all went well you can try my new firmware version which I have added some additional internal configurations such as the Watchdog management.

    File: LcWifiRelayUartV1_1_9600_11mhz.hex
    Code: Select all:0300000002017387
    :03000B00020100EF
    :10010000C0D0C0E075D00820010B20B019D2017D0D
    :10011000047F092126DD0F7D03A2B0EB13FBDF0670
    :1001200033F9C201D203DC1D7C03300018EE7009E4
    :10013000C2B1880A7E09020145EAD313FA92B1DE00
    :1001400004C200D202D0E0D0D032F5F0E52305237E
    :10015000543F2430F8E5F0F622E4936006A3120140
    :100160004A215922C200C201D202C203E4750C0323
    :10017000F50D22787FE4F6D8FD75816F75970075CF
    :10018000880075C13775D010758900758E80758AA5
    :1001900080758CFED28CD2A9D2B9D2AF120164750F
    :1001A000B1FB75B202C2B243C110300217E522653D
    :1001B00023543F600FC202E5220522543F2430F849
    :1001C0008608D20030036CC203E5217010A909B97A
    :1001D000A004C2054131B9B077D205413114701085
    :1001E000AA09E509C3137068200546BA01624131C6
    :1001F00014700CAB09E509C313705592044131AC7E
    :1002000009E92A2B6C7049200506A20492B24150DC
    :10021000BA0122BB0008E4A2B233314A415020B2F5
    :10022000089002691201594150900265120159412A
    :1002300050052121A7BB001090026EE493A3120188
    :100240004AE49312014A4150900270120159415000
    :1002500075210021A7A00101A2A00100A1B0010009
    :10026000B1B00000B04F4E0A004F46460A000101EF
    :100270004C4320576966692052656C6179202D20B6
    :100280006669726D776172652056312E3120627910
    :0E029000204C6F7569732050696C6F6E0A0008
    :00000001FF


  3. To finish, I really appreciated the idea suggested by some to use the code of the SONOFF generic to control the module so I offer you this new code which allows to pass the state of the pin GPIO1 directly to the relay, then you will not need your soldering iron.

    File: LcWifiRelayByPassP30V1_0.hex
    Code: Select all:03000000020100FA
    :10010000787FE4F6D8FD75815F7597007588007576
    :10011000C13775D01075B10075B20075B0FFC2B2AD
    :1001200043C110A2B0B392B221204C43205769665C
    :10013000692052656C6179202D20427920506173CD
    :1001400073202D206669726D776172652056312E9D
    :1001500030206279204C6F7569732050696C6F6E26
    :020160000A0093
    :00000001FF


    You can get the SONOFF code for the ESP-01 module on https://github.com/arendst/Tasmota/

    Configuration -> Configure module -> TX GPIO1 Serial Out -> Relay1i(29)

    Capture_Sonoff_Configure_Module.PNG


Regards.

Re: Trouble with ESP-01 + 1Ch 5V relay from LC Technology

PostPosted: Thu Apr 23, 2020 6:56 am
by Liam Aps
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

Re: Trouble with ESP-01 + 1Ch 5V relay from LC Technology

PostPosted: Sat Jul 04, 2020 12:44 pm
by cgmckeever
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