Wan Hsuan Lin(林宛萱) wanhsuan0506@gmail.com
hisn-ray-yang(楊欣睿) b06901080@g.ntu.edu.tw
https://www.youtube.com/watch?v=AC_ZPusRJfo&feature=share
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 :
- 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.
- Motivation
- Implemetation
- Setup
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.
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.
Requirement : SDL2, SDL_ttf 2.0, run on Linux
- Download our repository
- 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.
- type
make
, and it will generate a executable binary file, Smartcushion - type
./Smartcushion
, then the program will start.
Requirement : Mbed Studio on Windows, DISCO-L475VG-IOT01A board, FSR sensors
- Connect FSR sensors to board. Analog A0, A1, A2.
- Run PC side program first, so L475VG can connect to it as client.
- Download our repository.
- Create a workable project on Mbed Studio, and clone all files in
STM32/FSR402/
into it. - Note that wifi connecting information is in
mbed_app.json
file, modify it. - Plug L475VG to computer, and Mbed Studio will show
DISCO-L475VG-IOT01A
ontarget
column. - Compile and run :)