52 minuter sedan, skrev Nemo:
Aha, stegsensor i telefonen. Hur funkar det?
Den använder den inbyggda accelerometern som används till allt möjligt i en smartphone
These applications work with the phones which have the Accelerometer sensor built in it. While running, this application will monitor the change in accelerometer and based on it will conclude if the step is taken. It can provide the information about the angle at which you are holding the device, direction , speed at which it is moved and the gravity. Accelerometer provides the values whenever they are changed along with the Time at which the event occurred. Application stores these values in the database and look for a pattern.
An accelerometer will provide three values x-axis value, y-axis value and z-axis value. As the person starts taking the first step, x-axis value will increase at a rate depending upon the force at which the person starts to move, y-axis which will tell the relative change in the height of the device along with the force will show an increase in value as while taking the step person will rise from the ground and then it will decrease till the step touches the ground. Based on this kind of pattern match, Step event is detected. Same kind of concept is used in wave to answer feature provided in phones.
http://mohdaslam.com/pedometer-and-step-counter-mobile-apps-how-does-it-work/