BLE TI SensorTag

TI SensorTag Example

This app charts magnetometer data from the Texas Instruments SensorTag. Note that you must run this app in the Evothings client app, or build a Cordova app with the plugin com.evothings.ble. Device with support for Bluetooth 4.0 is required.

Source Code

You can browse the source code for this example at the Evothings GitHub repository

The file index.html is the entry point of the app.

The file File app.js contains JavaScript code for the app that communicates with the SensorTag using BLE.

What You Need

This example requires an iOS device (iOS 7) or an Android device with support for Bluetooth 4.0 (which includes BLE). Android 4.3 or later is required.

You need to run this example in the Evothings client app. Alternatively, you can make a Cordova application if you wish to distribute the app. Then you need to include the Cordova plugin com.evothings.ble, see page Evothings App for further details.

Please note that BLE support on Android is still not fully mature. As a result, you may experience difficulties running this example. Known problems related to Evothings Studio include interactively reloading the app from the Workbench. If the app stops working, restart the Evothings client app.

You also need the Texas Instruments SensorTag to run this example app, it sells from Texas Instruments website for 25$ and has in-all six different MEMS sensors on-board; accelerometer, gyroscope, magnetometer, IR temperature, humidity and barometric pressure (and a BLE radio of course).

How To Get Up And Running

Follow these steps to get started with this example:

  • Run the Evothings Workbench on your desktop/laptop computer.
  • Run the Evothings client app on an Android mobile device and connect to the Workbench.
  • Launch the example "BLE TI SensorTag" from the Workbench window.
  • Press the "activate" button on the SensorTag.
  • Touch the "start" button in the app.
  • If everything works, the app should detect the SensorTag and start plotting magnetometer data on the canvas.

Copyright © 2013-2014 Evothings AB