You are on page 1of 11

III

SMART SLEEP CARE SYSTEM FOR


QUALITY SLEEP USING PIC & IoT
A PROJECT REPORT
Submitted by

DEVI
SUBRAMANIAN
JIDHU.K.JACOB

JITHIN.K.R

MINIMOL.M

72191210602
2
72191210602
7
72191210602
8
72191210603
7

in partial fulfillment for the award of the degree


Of

BACHELOR OF ENGINEERING
IN
ELECTRONICS AND COMMUNICATION ENGINEERING
DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING,
COIMBATORE - 641 105
ANNA UNIVERSITY: CHENNAI 600 025
APRIL 2016

IV

ANNA UNIVERSITY: CHENNAI 600 025


BONAFIDE CERTIFICATE

Certified that this project report SMART SLEEP CARE SYSTEM


FOR QUALITY SLEEP USING PIC & IoT is the bonafide work
of

DEVI

SUBRAMANIAN,

JIDHU.K.JACOB,

JITHIN.K.R,

MINIMOL.M who carried out the project under my supervision.

SIGNATURE
Dr. S. Malathy, Ph.D.,
HEAD OF THE DEPARTMENT
Electronics and Communication
Engineering
Dhanalakshmi Srinivasan College Of
Engineering, Coimbatore-641 105

SIGNATURE
Ms. Neenu George, M.E,
SUPERVISOR
Electronics and Communication
Engineering
Dhanalakshmi Srinivasan College Of
Engineering, Coimbatore-641 105

The candidates with university register no. 721912106022, 721912106027,


721912106028, and 721912106037 are examined by us in the project viva-voce
examinations held on ..

Internal Examiner

External Examiner

ABSTRACT
Sleep is the most important refreshment in human life, it gives a better health
condition, so it is essential for proper sensation of peace of mind and accurate
functioning of all body parameters. For that developing a smart sleep care system
based on Internet of Things (IoT) bed sensors and IoT Light Emitting Diode
(LED). Quality sleep is induced by sleep duration as well as bio rhythm based on
sleep pattern. IoT bed sensor acquires body pressure on the bed and respiration
pattern.

IoT LED controls brightness and the light temperature to induce sleep
(dimming without blue) and wake up (brightening with blue) and produces an
alarm during wake up time. LED control is used to support sufficient sleep
duration and analyzes sleep pattern from the bio signal to wakeup refreshed and
recorded. Using the temperature sensor, it senses the room temperature and
automatically controls the fan or Air Conditioner (AC) speed, and also using the
Passive Infra-Red(PIR) sensor, it detects human being outside the room and
displayed as DO NOT DISTURB ,if the person is sleeping inside the room. The

VI

main advantage of this sleep care system is, it is using Wi-Fi module to connect to
the internet, and to store data. It provides accurate sleep timing, mainly useful for
INSOMANIC patients, Professional students.

ACKNOWLEDGEMENT
It is our privilege to express gratitude to our chairman Shri.A.Srinivasan, for
giving me constant inspiration and motivation to pursue this project work.

It gives an immense pleasure to express gratitude to our beloved Principal Dr.


Charles Ph.D., for his valuable support and encouragement throughout the project
work.

We wish to express our sincere thanks and gratitude to Dr.S.Malathy Ph.D.,


Head of the Department, Department of Electronics and Communication
Engineering for providing invaluable insights into the subject and helping me
wherever possible.

We extend sincere thanks to Ms. NEENU GEORGE, M.E., Internal Guide,


Department of Electronics and Communication Engineering for her valuable
guidance, suggestion and for successful completion of project.

VII

We wish to extend our thanks to all Teaching and Non-Teaching Staff


members of the Department of Electronics and Communication Engineering for
their kind and patient help throughout the project work.

We express our heartfelt thanks to Parents and Friends for their support
throughout our career.

We would like to thank everyone who had helped us directly or indirectly in this
project work. We thank The Lord Almighty for this day.

TABLE OF CONTENTS
CHAPTER NO.

TITLE

ABSTARCT
ACKNOWLEDGEMENT
LIST OF TABLES
LIST OF FIGURES
LIST OF ABBREVATIONS
INTRODUCTION

PAGE
NO.
iii
iv
v
Vi
Vii
1

1.1 OVERVIEW
1.2 OBJECTIVES
1.3 PROBLEM STATEMENT
1.4 SCOPE AND ORGANISATION
LITERATURE REVIEW
INTRODUCTION
2.2 OVERVIEW
2.2.1 Smart sleep care system for quality

1
2
2
2
4
4
4
4

sleep
2.2.2 System Sleep Monitoring
2.2.3 Towards the Implementation of IoT

4
5

for environmental condition


2.2.4

Monitoring in homes.
Smart Sensors Enable Smart Air
Conditioning Control

VIII

2.2.5

Determination of Sleep Quality of

Inhabitant in a Smart Home using


an Intelligent Bed Sensimg System
2.2.6

Sleep Monitoring System Using

Kinect Sensor
2.2.7 Consumer Sleep Tracking
Devices: A Critical Review
2.2.8 Lullaby: A Capture & Access

