Hi folks, im looking for some help
I have this acc module
http://www.lctech-inc.com/Hardware/Detail.aspx?id=053796b3-3b90-4fe5-8588-7b5d14bc0512
on an arduino pro mini Protosnap.
I have this code loaded
#include <AcceleroMMA7361.h>
AcceleroMMA7361 accelero;
int x;
int y;
int z;
void setup()
{
Serial.begin(9600);
accelero.begin(13, 12, 11, 10, A0, A1, A2);
accelero.setARefVoltage(3.3); //sets the AREF voltage to 3.3V
accelero.setSensitivity(LOW); //sets the sensitivity to +/-6G
accelero.calibrate();
}
void loop()
{
x = accelero.getXVolt();
y = accelero.getYVolt();
z = accelero.getZVolt();
Serial.print("\nx: ");
Serial.print(x);
Serial.print("mV\ty: ");
Serial.print(y);
Serial.print("mV\tz: ");
Serial.print(z);
Serial.print("mV");
delay(500); //make it readable
}
when i run the code I get the following through serial:
x: 1672mV y: 1672mV z: 1878mV
x: 1672mV y: 1672mV z: 1878mV
x: 1672mV y: 1672mV z: 1878mV
x: 1672mV y: 1672mV z: 1878mV
all day long, it never changes. I have measured voltage at the analoge pins with a multimeter and they are more or less the same
but it looks like the acc module never changes the output, I have it wired as per the PDF included with the library from here : ç
http://code.google.com/p/mma7361-library/
There is a 3v3 pin , which I cannot find mention of in the PDF so I havent connected it,
other than that im stumped,
does anyone have any experience with this module ?
thanks in advance