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 (1): a Remote Temperature and Humidity Monitor

In this tutorial, we use Wboard Pro and SHT10 temperature and humidity sensor as example to communicate with IoTgo platform so that we can realize a remote temperature and humidity sensor that can be visited via internet.

For the Hardware part, we choose the Arduino development board Wboard Pro with an on-board wifi ESP8266 chip, and then make the SHT10 sensor brick connect to it. You can connect SHT10 sensor to Wboard Pro's IIC. Please refer to the following picture.

For the software part, we use ITEADLIB_Arduino_IoTgo library. In this library, it offers the ESP8266 hardware layer interface compatible with Wboard. The library also provides the IoTgo communication protocol stack so that users can invoke the operation function to communicate with IoTgo server without rewriting a new communication codes. Download IoTgo Arduino Library from github: https://github.com/itead/ITEADLIB_Arduino_IoTgo, and extract it to the Arduino IDE's library directory.

Register IoTgo Account and Get the API Key

First, you need an IoTgo account so that you can get your own API Key

After login,you can see your API Key in “My Profile”. The API Key is fatal because only add the Key in your codes, can the data sync to your IoTgo account. 

Add a New Device in Your IoTgo Account

Click "My Device", and choose "Create DIY Device". 

In the pop-up window, you need to fill in the information about this device name and type and then set its group name. For example, you can name the device “living room”, choose the type Temperature and Humidity sensor, and name its group “Tem_Hum”. Then click "create", the DIY device is created successfully.

Get Your DIY Device ID

Return to "My Device" interface, you will see the new added DIY device icon, click it you can get the DIY device ID.

You need to write API Key and Device ID in your code so that the data from your DIY device can be updated to corresponding device in your account when the DIY device communicate with IoTgo platform.

Upload Demo

Open Arduino IDE, choose examples ->IoTgo ->temp_hum_sensor

Type the Device ID and API Key we've got in the above steps into THSENSOR_ID and THSENSOR_APIKEY. For example,


#define THSENSOR_ID             "030000000a"
#define THSENSOR_APIKEY        "d8742379-9aca-45d9-8ff4-f4caf68156fa"

Modify WIFI_SSID and WIFI_PASS to an effective wifi spot. For example,


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

You can see the SHT10 sensor default pin number as below.  


#define THSENSOR_DATA_PIN    (20)
#define THSENSOR_CLOCK_PIN   (21)

There is no need to modify other parts. Before uploading codes, you should choose board "Arduino Mega 2560 or Mega ADK" and the right serial port.

After uploading the demo to Wboard Pro, it will connect IoTgo server automatically through wifi. Open serial monitor, you can see the running status of Wboard Pro and the real-time temperature and humidity.

Now, you can login IoTgo platform, and open the device to see temperature and humidity data.