How to change MPU6050 GY-521 - G-Force.
PAGE NR. 4 COMMENT 45
How to change MPU6050 GY-521 - G-Force.
PAGE NR. 4 COMMENT 45
having the data from mpu6050 I got random numbers
If you are getting random numbers, you are NOT getting data from the accelerometer.
Have you checked that gravity is working correctly at your location?
If you are getting random numbers, you are NOT getting data from the accelerometer.
I gave as an example, I get normal accelerometer data, i called them random numbers because while you move the acc. you get more high or low val. numbers.
Have you checked that gravity is working correctly at your location?
What? lol
Well the main point of this topic and question is :
OK, for now, I guess we'll just have to take your word for it - no code, no results.
#include<Wire.h>
const int MPU=0x68; // I2C address of the MPU-6050
int16_t AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ;
void setup(){
Wire.begin();
Wire.beginTransmission(MPU);
Wire.write(0x6B); // PWR_MGMT_1 register
Wire.write(0); // set to zero (wakes up the MPU-6050)
Wire.endTransmission(true);
Serial.begin(9600);
}
void loop(){
Wire.beginTransmission(MPU);
Wire.write(0x3B); // starting with register 0x3B (ACCEL_XOUT_H)
Wire.endTransmission(false);
Wire.requestFrom(MPU,14,true); // request a total of 14 registers
AcX=Wire.read()<<8|Wire.read(); // 0x3B (ACCEL_XOUT_H) & 0x3C (ACCEL_XOUT_L)
AcY=Wire.read()<<8|Wire.read(); // 0x3D (ACCEL_YOUT_H) & 0x3E (ACCEL_YOUT_L)
AcZ=Wire.read()<<8|Wire.read(); // 0x3F (ACCEL_ZOUT_H) & 0x40 (ACCEL_ZOUT_L)
Tmp=Wire.read()<<8|Wire.read(); // 0x41 (TEMP_OUT_H) & 0x42 (TEMP_OUT_L)
GyX=Wire.read()<<8|Wire.read(); // 0x43 (GYRO_XOUT_H) & 0x44 (GYRO_XOUT_L)
GyY=Wire.read()<<8|Wire.read(); // 0x45 (GYRO_YOUT_H) & 0x46 (GYRO_YOUT_L)
GyZ=Wire.read()<<8|Wire.read(); // 0x47 (GYRO_ZOUT_H) & 0x48 (GYRO_ZOUT_L)
Serial.print("AcX = "); Serial.print(AcX);
Serial.print(" | AcY = "); Serial.print(AcY);
Serial.print(" | AcZ = "); Serial.print(AcZ);
// Serial.print(" | Tmp = "); Serial.print(Tmp/340.00+36.53); //equation for temperature in degrees C from datasheet
// Serial.print(" | GyX = "); Serial.print(GyX);
// Serial.print(" | GyY = "); Serial.print(GyY);
// Serial.print(" | GyZ = "); Serial.println(GyZ);
int x;
Serial.println(" | G-Force = "); //Serial.print();
delay(333);
}
Need G-Force....
Those aren't random number that is noise. What is the mass of the object, to get a force you need both mass and acceleration Newton was a pretty sharp guy.
I'll bet you didn't think of looking in the MPU6050 data sheet.
Those aren't random number that is noise. What is the mass of the object, to get a force you need both mass and acceleration Newton was a pretty sharp guy.
Facepalm, i said random numbers as an example. I don't think Newton is alive to tell me about the MPU6050 sensor and hot to get G-Force for that data.
I'll bet you didn't think of looking in the MPU6050 data sheet.
I did look so? what exactly i should know?
i said random numbers as an example.
But if they aren't random, why did you say there were?
AWOL:
But if they aren't random, why did you say there were?
Words do not have meaning for him.
Random for me means; values with no relationship to previous values, ranging full scale.
Random for him means; values that are varying, and which he does not understand.
Chuck.
Walking away.
I did look so? what exactly i should know?
Sorry I wasn't clear. You actually need to read the data sheet, not just look at it.
Is anyone who gonna help me with the exact topic?
Any useful comment? please?!
I go a array of numbers which change depending of the angle of rotation of the sensor, the sensor got 3 axis
x, y, z. Does anyone know how to calculate the axes depending on the angular acceleration speed and get
as output G-Force?
I need clear answers and questions and if you guild me to look for something like this one> :
Sorry I wasn't clear. You actually need to read the data sheet, not just look at it.
Tell me exactly what should I look for.. / learn.
If you came just to make fun/trolling, wasted, no scenes comments and not understanding when I give something as example (random variating numbers) probably you are some kind of tard guy who piss off other people and making fun of them because you are an total ahole.
So please stay on the topic and be useful, annoying comments will be ignored.
Thanks.
The place to look is sensitivity scale factor in the data sheet page 13.
The place to look is sensitivity scale factor in the data sheet page 13.
Yea i saw that before too but how do i calculate it?
I just take the output data and divide it? or what/how, I don't understand..
If your range is ±2g, divide raw data by 16384 (lsb/g) to get g. If range is ±4g divide by 8192. And so on.
So let's say from the Post-Reply nr.5
where i posted some real data from the Acc. I had the sensor totally vertical on the Z axis
17200, so I take the 17200 and divide it by 16384 ? = 1.04 (G ?)
What do you mean if my range is "±2g" or "±4g" and so on?
What do you mean if my range is "±2g" or "±4g" and so on?
Have you read the accelerometer's data sheet?
Have you read the accelerometer's data sheet?
Only few parts of it
Which part? I don't think I'm gonna read 54 pages of datasheet, be more precise about which part you talking about.
Yes I don't know some parts because it's something new to me. New born kids learn to walk they don't read datasheets and start walking in the 2nd day.
What do you mean if my range is "±2g" or "±4g" and so on?
The accelerometer has multiple ranges, so the least sensitive (±16g) gives the widest range, and the most sensitive (±2g) the narrowest range.
I'm pretty sure that would be on the front page of the data sheet.