Is there working library for i2c on Due? As I read in this forum, there are problems with i2c sensors (MLX90614, MPU6050,...) on Due. Standard routines in wire.h are not working correctly.
Thank you
I think that was fixed. Did you download the newest 1.5.7 BETA ?
Yes, I have 1.5.7 beta.
i2c scanner works and find sensors addresses ( Arduino Playground - I2cScanner ) but sensor itself in not working.
Which sensors with what code ?
Peter_n:
I think that was fixed. Did you download the newest 1.5.7 BETA ?
ARDUINO 1.5.7 BETA - 2014.07.07
[core]
- ...
- sam: Fix to Wire::endTransmisson() return value (bluesign2k)
- sam: Fix to Wire usage of TWI status register (bluesign2k)
- ...
This tutorial is not working on Due: Wiring and Test | Using Melexis MLX90614 Non-Contact Sensors | Adafruit Learning System
I found working this: I2C Repeated Start - #16 by cdan - Arduino Due - Arduino Forum .
But it not use standart wire.h
The Adafruit code is very simple, can you tell what the output on the screen is ?
What about the MPU-6050 ? There is a simple test-sketch in the playground. Can you try that ?
Short example from Arduino Playground - MPU-6050 is now working. I replaced int by int16_t.
But MLX90614 is not working. I am getting still same value 382 °C
Just curious as to what sensor you have
I have a MPU9150 breakout board which I'm having speed issues processing the data on a Uno, so I was considering trying to connect it to my Due, but voltage levels were one concern, and the second concern was I2C library
My MPU9150 breakout board takes 5V and has an onboard 3.3V regulator, so I presume that the I2C signals are actually at 3.3V and hence should be OK on the Due but I've not verified this with a meter (I guess I should do this)