Introduction: IoT ESP8266 Series: 2- Monitor Data Through ThingSpeak.com

Picture of IoT ESP8266 Series: 2- Monitor Data Through ThingSpeak.com

This is part two of IoT ESP8266 Series. To see part 1 refer to this instructable IoT ESP8266 Series: 1 Connect to WIFI Router.

This part aims to show you how to send your sensor data to one of the popular IoT free cloud service https://thingspeak.com. The data could be any data you would sense such: Temperature, Humidity, air pollution measurements or even GPS location .

Step 1: Set a ThingSpeak Channel

Picture of Set a ThingSpeak Channel

Open ThingSpeak.com

To set your ThingSpeak configuration do the following steps

  1. Sign up
  2. Make a new channel
  3. Name the channel (e.g. Weather, if you are monitoring weather data)
  4. set Fields ( e.g. Temp, if you are welling to measure temperature). You can add up-to 8 channels for every channel
  5. Remember your Channel ID
  6. Go to API Keys and remember yourWrite API Key

Step 2: Required Components and Circuit

    1. ESP8266 ESP-12E NodeMCU
    2. ts USB cable
    3. Potentiometer
    4. Breadboard and wires

    The Potentiometer‚ÄŹ output goes to A0 in the ESP8266, one side to GND and the other to 3.3 V

    Step 3: Code

    Picture of Code

    Download ThingSpeak Library and import it.

    Download my code

    Set myChannelNumber toyour Channel Number that you have already remembered.

    Set myWriteAPIKey to your Write API Key that you have already remembered.

    Step 4: Result

    Picture of Result

    Enjoy Watching your data

    Step 5: Next Part

    Follow us to see the next part of the series. It will be published soon

    Comments

    jshippauf (author)2017-09-28

    Hello. This is great. I followed your first two esp8266 NodeMCU instructables and they were very easy and worked perfectly. I have one question: on ThingSpeak the graph collects a point from my potentiometer every ~15 seconds, is there a way to speed this up?

    About This Instructable

    2,937views

    32favorites

    License:

    Bio: I'm a passionate Solutions Engineer. I have my B.Sc. degree in Mechatronics Engineering, and doing my M.Sc. in Embedded Systems Engineering at ... More »
    More by ROBOSAN Solutions:IoT ESP8266 Series: 3- ThingSpeak-Android Control NodeMCU's portsIoT ESP8266 Series: 2- Monitor data through ThingSpeak.comIoT ESP8266 Series: 1- Connect to WIFI Router
    Add instructable to: