The purpose of this design is for learning how to play with the hardware and software of a IOT project, it is based on price competitive wifi module ESP8266.
- Based on ESP-12F ESP8266 Wifi Board
- This relay board use one AC input, and supports two relay AC output. Please note the output AC power comes/connected from/with input AC power. Relay only play as on/off switch for AC power. Will be danergerous to use in any other cases.
- Use mature AC-DC power module, input volatge 85 – 265VAC
- Relay Specification: HF32F-G-5-HS, Common – open, 10A 250VAC, 30VDC, Control 5V
- Case general dimension is 111*42 mm.
- Two Lead out buttons BTN1 and BTN2
- Two relay indication LEDs
- One status LED, indicating connecting status in demo code
- A few lead out pins, from top (left) to bottom (right):
- Resevered design for temperature sensor DHT22
- Screw terminal which are easy for wiring output.
Demo Software Features
- Programming skills need, not recommended for unfamiliar user.
- The board flashed with demo test code, you can follow the youtube video to make a try directly. And find demo code in the wiki page below. Only nodemcu demo code avaialble.
- The demo code written in R1.1 will do:
- switch both relay on/off once per second, and wait for smart config
- When connected to local wifi by smart config, on/off switching relay will stop and you can use mqtt to control it, follow wiki instruction for further details.
- You can use USB-TTL debug to re-program it. (Search to buy a USB-TTL tool in case, PL2303 or CP2102 can be all the work)
- If you want to customize it, please contact via email@example.com
- Use MQTT platform called www.cloudmqtt.com, use-friendly for esp8266
- Based on NodeMCU LUA coding
- Demo code available, open source, and support smartconfig and MQTT, please find the code below or at our dropbox page to download
- Please connect the board to sensor by wires, because the PCB and relays will generate heats!! 1-2 degree higher!!
- The board has exposed high voltage AC connection, be very carefully on this.
- Please notice the two relay output terminals are a little conflict with case, second channels need to use soft wires or remove the screw installation bars manually.
For inductive load (motor-type) alternative:
This is a generate relay board, which may restart when connected to inductive load, please use following alternative.
- Added kickback EMC board near your load, this can solve the problem, but more extra wiring.
- Use relay board version IL, which is specially for this, tested by us and some other customers.
- Use relay board version SPDT, which the AC main power not passed through the input of the board to output, no interferance.
- Main Board
- Plastic enclosure
- Not including screws for less than 5 kits from December 2017 (Which cause shaky sounds inside and will trigger security failure of shipment, it significally delay shipment.)
- Please prepare M2*8 or M2.2*6, etc crews by yourself.
Series of ESP Relay Board:
|Wifi IoT Relay Board||General version – AC Main Power ON/OFF|
|ESP Relay Board IL||Optimize for inductive load|
|Wifi IoT Relay Board VDC||DC Power Supply, DC (or AC) ON/OFF|
|Wifi IoT Relay Board SPDT||Output free (not from input), DC or AC On/OFF|
|ESP LED Strip Board||Control for LED strips|
What is the difference of this version (SPST) and SPDT version:
- The output of the relay of SPST is the same as directly AC main input voltage, for powering up connected domestic home appliance in purpose. So the relay only control AC main power on and off
- The output of the relay of SPDT is not connected with AC main input voltge, the relay on this one can switch any other circuits you connected in, can be other AC or DC power, please refer to specification on relay.