[Solved] ENCE361 Project- Personal Fitness Monitor Project

$25

File Name: ENCE361_Project__Personal_Fitness_Monitor_Project.zip
File Size: 461.58 KB

SKU: [Solved] ENCE361 Project- Personal Fitness Monitor Project Category: Tag:
5/5 - (1 vote)

The goal of this project is to program a personal fitness monitor to record a users steps and estimate the distance travelled by the user.

Program Specification

The developed program will be assessed against the following specifications:

  1. The program should estimate the number of steps taken by a user based on data from the accelerometer on the Orbit board.
  2. The program should estimate the distance travelled by the user.
  3. The program should allow the user to set step- and distance-goals and should display progress towards these goals.
  4. The program should notify the user when a goal is completed.
  5. The RESET button on the TIVA board should restart the program and clear any stored step, distance and goal values.
  6. In addition to the requirements above, the display, buttons, switches and potentiometer on the TIVA and Orbit boards should function according to the requirements given in Milestone 2 below:

6.1.At startup the OLED board should display the number of steps counted since the last reset.

6.2.Pushing the LEFT or RIGHT buttons on the Orbit board should toggle the display between total distance travelled since last reset and number of steps counted since last reset.

6.3.The total distance travelled should be calculated from the number of steps multiplied by 0.9 metres.

6.4.When the distance travelled is displayed, pushing the UP button on the TIVA board should toggle the units between kilometres and miles.

6.5.A long press on the DOWN button when the number of steps are displayed should reset steps to zero; similarly a long press on the DOWN button when the distance travelled is displayed should reset the distance travelled to zero.

6.6.Power cycling the board should reset step count and distance travelled to zero.

6.7.Setting SW1 to the UP position should put the fitness monitor in a test mode, where the functionality of the GUI can be verified. In this test mode each push of the UP button should increment the step count by 100 and the distance by 0.09 km. Likewise, pushing the DOWN button should decrement the step count by 500 and the distance by 0.45 km. Note that the other functions of the UP and DOWN buttons, namely toggling units and resetting counts, should be disabled while SW1 is UP. The functionality of the LEFT and RIGHT buttons should not be affected by SW1. Setting SW1 to DOWN should restore the normal functionality of the UP and DOWN buttons.

  1. When the program starts, which may happen after a reset operation or after reprogramming, the step and distance values should be zero and the goals should be returned to default values, namely 1,000 steps and 100 m.
  2. The program should have a real-time foreground/background kernel operating on a round-robin basis for background tasks. Robust behaviour should be maintained at all times.

Source Code

Source code from labs and lectures are available on Learn. TivaWare examples are also available from TI. You are welcome to reuse this or other code in your project on two conditions:

  1. You explicitly acknowledge the provenance of any code you use, typically by way of comment in your source files.
  2. You take responsibility for any code you use: this responsibility includes changing the comments to reflect your use of the code.

You will lose marks if you do not meet these conditions.

Serial Port

During development groups may choose to output debugging information over the serial port. This debugging information should not be included in the final version of the code. You are strongly encouraged to use compiler directives to control the transmission of such debug information. For example, a section of code which should not be compiled can be bracketed as follows:

#ifdef DEBUG_ONLY

// Code for debugging here; only compiled if DEBUG_ONLY is TRUE.

#endif.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] ENCE361 Project- Personal Fitness Monitor Project[Solved] ENCE361 Project- Personal Fitness Monitor Project
$25