France
Asked — Edited
Resolved Resolved by Steve G!

Mpu9150 - Temperature Sensor

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.


ARC Pro

Upgrade to ARC Pro

ARC Pro will give you immediate updates and new features needed to unleash your robot's potential!

#9  

4 in one sensor.........Gyro + Accel + Compass + DMP.. dont know what the DMP stands for?

United Kingdom
#10  

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).

United Kingdom
#12  

@rb550f

DMP... Digital Motion processing

#13  

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

United Kingdom
#14  

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...

User-inserted image

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.

United Kingdom
#15  

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...

User-inserted image

And putting the sensor on a bottle of warm water, about 40'seconds later it drops to 3 C...

User-inserted image

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.

United Kingdom
#16  

@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