Fitness Partner

Fitness Partner

Give you a better private gym enviroment.

Vision

Nowadays indoor fitness becomes more normally around us. Through the long-term research and analysis. Scientist find that playing music while exercising can improve the result of fitness. It’s not only makes the speed of metabolism, burning of fat faster but also exercise the endurance of the practitioner, improve self-confidence.
By the way, different exercising should match up different music rhythm. Consider to people who have no enough time to go to the Gym after work or study, Fitness Partner (F.P.) creating a good atmosphere while you doing fitness at home. According to the heart beats of user, the system can play the different music with suitable rhythm. All the music are divided to different kinds. 
At the same time, each kind of music provide suitable light around the space in order to make user feel more relaxed and enjoy the fitness. F.P. system provide the distinctive fitness experience different from the Gym in your private space. It is suited for all the people who prefer to do fitness at home.

AMI Steps

Sensing

  • Collecting the daily rest heartbeat rate of user by smart band.
  • Using heartbeat sensor to detect the real-time heartbeat while doing sport.

Reasoning

  • Listening to music while doing sports improves the result of fitness. According to the heartbeat of user,  F.P provide more suitable music during the exercising.
  • The color of lights changes with the heartbeat of user in order to help user know the state of exercise clearly, which create a good atmosphere during fitness.

Interacting 

  • Provides the users a mobile application to manage the fitness.
  • Customize the enviroment variables for fitness, including the playing list and the light color for different heartbeat range. 
  • Show real-time heartbeat rate of user on the smart phone. 

Acting

  • Change or pause the music as user wish during the current section of excersicing  by using the android applicaion.
  •  Remind user time up of warm up excercise by turning on LEDs.
  • Auto-change suitable music and colors of LED according to the real-time heartbeat rate of the user in different range.

AMI Features

Sensitive

The system can sense the daily rest heart beat rate of user before fitness and real-time heartbeat rate during the fitness.

Responsive

The system will change the music and lights' color by detecting users' heartbeat rate in real time.

Transparent

It can an be easily installed in any private gym.

Adaptive

People who prefer to do fitness in a private space and improve the feeling during the fitness. It only works for one user privately at the same time.

System Architecture

Hardware architecture

  • Computational nodes: 

    Server: Data analyzing, database storage and server program hosting. Controlling rooms lights, music playing and Raspberry Pi.

    Raspberry Pi: It controls the heart beat sensor, calculating the heart beat rate data and send it to the server.
       
  • Devices: 

    Heartbeat sensor: Gathering the user heart beat rate data and transfer it into voltage signals. 

    Smart band: It records user’s daily heart beat rate and send them to the cloud server for further analyzing.

    Room LEDs: They indicate the user’s exercising state (Heavy or light), they change into the suitable color range defined by the user when the user’s heart beat rate rises or falls.

    Speaker: Playing suitable music. It will change into suitable rhythm by different level (high or low) of users’ heartbeat rate.

  • User Interface Device:

    Smart Phones: It runs an android application; this program will show the users needed information and allowed user to change the system’s device state.

Software architecture

  • Python Server:

    The python server is the computational center of the system, it runs on the Server. It is built by five software modules:

    Database: Storage the music location for different BPM.

    Logic: Strategies to change light color and music rhythm.

    Network Interface: To communicate with Android App, Raspberry, Phillipe Hue light and Fitbit cloud server.

    Music module: Provide the music playing function.

    Task manger: To perform corresponding action by receiving the command from Android Application.

  • Android App:

    User interface: It allows user to initialize necessary data for the sever or reset it. Showing the playing music names and real-time heart beat rate. User can also turn on/off the lights, change the lights color for different sporting range and Pause/Resume Playing/Change the playing music.

  • Raspberry Pi Software:

    It analyzes and converting the voltage signal into heartbeat rate represented by digitals, connect to the Python server by LAN.

Network architecture

Purpose and scope

The Purpose of our system is to improve the result of indoor fitness ( improving speed of metabolism, burning of fat faster ) by creating a good atmosphere using suitable music and light.

First of all, the system collects the user's rest heartbeat rate of the last one week from cloud server to get a more accurate heartbeat range data.

When user begins to do warm-up sport, the system begins to play the random music in warm-up heartbeat rate range. At the same time, the system begins counting down through the time set by the user. It will inform user by turning on the LEDs when the warm-up time is over.

After starting the formal fitness, once a song is ending, the system will choose the most suitable next music by analyzing the heartbeat data in the pervious period. The color of LEDs has 3 ranges which stands for 3 kinds of excerising (anaerobic exercise, aerobic exercise, reaching maximum heartbeat rate state). The lights' color will change automatically with the purpose of making users know about their sate of exercise directly. This will create a good atmosphere during fitness. LED color and music playing state can also be modified by user at any time. 

Finally system can be turned off at the end of fitness and all associated device will automatically turn off.

Project features

# Description Priority
1 App interface can display heartbeat rate, playing music name, rest time of warm up sport and duration of doing exercise. 1
2 Initialize server by entering necessary message (Age, rest heartbeat rate). 1
3 Play, pause and change the music when needed. 1
4 Modify LED colors for three different sport states (anaerobic exercise, aerobic exercise, maximum heartbeat rate state). 1
5 Switch on/off LED during fitness.
2
6 Turn on/off demo mode. 2
7 Every time before doing sports, update rest heartbeat rate from the Fitbit cloud server. 2
8 Define the warm-up exercise time and rest time during each group of anaerobic exercise. 1
9 Define the Fitbit account for synchronizing rest heartbeat data from cloud server. 2
10 Update music database when adding new music into corresponding folders. 2
11 Playing suitable music according to the heartbeat rate. 1
12 Control the colors of LED to inform user the state of exercise. 1

Hardware Components

  1. Computer: MACHENIKE F117 (OTS)
  2. Andriod smartphone: XIAOMI MIX 2 (OTS)
  3. LED: Philips Hue
  4. Smart band: Fitbit Charge HR
  5. Raspberry Pi 3
  6. Heartbeat sensor
  7. Speaker: laptop built-in speaker (OTS)

Software Components

  1. Python: v3.6
  2. MariaDB: v10.3
  3. Android OS: API level 27
  4. Raspbian Stretch: v4.1

Team

WU TIANJIAN

wuskyjian@gmail.com

Programmer and S/W developer

FENG SHENGJIE

294778144@qq.com

Programmer and S/W developer

JIA ZIRUI

jzruirui@gmail.com

H/W designer and Physical designer

Open issues

  • The strategies for computers to act when the user's heartbeat ratio changes.
  • Need to learn the API to communicate with the LEDS.
  • Develop the application for smartphone to interaction.
  • Heartbeat sensor is not very stable. ( May caused by bad contact. )