Skip to content

NTUEE-ESLab/2019-SmartCushion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2019 Smart Cushion

Author :

Wan Hsuan Lin(林宛萱) [email protected]

hisn-ray-yang(楊欣睿) [email protected]

Demo video :

https://www.youtube.com/watch?v=AC_ZPusRJfo&feature=share

Abstract

We use DISCO-L475VG-IOT01A to develop a portable device that can be put in cushion and record our sitting posture. By connecting with 3 FSR sensors, L475VG records the pressure while people sit on the chair. L475VG will handle the data and analysize user's current sitting posture. We devide sitting posture into several type :

  1. empty 2. sit well 3. tilt left/right 4. sitting too long 5. moving.

L475VG uses socket to communicate with PC. L475VG serves as socket client, while PC serves as socket server. It will send raw data and current state of user to PC. In PC side, we develope a desktop application to show the data and send warning message to user while they are in bad posture.

Content

  • Motivation
  • Implemetation
  • Setup

Motivation

Nowadays, people spend a lot of time sitting on chair. However, bad sitting posture and long-time sitting will cause damage to our health. Thus, we decide to develope a smart cushion that can be portable and easily installed on our chair to help us take care our health.

Implemetation

I. System Structure

II. HardWare Assembling III. User Interface Begin, press start to connect to socket client After clicking start, connecting to the L475VG Successful connection. Start to exchange data. We can click the exit button to disconnect. The raw data will show on the top right corner of the view. When PC recieves that the user are in bad posture, it will send warning message.

Setup

User Side

Requirement : SDL2, SDL_ttf 2.0, run on Linux

  1. Download our repository
  2. Move to SDL folder. It contains a makefile, a src folder with source files (the main cpp is named main_render.vpp), a pic folder with the pictures used by SDL2, and a text folder withe the ttf file.
  3. type make , and it will generate a executable binary file, Smartcushion
  4. type ./Smartcushion, then the program will start.

Board Side

Requirement : Mbed Studio on Windows, DISCO-L475VG-IOT01A board, FSR sensors

  1. Connect FSR sensors to board. Analog A0, A1, A2.
  2. Run PC side program first, so L475VG can connect to it as client.
  3. Download our repository.
  4. Create a workable project on Mbed Studio, and clone all files in STM32/FSR402/ into it.
  5. Note that wifi connecting information is in mbed_app.json file, modify it.
  6. Plug L475VG to computer, and Mbed Studio will show DISCO-L475VG-IOT01A on target column.
  7. Compile and run :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published