This is a support blog to Cue System for Anosmia and Smart WheelChair #4 - IoT Temperature Monitoring [DIY]  and in this blog, I will explain step by step on how to connect Arduino MKR1000 with thinger.io IoT platform for reading temperature data sensed using TMP 36 temperature sensor.

 

Steps

 

  • Go to the thinger.io login page - https://console.thinger.io/#/login and log in using your credentials. If you do not have an account, sign up here - https://console.thinger.io/#/signup.
  • On successful login, you will be directed to the console statistics/ dashboard page. This page has statistics of how many IoT Hardware devices you have connected with your account, how many dashboards, data buckets and endpoints you have set up. Here 1 / 2 or 1 / 4 refers to 'Count of XX configured to Count of XX that can be configured in your free thinger.io account' where XX - refers to device/ dashboard/ data buckets/ endpoints.

    

  • Under 'Your Cloud' click 'Devices' and then after the page load, click 'Add Device'.

      Note: Devices refer to the IoT Hardware devices. In our case, it is the Arduino MKR1000.

  • In the page which loads, Enter the name of your device without space under 'Device Id' and a description under 'Device description'. You can either enter a credential under 'Device credentials' or click 'Generate Random Credential' button to generate a random credential and then click 'Add Device'.

  • On successful addition, you will be redirected to the page below with the details of the device you have created. It will also have the time of creation and the state of the device connected/disconnected.

  • Click on the Device Id 'ArduinoMKR1000' to get directed to a page as shown below. This page will have even more details such as the device connection state, information on the data sent, received, the IP Address and the duration of the connection.

 

  • Upload the code in this GitHub page to your Arduino MKR1000 after making replacements in the below lines.

 

/*Create an account in thinger.io and replace username below with that username. 
Create a new device and replace deviceId, deviceCredential below with the one you had created.*/
ThingerWifi101 thing("username", "deviceId", "deviceCredential");

 

/*Replace the below accrodingly with your WiFi SSID and password*/
thing.add_wifi("your_wifi_ssid", "your_wifi_ssid_password");

 

  • Under 'Your Cloud' click 'Dashboards' and then after the page load, click 'Add Dashboard'.

      Note: Dashboard is a page where we can configure the data to be viewed in time-series plots.

  • In the page which loads, Enter an id, name, and description for your dashboard and then click 'Add Dashboard'.

  • On successful addition, you will be redirected to the below page. Click on the Dashboard ID as highlighted in the red box below.

  • In the page which loads, slide this switch to enter into Edit mode.

  • Click 'Add Widget' in order to configure and add our temperature graph.

  • Enter values in the 'Widget Settings' page which opens as shown below. 'Resource Name' is the name of the output resource mentioned inside double quotes in the Arduino code in the line given below. Click Save once all required fields are filled.

 

  thing["Temperature"] >> [](pson& out){


  • You will be redirected to this page, where you can see the real-time temperature plotted against time when your device with temperature sensor is connected online.

  • In Dashboard Edit enabled page, click the Settings button.

  • Enable the Share switch to get your own URL where you can see the same temperature graph. This can be used to view the graph in any internet enabled device [Mobile phone with browsers].