Hi everyone, so I just received
this HW-622 ESP8266 relay module, which I think has better features than the
ESP01 counterpart but costs a little more. It is certainly bigger than the ESP01.
Let us explore it.
The HW-622 WIFI relay module uses the ESP12F ESP8266 module, which has more memory capacity
and better network connectivity than the ESP01. It has a single relay attached to the
GPIO4 pin with its status LED indicator. An added feature over the ESP01
module is an opto-isolated digital input at GPIO5 with its LED indicator.
One major advantage of the ESP12 is that it does not flicker the relay at powerup like the ESP01.
The Blue LED indicator on the ESP12 can be accessed at GPIO2.
This 6-pin terminal block provides access to the relays NO, COM, and NC.
And 5 volts, IN and GND for the digital input. The galvanic isolation of the input from
the ESP8266 means that the input requires an external power supply connection to IN and GND.
However, the module’s 5V supply and GND could also be used undermining its galvanic isolation.
The HW-622 relay module operates on a wide power supply range of 7-30 volts with
overvoltage and overcurrent protection. All these features of the module qualify it as
a single-input/single-output industrial PLC. Programming the HW-622 ESP8266 module
requires a USB-to-TTL converter to be connected to this TX, RX, and GND pin header.
Here is the flash jumper that should be removed after programming the board.
RemoteXY Web Interface We will use the RemoteXY web interface
to create a sample mobile phone app to demonstrate the relay operation. Configure the Wi-Fi access point, the ESP8266-based board, Wi-Fi
on-chip, and the FLProg IDE. Then copy the source code. In the FLProg IDE project,
configure the controller Wi-Fi module settings for the Access point.
And set HW-622 as the network name. Add a password if required and
input an IP address of 192.168.0.1. Insert the RemoteXY block and paste
the code from the web interface here. Also, enable the output connection status.
Add two output tags, one for the relay at GPIO4 connected to the push switch and the
other for mobile connection status at GPIO2. Then compile the code. The ESP01 programmer can be used to
program the HW-622 ESP8266 relay module. Connect the programmer’s TX, RX and
GND to that of the HW-622 board. For the test demonstration, a light bulb is
connected to the relay's NO terminals, COM, and 110 or 220-volt AC power supply, as shown. And a 7–30-volt DC power supply.
Ensure that the flash jumper is in place. Then insert the programmer into your computer.
In the Arduino IDE, select the dtr (aka nodemcu) reset method, the correct COM port
and upload the code to the ESP12. After the upload, disconnect the programmer from
the board, remove the flash jumper and the reboot the board. In the RemoteXY app, connect to the HW-622
access point to turn on and off the bulb. We will consider how to make the best use of the board input in upcoming videos. Thanks for watching.
Like this video if it is helpful to you and subscribe to my channel.
See you in the next video.