using the aref pin..

vorb: in case you'd rather not mess your wiring.c file, you should be able to put those lines in your setup() function and get the same effect. It might make it easier to share your code or upgrade to future Arduino versions.

I just tried that and I got the following error: 'cbi' was not declared in this scope In function 'void loop()'.
So I guess I need to add the definitions for cbi and sbi from the beginning of wiring.c to my code?

-Edit-

I added the following definitions and it WORKS! :sunglasses: :

#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#ifndef sbi
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#endif

Thanks Mellis!
I will take pictures and put my code in the playground once I figure out how to convert my adc values into "g" values. If you guys could take a look at my thread in the programs forum I would appreciate it. I'm stuck trying to deal with the fractional calculations I need to do.