Forum Rule: Always post complete source code & details to reproduce any issue!
Page 10 of 10 FirstFirst ... 8 9 10
Results 226 to 237 of 237

Thread: MPU-9250 Teensy Library

  1. #226
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    11,776
    My TD 1.44 download dated 9/19/2018 give a splash of just 1.44 - not beta?

    As for the Amazon 9250's - minor name change on the silkscreen between the two - but all else looks the same on pin labels and parts location and type. Let me know when you get your hooked up Mike and I'll give mine try if possible. The ASYNC/DMA SPI seems like it would be helpful when getting 100-1000 updates a second! SPI faster and if the DMA engine does the work ASYNC then no wait when the INT arrives … then the data arrives … repeat.

    It has been some time - and not used or updated - but I was getting 1 Mhz or faster on i2c - though there was some anomaly I noted with leaving the update speed set I never resolved … maybe that was a side effect of the HIGH speed.

  2. #227
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    5,338
    Never mind I know what I did. Better let Mr S. know.

    but I was getting 1 Mhz or faster on i2c - though there was some anomaly I noted with leaving the update speed set I never resolved
    I remember, I was too but now I seem to be having a problem. Not sure what happened. Would like to track it down though. Just very strange because it seemed to be working in prior versions.

    I do remember we use to see spikes in the data periodically, don't know if that is related or not. What really got me was the temperature spikes dropping like that when I ran the filters.

  3. #228
    Senior Member brtaylor's Avatar
    Join Date
    Mar 2016
    Location
    Portland, OR
    Posts
    550
    Whoa, this is bizarre. Works great for me on Arduino 1.8.5 with Teensyduino 1.44, but not with 1.8.7...

  4. #229
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    11,776
    Quote Originally Posted by brtaylor View Post
    Whoa, this is bizarre. Works great for me on Arduino 1.8.5 with Teensyduino 1.44, but not with 1.8.7...
    Odd - they went to the parallel core building? What else I'm not sure. Maybe try a different compile Optimize and rebuild?

  5. #230
    Senior Member brtaylor's Avatar
    Join Date
    Mar 2016
    Location
    Portland, OR
    Posts
    550
    Quote Originally Posted by brtaylor View Post
    Whoa, this is bizarre. Works great for me on Arduino 1.8.5 with Teensyduino 1.44, but not with 1.8.7...
    NEVERMIND...forgot that I had de-soldered some resistors and had to jumper a few more things than normal. Works fine on a fresh 1.8.7 with Teensyduino 1.44 install on Windows 10.

  6. #231
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    5,338
    NEVERMIND...forgot that I had de-soldered some resistors and had to jumper a few more things than normal. Works fine on a fresh 1.8.7 with Teensyduino 1.44 install on Windows 10.
    Ok, but not sure what that means when I am dealing with a normal breakout board. Are you using your board or a breakout board? Just curious I am not having a problem with Wire when using Kris Winer's library.

  7. #232
    Senior Member brtaylor's Avatar
    Join Date
    Mar 2016
    Location
    Portland, OR
    Posts
    550
    I'm using the breakout board from Embedded Masters:
    https://octopart.com/emsensr-mpu9250...sters-75645249

    To get SPI to work on that breakout there are a couple 0 Ohm resistors that need to be de-soldered, which I did. The thing is that then, you need to remember to tie nCS to power for I2C to work properly.

    If you can send some photos of your setup that might help diagnose what's going on.

  8. #233
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    5,338
    To get SPI to work on that breakout there are a couple 0 Ohm resistors that need to be de-soldered, which I did. The thing is that then, you need to remember to tie nCS to power for I2C to work properly.
    Oh, ok now I understand what you were talking about. I have that board as well and modified it to use SPI. Didn't know all I had to do to I2C to work again was to tie nCS to power. Glad I asked.

    Still have to figure out why I am having issues with other breakout boards.

    TEMP CALC WRONG IN LIBRARY. By the way when I was working with the temp calc noticed you had the calculation wrong:
    IS:
    Code:
    _t = ((((float) _tcounts) - _tempOffset)/_tempScale) + _tempOffset;
    SHOULD BE:
    Code:
     _t = ((float) _tcounts / _tempScale) + _tempOffset)

  9. #234
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    5,338
    Hi Brian - on the embedded masters 9250 breakout board I seem to remember you also had to connect vdio to vdd and FSYNC to ground is that correct?

    EDIT: THANKS FOR THE FAST RESPONSE

  10. #235
    Senior Member brtaylor's Avatar
    Join Date
    Mar 2016
    Location
    Portland, OR
    Posts
    550
    Yes, correct.

  11. #236
    Junior Member
    Join Date
    May 2020
    Posts
    10
    Hello everybody,

    I want to read the BMI160 with teensy3.6.
    I get the code from hanyazou and get the following error: Wire.endTransmission() failed.

    How can it set the sda, scl pin configuration in the BMI160Gen.cpp oder .h?
    Do you have an idea?

  12. #237
    Senior Member brtaylor's Avatar
    Join Date
    Mar 2016
    Location
    Portland, OR
    Posts
    550
    Quote Originally Posted by Siggi88 View Post
    Hello everybody,

    I want to read the BMI160 with teensy3.6.
    I get the code from hanyazou and get the following error: Wire.endTransmission() failed.

    How can it set the sda, scl pin configuration in the BMI160Gen.cpp oder .h?
    Do you have an idea?
    Seems like this deserves its own thread.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •