Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, - - PowerPoint PPT Presentation

fitness trainer
SMART_READER_LITE
LIVE PREVIEW

Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, - - PowerPoint PPT Presentation

Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia Needs People are unable to reach their desired level of fitness due to the inaccessibility of personal training or other problems associated with the human element


slide-1
SLIDE 1

Fitness Trainer

Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-2
SLIDE 2

Needs

People are unable to reach their desired level of fitness due to the inaccessibility of personal training or other problems associated with the human element of personal training. These problems include a lack

  • f knowledge which makes it difficult to correctly perform an exercise

and raises the risk of personal injury. Motivation can be difficult to maintain when an individual attempts to exercise or train alone, but personal trainers are often prohibitively expensive, and the quality and availability of personal trainers varies, forcing the trainee to accommodate the trainer. There is a need for an inexpensive, portable system that educates users on how to perform exercises safely while maintaining their motivation.

2 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-3
SLIDE 3

Requirements

  • 1. Tutorial-based
  • 2. Inexpensive
  • 3. Motivational
  • 4. Portable
  • 5. Reliable
  • 6. Safe

3 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-4
SLIDE 4

Specifications

4 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

Marketing Requirements Engineering Requirements Justification

1

  • A. The user will be shown diagrams, animations,
  • r videos which demonstrate the proper

techniques for exercises. The user needs to be presented with enough information to be able to perform the exercise

  • correctly. Users should be able to learn from the

demonstration well enough that the system will not frequently correct him or her; using the system should be a positive experience. 1

  • B. The user will be warned if the sensors detect

that the user's motions significantly mismatch proper technique (i.e., > 10 deviation from expected motion.) The system should gently correct the user's motion and guide the user to proper technique. 4, 5

  • C. Each set of sensors will be able to run for the

