We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I already done out the accelerometer on 3 axis angle calculation with calibration on it. And i also Google out the code to run the 3D cube on processing, but the problem is how do i merge them together? Whenever i turn my accelerometer, the 3D cube will turn together as well.
Answers
Arduino Code:
define X_AXIS 0
define Y_AXIS 1
define Z_AXIS 2
void setup() { Serial.begin(9600); }
void loop() { int x = analogRead(X_AXIS); int y = analogRead(Y_AXIS); int z = analogRead(Z_AXIS);
Serial.print(x); Serial.print('|'); Serial.print(y); Serial.print(':'); Serial.println(z); }
Processing Code: I don't have it , and i need it too :)
I'm using the 3d cube processing code below but it does not rotate. How can i solve it?