Introduction: WIFI Eight Relay Board
Armtronix Wifi Eight relay board is a IOT board.The features of the board are:
- Wireless control
- HTTP and MQTT
- On board USB to UART
- On board AC to DC power supp1y 230VAC to 5V DC.
- DC virtual switch
The size of the board is 140mmX80mm, as its shown in diagram1. Relays has a capacity to drive 10Amps load. The board has the Wifi module (ESP8266) and microcontroller (atmega328) which is used to control the relays through HTTP or MQTT.There are eight relays on the board, eight loads can be controlled.There is DC virtual switch. There is on board USB to UART and micro USB to program the ESP 8266 and atmega328 using suitable jumper settings.
The board also has Power module AC to DC of 100-240VAC to 5V up to 1A, Relays and Terminal connector.
Step 1: Header Details
The diagram2 gives the details of the headers and terminal blocks.
To board 230VAC is applied to the input terminal block and loads are connected to the output terminal block.
The diagram5 gives the header details of the P1, P2,P3 and P4.
On the board P2 header is used give the 5v or 3.3v to controller, refer the diagram2 this is made by using jumper arrangement. If 1 and 2 pins of P2 is short then the controller runs at 5V, if 3 and 2 pins of P2 are short then controller runs at 3.3V as shown in diagram5.
P1 header is a standard SPI header is used to upload the bootloader to atmega initial(board comes with preloaded bootloader)
P3 header to connect the DC virtual switch
P4 header is for relay , if the jumpers are short then the relay can be turned on and off.
S1 button is for reset of ESP.
S2 button is for Key flash for ESP.
S3 button is reset for Atmega .
Step 2: Programming Header
P5 Header is used to upload the firmware to ESP or atmega through the USB to UART by using micro USB details of headers can be found in the diagram6.
To upload the new firmware to esp via selecting the com port short the pins 2-8 ,3-9 and 5-11 of P5 header using jumper settings., refer the diagram8.
To upload the new firmware to atmega via selecting the com port short the pins 1-7, 4-10 and 6-12 of P5 header using jumper settings, refer the diagram7 .After programming both ESP and Atmega we have to establish connection between ESP and Atmega by shorting 1-2 and 3-4 of P5 header using jumpers settings refer diagram9.
Step 3: Wirring
The wiring diagram is shown in the diagram3 and diagram4 , diagram3 gives the clear picture of about connection of phase and neutral to input terminal block , 230VAC Phase(P) and Neutral(N) . Also gives relay wiring information, phase is given to the common terminal of the relay and load is connected to the NO(Normally open ) termianl of the relay.
The diagram4 shows how to do the wirring of the DC virtual switch. P3 header has the GPIO’s of the atmega which is used for the virtual switch..The user can control the relay channels using wifi based and also using DC virtual switch.
For configuration of ESP refer the configuration details link