Evothings Demo Info

TI SensorTag CC2541 Demo

Not Connected

Info

This app charts accelerometer data from the Texas Instruments SensorTag CC2541. Note that you must run this app in the Evothings Client app, or build a Cordova app with the plugin com.evothings.ble. A device with support for Bluetooth 4.0 and Android 4.3+ or iOS 7+ is required.

How to use

Activate the SensorTag and tap the Connect button. If everything works the tag is discovered and accelerometer data is plotted to the canvas. Shake your SensorTag to see the plot change.

Modify the code to plot magnetometer data

  1. Press the Code button in the Workbench and open the app.js file.
  2. Change the app.readServices function according to the comments written in the code.
  3. Save the file.
  4. Press the Start button in the app.

Try the magnetometer by moving your SensorTag close to your laptop or mobile phone which often contain sources of magnetism, or go fetch a fridge magnet from your kitchen and use that.

Troubleshooting

On Android, there are sometimes problems with that BLE stops working when switching between apps or doing multiple reloads. In this case restart the Evothings Client app. Additionally, you can use the Evothings Workbench Tools to see any error messages that may help in your investigation.