sedgwickc / bbb_lsm303 Goto Github PK
View Code? Open in Web Editor NEWA C++ driver for the LSM303 accelerometer and magnetometer sensor written for the BeagleBone Black.
A C++ driver for the LSM303 accelerometer and magnetometer sensor written for the BeagleBone Black.
I did not initially implement reading sensor data as the Adafruit Arduino code for this sensor uses a Wire.h function for waiting until a certain number of bytes is available to read. I'll have to find a way to mimic this behaviour without Wire.h.
Compiles via make but the following error occurs:
I2C: Failed write to the device
: Remote I/O error
I2C: Failed to write to the device
: Remote I/O error
I2C: Failed to read in the value.
: Remote I/O error
Could not find a valid LSM303!
I double checked that the sensor was visible via i2cdetect.
Hey!
Great work! I've been working on the BBB and 10 DOF sensor the past few weeks but I really like to give your way a try as well. It was a pain to install mraa (took more than a day) and when I finally thought I had it installed successfully, after using make (I'm trying to run the LSM303 application), it generates that LSM303 file, but when I want to run it, it gives me this error:
./LSM303: error while loading shared libraries: libmraa.so.0: cannot open shared object file: No such file or directory
What should I do? The instructions for installing mraa wasn't for Debian, so I did this,
git clone https://github.com/intel-iot-devkit/mraa.git
mkdir mraa/build && cd $_
cmake .. -DBUILDSWIGNODE=OFF
make
make install
and it went through. Any idea what I have possibly done wrong?
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.