Difference between revisions of "ESP Relay Board Hardware"

From ElectroDragon
Jump to: navigation, search
(Pin Definition)
(Add-Ons Functions)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<accesscontrol>CM</accesscontrol>
+
* For Board demo software setup, and debugging see on this page [[ESP Board Setup]]
  
== ESP DC Relay Board ==
+
== Board Configuration ==
* Board configuration
+
* General board configuration
 
<gallery>
 
<gallery>
 +
File:ESP8266_Relay_Board_R1.6_02.jpg |  Board configuration ESP Relay Board general version
 
File:ESP_DC_Relay_Board_01.JPG | Board configuration VDC version
 
File:ESP_DC_Relay_Board_01.JPG | Board configuration VDC version
 
File:ESP_Relay_Board_SPDT_01.JPG | Board configuration SPDT version
 
File:ESP_Relay_Board_SPDT_01.JPG | Board configuration SPDT version
 
</gallery>
 
</gallery>
* Setup for VDC relay board.
+
 
 +
=== Specific for Relay Board  ===
 +
 
 +
<gallery>
 +
File:ESP8266_Relay_Board_R1.6_02.jpg | On board pin definition, features R1.6
 +
File:ESP_wifi_relay_board_R1.1_pin.jpg | On board pin definition, features R1.1
 +
</gallery>
 +
Features
 +
* Based on ESP-12F ESP8266 Wifi Board
 +
* This relay board use one AC input, and supports two relay AC output
 +
* Use mature AC-DC power module
 +
* Plastic enclosure design support, package includes the plastic case
 +
* Two Lead out buttons BTN1 and BTN2
 +
* Two relay indication LEDs
 +
* One status LED, indicating connecting status in demo code
 +
* Resevered design for temperature sensor DHT22
 +
* Screw terminal which are easy for wiring output
 +
 
 +
 
 +
==== Hardware Update Logs ====
 +
Update R1.6
 +
[[File:Update ESP Relay Board R1.6.jpg|thumbnail]]
 +
* Optmized lead out pins, IO4, IO5 used for IIC bus, see the demo image here.
 +
 
 +
Updated R1.5:
 +
* Optimized board layout, replace a few higher quality parts
 +
Updated version R1.1:
 +
* Fix isolation and current drop issue on old version, which cause the ESP-wifi board may have a 5% chance to reset/restart when you switch relays On/Off very very frequently.  R1.1 version is not absolutely can be eliminated this issue since the onboard AC-DC module has a limit, but the probability of this problem should be controlled to the least, low to one percent.
 +
* Maximum trace design for current passing, 2MM trace width to let 2A current pass through roughly for two relays together, so either 2A for running one channel device or 1A for two device. also open trace without soldermask, you can add more solders to get even higher current passing.
 +
 
 +
=== Specific for Relay Board VDC ===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 
! Setup !! Terminal Input !! Relay Output Power !! On Board ESP Power
 
! Setup !! Terminal Input !! Relay Output Power !! On Board ESP Power
 
|-
 
|-
| None || 5-28V Vin || Terminal || Terminal  
+
| None || 5-28V Vin || From Terminal || From Terminal via regulator MP1584, AMS1117
 
|-
 
|-
| Jumper set to 5V || 5V Vin || Terminal  || Terminal
+
| Jumper set to 5V || 5V Vin || From Terminal  || From Terminal via regulator AMS1117
 
|-
 
|-
| remove 2 x 0R resistors || AC 250VAC or DC 30VDC max || Terminal || Pin Alternative Vin
+
| remove 2 x 0R resistors || AC 250VAC or DC 30VDC max || From Terminal || Use 1x2 Pin ALT Vin
 
|}
 
|}
== Pin Definition ==
+
VDC board - AC relay control
=== Pin Definition and Extension ===
+
* to switch to control AC mains power, need to remove two 1206 0R resistors on board. Then power from left green terminal = relay output (and terminal)
 +
* To supply power on board control circuit, add 6-27V power to "ALT VIN" pins
 +
 
 +
=== Add-Ons Functions ===
 +
[[File:ESP-relay-DHT22.png|thumbnail]]
 +
IO4 and IO5
 +
* IO4 and IO5 hs pull up resistors for IIC bus to use
 +
* Demo code for IIC OLED screen for LUA can be found at nodemcu github, /master/lua_examples/u8glib/ this folder, [https://github.com/nodemcu/nodemcu-firmware/tree/master/lua_examples/u8glib or click here to browse.]
 +
* To remove the pull-up resistor, find the 2x two-very-close-pin on the right side of break away header pin 4 and pin 5, use knife to cut them, then 4.7K resistor will be disconnected. Also can add solder to re-connect them later.
 +
DHT Sensor
 +
* '''Please connect the board to sensor by wires, because the PCB and relays will generate heats!!'''
 +
* DHT22 support plug on to use, feel free to use wires or socket to settle the DHT sensor, pin definition is 3V3, data, NC and GND
 +
* Default firmware has DHT module enable, upload example code will work directly. [http://nodemcu.readthedocs.io/en/master/en/modules/dht/ demo code here.], or download lua sketch [[File:DHT22.zip|here]], in esplorer run DHT22.lua direct to read temperature humidity
 +
 
 +
== General Pin Definition ==
 +
* Pin Definition for standard esp relay board, relay VDC board, relay SPDT board.
 +
 
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
Line 28: Line 75:
 
| Description || relay 10A load max. || relay 10A load max. || - || pull-up 10K resistor || Pull-up resistors 4.7K (cuttable) || Pull-up resistors 4.7K (cuttable) || for entering into flash mode || customize programming || Lead out GPIO
 
| Description || relay 10A load max. || relay 10A load max. || - || pull-up 10K resistor || Pull-up resistors 4.7K (cuttable) || Pull-up resistors 4.7K (cuttable) || for entering into flash mode || customize programming || Lead out GPIO
 
|}
 
|}
 +
 +
