Skip to content

compro-itkmitl/Sleep-Apnea-Tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Sleep Apnea Tester

    Sleep Apnea Tester is a micro-controller project for Computer Programming 2017 with two main objectives are Sleep Apnea surveillance and report abnormal results while sleeping.

    Presently, the problem in sleeping was increase and these problems can risk assessment in diseases. Sleep Apnea Tester can solve sleep problem by respiratory rate measure, snore check and others while sleeping with Sound Microphone Detection Module. The result will be saved and can be checking to signify irregularity while sleeping if the irregularity was found while sleeping, the user can consult with paramedic for protecting in long term.

    ** Sleep Apnea Risk Test Program and Sleep Apnea Board Meter is only predict sleep apnea disease's risk. If you found the high risk, please go to see a doctor! **


Installation

  1. Download and Install Arduino IDE
  • Go to https://www.arduino.cc/ and click on SOFTWARE menu and select DOWNLOADS.

  • Select computer's operating system for coding on Arduino IDE.

  • Click on JUST DOWNLOAD for download program or CONTRIBUTE & DOWNLOAD for donate developer and download program.

  • Unzip the file and run arduino.exe for installation Arduino IDE.


  1. Setting Arduino IDE


  1. Download and Install Driver

  • Install the driver on the computer.

  1. Download and Install Library
  • Go to Sleep-Apnea-Tester >> Library
  • Extract all ZIP file.
  • Open Arduino IDE and select Sketch >> Include Library >> Add .zip library.

  • Select ZIP file and click on "open".

Library In Uses

Sleep Apnea Board Meter

Sleep Apnea Risk Test Program

  • <time.h> : time(), localtime()
  • <stdlib.h> : system("cls")

Requirements

Arduino UNO R3 USB Jumper High Sensitive sound Microphone Detection Module
Data Logger Shield Breadboard SD card Lithium Cell CR122 Cmd with Gcc

    If you don't have GCC compiler yet, you can install this.

MINGW gcc Compiler : https://sourceforge.net/projects/tdm-gcc/


Board Connection

Thanks for "Fritzing", to create the design of arduino boards.

Connection

  1. Connect Arduino UNO R3 with Data Logger Shield with headers.
  2. Connect Data Logger Shield's 5v port and GND to Board Bread's pin.
  3. Connect Sound Microphone Detection's GND port and VCC port to Board Bread's pin for received electric from 5v port.
  4. Connect Sound Microphone Detection's output port to Data Logger Shield's Digital I/O at D2 and D3 for send output to Data Logger Shield.


How to use

Part I: Sleep Apnea Risk Test Program

    For check risk to be Sleep Apnea Syndrome apart from "Sleep Apnea Board Meter".

    Tips: Disable Avast CyberCapture Completely

    You should turn off CyberCapture in your Avast antivirus first, if Avast CyberCapture appear on the screen. You can follow these steps:

  1. Open Avast user interface and go to settings.
  2. In the 'General' tab (first item) uncheck 'Enable CyberCapture'.
  3. Confirm by clicking the 'OK' button.

  1. Go to Sleep-Apnea-Tester >> breathe.
  2. Open file Sleep Apnea Risk Test.c and Change Directory to folder that you want to save the result.

  1. Save file and open the Command Prompt (CMD Commands) and Change Directory to this file then type 'gcc Sleep Apnea Risk Test.c' for compile the code.
  2. Type 'a' on command for run the program or open file a.exe.

  1. Let's do this Sleep Apnea Risk Test!

Output on Command Prompt (CMD Commands)

Part II : Sleep Apnea Board Meter

  1. Go to Sleep-Apnea-Tester >> breathe >> Stop_breath_check.
  2. Open file Stop_breath_checkand.ino and select Tools >> Board >> 'Arduino/Genuino Uno'.
  3. Select Serial Port for connect USB.
  4. Connect USB for start using, the yellow light sensor for nose breath measure and the green light for month breath measure.

  1. The output will show at the real-time in Serial Monitor. If you already finish, you can immediately shutdown.

  1. The record will save at OUTPUT.txt on SD Card.


Members

  ID First Name Surname GitHub Username
60070016 Chaiyapong Nithipeerawat @Sullvo1148
60070018 Thitikorn Padungwatsawat @maxlunla
60070034 Thirada Theethum @PrintTrd

Assistant Teacher

Assist.Prof. Dr. Kitsuchart Pasupa Assist.Prof. Dr. Panwit Tuwanut

Computer Programming 2017

Faculty of Information Technology

King Mongkut's Institute of Technology Ladkrabang

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published