Connect the ESP8266 NodeMCU to AskSensors IoT Platform

About: IoT Maker, co-founder of asksensors.com

Intro: Connect the ESP8266 NodeMCU to AskSensors IoT Platform

This instructable shows you a simple Internet of Things demo using the ESP8266 NodeMCU and an online IoT service called askSensors. We demonstrate you how to quickly get data from the ESP8266 HTTPS client and plot it in graph into the askSensors IoT Platform.

Step 1: Materials You Need

To follow along with this tutorial you will simply need:

  • ESP8266 Node MCU
  • USB micro cable to connect the node MCU to the computer.

Step 2: Sign Up for AskSensors

First, Create a new account at askSensors.

Step 3: Log in AskSensors

You will receive an email containing all the instructions you need follow to login (It is super easy).

Step 4: Create a Sensor

Click on 'New Sensor' to create a communication channel with unique ID and Api Keys.

Step 5: Set Your Sensor

Give a name and description to your sensor.

Step 6: Add a Module to Plot Your Data To

Add a module for the data you will be plotting.

Step 7: Get Your Api Key In

Copy down the Api Key In value. We will use in the ESP8266 code later to write data to this sensor

Step 8: Get the Software

Example sketch and ESP8266 WIFI libraries are available in github.
The code connect the ESP8266 to wireless network as HTTPS client, and then push dummy data to askSensors every 25 seconds . You need to fill the following:

  • Your WIFI SSID and password.
  • The Api Key In generated before by askSensors.

Step 9: Run the Code

  1. Program your ESP8266. Follow this tutorial if you still need to get started with programming the ESP8266 ESP-12E NodeMCU using Arduino IDE.
  2. Return back to your sensor page on askSensors, click on 'visualize' and 'Show Graph' to view your sensor data in graph.

Step 10: DONE!

That's it! You can cross-check the graph readings with the values being printed on your arduino Terminal.

You can try more tutorials here.

Finally, your feedback will be appreciated. please leave a comment below!

Share

Recommendations

  • Fix It! Contest

    Fix It! Contest
  • Furniture Contest 2018

    Furniture Contest 2018
  • Tiny Home Contest

    Tiny Home Contest

4 Discussions