Beagle Board - beagleboard.org

Maker Faire Rome 2014

Place holder for link to image

Need to put SD card image link here

Steps executed in workshop

  1. dpkg -i bluez_4.99-2_armhf.deb
  1. apt-get install bluez
  2. npm install -g sensortag

Parts

Presentation

Link to presentation

Example code for SensorTag interfacing

var sensortag = require('sensortag');
sensortag.discover(ondiscover, "bc6a29ac437d");

function ondiscover(sensorTag) {
    console.log("hello Maker Faire Rome from " + sensorTag.uuid);
    sensorTag.on('accelerometerChange', onaccel);
    sensorTag.connect(onconnect);

    function onconnect() {
        sensorTag.discoverServicesAndCharacteristics(onservices);
    }
    
    function onservices() {
        sensorTag.enableAccelerometer(dummycb);
        sensorTag.setAccelerometerPeriod(1000);
        sensorTag.notifyAccelerometer(dummycb);
    }
}

function onaccel(x, y, z) {
    console.log("x = " + x);
    console.log("y = " + y);
    console.log("z = " + z);
}

function dummycb() {
}


Last updated by jkridner.wordpress.com on Sun Oct 05 2014 11:05:10 GMT-0000 (UTC).
2039