Giter Site home page Giter Site logo

Comments (3)

kriswiner avatar kriswiner commented on July 28, 2024 1

The _t3 means it uses the Teensy-specific i2c_t3.h wire library.

-----Original Message-----
From: Andres Espinosa [mailto:[email protected]]
Sent: October 10, 2016 2:47 PM
To: kriswiner/MPU-9250
Cc: Kris Winer; Mention
Subject: Re: [kriswiner/MPU-9250] Using MPU9250BasicAHRS with Arduino (#36)

@CJRud https://github.com/CJRud could you make it work? I also want to
use an Arduino UNO, just because I already have it. I don't care if it could
work better, I just want it to work.

@kriswiner https://github.com/kriswiner I don't understand why should we
modify the Wire.h if you specify in the MPU9250_MS5637_AHRS_t3.ino file that
the "Sketch runs on the 3.3 V 8 MHz Pro Mini". If it works for that Arduino,
why does it not work for the Arduino UNO?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#36 (comment) ,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGY1qtSGA03_YxVo6CvNoFkpo
cQkX_pSks5qyrJqgaJpZM4Gzs4a> .
<https://github.com/notifications/beacon/AGY1qsN2NOPFBBuq2uOJ7E-ICZz5reHdks5
qyrJqgaJpZM4Gzs4a.gif>

from mpu9250.

kriswiner avatar kriswiner commented on July 28, 2024

Hi Chris,

If you are not using the display, then yes remove all of the reference to
it.

Also, the I2C functions are set up to use the i2C_t3.h library for the
Teensy (which I highly recommend). If you want to use Wire.h on the UNO you
will need to make some modifications on the wire.begin and wire.readByte,
etc functions. The Wire.h versions are commented out in those function,
shouldn't be too hard to figure out.

If you want to understand how to change the data rates you are going to have
to read the data sheet; I would recommend this anyway if you are going to
use this sensor well.

Once you get these issues sorted out, the code will produce fused yaw,
pitch, and roll as well as quaternions for you to spew to the serial
monitor. After that, writing to an SD card is easy.

Kris

-----Original Message-----
From: CJRud [mailto:[email protected]]
Sent: December 11, 2015 8:25 AM
To: kriswiner/MPU-9250
Subject: [MPU-9250] Using MPU9250BasicAHRS with Arduino (#36)

Hi there,

In your description you say that this code is an Arduino Sketch I'm fairly
new to coding with Arduino and would love to use your libraries/ code to get
fused sensor data coming out of my MPU9250 to be logged onto an SD card

For the time being, I'm taking one step at a time and just want to see the
fused sensor values in my serial monitor without any SD card functionality I
am using just an Arduino Uno R3 and MPU9250 breakout from Drotek, see link
below, but no Adafruit display that is described in the
"MPU9250BasicAHRSino" file description When I run the "MPU9250BasicAHRSino"
there are obvious problems associated with the fact that I don't have the
display libraries/ LCD attached It won't compile The MPU9250 I have is on
the default I2C bus address 0x68 and is recognised when running an I2C
scanner

I'd like all the functionality you described in the starting comments:
"Demonstrate basic MPU-9250 functionality including parameterizing the
register addresses, initializing the sensor,
getting properly scaled accelerometer, gyroscope, and magnetometer data out
Addition of 9 DoF sensor fusion using open source Madgwick and Mahony filter
algorithms", just without the LCD display How do I do this?

Could you give any advice (quick step-by-step perhaps) or adapted code that
can get this functionality using what I have? I assume it isn't as simple as
commenting/ deleting all the calls to the LCD display/libraries? Hopefully
your experience can help me out here!

Secondly, I'd like to sample my accel, gyro and mag at a fairly low 25 Hz
Looking through the code I found a number of comments talking about setting
sample rates for each accel, gyro, mag and temp sensors but was confused as
to exactly how to do this There's a lot of code here and I don't want to
change something somewhere and have it mess up everything else How do I do
this?

If you also have any comments about the feasibility of saving these values
to an SD card at 25Hz then I'd be happy to hear them I'm using the Adafruit
datalogging SD card shield, see link below I tried a while ago to save from
an MPU6050 using DMP to an SD card and the FIFO buffer didn't like it, it
kept overflowing and everything was very slow I resorted then to saving only
raw sensor values, which worked very well, but I really want to use the
fused values for this latest project

Any advice welcomed! Thank you in advance, looking forward to hearing your
comments

Best,
Chris

Drotek sensor (assembled for I2C):
http://wwwdrotekcom/shop/en/home/421-mpu9250-gyro-accelerometer-magnetometer
html?search_query=mpu9250&results=3

Adafruit SD shield:
https://wwwadafruitcom/products/1141

Reply to this email directly or view it on GitHub
#36 .
<https://github.com/notifications/beacon/AGY1qq00IyLFsk0i6wvq2Z8ABv3t2cQoks5
pOvBKgaJpZM4Gzs4a.gif>

from mpu9250.

andresespinosapc avatar andresespinosapc commented on July 28, 2024

@CJRud could you make it work? I also want to use an Arduino UNO, just because I already have it. I don't care if it could work better, I just want it to work.

@kriswiner I don't understand why should we modify the Wire.h if you specify in the MPU9250_MS5637_AHRS_t3.ino file that the "Sketch runs on the 3.3 V 8 MHz Pro Mini". If it works for that Arduino, why does it not work for the Arduino UNO?

from mpu9250.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.