Forum Rule: Always post complete source code & details to reproduce any issue!
Page 4 of 4 FirstFirst ... 2 3 4
Results 76 to 81 of 81

Thread: MPU-9250 Teensy Library

  1. #76
    Member brtaylor's Avatar
    Join Date
    Mar 2016
    Location
    Portland, OR
    Posts
    89
    Quote Originally Posted by ninja2 View Post
    Will your library recognise the teensy SPI libs alternate pin commands, like SPI.setSCK(14) ?
    Not the way it's currently written. That's why you can select other SPI buses and alternate sets of pins. But you can't mix and match currently. In other words, with the current library, you can select the alternate SPI0 bus of:
    MOSI: pin 7
    MISO: pin 8
    SCK: pin 14

    But you can't mix and match pins from the SPI0 bus, like:
    MOSI: pin 11
    MISO: pin 12
    SCK: pin 14

    I can look at whether I can re-arrange the code to allow it.

  2. #77
    Senior Member
    Join Date
    Dec 2016
    Posts
    257
    you didnt need to add an external led, you could of just told the mcu to assign SCK to an alternate pin and keep D13 as the led.. see SPI.setSCK(newPin); and reference newPin with the alternate SCK0 pin listed on your teensy card

  3. #78
    Senior Member ninja2's Avatar
    Join Date
    Aug 2016
    Location
    Adelaide, Australia
    Posts
    127
    Quote Originally Posted by brtaylor View Post
    I can look at whether I can re-arrange the code to allow it.
    It's not a big deal, maybe consider it when in next major update. The advantage of 11/12/14 is it frees up the LED_BUILTIN on pin 13.
    Last edited by ninja2; 02-07-2017 at 08:58 PM.

  4. #79
    Senior Member
    Join Date
    Jun 2014
    Posts
    216
    Has anyone tried implementing the wake-on-interrupt feature?

    http://www.invensense.com/wp-content...0A-01-v1.1.pdf page 30/31

    6.1 Wake-on-Motion Interrupt
    The MPU-9250 provides motion detection capability. A qualifying motion sample is one where the high passed sample from any axis has an absolute value exceeding a user-programmable threshold. The following flowchart explains how to configure the Wake-on-Motion Interrupt. For further details on individual registers, please refer to the MPU-9250 Registers Map and Registers Description document.
    In order to properly enable motion interrupts, the INT pin should be connected to a GPIO on the system processor that is capable of waking up the system processor.
    This would allow very low power applications, eg. deep sleeping the processor and waking by movement.

  5. #80
    Junior Member
    Join Date
    Sep 2016
    Posts
    16
    Nice clear language in this topic.

  6. #81
    Member brtaylor's Avatar
    Join Date
    Mar 2016
    Location
    Portland, OR
    Posts
    89
    Quote Originally Posted by Fyod View Post
    Has anyone tried implementing the wake-on-interrupt feature?

    http://www.invensense.com/wp-content...0A-01-v1.1.pdf page 30/31



    This would allow very low power applications, eg. deep sleeping the processor and waking by movement.
    Hi Fyod, I haven't had a need to implement the wake on interrupt yet. If there's a need for it, I may be able to roll it into the next library update.

Posting Permissions

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