lsm9ds1-sensor

0.1.7 • Public • Published

STILL A WORK IN PROGRESS!

If you have any contributions please create pull requests. This should be good enough to read and init data. But still needs a lot more tweaking.

lsm9ds1-sensor

Welcome to lsm9ds1-sensor, a Node.js I2C module for the STMicroelectronics LSM9DS1 Gyro, Accelerometer and Magnometer + Temperature sensor. Adafruit sells a LSM9DS1 breakout board and here is the datasheet.

This module uses i2c-bus which should provide access with Node.js on Linux boards like the Raspberry Pi Zero, 1, 2, or 3, BeagleBone, BeagleBone Black, or Intel Edison.

Note: While the LSM9DS1 device does report temperature, it is measured by the internal temperature sensor. This temperature value depends on the PCB temperature and sensor element self-heating. Therefore ambient temperature is typically reported above actual ambient temperature.

Since lsm9ds1-sensor needs to talk directly to the I2C bus and requires access to /dev/i2c, you will typically need run Node with elevated privileges or add your user account to the i2c group: $ sudo adduser $USER i2c

Example Code

Coming

Example Output

> sudo node example.js          
Coming

Example Wiring

Adafruit have a very good example on how to wire this one up. Look at their learning page.

Credits

This repo is somewhat build up on how Skylar Stein did his repo for the BME280 Sensoe. The source is also modified from SparkFun's version for the Arduino found here

Package Sidebar

Install

npm i lsm9ds1-sensor

Weekly Downloads

0

Version

0.1.7

License

MIT

Unpacked Size

29 kB

Total Files

6

Last publish

Collaborators

  • toffe