Questions tagged [pedometer]

A pedometer is a device, usually portable and electronic or electromechanical, that counts each step a person takes by detecting the motion of the person's hands or hips. Because the distance of each person's step varies, an informal calibration, performed by the user, is required if presentation of the distance covered in a unit of length (such as in kilometers or miles) is desired, though there are now pedometers that use electronics and software to automatically determine how a person's step varies. Distance traveled (by walking or any other means) can be measured directly by a GPS tracker.

Used originally by sports and physical fitness enthusiasts, pedometers are now becoming popular as an everyday exercise counter and motivator. Often worn on the belt and kept on all day, it can record how many steps the wearer has walked that day, and thus the kilometers or miles (distance = number of steps × step length). Some pedometers will also erroneously record movements other than walking, such as bending to tie one's shoes, or road bumps incurred while riding a vehicle, though the most advanced devices record fewer of these 'false steps'. Step counters can give encouragement to compete with oneself in getting fit and losing weight. A total of 10,000 steps per day, equivalent to 8 kilometres (5.0 mi), is recommended by some to be the benchmark for an active lifestyle, although this point is debated among experts. Thirty minutes of moderate walking are equivalent to 3,000-4,000 steps as determined by a pedometer. Step counters are being integrated into an increasing number of portable consumer electronic devices such as music players, smartphones, and mobile phones.

From Wikipedia: https://en.wikipedia.org/wiki/Pedometer

91 questions
2
votes
0 answers

Not able to run flutter pedometer plugin on android emulator

Background I am new to flutter and need to implement a step counter. I found the pedometer plugin for flutter, but can not get the example code to run. I am using visual studio code and android studio. I get the following error. Error E/flutter…
H-ward
  • 21
  • 2
2
votes
0 answers

Pedometer with Time - Flutter

I need to count the steps a user does and the TIME for each step! I tried to use a pedometer from Flutter but I am facing already some problems. I can't restart the pedometer and the counter seems to be very slow... I mean, I walk several steps, and…
bluesparrow
  • 43
  • 1
  • 10
2
votes
3 answers

How to reset Step Count value to 0 on Flutter Pedometer?

I'm use Pedometer plugin (https://pub.dev/packages/pedometer#-installing-tab-) on my Flutter Apps. Can someone give me an answer how to reset the step count value ? already tried using timer to reset the value to 0 but the value is still from the…
Jeff
  • 161
  • 1
  • 2
  • 7
2
votes
0 answers

Having trouble with built Expo Android app build, pedometer/google fit permissions not working

I have built my app which includes a the expo pedometer app. The pedometer works in expo, but has issues when built/standalone. Knowing from the expo docs that I needed to configure OAuth for google fit, I tried to do so. I selected "Get a Client…
AkhinLinks
  • 51
  • 5
2
votes
2 answers

Best way to fetch pedometer data React Native

I'd like to know what's the best way to fetch pedometer data from the phone (especially Android). Firstly I thought I could run a task in the background and subscribe to the step sensor via react-native-universal-pedometer npm package but I found…
2
votes
1 answer

TypeError: undefined is not an object (evaluating 'BMDPedometer.isStepCountingAvailable')

I'm new to React-Native and building my first application. I am trying to use this library to build a simple Step Counting App. I did the npm install and also the react-natvie link. I am trying to copy the same way that the owner of the library…
ChiggyB
  • 21
  • 4
2
votes
2 answers

Sensor StepCounter sometime not work well on SamSung device

I am create a demo from receive step from reboot like this. public class MainActivity extends AppCompatActivity implements SensorEventListener { private SensorManager sensorManager; @Override public void onCreate(Bundle…
Linh
  • 57,942
  • 23
  • 262
  • 279
2
votes
0 answers

Getting wrong steps history from CMPedometer

Recently I face a problem which is rare to appear What I try to do is to get the number of steps per minute. In my code: let date = NSDate() for i in 0...1000 { dispatch_async(mySerialQueue) { …
Horst
  • 1,733
  • 15
  • 20
1
vote
0 answers

expo react native pedometer code is not working in android device

Hi am trying to create an expo react native screen with pedometer. There are no problems with my code and my device fulfills hardware reaquiremetns as well but the code is not showing footsteps. I dont understand why is this…
1
vote
0 answers

Pedometer algorithm doesn't count steps properly using accelerometer data

I am using react-native and I want to count the steps of the user like Samsung Health step indicator. I am using react-native-sensors library to access accelerometer data. I followed this tutorial for pedometer algorithm, implemented in…
1
vote
1 answer

I have a trouble counting steps with expo pedometer

I am using expo pedometer but I have two problems: It doesn't seem to count the steps,the steps count is always zero. The Pedometer.getStepCountAsync function isn't supported in android. I am using "expo": "~44.0.0" "expo-sensors":…
Menna Magdy
  • 355
  • 1
  • 2
  • 14
1
vote
1 answer

pedometer pause and stop flutter

I'am building a simple pedometer application using flutter using pedometer package. When I start the application it start constanly counting steps. I want to have a button to start and pause the counting (thinking about putting a timer later for how…
1
vote
0 answers

Android Pedometer showing incorrect steps

I have created a simple android step counter in Java. I have the step counter working but for some reason when I boot up the application it starts off at 62000 steps. I have not hardcoded this value anywhere in my code and I am unsure of why this is…
ajai singh
  • 33
  • 7
1
vote
1 answer

Expo Pedometer "Getting step count for date range is not supported on Android yet"

When i updated expo SDK from 32 to 35, I get returned an error "Getting step count for date range is not supported on Android yet." My code and google fit api configuration are clean. I know, because my app at google play store and it is working.…
1
vote
0 answers

How to calculate time calories burnt while counting steps using STEP_COUNT_SENSOR

I am new to android and working on an application like pedometer. I have calculated total steps using Step Count Sensor , Now I want to calculate total time and calories burnt. Step count sensor give two methods onSensorChanged and…