i need to count no of steps while walking. so that i am using accelerometer. in the above coding i get accelerometer sensor\'s x,y,z values. this is i have done so far. my p
You will not find here a simple code to just count steps (it is just too complex). But there's info out there if you're interested:
There are good diagrams and step analyses here (in pdf).
You can find a more formal publication here: http://portal.acm.org/citation.cfm?id=1554235
And if you want to create a sensitive pedometer (proposed for the elderly), I suggest you to start from this paper: http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=4575030