NodeMCU Arduino Projects: NodeMCU Tutorial Connecting NTC Thermistor to Cloud with ESP8266

Tutorial on Connecting Node MCU to Cloud

NodeMCU  is one of the most popular IoT Development platform use by the thousands of developers worldwide. What is more attractive is that it can run on the even more popular Arduino IDE, which defacto choice for hobbyists and students.

The goal of this tutorial is to enable you to send capture and send data to cloud from your NodeMCU device. Before starting this tutorial make sure you have your NodeMCU and LM35 Temperature sensor handy, so that this tutorial should go smoothly.

NodeMCU and NTC connection diagram

Part I:Installation and settings of Arduino IDE

  1. you have not already done, follow the installation and settings of  Arduino IDE through this link https://youtu.be/4Ih39hGcPzg
  2. Follow the settings of ESP8266 through this link https://youtu.be/G6CqvhXpBKM
  3. To create the temperature sensor project, go in options file–> New
  4. You can add the library files from sketch –>include library–>manage library
  5. Add all the libraries specified in the program “ESP8266WiFi.h” “DNSServer.h” “ESP8266WebServer.h” ”WiFiManager.h”
  6. You can search for the libraries you want to include and click install

    Part II: Setting up Cloud Account on Thingsio.AI

    ThingsIO.AI is an IoT Platform for developers. As a developer we understood the pain of not  having a seamless place to connect, analyze and process device data. Many pure analytics platforms does not offer device management, which is core for the IoT. That is the reason of ThingsIO.AI

  7. Register the account in http://thingsio.ai/#/register. 
  8.  You will get the notification for sign up.
  9.   Go in your email address and verify your account. You will get the  notification  for the email verification   
  10.  After that, sign in your account with your email address and password
  11. Now, you will be on the project dashboard of your account. Click on the  new  project option:
  12. Click on the add a new device option:
  13. You will get your Device ID. After that, Enter the device name and click on the create and configure device:
    1. You will be on your device dashboard:  track your device’s special parameters here.This can be set in the device configuration(default to null)
    2.  you can see your real time and special parameter’s graph
    3. you can see all your data points
    4. you can see here your last 5 data points                                                                         
  14. Go in sample device code options and click on the Node MCU. You will get the sample code from there.
  15. Click on the “Send trial data” to send a trial data to the server:

    Part III: Setting up Node MCU

    Now switch back to your Node MCU  Project.

  16. Go in sample device code options in http://thingsio.ai/ account and click on the Node MCU. You will get the sample code from there(Temperature sensor).
  17. Copy and paste it on your IDE
  18. compile the sketch by clicking on the compile icon on the top left corner
  19. connect the node MCU(ESP8266) via the USB cable
  20. Upload the sketch by clicking on the upload icon
  21. You can  check the  output on the serial monitor

    Part IV: Charting and VIsualizations on Thingsio.AI

  22. Now, click on the configure device option
  23. You can set the special parameters (this is tracked on the dashboard) & transform it accordingly and add new parameters 
  24. Click on the update device option:
  25. You can also set your device geographical location
  26. To create a graph for your device click on the “create graph option”.
  27. Click on the preview option and click save change
  28. You can monitor the response from the server, connection with the  Wi-Fi etc on the serial monitor (make sure that   the  baud rate is same as that specified in the program ie,115200)

Sign up to receive weekly updates

 

Please follow and like us:
0

Leave a Reply

Your email address will not be published. Required fields are marked *