Sending sensor data from ESP8266 to IBM Watson.

Sending sensor data or any dummy data from ESP8266 to IBM Watson.Firstly, login into your IBM-Bluemix account with your e-mail ID and Password.Click on catalog on your dashboard screen. Under Platforms Go to Internet of Things .

ESP8266 IBM Watson IOT

585 Views, 17 Nov 2017 10:58 am

Description

Aim: Sending sensor data or any dummy data from ESP8266 to IBM Watson.
Requirements:
Software:
  • IBM Bluemix  account
  • Arduino IDE
Hardware:
  • ESP8266
STEPS INVOLVED:
Step-1:Create a device in IBM Watson:
Firstly, login into your IBM-Bluemix  account with your e-mail ID and Password.


  • Click on  catalog on your dashboard screen 

  • Under Platforms Go to Internet of  Things .

  • Then give a name for your Service name and click on Create

  • After getting into your service click on Launch 

  • Then you get into IBM Watson Platform .Then click on Devices

  • When you get into Devices you find a button called +Add Device click on it.

  • Then you get a window where you should click on Create Device Type.


  • Then you will get an another window asking whether to create a device type or gateway type. Click on “Create a Device Type”


  • Then give a name and Description for your device (any name and description can be given) and then click on Next


  • Then another Window appears just click on Next

  • Click on Next for the above window


  • Click on Next for the above window



  • Then click on Next when the above window appears.



  • Give any Unique Data  as Device ID for unique identification


  • Click  next when the above window appears.


  • Again click on  Next when the above window appears.


  • Then click on Add when the above window appears.


  • Then you get your device Credentials which you can use later. Copy them   and paste them in a notepad for future uses.

STEP-2:UPLOADING THE CODE TO ARDUINO :
  • After the  Creation of Device ID in IBM has finished we go for the next step which is uploading the code to your Node MCU.
  • In case of MQTT there are two types of  commands publish and subscribing to a topic
  • In case the code for publishing  data is used we get the following  on your serial monitor.


In case you are subscribing for any data you will get the following on your serial monitor.


Step-3: Creating boards and cards for visualization of data:
  • In your  Watson platform you have an option called board .Click on it and you get the following window on your screen 


  • Click on Create a new board to create a board .
  • The  given below window appears give a name and description to your board as shown in the window below 


  • Then click on Next you get the below window then again click on ADD 


  • Then double click on your boards name in the dropdown and click on add new card at the top right corner.

  • Select the type of Graph u want accordingly and Click next 
  • You get the below window


  • Tick mark your device name  as shown above  and then click on next.
  • Select the event ,property to be visualized on your graph and click next .In my case it is humidity


  • Then select the size of the graph and color of the graph board you want and click next


  • You get your desired data in the form of a graph as shown below


Conclusion: Hence, we were able to send data from our ESP8266 to IBM Watson and visualize it on a graph



Latest IOT Projects
IoT Bootcamp From Sept 2
IoT Analytics Bootcamp From Aug 5
MQTT and CoAP Training From Aug 29
ThingWorx Training From Aug 24
Communication Protocols Training Coming Soon
IOT Development Kits
IoT Bootcamp From Sept 2
IoT Analytics Bootcamp From Aug 5
MQTT and CoAP Training From Aug 29
ThingWorx Training From Aug 24
Communication Protocols Training Coming Soon
Adds Here Adds Here Adds Here

TESTIMONIALS

Sowmya Kambampati
KONY India Pvt Ltd, as a Associate Software Engineer
Ratings :
Review:

I am very thank full to you all for giving such a great training and opportunity to explore my ideas in the stream of IoT, started with a 2 week workshop, very well Hands-on session ever had before...

Poorna prudhvi
Associate Software Engineer in mroads Pvt Ltd
Ratings :
Review:

I interned at smart bridge it's on a mission to become the power House of IOT.The work here is innovative and colleagues are very friendly.i would definitely recommend smart bridge to be a part of you..

P. Sai Teja
System engineer in IBM
Ratings :
Review:

I have done my project and Iot training at Smart Bridge Technologies based on which I got placed in IBM as a system engineer. I am very thankful that i have found my way to build my career further. Th..

Revathi Dhage.
Intern
Ratings :
Review:

The Project was developed in time, and it was appreciated .Many small details were covered well, and proved to be distinguishing points to the project.The concerned mentor, Sandeep Doodigani, has been..