Aliexpress Wifi ESP-01 Relay board

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ntissm
New user
Posts: 7
Joined: 15 Dec 2016, 12:42

Aliexpress Wifi ESP-01 Relay board

#1 Post by ntissm » 15 Dec 2016, 13:49

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
Last edited by ntissm on 15 Dec 2016, 16:27, edited 1 time in total.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Aliexpress Wifi ESP-01 Relay board

#2 Post by papperone » 15 Dec 2016, 14:52

considering those are china-manufactured, are really expensive...

look at this thread for cheaper alternatives for same quality viewtopic.php?f=5&t=2317
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

ntissm
New user
Posts: 7
Joined: 15 Dec 2016, 12:42

Re: Aliexpress Wifi ESP-01 Relay board

#3 Post by ntissm » 15 Dec 2016, 16:29

Not a price problem here. I have some of this type and want to use them

robp2175
New user
Posts: 5
Joined: 28 Dec 2016, 19:53

Re: Aliexpress Wifi ESP-01 Relay board

#4 Post by robp2175 » 28 Dec 2016, 20:05

Did you ever have any success figuring out how to control the relay on this board?

ntissm
New user
Posts: 7
Joined: 15 Dec 2016, 12:42

Re: Aliexpress Wifi ESP-01 Relay board

#5 Post by ntissm » 31 Dec 2016, 17:05

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...

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: Aliexpress Wifi ESP-01 Relay board

#6 Post by costo » 31 Dec 2016, 18:32

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.

robp2175
New user
Posts: 5
Joined: 28 Dec 2016, 19:53

Re: Aliexpress Wifi ESP-01 Relay board

#7 Post by robp2175 » 31 Dec 2016, 19:16

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

ntissm
New user
Posts: 7
Joined: 15 Dec 2016, 12:42

Re: Aliexpress Wifi ESP-01 Relay board

#8 Post by ntissm » 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

robp2175
New user
Posts: 5
Joined: 28 Dec 2016, 19:53

Re: Aliexpress Wifi ESP-01 Relay board

#9 Post by robp2175 » 09 Jan 2017, 15:14

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.

ntissm
New user
Posts: 7
Joined: 15 Dec 2016, 12:42

Re: Aliexpress Wifi ESP-01 Relay board

#10 Post by ntissm » 11 Jan 2017, 14:38

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.

Kol8
New user
Posts: 1
Joined: 18 Jan 2017, 11:01

Re: Aliexpress Wifi ESP-01 Relay board

#11 Post by Kol8 » 18 Jan 2017, 11:42

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 !

wabikboy
New user
Posts: 1
Joined: 24 Jan 2017, 23:31

Re: Aliexpress Wifi ESP-01 Relay board

#12 Post by wabikboy » 24 Jan 2017, 23:44

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

riker1
Normal user
Posts: 344
Joined: 26 Dec 2017, 18:02

Re: Aliexpress Wifi ESP-01 Relay board

#13 Post by riker1 » 26 Jan 2018, 08:37

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

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Aliexpress Wifi ESP-01 Relay board

#14 Post by enesbcs » 26 Jan 2018, 20:29

And here is a solution:
viewtopic.php?f=4&t=4743#p23818

Post Reply

Who is online

Users browsing this forum: No registered users and 51 guests