I am using my teensy 3.1 to read data from the MPU6050. After I upload it, it reads out the data fine, but when I unpower it and put the power back on it reads only zeros. This does not happen with my arduino nano, the nano always reads the values fine. I have also used external pull ups between SDA, SCL and 3.3V, I tried 2k2, 4k7 and 10k resistors but it didn't help. I then bought another teensy 3.1 but the same problem occurs with this new board. I also have two different MPU6050 breakout boards: the gy-521 and the SEN-11028 from sparkfun, my teensy has the same problem with both of them.
The strange thing is that it does work but only if I load the program, not when just putting the power back on. I also tested the difference between USB and an external power source but no luck there. Occasionally when the program does run it suddenly stops reading the data, also re-uploading the program sometimes takes many tries because before it runs. This does not happen with other programs.
I use the I2C and MPU6050 library of Jeff Rowberg, I tested with the MPU6050_raw.ino file. My teensy's are the black edition (probably not very relevant).
The strange thing is that it does work but only if I load the program, not when just putting the power back on. I also tested the difference between USB and an external power source but no luck there. Occasionally when the program does run it suddenly stops reading the data, also re-uploading the program sometimes takes many tries because before it runs. This does not happen with other programs.
I use the I2C and MPU6050 library of Jeff Rowberg, I tested with the MPU6050_raw.ino file. My teensy's are the black edition (probably not very relevant).