bill2462 / mpu9255-arduino-library Goto Github PK
View Code? Open in Web Editor NEWSimple arduino library for MPU9255 sensor
License: MIT License
Simple arduino library for MPU9255 sensor
License: MIT License
Which datasheet (pdf) did you refer to?
Yours is the only library having WHO_AMI_I register at 0x77 and the only library which is working with my CJ sensor.
The code for magnetometer reading must be fixed. The byte order is incorrect according to datasheet. The code should read:
`/**
uint8_t rawData[6];
readArray(rawData,6);
mx = ((int16_t)rawData[1] << 8) | rawData[0];
my = ((int16_t)rawData[3] << 8) | rawData[2];
mz = ((int16_t)rawData[5] << 8) | rawData[4];
}
`
well, i only know a few pin like
VCC (imu sensor) -> 5v (arduino)
GND (imu sensor) -> GND (arduino)
but i still dont know where to insert
SDA
SCA
INT
FSYNC
please give more info about it, thank you
i used your lib with TI CC1350 CC1310.
I couldn't compile because enum interrupts {...} was conflicting with core function void interrupts().
To avoid further conflicts may be it is better to rename enum interrupts to mpu_interrupts.
After following changes it worked for me:
// change in MPU9255.h:
// //interrupt pin settings
// enum interrupts {...}
// to
// enum mpu_interrupts {...}
//
// and in and MPU9255_Interrupts.cpp:
// enable_interrupt_output(interrupts selected_interrupt)
// disable_interrupt_output(interrupts selected_interrupt)
// to
// enable_interrupt_output(mpu_interrupts selected_interrupt)
// disable_interrupt_output(mpu_interrupts selected_interrupt)
Dear maintainer,
Can you please apply the pull request I made, so people can use your library, and I can delete the fork.
For anyone who want the fixed version until the maintainer of this library fixed the problem, you can you the fixed version:
Hi, I tried using your library but the mx, my, mz values are -1 in raw and -15 in dataprocessing. I am using mpu 9250/9255 with ic mp95.
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.