[AVR] how to get temperature data from mpu-6050 and i used atmega8L-16pu microconroller

Status
Not open for further replies.

sun rao

Newbie level 1
Joined
Aug 23, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
9
hi all :smile:,

I am doing a small project with mpu-6050 sensor and I am using atmega8L-16pu microcontroller, avr studio4.0. I want to read the temperature data from the sensor through i2c,But I am getting constant values, there was no change in temperature at all. could any one please tell me that how can I get the temperature data where I can get the c code. I know only 'c' language.

please help me anyone, and sorry about my English .
 

U r using atmega8L and i think 8L can not be "16pu" its max frequency is upto 8mhz, so it will b atmega8l-8pu or atmega8a-16pu, anyways what constant values u r getting
 

well your temp sensor will read the surrounding temp(your room temp) which is constant so what you are reading is correct.
If you want to see any variations put up accelometer/gyro data and see there should be variations as you rotate(in gyro data) or as you vibrate(in accelo data).
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…