SensorTag
Triple-Axis Tilt Calculation: Reference: http://www.analog.com/media/en/technical-documentation/application-notes/AN-1057.pdf (Analog Devices) .lua require "bleCentral" bleState = "" peripheralState = "" myPeripheral = nil peripheralName =…
The output of an accelerometer can be converted to an angle of inclination. In this note, a Dual-Axis approach will be used to calculate an angle of inclination. .lua require "bleCentral" bleState = "" peripheralState = "" myPeripheral = n…
The output of an accelerometer can be converted to an angle of inclination. In this note, a single axis will be used to calculate an angle of inclination. .lua require "bleCentral" bleState = "" peripheralState = "" myPeripheral = nil peri…
Reference: Scripting Tutorial - Lesson 36 Orientation of Axes (Source: https://www.invensense.com/wp-content/uploads/2015/02/PS-MPU-9250A-01-v1.1.pdf) Setting the Configuration UUID (Source: CC2650 SensorTag User's Guide - Texas Instrument…
Weather data have been obtained from a TI SensorTag every ten minutes. Measurement Period: December 2nd, 2016 10:00 PM - December 3rd, 2016 10:00 AM The time unit is minute. .tns 20161202-03_weatherData.tns - Google ドライブ
The following Lua script will obtain weather data from TI SensorTag. Those data will be stored into the native applications of TI-Nspire by the var.storeAt() function. The Graphs application can plot them as scatter plots in real-time. .lu…
The following script will try to extract weather data from CC2650 SensorTag. .lua require "bleCentral" local bleState = "" local peripheralState = "" local myPeripheral = nil local peripheralName = "" -- Temperature TMP007 = { name = "TMP0…
(photo: http://www.ti.com/ww/en/wireless_connectivity/sensortag2015/tearDown.html) .lua -- Refer to http://compasstech.com.au/TNS_Authoring/Scripting/script_tut35.html. require "bleCentral" local bleState = "" local peripheralState = "" lo…
(photo: http://www.ti.com/ww/en/wireless_connectivity/sensortag2015/tearDown.html) .lua -- Refer to http://compasstech.com.au/TNS_Authoring/Scripting/script_tut35.html. require "bleCentral" local bleState = "" local peripheralState = "" lo…
(photo: http://www.ti.com/ww/en/wireless_connectivity/sensortag2015/tearDown.html) .lua -- Refer to http://compasstech.com.au/TNS_Authoring/Scripting/script_tut35.html. require "bleCentral" local bleState = "" local peripheralState = "" lo…
(photo: http://www.ti.com/ww/en/wireless_connectivity/sensortag2015/tearDown.html) .lua -- Refer to http://compasstech.com.au/TNS_Authoring/Scripting/script_tut34.html. require "bleCentral" local bleState = "" local peripheralState = "" lo…
The previous script has been rewritten with no decorations. The process flow is as follows: 1. The ble.addStateListener() registers a state listener. 2. The bleCentral.startScanning() gets a scanner to scan peripherals. 3. The connect() ge…
The following script, from http://compasstech.com.au/TNS_Authoring/Scripting/script_tut31.html, will try to read the state of SensorTag's buttons. Do not press and hold any button for too long, or powering off or mode changing will occur. …
The following script, which is from http://compasstech.com.au/TNS_Authoring/Scripting/script_tut30.html, will try to establish a connection with BLE devices. .lua -- Source: http://compasstech.com.au/TNS_Authoring/Scripting/script_tut30.ht…