Quote Originally Posted by fefenin View Post
my value a first is , lets say 2.267volts it s is my first value
if i take two mesurement separeted by 1 i know that, if the second one is differente than the first one,i moved isnt it?
so if i moved i probably want to know the angle (how many degrees i traveled)

lets say the second mesurement is 2.320volts that probably means i moved one way (actually left)

i know that the sensor sensibility is 0.66mv/deg/sec

my mesurement is spaced by 1s so i probably moved 2.320-2.267=0.053v so 53mv that would say i moved around 80,3 deg is that right?

if i m right then i could do mesurement spaced by 10 us it will be better for me

and how can i do something proper with only a 16f88 without proper math (integer) calcualtion?
You can't do it proper with integer math. But what you can do is multiply all of the numbers by 10 or 100 or whatever (whatever WON'T cause an overflow in the middle somewhere), then divide the end result by whatever you multiplied it all UP by.

As far as you're math goes...you've ALMOST got it, ooo sooo close..Example..
You start at time 0 - moving at 0 degrees/second
You measure at time 1 - and see the sensor is at a rate of (in your example) 80.3 degrees/second.
That doesn't mean you moved 80.3 degrees, actually it should mean (assuming the angular acceleration was absolutely constant) that you moved 40.15 degrees/second.
Look at it this way...if I accelerate from a stop at a rate of 10 feet per second during every second, at the end of 1 second, I'll be MOVING at 10 feet per second, but I'll only haved MOVED 5 feet, like an average between start and stop. (I'm looking for a word or a phrase to throw out, but I can't think of it at the moment).
And yes, the less the time between successive measurements, the tighter you end result will be.