
fredebec
France
Asked
— Edited

Hi,
I have bought the MPU9150 sensor and try to use the temperature sensor. But the sensor always displays 22 Celcius, whatever the condition...
I have followed the tutorial, and Gyro and compass seem to work just fine. I think it is just me who do not know how to use it, so any help is welcome... Thanks.
4 in one sensor.........Gyro + Accel + Compass + DMP.. dont know what the DMP stands for?
I just hooked it up again to have another play, and for a moment (about 2 seconds) it read at 21 C, then when to 22 and stayed there. I compaired this the the EZ-B CPU temp and they are not the same (EZ-B reading 24.87 C).
Somebody put it in the fridge and try again...
@rb550f
DMP... Digital Motion processing
Here is more info. Temperature sensor is for the MPU die. Not room temperature sensor.
chip temperature sensor and ADC are used to measure the MPU
9150 die tempera ture. The readings from the ADC can be read from the FIFO or the Sensor Data regist
Okay, it might time here in the UK so I have put my EZ-B outside with the 4 in 1'connected. 5 mins later at the temp has dropped to 20 C...
Weird thing, I put it in the palm of my hand for a few seconds and it dropped straight to 3 within a few seconds. Removed it and it shot straight back up to 22.
So I just bought my EZ-B back inside (no room in the fridge Richard, too much booze lol), and a couple of minutes later and the temp display has come back up 22 C...
And putting the sensor on a bottle of warm water, about 40'seconds later it drops to 3 C...
So as Justin and rb550f have said, I dont think this is reading ambient temperature at all, and is reading the sensor temp. Very irregular results, but it seems to be working. This kinda sucks as I (and others) thought it was going to read ambient room temp and I think it should be made clear in the description. But there is something going on with the results I'm getting.
@fredebec and anyone else.
So in answer to your question, you're not doing anything wrong by the sounds of it. You can run the example script found by clicking the ? In the MPU9150 control, copy and paste the code in to a script, and run it.
Then put the sensor on a bottle of warm water or in the palm of your hand, or in something cold like a can of drink from the fridge, wait a few seconds and the temprerure display should change. The readings seem irregular, but they do change.
For anyone interested, the sample script can be found here