Jump to content
Electronics-Lab.com Community

Ameba Arduino -- IBM Watson IoT Platform With MQTT


Recommended Posts

cover.thumb.png.dad7862c741623cd8ddceb5baff14e62.png

 

MQTT (Message Queuing Telemetry Transport) is a protocol proposed by IBM and Eurotech.
 

IBM® Watson™ IoT Platform is, by the official definition,

 

“A foundational cloud offering that can connect and control IoT sensors, appliances, homes, and industries. Built on IBM Cloud, Watson IoT Platform provides an extensive set of built-in and add-on tools. Use these tools to process IoT data with real-time and historical analytics, extract key performance indicators (KPIs) from your data, add “smarts” in the cloud for non-smart products, and securely connect your own apps and existing tools to the Watson IoT Platform infrastructure.” (IBM, 2020)

 

This platform provides easy web interface to register, connect and visualize our IOT devices. For quick start and simple try-out, registration is not necessary, we may just run our program to get the device ID needed for this platform.

 

 

Preparation
 

§  Ameba x 1

 

 

Example

In this example, we will take a look at how to make use of IBM Watson IOT platform for out IOT project.

 

Open the MQTT example “File” -> “Examples” -> “AmebaMQTTClient” -> “ibm_watson_iot_quickstart”

 

arduino.thumb.png.a1b889fac81ffb32c0a976c5d1ba013c.png

 

Make sure the Wi-Fi information is properly filled in and we are ready to upload the code to ameba.

 

Once uploading finished, open a serial monitor and we shall see information as follows,

console.png.9b27f3895dac2d9caa0cb88cd2bd737c.png

 

Important:

Please take note of the string of characters on the first line of the picture above -- “clientId:quickstart:iotsample-ameba:ac35ee15608e

 

ac35ee15608e” is the device ID as well as the MAC address of the ameba board used here which will NOT be the same for other cases, so make sure to copy down the device ID displayed on your serial monitor.

 

Next, we click the IBM IOT platform link provided here and open our browser:

 

https://quickstart.internetofthings.ibmcloud.com/#/

 

Paste the device ID we just copied into the box highlighted below,

680054854_IBMiot.thumb.png.9f29921bb341d8155a737447ffb1f011.png

If the device ID keyed in is correct, some fake temperature data that our ameba published will be visualized like this,

 chart.thumb.jpg.07bdbca728cf9e9e69e4fe304db2f58e.jpg

Done!  Now you have FREE and working IOT cloud platform to help you visualize your IOT data in realtime~ 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...