Home Live Mathematics and STEM on the Web My First Web Page: Introduction ← Lesson 10

  

My First Web Page: Lesson 10: Adding Web Bluetooth Support: Talking to your SensorTag

Create Your Own Live Mathematics and STEM Web Pages

W3Schools.com: Taking Your Web Page Skills to the Next Level

GeoGebra Manual

Reference: GeoGebra Apps API

Embedding: GeoGebra Apps in a Web Page: Quick Start

  

  
  

The TI SensorTag is a small, inexpensive device which packs a powerful punch - it is a BlueTooth Low Energy (BLE) tool with sensors for temperature, humidity, barometric pressure, accelerometer, magnetometer, gyroscope and more. Used with the Chrome browser on Mac, Windows 10 (Chrome Canary), Android or ChromeBook, students can easily collect, view and analyse a wealth of real world data for mathematics and science, from the middle years through to seniors. From building their own weather station, to exploring the mathematics and physiology of exercise and dance the opportunities for rich mathematical exploration are truly exciting. All in a tiny device that fits in your hand and costs around $AUD40!

We can now use Web Bluetooth to enable free and effective communication with BLE-enabled devices like the SensorTag, using the Chrome browser on Mac, Windows 10 (Chrome Canary), Android and ChromeBooks (but not, sadly, iOS at present, even using WebBLE)! For more information about the TI SensorTag including classroom applications, visit the SensorTag tutorial pages on this site.

The utility that forms the basis of our SensorTag console here was developed by Futomi Hatano. This lesson illustrates how to adapt this excellent tool to support GeoGebra and JavaScript within a live web page, making it an ideal tool for classroom learning.

Futomi's code is quite complex. It uses multiple sources to offer a very fast and powerful tool for interacting with the SensorTag and is worth playing with to see just what is possible within this platform. However, for those of us who are non-programmers, it goes well beyond what we might reasonably be expected to develop with. Compare the lengthy and intricate code of the default page with the relative simplicity of the GeoGebra adaptation which follows.

The default example has been further simplified by leaving out the pop-up modal boxes which track the loading process, making it easier for you to study the code and make sense of the various components. Many of these elements should now be becoming familiar to you - the ggb-applet, the script sources that support it -and you will now see new sources for the complex Web Bluetooth interaction.

If you have any questions or would like to share your experience with this utility, please drop me an email!

 

 

Back to Top

  

  

A More Complete GeoGebra Solution

Back to Top

    
 

Back to Top

    

Putting Our SensorTag to Work

Back to Top

    
 

Back to Top

 

Home Live Mathematics and STEM on the Web My First Web Page: IntroductionLesson 10