@tibbo-tps/tibbit-36

0.0.4 • Public • Published

Tibbit #36 (3-axis accelerometer)

The node module for collecting data from Tibbit #36 (3-axis accelerometer).

Installation Instructions

The module is available as precompiled binary and C source code.

Install the module

npm install @tibbo-tps/tibbit-36

Usage

var accelerometer = require("@tibbo-tps/tibbit-36").init(socket);

API Methods:

init(socket)

  • socked - TPP socket number

Returns an object with a singe method:

.getData()

Returns an object with the following properties:

  • error - Error message or null
  • lx - X-Axis data
  • ly : Y-Axis data
  • lz : X-Axis data

Example:

var accelerometer = require("@tibbo-tps/tibbit-36").init("S15");
setInterval(function(){
    var data = accelerometer.getData();
    console.log(data);
},1000);

About the Tibbit #36 block

This Tibbit is based on the ADXL312 accelerometer IC with I2C interface. The sensor is implemented as the C1 device.

The module measures acceleration in the +/-12G range, simultaneously in three axes, and with 2.9mG resolution.

This C1 device requires that Tibbit #00-3 is installed in the neighbouring "M" socket. #00-3 provides two direct lines for I2C comms, as well as the ground and +5V power for the ADXL312 IC.

Readme

Keywords

none

Package Sidebar

Install

npm i @tibbo-tps/tibbit-36

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

53.9 kB

Total Files

5

Last publish

Collaborators

  • tibbo-tps