Assigning the IP Address to Your WiFi Router
Our 12v WiFi relay control device uses your wifi router to control relay outputs for motors, valves, lights, etc. In the previous article, we looked at how to access your router admin to choose an available IP address on your local wifi LAN network.
In this article we'll see how that IP address is assigned to your wifi relay module, using the Android app you downloaded at time of purchase. You should be sure to install the app before you start the configuration procedure below.
Your wifi relay module normally appears as an addressable node on your wifi network, much the same as a wifi printer would. However, it is also capable of operating in AP mode (Access Point), which means it will behave as if you had another router in your home or office (in just the same way you can often see your neighbour's wifi routers).
The AP mode is used only to configure the IP address for the module, and you will only do this once (unless you later want to change the IP address of the unit). You can put your wifi relay module into the AP configuration mode by powering off the unit and sliding the small white mode switch that is right beside the output relay screw terminal blocks (see the arrow in the above image, where the label says 'Config').
The next step is to go to the WiFi settings area of your Android device; here's a screen capture of our Android tablet WiFi configuration area:
To get to the above screen on your Android device you'll need to go to the area where you originally connected to your local wifi network. If you have never done that, please refer to the manual for your Android device, or search the net for instructions regarding your particular Android device. It is usually quite easy to find the settings area, if you can't find the instructions.
In the above picture, you can see that we are still connected to our regular wifi router (the RT connection), but the relay module has now appeared in the list of available wifi networks (the WiFly-EZX-4f connection) because we have switched the relay module to AP mode.
Some newer units will display a slightly different name for the relay wifi connection, but it will be very similar to the above. You may also have to refresh your wifi network list, if you can't see it.
At this point, you can disconnect from your regular router connection, and connect to your relay module. Keep in mind that once you do that, you will not be able to send/receive email or surf the net because you are no longer connected to your regular router.
Once you have connected your Android device wifi to the relay module, please switch back to the app screen, as below ... please note that you will need to know the password for your regular wifi router for the following procedure, assuming it is secured ...
The screen capture at left of our Android app is displaying the configuration menu which appears when you press the menu icon at the top of the screen. Please select the center option 'Configure' to start the process of assigning the IP address to the relay module.
If you have not connected to the relay module via wifi, as per the previous section, it will time out in about 10 seconds and display an error message.
Enter the Name
for your RELAY MODULE
If you are successfully connected to the relay module via wifi, the configuration process will start by requesting a name for your relay module - you can use any name you like (Wifi Relays?). Press the NEXT button after entering the name ...
Enter the Name
of your MAIN WIFI ROUTER
The next step in the configuration process requires that you tell your relay module what wifi network router it will normally be connecting to ... enter the name of your regular wifi connection, and press the NEXT button after entering the name ...
Enter the Password of your MAIN WIFI ROUTER
The next step in the configuration process requires that you enter the password for your main wifi router, if it is secured (leave it blank if it is wide open, although it should never bee left in this mode) ... press the NEXT button after entering the password ...
Enter the IP Address for your RELAY MODULE
The final step in the configuration process is to enter the IP address you previously selected for your relay module, so that it becomes an addressable relay device (we used 192.168.1.200) ... press the START button after entering the IP address ...
After a few seconds, you will then see a series of commands scrolling up the screen. Wait until the scrolling has stopped, the you'll see a final message:
Configuration is complete, please connect your router.
Switch your relay board to normal mode and restart this app.
At this point you are finished with the configuration. The screen capture at left of our Android tablet illustrates the basic functions of this unit, and you should see something similar after you re-start the system. Here are the steps to take that will restore your system to the normal operating mode:
- Close the app, it will need to be restarted
- Go back to your Android device wifi settings area and switch back to your main router
- Power down the relay module, switch it back to normal mode (see arrow in top picture), then power it back up
- Launch the Android app again
- Press the CONNECT button in the menu (picture above) - you'll see the IP address and name
- Select your relay module to activate the connection; the relay module and Android app will now be operational
To test it, please press a relay button; you should hear the 'click' of the relay activating, and it will light up the button with a blue color, confirming activation (like the picture above).
Now you can connect fans, motors, valves, temperature sensors, etc. to it; we will cover that procedure in the next article.
PART 3: WiFi Relay Controller - Assigning an IP address (YOU ARE HERE)
We sincerely hope you enjoy using these advanced motors; if you have any questions, please feel free to contact us at any time!