Connect Sensor Tag to Watson IoT platform using a Raspberry PI as gateway

In my previous post, to connect Sensor Tag to Watson IoT platform I used my MacBook as IoT gateway !

My Bluemix‘ s colleagues have developed a Node.js app (iot-sensor-tag) that allow to use a MacBook as IoT gateway, retrieve data from its sensors, and publish that data to the IoT platform. In theory you can run the application an anything that supports the Node.js runtime and Bluetooth LE, so you can install node.js and iot-sensor-tag application on Raspberry PI.

You have download the Bluetooth stack Bluez on the Raspberry Pi from:

and before installing Bluez, the Raspberry Pi environment needs to be updated to have the following set of libraries installed on it:

You have extract the tar file downloaded earlier. Under the extracted directory the is the bluez-5.32 directory. You should find the configuration file ‘configure’ under the directory mentioned above Execute the following command to configure the Bluez

Post successful configuration, now perform ‘make’ to install the Bluez

During the make command I enjoined to monitor the Raspberry CPU utilization on my web dashboard. As you know the Raspberry can send performance data to Watson IoT platform. Here is my old post about it.

IoT data for Raspberry make command
IoT data for Raspberry make command

and finally run the app on node.js

Raspberry Pi as IoT gateway for Sensor Tag
Raspberry Pi as IoT gateway for Sensor Tag

As usual you have to register the device on Watson IoT platform and create a NodeRed flow. You can read my previous post at this link


IoT data from Sensor Tag
IoT data from Sensor Tag

Enjoy with Sensor Tag and Raspberry PI !



Show More

Mario Noioso

IBMer, engineer, technology enthusiast, inventor, coder, gamer, Linux lover, bassist wannabe, TBD. Nerd since 80s.

Related Articles

One Comment

  1. Sir may I know that is the sensortag is directly connected via USB cable thru CC debugger or a separate Bluetooth dongle module is used for this purpose to establish communication between rpi and sensoratag wirelessly over BLE protocol?

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

HTML Snippets Powered By :