I apologize for my newbie-ness, but since I'm running the accelerometer from the 3.3V output on the Arduino I understood that a logic level converter wouldn't be needed.
I used the AcceleroMMA7361_v0.8b library documentation to find out how to hook up the arduino. It says the Begin method gets the following parameters
void begin (int sleepPin, int selfTestPin, int zeroGPin, int gSelectPin, int xPin, int
yPin, int zPin)
In the example sketch that came with the library, here are the pins in the begin method:
accelero.begin(13, 12, 11, 10, A0, A1, A2);
which is why I hooked up the Arduino the way I described in my first post.
Also, I did my best to read the datasheet (https://www.sparkfun.com/datasheets/Components/General/MMA7361L.pdf) but it looks like the PCB Layout in the Basic Connections section are done on the Sparkfun breakout board.
I've been trying to figure this out on my own for hours. I really appreciate your taking the time to help me!
Here is the sketch I'm running:
#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.getXRaw();
y = accelero.getYRaw();
z = accelero.getZRaw();
Serial.print("\nx: ");
Serial.print(x);
Serial.print("\ty: ");
Serial.print(y);
Serial.print("\tz: ");
Serial.print(z);
delay(500); //(make it readable)
}