I hope someone can tell me what I'm doing wrong. I seem to be getting readings from my accelerometer, but the readings never change no matter how much I move the thing around.
I have the sparkfun accelerometer MMA7361 (Triple Axis Accelerometer Breakout - MMA7361 - SEN-09652 - SparkFun Electronics) hooked up to my Arduino Uno.
I'm using the AcceleroMMA7361_v0.8b library from here (Google Code Archive - Long-term storage for Google Code Project Hosting.)
When I run the "RawData" sketch included in the library, this is what comes on the serial monitor:
Calibrating MMA7361011..................................................
DONE
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
x: 519 y: 519 z: 583
Here is how I have the accelerometer hooked up to the Arduino:
| **Accelerometer Pin ** | Arduino Pin |
|---|---|
| ST | 12 |
| GSEL | 10 |
| 0GD | 11 |
| SLP | 13 |
| XOUT | A0 |
| YOUT | A1 |
| ZOUT | A2 |
| GND | GND |
| VCC | 3.3V |
Any ideas would be greatly appreciated!!!