Only obtain temperature and pressure, all other fields are set to cero

Asked by Roberto

I hooked up FreeIMU v 0.4 to Arduino Uno R3 per recommended wiring and then downloaded your example sketch "FreeIMU_raw" to the Arduino board. I viewed the serial Monitor page and all columns are set to cero except for the last two. I believe from watching your video that the last two columns represent temperature and pressure. I put my finger on the FreeIMU board and I can see the temperature increase and likewise decrease when I take my finger off, so I know the I2C communications between FreeIMU board and the Arduino board work. I also looked at the SDA and SCL lines on a scope and I can see them working properly with changing levels between 3V and cero. Also checked power to the FreeIMU board and got 5V.

I then downloaded "FreeIMU_quaternion" sketch and observed the full four columns active but stabilizing to fixed values after several seconds. However when I ran the processing sketch "FreeIMU_cube" the cube only moved for the first few seconds and then didn't move at all. I'm using Windows7 as the operating system. I'm not quite sure why the board is behaving like this. Baud rate is set to 115200.

 Not sure why I'm only obtaining temperature and pressure, any ideas?

Question information

Language:
English Edit question
Status:
Solved
For:
FreeIMU Edit question
Assignee:
No assignee Edit question
Solved by:
Roberto
Solved:
Last query:
Last reply:
Revision history for this message
Roberto (robfrias) said :
#1

I forgot to edit the file FreeIMU.h to my version 0.4 so the sketch was trying to read the wrong sensor addresses. Works great now.

Revision history for this message
Fabio Varesano (fabio-varesano) said :
#2

Yes, that's the problem. Note that there is a new version of the FreeIMU library available at http://www.varesano.net/projects/hardware/FreeIMU#library .. you may want to update if you are interested in trying the new calibration routines.