Loading...

You have no items in your shopping cart.

 
 
 
×

Registration

Profile Informations

Login Datas

or login

First name is required!
Last name is required!
First name is not valid!
Last name is not valid!
This is not an email address!
Email address is required!
This email is already registered!
Password is required!
Enter a valid password!
Please enter 6 or more characters!
Please enter 16 or less characters!
Passwords are not same!
Terms and Conditions are required!
Email or Password is wrong!
Captcha is required!
Captcha is wrong!

Wboard Pro Applies in IoTgo Platform (2): Remote Control Home Application

For now, IoTgo platform only supports three devices: temperature and humidity sensor, light and switch. And it only provides some basic operations for these devices. In the future, we will devote to develop this platform to support more devices and provide more operations.

In this tutorial, we use Wboard Pro again. When the Wboard Pro connects a 2 Channels 5V Relay Module and a local button brick to communicate with IoTgo platform, we can make a remote switch so that we can control a home application from office or anywhere.

Hardware Connection

The relay module connects to Wboard Pro's Dx pin. and the local buttom brick connects to Wboard Pro's interrupt pin. Then you need to connect the power lines of certain home application to the switch pins of relay. By doing so, we can control this home application via Dx pin. We will use a ventilator to do the demonstration in this tutorial.
 
Please refer to the following pictures.

Like the previous temperature and humidity sensor tutorial, to register an IoTgo account and get the APIKey is required. Then create a switch and name it Fan. You need to choose "Power Switch" as device type. For the group name, you can name it Basement. Now, click the switch icon, you get the new added device ID.

Upload Demo

Open Arduino IDE, choose Example ->IoTgo -> switch_remote

Modify the API Key, Device ID, SSID, Password and switch controlling pins in this demo.


	#define SWITCH_ID                "0100000006"
	#define SWITCH_APIKEY           "d8742379-9aca-45d9-8ff4-f4caf68156fa"

	#define WIFI_SSID           "ITEAD"
	#define WIFI_PASS           "12345678"

You can see the SWITCH default pin number is D20, and the BUTTON interrupt pin number is D21. No need to change them.

	#define SWITCH_PIN     (20)
    #define BUTTON_PIN     (21)

Upload the demo to Wboard Pro and reboot it. Wboard will connect IoTgo server through wifi automatically. The first time you open the serial monitor maybe you will see “No response from ESP8266”, then you need to reset the Wboard Pro and ESP8266 synchronously.

Login your IoTgo account, click the fan device icon, now you can open or shut down the ventilator by clicking the buttons in this interface. 

And now you can also press down the local button brick to turn on or turn off the fan, you will see the switch status is changed synchronously. Sometimes a delay occurs after you press the local button, because the signal should be sync to IoTgo platform first.