Pedometer for myRIO by NI Count Your Steps and Calculate Your Average Step Length

  • Detects changes in acceleration along the z-axis (up and down)
  • Filters out the effects of gravity
  • Counts the number of steps taken by the user for a given time period
  • Determines the distance covered in a given time period
  • Calculates the average step length
  • Download
The Pedometer for myRIO by NI application uses the accelerometer in myRIO to count steps and measure the distance walked. Using triaxial gravity acceleration, it measures distance and total steps to calculate the average step rate.

To measure distance, it obtains triaxial acceleration from the accelerometer to first correct posture. This must be done to obtain triaxial acceleration and subsequently calculate triaxial speed based on calculus to measure distance. Once the myRIO device is rotated, triaxial speed is incorrect, so the app corrects acceleration into a geodetic coordinate system for calculus.

Second, it measures distance based on calculus. After correcting posture, it uses a bandpass filter to get the proper frequency to calculate distance (low frequency contains gravitational acceleration and high frequency affects the calculus).

Third, it can detect ups and downs in the z-coordinate plane to count steps. Another bandpass filter obtains the proper frequency. Finally, based on the distance and the number of steps, the app can calculate the average step length.

Support Information
This add-on software requires LabVIEW software installed with myRIO hardware and software.

For additional support options with this add-on software, view “myRIO Software Requirements Documentation” and “myRIO Forum” under the Resources tab.

Disclaimer: This example package (this “program”) was developed by a National Instruments (“NI”) engineer. Although provided by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS PROGRAM IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM’S TERMS OF USE.

Reviews are typically processed within 48 hours. If you believe a review is incorrect or inappropriate, please report abuse to
Verified Reviewers have submitted an email address to

IMPORTANT INFORMATION: You are being directed to a third party web site operated by RateVoice to submit your rating and/or review. You agree that the RateVoice Terms of Use apply to your access of, and submissions to, the RateVoice site. In addition, you agree that the "User Contributions" and "Your Conduct" sections of the NI web site Terms of Use apply with respect to your rating and review related conduct and submissions as if the term "Site" in those sections also referred to the RateVoice web site. Please remember that any information (including personal information) that you disclose in connection with ratings and/or reviews may become public information that others may collect, circulate, and use. Because NI cannot and does not control the acts of others, you should exercise caution when deciding to disclose information about yourself or others in public forums such as these.