IoT Wifi Board With SMPS & Relay (2 O/P & 2 I/P)

IoTLABZ introduce a new Relay IOT board that can be easily used for industrial or home automation projects and experiments. This is a Two Relay board which has esp8266 on board chip and also has 100-230VAC to 5V DC converter on the same board.Relay has three connections – Common – C, Normally Open-NO, Normally Closed-NC brought out to 3 pin screw terminals which makes it easy to make and remove connections.The board can be programmed using FTDI/CP2102. The board is manufactured with Automatic Pick and place machine with high quality standard. We can control the on-board relay from the cloud using wifi connectivity  or develop your own firmware

The wifi module used to receive commands from network and activate load through relay by executing the program written in wifi module(esp8266). The onboard SMPS module is mounted on the board so that you can supply 5V DC from  120V AC – 230V AC and has a power rating of 3 Watt. This make it perfect for small projects that needed a 5V supply from mains.

There is an option for 2 inputs (2 pin RMC connector) which can be used as switch to control relay and a 3 pin RMC  connector which you can interface with analog input.

FEATURES
  • Based on ESP-07 ESP8266 Wifi Board.
  • Onboard SMPS module is used to convert 120V-230V AC to 5V DC.
  • The relay board uses one AC input and a Two relay AC output.
  • Relay Specification:YL303H-S-5VDC.
  • Three pin RMC connector for connecting Sensor(ADC pin).
  • Two pin Screw terminals are used to connect Input AC .
  • Three pin Screw terminals are used to connect Output AC .
  • Two pin RMC connector to give Input.
 CONNECTORS

PINS USED

Before programming in Arduino IDE, we want to first install third party package using board manager.

  • Install Arduino from Arduino website.
  • Start Arduino and open ‘PREFERENCES‘ from ‘FILE‘ menu.
  • Open Board Manager from Tools and install esp8266 platform in the board menu.

  • Select the Board and COM port of the device to be connected.

In this post an android application to control the IOT relay board. An Application running on Android phone will get the sensor value from IOT device and it will be displayed on the Application. The relay on the board are controlled using the Android Application.

HARDWARE CONNECTIONS
  • Connect the devices to NC (Normally Closed)/NO (Normally Open) screw terminal connector (K4,K5) and connect the Input voltage to Common C.
  • Power the module by connecting the Line and Neutral  to screw terminal connector K6.
  • Connect the sensor(ADC) to RMC connector (K7).
  • Connect the Input devices (Switch) to K1 and K2
  • Upload the code by connecting FTDI/CP2102 to K3.
How to Upload code to IOT Relay board
  • Put J1 jumper .
  • Connect the FTDI on the connector(K3).
  •  Press the Reset button on the board.
  • Press the Upload button on Arduino IDE.
How to connect the board to android application
  • In our examples the IOT Relay board is set as Server and it is connected to a router. The mobile is connected to the same router.The Android Application is connected to the IOT Relay board using TCP/IP protocol (Here we are using Connection terminal and Wifi automation APP).
 Note:Press configuration button then select Network button to perform the action then click Client button which appears on the screen (Options in connection terminal).
  • Enter the IP and Port number and press connect button.
 
  • After connecting open terminal (If you want to send data to server enter data and press send button. You can see the response in Data Received terminal).
 
  •  Upload the following codes given below to control board.
Sample code for checking Relay
Before powering the board connect the device you want to control to NO(Normally open)/NC (Normally closed) points of screw terminal and connect input power which the device want to drive to C(common).

 

Click on Buttons in app to control the devices

Sample code for Reading Sensor(ADC pin)
Connect Vcc(3.3V),GND and sensor pin as directed in RMC connector(K6). Power the module by connecting the phase and neutral to SMPS. Upload the sample code(Using FTDI /CP2102) (Put  J1 jumper while uploading the code.After uploading remove the jumber and press reset button) and connect the android app with the IOT board as described above.
 

 

 OUTPUT

Sample code for checking digital pins
Connect the pin as per the diagram
 

 Power the board and upload the code using FTDI/CP2102(Put  J1 jumper while uploading the code.After uploading remove the jumber and press reset button) . Connect the android app with the IOT board as described above.

 

 

 OUTPUT
Resources
How to Buy

Click here to buy IoTLabz IoT Wifi Board With SMPS & Relay (2 O/P & 2 I/P).

Leave a Reply