System for Understanding the


Sleep Environment
2.2.9 Sensor Pillow and Bed Sheet system

Unconstrained monitoring of
Respiration Rate and Posture
Movements during Sleep
2.2.10 Sleep-Stage Decision Algorithm

by Using Heartbeat and BodyMovement Signals.


2.2.11 Examination of accuracy of sleep

stages by means of an automatic


sleep analysis system Sleep
3

Ukiha
SMART SLEEP CARE SYSTEM FOR QUALITY
SLEEP USING PIC &IOT
3.1 INTRODUCTION
3.2 BLOCK DIAGRAM
3.2.1 BED SIDE
3.2.2 SERVER SIDE
3.2.3 OUTDOOR UNIT
3.3 BLOCK DIAGRAM EXPLANATION
3.3.1PIC MICROCONTROLLER
3.3.2 TEMPERATURE SENSOR
3.3.3 FORCE SENSING RESISTOR
3.3.4 PASSIVE INFRA RED SENSOR
3.3.5 WI I MODULE
3.3.6 LED DIDPLAY
3.3.7 KEYPAD MATRIX
3.3.8 ALARM

10
10
11
11
12
13
14
14
15
15
16
17
18
18
19

IX

3.3.9 LED ARRAY


3.4 FLOWCHART
3.4.1 BED UNIT

20
21
21

3.4.2 SERVER UNIT


3.4.3 OUTDOOR UNIT
3.5 CIRCUIT DIAGRAM
3.5.1 BED UNIT
3.5.2 SERVER UNIT
3.5.3 OUTDOOR UNIT
3.6 COMPONENT DISCRIPTION
3.6.1 PIC MICROCONTROLLER16F877A
3.6.2 LIGHT EMITTING DISPLAY(LED)
3.6.3 WI FI MODULE
RESULTS AND DISCUSSION
4.1 OVERVIEW
4.2 OUTPUT
4.2.1 BED MODULE
4.2.2 SERVER MODULE
4.2.2 OUTDOOR UNIT

22
23
24
24
25
26
27
27
30
31
34
34
34
34
35
35

CONCLUSSION AND FUTURE WORKS

36

5.1 CONCLUSSION

36

5.2 FUTURE WORKS

36

REFERENCES
APPENDIX

37

LIST OF TABLES
TABLE NO.
3.1
3.2
3.3

CAPTION
Pin Description of PIC Microcontroller
Pin Description of LED
Pin Description of Wi Fi Module

PAGE
NO.
27
30
31

XI

LIST OF FIGURES
FIGURE NO.
3.2.1
3.2.2
3.2.3
3.3.1
3.3.2
3.3.3
3.3.4
3.3.5
3.3.6
3.3.7
3.3.8
3.3.9
3.4.1
3.4.2
3.4.3
3.5.1

CAPTION
BLOCK DIAGRAM OF BED UNIT
BLOCK DIAGRAM OF SERVER UNIT
BLOCK DIAGRAM OF OUTDOOR UNIT
PIC MICROCONTROLLER
TEMPERATURE SENSOR
FORCE SENSITIVE RESISTOR
PASSIVE INFRARED SENSOR
WI FI MODULE
LED DISPLAY
KEYPAD MATRIX
ALARM
LED ARRAY
FLOWCHART OF BED UNIT
FLOWCHART OF SERVER UNIT
FLOWCHART OF OUTDOOR UNIT
CIRCUIT DIAGRAM OF BED UNIT

PAGE NO.
11
12
13
14
15
15
16
17
18
18
19
20
21
22
23
24

XII

3.5.2
3.5.3
3.6.1
3.6.2
3.6.3
4.2.1
4.2.2
4.2.3

CIRCUIT DIAGRAM OF SERVER UNIT


CIRCUIT DIAGRAM OF OUTDOOR UNIT
PIN DIAGRAM OF PIC 16F877A
PIN DIAGRAM OF LED
PIN DIAGRAM OF WI FI MODULE
BED MODULE
SERVER MODULE
OUTDOOR MODULE

25
26
27
30
31
34
35
35

LIST OF ABBREVATIONS
AC
ADC
DAC

Air Conditioner
Analog to Digital Converter
Digital to Analog Converter

DC

Distributed Control System

DIP

Digital Image Processing

EEG

Electroencephalogram

EEPROM

Electrically Erasable Programmable Read


only Memory

FSR

Force Sensitive Resistor

IDE

Integrated Digital Environment

IoT

Internet f Technology

LCD

Liquid Crystal Display

LED

Light Emitting Diode

LDR

Light Dependent Resistor

PIC

Peripheral Interface Controller

PIR

Passive Infra-Red

PTF

Polymer Thick Film

PWM

Pulse Width Modulation

REM

Rapid Eye Movement

R-K

Rechtschaffen & Kales

ROM

Read Only Memory

XIII

RTC

Real Time Clock

SHF

Super High Frequency

UHF

Ultra High Frequency

WLAN

Wireless Local Area Network

You might also like