Thanks a lot ..... i already found some other tutorial and have used them i could write certain instructions to the sensors and i could even read data out of the sensors but i know that if i know the old position and the acceleration i could get the new position.
I am just not familiar with the math in-between neither am i familiar how to visualize it ....
It is possible to calculate your position by using an accelerometer. This requires some math; Acceleration integrated is velocity, velocity integrated is position. Thus if you integrate your input signal twice from the accelerometer you'd get position. Bare in mind though that integration is somewhat error sensitive. If your accelerometer would give a normally distributed error (overestimates and underestimates equally), you should have a decent positioning. However, if it tends to underestimate or overestimate, you could get large errors. There will probably be a lot of error with using the accelerations, you probably will only be able to do that for short distances. Also what if you are on a hill? Turning around would seem like acceleration. I guess you could write code to figure that out but it won't be perfect.
I haven't tried it myself yet though...
added:
There is an entire practice around this question. SLAM or Simultaneous Location And Mapping (http://openslam.org ) is the practice of identifying where you are within an environment, and mapping it for future use.