A clear photo of your actual setup would be useful
sorry I don't have a camera right now and my iPhone's camera won't focus near enough to be able to distinguish everything fine... but I ca assure you I have checked thousands of times every connection and still the same... what are the chances of having bought NEW hardware ad getting both broken? If I can't get them to work before monday I'll have to call the store to get new ones instead...
Just to have it really clear: the number should be constant, when the sensor is on a steady position, right? Because in my case the numbers are something between 300 and 420 and I already tried it out with 2 different Arduino Boards. So I suppose, the sensor is broken...
i was working with this Code, which is nearly the same. and this one compiles and gives me the corresponding output, but with nearly complete random numbers...
int z;
void setup()
{
Serial.begin(9600); // sets the serial port to 9600
}
void loop()
{
z = analogRead(0); // read analog input pin 0
Serial.print("rotation rate in z: ");
Serial.println(z, DEC); // print the rotation rate in the Z axis
delay(100); // wait 100ms for next reading
}
Does anyone also know, how to calculate the Angular velocity into something more useful, e.g. to make an integral calculation with it? In general, I just know the maths of functions but not of a row of particular values.. and i am completely unexperienced with this kind of maths on the arduino board.