Page 1 of 1

Aliexpress Wifi ESP-01 Relay board

Posted: 15 Dec 2016, 13:49
by ntissm
I found this model of ESP-01 Relay
Hat somebody tryed to use it

I tried the 3 gpio 0,1,2 with 1/0 as payload without result. Has somebody already tried or has a documentation this model:
https://www.aliexpress.com/item/ESP8266 ... 32428.html

I tried to load esp esay and it works, can connect to ssid and can configure it,
but cannot drive the relay (no information how to or gpio to use)

I can found this info http://www.chinalctech.com/index.php?_m ... &p_id=1204
but it is not enough...


there is also another one with esp-12
https://www.aliexpress.com/item/New-Arr ... 66006.html

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 15 Dec 2016, 14:52
by papperone
considering those are china-manufactured, are really expensive...

look at this thread for cheaper alternatives for same quality viewtopic.php?f=5&t=2317

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 15 Dec 2016, 16:29
by ntissm
Not a price problem here. I have some of this type and want to use them

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 28 Dec 2016, 20:05
by robp2175
Did you ever have any success figuring out how to control the relay on this board?

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 31 Dec 2016, 17:05
by ntissm
I thaught it was something like thé mini d1 with relay where you have to pût a 0 on thé output corresponding. I tryed 0 and 1 on thé gpio 0, 2 or 3 without résults...

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 31 Dec 2016, 18:32
by costo
If GPIO 0 & 2 do not control the relay you have to go to "tools" "advanced" and remove the tag at enable the serial port, after that you can try GPIO 1 or 3.

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 31 Dec 2016, 19:16
by robp2175
I am not sure what is going on with this relay board. It is exhibiting a constant electronic clicking. With or without the esp8266 module plugged in. Any ideas? See the video here.
https://youtu.be/5Le9kNT_Bm4

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 07 Jan 2017, 22:13
by ntissm
The problem is not VCC but how you can close/open the relay.
This kind of device is not using gpio directly but the serial interface.

You have to send the following over serial in 9600,8,N,1

like for this other USB relay of the same company

LC USB switch the default communication baud rate: 9600 BPS
LC USB switch communication protocol
Data (1) - startup logo (the default is 0 xA0)
Data (2) - switch address code (the default is 0 x01, identifies the first switch)
Data (3) - operation data (0 x00 to "off", 0 x01 to "on")
Data (4) - check code

For example:
Open the USB switch: A0 01 01 A2
Close the USB switch: A0 01 00 A1

see http://www.chinalctech.com/index.php?_m ... w&p_id=969

I test it with socketWorkbench and the plugin ser2Net. it runs.

I am now trying to do a plugin to use it automatically with standard MQQT, HTTP request

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 09 Jan 2017, 15:14
by robp2175
Thank you for your reply. I am sorry, but I am a relative NOOB. How would I send the serial command over WIFI? I have done some googling and forum searching, but I have not found a definitive answer. Appreciate any assistance.

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 11 Jan 2017, 14:38
by ntissm
ser2Net is a plugin of espeasy (FW of ESP8266), not of socket Workbench (PC SW).

It send on the intern Esp Serial link all what it receive over an internal socket server (You can configure the port with espeasy)

Then you can send via a socket connection (with SocketWorkbench on PC) some data to the esp sockets server over port 23.
It will transmitted automatically via the serial link to the pic on the relay board, which activate the Relay.

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 18 Jan 2017, 11:42
by Kol8
Great ntissm ! Many thanks for your solution!

In details:
The Serial server is included in V120, you need to configure it under the device menu like this:
http://www.letscontrolit.com/wiki/index.php/Ser2Net

then under linux, you can use netcat and pass the HEX string, assuming the ip address of the device is 192.168.0.10, port set to 23 :

to activate the relay:

Code: Select all

echo -ne '\xA1\x01\x01\xA2' | nc 192.168.0.10 23
to de-activate it:

Code: Select all

echo -ne '\xA1\x01\x00\xA1' | nc 192.168.0.10 23
Let you know if I find a way with http...

Cheers & thanks again !

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 24 Jan 2017, 23:44
by wabikboy
Hello.

First: Sorry for my english :)

I have a this module.
https://pl.aliexpress.com/item/ESP8266- ... 32428.html


Does anyone know how to control it? Someone already wrote that there is nowhere information about this. I tried the datasheet stc15F I do not understand any of it
http://www.stcmicro.com/datasheet/STC15F100-en.pdf

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 26 Jan 2018, 08:37
by riker1
ntissm wrote: 07 Jan 2017, 22:13 The problem is not VCC but how you can close/open the relay.
This kind of device is not using gpio directly but the serial interface.

You have to send the following over serial in 9600,8,N,1

like for this other USB relay of the same company

LC USB switch the default communication baud rate: 9600 BPS
LC USB switch communication protocol
Data (1) - startup logo (the default is 0 xA0)
Data (2) - switch address code (the default is 0 x01, identifies the first switch)
Data (3) - operation data (0 x00 to "off", 0 x01 to "on")
Data (4) - check code

For example:
Open the USB switch: A0 01 01 A2
Close the USB switch: A0 01 00 A1

see http://www.chinalctech.com/index.php?_m ... w&p_id=969

I test it with socketWorkbench and the plugin ser2Net. it runs.

I am now trying to do a plugin to use it automatically with standard MQQT, HTTP request

Hi
do not understand where you send the serial commant A0 01 01 A2?
I set Serial Server in Device.

what does this mean? Data (1) - startup logo (the default is 0 xA0) and how to implement it

Thanks T

Re: Aliexpress Wifi ESP-01 Relay board

Posted: 26 Jan 2018, 20:29
by enesbcs
And here is a solution:
viewtopic.php?f=4&t=4743#p23818