Introduction: WIFI Eight Relay Board

Safety Warnings

If you are considering buying this item, you probably already know all this but in the interest of your safety, we feel compelled to state all this clearly. So take a few minutes to read it carefully before buying.

AC mains are very dangerous -- Even a 50 V AC supply is more than enough to kill you. Please Switch off the mains before making or changing connections, be very very careful.Ifyour are not sure of anything related to the Ac supply linesplease call an electrician ask him to help you our with it . Do not attempt to interface to mains unless you have adequate training and access to appropriate safety equipment. Never work on high voltages when you are alone by yourself. Always ensure that you have a friend/partner who can see and hear you and who knows how to quickly turn off power in case of an accident. Usee a 1A Fuse in series with the input to the board as a saftey measure. Basic Wiring diagram is available on our instructables page and github .Please go through it

Fire Hazard: Making wrong connections, drawing more than rated power, contact with water or other conducting material, and other types of misuse/overuse/malfunction can all cause overheating and risk starting a fire. Test your circuit and the environment in which it is deployed thoroughly before leaving it switched on and unsupervised. Always follow all fire safety precautions.

Armtronix Wifi Eight relay board is a IOT board.The features of the board are:

  1. Wireless control
  2. HTTP and MQTT
  3. On board USB to UART
  4. On board AC to DC power supp1y 230VAC to 5V DC.
  5. 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