== Documents ==
 +
[[File:B004 box.jpg|thumbnail]]
 +
* Case size see on the image.
  
 
== Schematics ==
 
== Schematics ==
Line 35: Line 86:
 
File:Wifi_iot_relay_board_VDC.png | VDC Relay Board
 
File:Wifi_iot_relay_board_VDC.png | VDC Relay Board
 
File:Esp-light.png | ESP Light Board
 
File:Esp-light.png | ESP Light Board
 
+
File:Esp_relay_board_il_sch.png | ESP Relay Board IL for Inductive load
 
</gallery>
 
</gallery>
 
[[category: ESP8266 Boards]]
 
[[category: ESP8266 Boards]]

Latest revision as of 16:09, 12 October 2017

  • For Board demo software setup, and debugging see on this page ESP Board Setup

Board Configuration

  • General board configuration

Specific for Relay Board

Features

  • Based on ESP-12F ESP8266 Wifi Board
  • This relay board use one AC input, and supports two relay AC output
  • Use mature AC-DC power module
  • Plastic enclosure design support, package includes the plastic case
  • Two Lead out buttons BTN1 and BTN2
  • Two relay indication LEDs
  • One status LED, indicating connecting status in demo code
  • Resevered design for temperature sensor DHT22
  • Screw terminal which are easy for wiring output


Hardware Update Logs

Update R1.6

Update ESP Relay Board R1.6.jpg
  • Optmized lead out pins, IO4, IO5 used for IIC bus, see the demo image here.

Updated R1.5:

  • Optimized board layout, replace a few higher quality parts

Updated version R1.1:

  • Fix isolation and current drop issue on old version, which cause the ESP-wifi board may have a 5% chance to reset/restart when you switch relays On/Off very very frequently.  R1.1 version is not absolutely can be eliminated this issue since the onboard AC-DC module has a limit, but the probability of this problem should be controlled to the least, low to one percent.
  • Maximum trace design for current passing, 2MM trace width to let 2A current pass through roughly for two relays together, so either 2A for running one channel device or 1A for two device. also open trace without soldermask, you can add more solders to get even higher current passing.

Specific for Relay Board VDC

Setup Terminal Input Relay Output Power On Board ESP Power
None 5-28V Vin From Terminal From Terminal via regulator MP1584, AMS1117
Jumper set to 5V 5V Vin From Terminal From Terminal via regulator AMS1117
remove 2 x 0R resistors AC 250VAC or DC 30VDC max From Terminal Use 1x2 Pin ALT Vin

VDC board - AC relay control

  • to switch to control AC mains power, need to remove two 1206 0R resistors on board. Then power from left green terminal = relay output (and terminal)
  • To supply power on board control circuit, add 6-27V power to "ALT VIN" pins

Add-Ons Functions

ESP-relay-DHT22.png

IO4 and IO5

  • IO4 and IO5 hs pull up resistors for IIC bus to use
  • Demo code for IIC OLED screen for LUA can be found at nodemcu github, /master/lua_examples/u8glib/ this folder, or click here to browse.
  • To remove the pull-up resistor, find the 2x two-very-close-pin on the right side of break away header pin 4 and pin 5, use knife to cut them, then 4.7K resistor will be disconnected. Also can add solder to re-connect them later.

DHT Sensor

  • Please connect the board to sensor by wires, because the PCB and relays will generate heats!!
  • DHT22 support plug on to use, feel free to use wires or socket to settle the DHT sensor, pin definition is 3V3, data, NC and GND
  • Default firmware has DHT module enable, upload example code will work directly. demo code here., or download lua sketch File:DHT22.zip, in esplorer run DHT22.lua direct to read temperature humidity

General Pin Definition

  • Pin Definition for standard esp relay board, relay VDC board, relay SPDT board.
ESP8266 -> IO12 IO13 IO16 IO14 IO4 IO5 IO0 IO2 IO15
Board Function Relay 1 Relay 2 Status LED DHT22 Lead out and pull-up pins (for IIC) Lead out and pull-up pins (for IIC) button BTN2 button BTN1 Lead out pins
Description relay 10A load max. relay 10A load max. - pull-up 10K resistor Pull-up resistors 4.7K (cuttable) Pull-up resistors 4.7K (cuttable) for entering into flash mode customize programming Lead out GPIO

Documents

B004 box.jpg
  • Case size see on the image.

Schematics