How to convert analogRead value from accelerometer

Thx Drd. I was wondering why my 0g position was reading ~315 instead of 512, but I never set AREF to 3V so I guess that explains it.

How many samples do you take and average? I had not thought of that. Have you made anything interesting with your accelerometer? These little things are cool.

Edit- How do you set AREF to 3V? I just connected the AREF pin to my 3V output but the pin still reads 5V on my meter. Do I have to configure AREF in my program?