I'm in possession of Arduino Due and I'm trying to get my 6DOF accelerometer working. http://bildr.org/2012/03/stable-orientation-digital-imu-6dof-arduino/When using bellow code, the board become incredible slow. When i open the serial monitor, the print out is with 1 sec delay.

I have tried to use this code with Arduino mega 2560 and it works great. fast response at serial print out.Is there something i need to change in this code to speed up the board?Or should i use a different code?

I have not tried your code, but a common problem is that the type "int" is 4 bytes large, not 2 as on the uno (i do not know about the mega).

try using int16_t as a type, which is a 2 byte integer and see if things improve.

furthermore, are you sure the wire library is reported to work on the Due ?

good luck.

<edit> because I have access to secret and undocumented tools, like the mythical "search button" and "google" I was able to find this post :http://arduino.cc/forum/index.php/topic,158526.0.htmlso it seems wire might have problems running on the due... </edit>

Bump... Can anyone try this code, and see if you are faceing same problem.

ThxMrLudvig

Well I am also trying to make this Wire library work. According to the DUE main page and a fast look at the source code, it seems that for the DUE they have adapted the library so it SHOULD be working. I tried to get a feedback from the library but the only thing I can do is reading the result of Wire.write() that returns the number of bytes written and it always returns '1' (that seems to be ok, but my board isn't working).

I have to say my problem is a little bit complex, I want to use the WM8731 audio codec, and this codec use two serial interfaces, one for the configuration of the chip (I2C that works with the Wire library) and the other for the data transmission (SPI). So I don't know if my problem is with the Wire library or with the SPI library... or both

I suspect that the problem has something to do with the I2C or SPI speed, I have also checked the source code but it's a little hard to me to get some information from there. So at my job I have access to oscilloscopes and my next step is to check the protocols with the oscilloscope. I think I should do that this week, so as soon as I get some information I will reply.