Pedometer with ADXL345

You seem to have more than just a problem with programming

So let me help out... have a look here....