Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: onehorse

Search: Search took 0.00 seconds.

  1. Replies
    639
    Views
    323,226

    Hi Brian, This works now with an I2C frequency...

    Hi Brian,

    This works now with an I2C frequency of ~428 kHz:

    I2C clock rate = 428571 Hz
    F_CPU =96000000
    ARDUINO =10608
    F_PLL =96000000
    F_BUS =48000000
    F_MEM =24000000
  2. Replies
    639
    Views
    323,226

    36 MHz with 300 kHz is also a 120 divide...

    36 MHz with 300 kHz is also a 120 divide...
  3. Replies
    639
    Views
    323,226

    Had my wifi wig out there for a moment... The...

    Had my wifi wig out there for a moment...

    The F_BUS is 96 MHz when I set 96 MHz for the CPU speed and 72 MHz when I set the CPU to 72 MHz. Interestingly, when I set the CPU speed to 96 MHz the 400...
  4. Replies
    639
    Views
    323,226

    Not sure how to check what F_BUS is. It is the...

    Not sure how to check what F_BUS is. It is the default, I mean I do not particularly set it in my code. How can I query the value?
  5. Replies
    639
    Views
    323,226

    I am suspecting a hardware issue. I went back...

    I am suspecting a hardware issue.

    I went back to v.08 and also could not get it to work at 400 kHz, but it did at 100 kHz and 1000 kHz again. I went back to v.09 and was able to get it to work at...
  6. Replies
    639
    Views
    323,226

    Well this is odd, I got some new BNO055 breakout...

    Well this is odd, I got some new BNO055 breakout boards from China (my design, should work well, with 4K7 pullups on the board ) and tried one out using a Teensy 3.1 and I can read both of the I2C...
  7. Replies
    639
    Views
    323,226

    Do you have external pullup resistors on the SDA...

    Do you have external pullup resistors on the SDA and SCL lines? You will need them.
  8. Replies
    639
    Views
    323,226

    You need to use the Wire1.begin call and...

    You need to use the Wire1.begin call and Wire1.write etc. on the bottom I2C pins 29/30 when using the i2c_t3.h library. You can't use these pins with the Arduino Wire.h library AFAIK.
  9. Replies
    639
    Views
    323,226

    Since it is currently limited to use with the...

    Since it is currently limited to use with the Teensy 3.1 I would suggest TeensyWire.h to make it clear that this is a Teensy-only Wire.h-like library. It could also be Teensy3.1Wire.h but that is a...
  10. Replies
    639
    Views
    323,226

    Here's a start: ...

    Here's a start:

    https://github.com/kriswiner/MPU-9250

    https://github.com/kriswiner/LSM9DS0
  11. Replies
    639
    Views
    323,226

    Perhaps in the same way Jeff Rowberg et al. have...

    Perhaps in the same way Jeff Rowberg et al. have been trying to collect sketches for various sensors using their i2cdev.h library, it would make sense to have a dedicated i2c_t3.h library...
  12. Replies
    639
    Views
    323,226

    Agreed. I have LSM9DS0 and MPU9250 sensor...

    Agreed. I have LSM9DS0 and MPU9250 sensor read/fusion programs that run with i2c_t3 on Teensy 3.1 if you are interested. Most are on GitHub.
  13. Replies
    639
    Views
    323,226

    It looks like the I2C_BUS_ENABLE defaults to 2 in...

    It looks like the I2C_BUS_ENABLE defaults to 2 in the v6b 12c_t3.h library so that wasn't the problem. Instead, it was that I had no external pullups on SDA/SCL even though I was asking for them in...
  14. Replies
    639
    Views
    323,226

    Thanks, I'm glad it's me and not the library!...

    Thanks, I'm glad it's me and not the library! I'll take your advice and try it with a simple program using the dual_bus_master_slave and quad_master sketches as a guide and report on what I find. I...
  15. Replies
    639
    Views
    323,226

    I designed an add-on for Teensy 3.1 that solders...

    I designed an add-on for Teensy 3.1 that solders onto the back surface pads. Before I soldered the first successful prototype I tested it on a breadboard using I2C pins 16&17; everything works. Then...
  16. Replies
    639
    Views
    323,226

    Just answered my own question. Apparently I...

    Just answered my own question. Apparently I needed to change the uint8_t to size_t in the request from call.
  17. Replies
    639
    Views
    323,226

    I started using the i2c_t3 wire library and...

    I started using the i2c_t3 wire library and everything is working well, except I am getting some compile warnings:


    In file included from MPU6050IMU.ino:29:0:
    C:\Documents and Settings\Kris\My...
  18. Replies
    639
    Views
    323,226

    Why do you read sequentially and not both data...

    Why do you read sequentially and not both data bytes with one Wire.read? This is the equivalent read I am using. It is similar but I am reading multiple bytes, up to 14, with the same read call:

    ...
  19. Replies
    639
    Views
    323,226

    I just blindly (an dumbly, it turns out) copied...

    I just blindly (an dumbly, it turns out) copied the wire routines from the LSM9DS0 sketch (https://github.com/sparkfun/LSM9DS0_Breakout/blob/master/Libraries/Arduino/SFE_LSM9DS0/SFE_LSM9DS0.cpp). In...
  20. Replies
    639
    Views
    323,226

    I changed the Wire.h routines to the following at...

    I changed the Wire.h routines to the following at your suggestion:




    void writeByte(uint8_t address, uint8_t subAddress, uint8_t data)
    {
    // Begin transmission at device...
  21. Replies
    639
    Views
    323,226

    Thank you for a very clear explanation. I took...

    Thank you for a very clear explanation. I took these functions from Jim Lindblom's LSM9DS0 sketch which works well on both the Arduino and Teensy platforms. That device, like the MPU-9150, has two...
  22. Replies
    639
    Views
    323,226

    Just an update on Wire.h with Teensy 3.1 (and 3.3...

    Just an update on Wire.h with Teensy 3.1 (and 3.3 V 8 MHz Pro Mini Arduino). I replace the multiple byte read with several single byte reads and now everything works. This is passing strange since...
  23. Replies
    639
    Views
    323,226

    Yes, I have three Teensy 3.1s. What did you have...

    Yes, I have three Teensy 3.1s. What did you have in mind?
  24. Replies
    639
    Views
    323,226

    Unfortunately, I don't have a logic analyzer.;)...

    Unfortunately, I don't have a logic analyzer.;) Is there no I2C library common to Teensy 3.1 and AVR besides Wire.h? I was able run the LSM9DS0 sensor on both platforms with a sketch that uses the...
  25. Replies
    639
    Views
    323,226

    Thanks for the reply. I think I will try this...

    Thanks for the reply. I think I will try this library and see if I have a different result:

    http://www.dsscircuits.com/images/code/I2C_Rev5.zip
  26. Replies
    639
    Views
    323,226

    Hi nox771, Headroom suggests you might...

    Hi nox771,

    Headroom suggests you might understand this problem I am currently having with the Wire.h TWI library. I know that one possible solution is to try out your new I2c_t3 library. Will it...
Results 1 to 26 of 26