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

User avatar
By jbrowne
#71420 I have 5 of these boards, and I've tried 2 - no luck in getting the esp to operate the relay.

I successfully got the esp8266 outputting serial command as the examples posted here.

I could not get serial commands to activate the relay with or without the esp8266.

and applying voltage to the relay will activate it.

the resistors R3 and R4 are the values listed in the schematics (checked with multimeter)

I removed R4, and now, I can get the relay to activate if I short the relay to ground.

wondering if I should move forward with using the GPIO on esp to operate the relay.

and if so, how should I go about the wiring (inserting a NPN ? )
User avatar
By Pol
#71482 Hi,
I have followed this project and got following problem:
https://www.hackster.io/makerrelay/esp8 ... ome-e8a437

I have managed to get it work partially.

I can successfully communicate with the ESP8266 board using USR-TCP232-Test-V1.3 application plugged via USB To RS232 TTL PL2303HX Auto Converter Module 8-)

I can configure device to work in both described Modes : 8-)

Mode 1; (Cell phones carry on the WiFi module directly.)
AT+CWMODE=2
AT+RST
AT+CIPMUX=1
AT+CIPSERVER=1,8080
AT+CIFSR
AT+CIOBAUD=9600

Mode 2; (Cell phone and WiFi module carry on the same router.)

AT+CWMODE=1
AT+RST
AT+CWJAP="SSID","password"
AT+CIPMUX=1
AT+CIPSERVER=1,8080
AT+CIFSR
AT+CIOBAUD=9600


I can get successful communication (apps<>board) on “EasyTCP” Android application but when trying to push OPEN/CLOSE commands A0 01 00 A1 ; A0 01 01 A2 application crash on my Android 7.1.1 Nougat phone :( Seems like apps or Nougat problem. So cannot use phone to operate the board :(

Cannot find “EasyTCP_20” apps on google Play store there is only “EasyTCP”.
Tools folder of following drive.google location do not contain EasyTCP_20:
https://drive.google.com/drive/folders/ ... 2VPRGszMGs

From my PC running USR-TCP232-Test-V1.3 I can get board fully configured with proper board response 8-)
But in regards to Relay operations I can only send single hex successful command 0xA0, 0x01, 0x01, 0xA2 allowing the board to CLOSE relay 8-) This works :D

But it will never OPEN a relay using hex 0xA0, 0x01, 0x00, 0xA1 command :(
Tested on both Modes, including sending hex commands via serial port aplication (USR-TCP232-Test-V1.3 or hercules_3-2-8).

as per circuit error discovery: viewtopic.php?p=65332#p65332
On my original board from "LC Technology" the resistor R3=4.7Kohm and R4=10Kohm, but according to the circuit layout should be R3=10Kohm and R4=4.7Kohm. I have re-soldered as per circuit diagram. Stil the same :(
Removing of R4 does not help as well :(


Open: A0 01 00 A1; A00100A1; hex format: 0xA0, 0x01, 0x00, 0xA1
Close: A0 01 01 A2; A00101A2; hex format: 0xA0, 0x01, 0x01, 0xA2

I have hooked only Relay board (ESP8266 disconnected) to Arduino UNO (+5; GND; RX-0; TX-1 and load following sketch from:
viewtopic.php?p=66327#p66327
all work as expected Arduino switch relay in 2 sec interval properly 8-)

Any idea what I do wrong? I cannot get relay to OPEN only.
Is there any other Android/IOS application working with the circuit so I can operate the board from smartphone?

My ESP8266 FW version:
AT+GMR

AT version:1.2.0..0 (Jul 1 2016 20:04:45)
SDK version:1.5.4.1(39cb9a32)
Ai-Thinker Technology Co. Ltd.
Dec 2 2016 14:21:16
OK
User avatar
By screamlt
#71492
JanAage wrote:I did never try it with the provided software as intended by the documentation.
I programmed the ESP to my own needs, control it over web with Blynk http://www.blynk.cc.

You can have a look at the attached file and this site:
https://www.hackster.io/makerrelay/esp8266-wifi-5v-1-channel-relay-delay-module-iot-smart-home-e8a437

hello,
can you post a sketch, or PM me with sketch please, because i spend 2 days, but still can make it working with Blynk. Thank You.