Ax = x-Voff/sens;
Ax = (x-Voff)/sens;
Do you have your AREF connected to a 3.3Volts source? You have also to set this in the code http://arduino.cc/en/Reference/AnalogReferenceanalogReference(EXTERNAL)
Code: [Select]Ax = x-Voff/sens;This calculation will not produce the value you want as the order of operations is off. Division will occur before subtraction, but you want the subtraction to occur first. IE, offset the x value, then divide it by the sensitivity (which is not the same as dividing the offset by the sensitivity, and subtracting that value from the x value, which basically means you're just subtracting 2 from all your values).Code: [Select]Ax = (x-Voff)/sens; Paranthesis have the highest order of operations, so operation inside paranthesis will always be performed before operations outside them.
Whats the use of the doing that? So its not possible to use the sensor with only your laptop and an Arduino board?