I got my sensor (nice and fast too,thanks for the germany tip!)
I have it all connected and it seems to be working. One thing i notice though is that tilting forward on the y-axis gives me values up to 60 but backwards on the y-axis i only get as high as 20. on the x-axis then i an even 40 on each side.
I notice you wrote to add in a piece of code to make it read full 360, is that why mine isn't reading right?
i tried putting in that code after
" R = sqrt(pow(accXval,2)+pow(accYval,2)+pow(accZval,2));//the force vector
accXangle = acos(accXval/R)*RAD_TO_DEG-90;
accYangle = acos(accYval/R)*RAD_TO_DEG-90;"
But didnt change anything.
also i'm not connecting the z-axis because i don't need it. I assumed it wouldnt make a difference.
Just wanted to say thanks again for the code. Looks like my project will become what i dreamed
I'll post a video up here when its done