duration of a regular workout without being recharged or having batteries replaced. There is a zone associated with physical activity (e.g., runner's high). The device should not take the user out of the zone by requiring fresh batteries. 4, 6

  • D. Wires, if any, will be designed such that they

do not interfere with range of motion, and they will be designed not to be caught on gym equipment. While working out, especially when using gym equipment, having wires criss-crossing the user's body can be hazardous.

slide-5
SLIDE 5

Specifications Continued

5 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

Marketing Requirements Engineering Requirements Justification

2, 5

  • E. The system will use off-the-shelf components

wherever feasible. Off-the-shelf components are generally more cost-effective than custom parts. 5

  • F. All parts will remain motionless relative to the

user's body. The user will be moving around. The parts should not. 5, 6

  • G. Parts will withstand a 2 meter drop test, and

they will withstand the weight of the user. If the user cannot continue doing push-ups, for example, the user may lie on his or her stomach while regaining his or her strength. If the user rolls on his or her side (and thus onto the device strapped to his or her arm), the device should withstand this motion. 3

  • H. The user will be provided with feedback

regarding progress. An exercise routine loses motivational value if the user cannot determine how much progress has been made.

slide-6
SLIDE 6

Concept Selection

  • Optical
  • Magnetic
  • Mechanical
  • Acoustic
  • Level Sensor (old choice)
  • Inertial Sensor (new choice)

6 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-7
SLIDE 7

Design: Level 0

7 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-8
SLIDE 8

Design: Level 1

8 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-9
SLIDE 9

Design: Level 2

9 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-10
SLIDE 10

Design: Level 3

10 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-11
SLIDE 11

Mounting System

11 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-12
SLIDE 12

Mounting System: Risks

  • Robust

○ withstand vigorous exercise while unhindering user ○ needs more testing ○ mitigated by use of reliable exercise bands

12 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-13
SLIDE 13

Sensors

13 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

  • L3GD20
  • L3GD20H
slide-14
SLIDE 14

Sensors

14 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-15
SLIDE 15

Sensors

15 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-16
SLIDE 16

Sensors

16 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-17
SLIDE 17

Sensors: Measurement

17 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-18
SLIDE 18

Sensors: Risks

  • Accuracy

○ errors in measurement could provide false negatives ○ can be mitigated by periodic calibration

  • Electromagnetic Aberrations

○ metal objects may interfere with measurements ○ more testing required ○ mitigated by possible use of Faraday cage, or accelerometers

18 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-19
SLIDE 19

Microcontroller Unit

19 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-20
SLIDE 20

Microcontroller Unit: STM32F401

20 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-21
SLIDE 21

Microcontroller Unit: STMCube

21 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-22
SLIDE 22

Microcontroller Unit

22 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

3.82” x 2.60”

slide-23
SLIDE 23

Microcontroller Unit

23 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-24
SLIDE 24

Microcontroller Unit: Power

24 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-25
SLIDE 25

Microcontroller Unit: Risks

  • Signal conditioning

○ Mitigated with floating point units in Cortex M4

  • Interface

○ Microcontroller + Gyroscope ○ Microcontroller + Bluetooth ○ Mitigated through the use of breakout boards

25 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-26
SLIDE 26

Bluetooth

26 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-27
SLIDE 27

Bluetooth

27 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-28
SLIDE 28

Bluetooth: Risks

  • Transmission Reliability

○ data corruption could lead to incorrect feedback ○ mitigated by highly reliable component and testing

  • Interface

○ reliably interconnect between MCU and phone ○ mitigated by use of Bluetooth breakout board

28 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-29
SLIDE 29

Phone

29 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-30
SLIDE 30

Phone

30 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-31
SLIDE 31

Phone: Risks

  • Driver implementation

○ may require low-level modifications to Android to fix bugs (significant undertaking) ○ mitigated by Android Open Source Project ■ development/modification of Android Drivers

31 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-32
SLIDE 32

User Interface: UML

  • Class Diagram

32 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-33
SLIDE 33

User Interface

33 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

Start Screen

  • MainActivity

○ after login/create profile ○ can navigate to all other activities

slide-34
SLIDE 34

User Interface

Exercise Screen

  • List of all exercises

available to UserProfile level

○ selecting one will proceed to demo activity

34 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-35
SLIDE 35

User Interface

Exercise Demo Screen

  • DemoActivity

○ Demonstration video, rep count, and form feedback

35 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-36
SLIDE 36

User Interface

Routine Screen

  • RoutineActivity

○ list of routines and their component exercises

36 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-37
SLIDE 37

User Interface

Edit Routine Screen

  • Displays selected routine

○ lists exercises with weight and sets/reps

37 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-38
SLIDE 38

User Interface

Profile Screen

  • ProfileActivity

○ metric for exercise variety, progress summary, level, and experience

38 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-39
SLIDE 39

User Interface

Progress Screen

  • Displays

history of routines and dates completed

39 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-40
SLIDE 40

Risks Overview

  • Gyroscope Sensor Measurements
  • MCU Functionality
  • Bluetooth Reliability
  • Robust Mounting System
  • Phone Operating System

40 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-41
SLIDE 41

Bill of Materials

41 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

Component Cost Our Cost Availability STM32F401 Discovery Board $14.21 $0 (Already owned) L3GD20H Breakout Board $12.50 $0 (Already owned) nRF8001 Breakout Board $19.95 $19.95 About two weeks Energizer NiMH Rechargeable AAA Batteries (4-pack) $8.99 from BestBuy $8.99 In-store pickup Sportline Universal Sport Armband $6.84 from Walmart $6.84 In-store pickup Samsung Galaxy S4 running KitKat $300.00 without contract $0 (Already owned) Total $362.49 $35.78

slide-42
SLIDE 42

Testing

  • Unit Tests

○ Gyroscope, MCU, Bluetooth, Phone

  • Integration Tests

○ Gyroscope → MCU → Bluetooth → Phone ○ Gyroscope → Bluetooth ○ MCU → Phone ○ Gyroscope → Phone ○ Power

  • Acceptance Tests

42 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-43
SLIDE 43

Testing: Unit Example

43 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

Test Writer: Brian Koziel Test Name: Microcontroller 3V Test Description: Use a direct voltage

  • f 3V VDD to turn on

the RGB LED Setup: Connect MCU to

  • VDD. 3V is LED ON

Test Input(s) Expected Outputs Status Comments 1 3 V LED ON 2 0 V LED OFF Should be repeated for different input pins

slide-44
SLIDE 44

Testing: Integration Example

44 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

Test Writer: Brian Koziel Test Name: Gyroscope to Phone Integration Test Description: Verify the sensor data reaches the phone Setup: Rotate the gyroscope to ensure that the phone senses small movements Test Input(s) Expected Outputs Status Comments 1 Large Motions Detection 2 Small Motions Detection

slide-45
SLIDE 45

Testing: Acceptance Example

45 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

Test Writer: Brian Koziel Test Name: Use Case - Sensor Durability Description: The sensors should last for the duration of the workout Setup: Use enough batteries and have each component functioning Test Input(s) Expected Outputs Status Comments 1 1 Hour No fail 2 2 Hours No fail

slide-46
SLIDE 46

ASK QUESTIONS

?

46 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia

slide-47
SLIDE 47

ASK QUESTIONS

?

47 Fitness Trainer Clayton Bailey, Drew Carlstedt, Brian Koziel, Josaphat Valdivia