Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
3 views82 pages

Baby Monitoring System

Uploaded by

vengatachalam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views82 pages

Baby Monitoring System

Uploaded by

vengatachalam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 82

IOT Based Baby Monitoring System

Abstract:
The current number of working mothers has increased dramatically. Later, child-rearing has
become a daily challenge for many families. Thus, many parents send their children to
grandparents' homes or to daycare centers. However, parents are not always able to monitor
their children's every move. Therefore, the Internet of Things-based Baby Monitoring System
(IoTBBMS) is being proposed as an efficient and inexpensive IoT-based monitoring system in
real time. We also came up with a new algorithm for our system that plays a key role in
providing better child care in the absence of parents. In the design process, the Node Micro-
Controller Unit (NodeMCU) is used to collect sensor-readable data and upload it via Wi-Fi to
the AdaFruit BLYNK server. The proposed system uses sensors to monitor important fetal
parameters, such as ambient temperature, humidity, and crying. The system structure consists
of a baby's crib that will automatically swipe using the engine when the baby cries. Parents
can also monitor their children's condition with an external webcam and open a playful toy
located on the baby's crib from a BLYNK server to entertain the baby. The proposed prototype
of the system is designed and tested to prove its cost-effectiveness and simplicity and to
ensure safe operation to enable child rearing anywhere and anytime via the network. Finally,
the child monitoring system is proven to be effective in monitoring the child's condition and
the environment in accordance with the model. All data taken from the sensors / modules will
be stored in the Mobile application and periodically updated. The Health Algorithm is used in
these databases to get information about useful physical conditions as any common symptoms
of the disease can be easily identified. The proposed prototype of the system is designed and
tested to prove its cost-effectiveness and simplicity and to ensure safe operation to enable
child rearing anywhere and anytime via the network. Finally, the child monitoring system is
proven to be effective in monitoring the child's condition and the environment according to the
prototype.
Keywords: IOT, Research, Node MCU, BLYNK, MQTT
I. INTRODUCTION
Internet of Things (IoT) simply means a network of objects connected to the Internet. It gives
devices the ability to transfer sensor data online without the need for intervention. IoT
integrates multiple devices and grows rapidly because it is a broad phase. The forecast says
that by 2019, approximately 26.66 billion IoTs will be operational; by 2025, 75 Billion IoT
devices worldwide will be available and connected wirelessly online. Among these connected
devices, millions of wearable sensors are widely used in health care systems. The total amount
of money spent worldwide on IoT in 2016 was $ 737 billion and was projected to reach $ 1.29
trillion by 2020. IoT is an outstanding sector that will grow and expand significantly. The
function of the IoT is to control, monitor in real time, and perform independent or independent
work and efficiency. Perhaps one of the main reasons why IoT is so big is that it aims to make
life easier, and people tend to invest in things that make their lives easier. Thus, the number of
IoT applications continues to grow in various sectors. In this study, IoT was integrated into our
child monitoring system to achieve a faster response time and provide a greater sense of
parental safety.
It is a new, smart and protective program for Cradle to breastfeed the baby properly. This
program considers all the minutes necessary to care for and protect the unborn child.
Intelligent design and innovation comes with the use of technologies / methods that include
Internet Of Things (IoT) (Modules such as nodeMCU board, Humidity & Temperature
sensing), Swing Automation, Cry Detecting Mechanism, Live Video Surveillance, Mobile
App. Computer Making (Data Storage) and Android Friendly User (User Management)
mobile app.

II. METHODOLOGY

Observational Research: We came across new parents and observed their difficulties while
managing the infants.
1) Interviewed Parents: We tried to interview them and gathered all the data we wanted.
2) Discussion with Peers: Discussed with peers to get an overall clear solution.
3) Block Diagram and Component Selection: Researched about the component suitability
with our proposed solution and the headed toward block diagram creation.
4) Coding and Simulated on Proteus: We coded a program for that and simulated it virtually
to check its working and areas to improve on.
5) Cost approximation and Hardware Implementation: Calculated the cost of the prototype
and verified with the budget window we had. Then we jumped onto hardware
implementation for the prototype.

III. MODELING AND ANALYSIS

A. Materials
1. Node MCU 2. DHT 11 Sensor 3.Motion Sensor

4. Sound Sensor 5. Servo Motor 6. DC Battery

X
7. ESP32 Camera

Figure 1: view of components


B. Block Diagram

Figure 2: view of Block Diagram

C.Flowchart

Figure 3: view of
flowchart D.
Software simulation

Figure 4: view of software simulation

E.Dumped Code
#define BLYNK_PRINT Serial
#include <Servo.h>
Servo myservo; // create servo object
to control a servo // twelve servo
objects can be created on most boards
int pos = 0; // variable to store the
servo position
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DHT.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "dyBhHOMy6udsSrLm1nZz8nyAh0_uM1qS";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] =
"iPhone"; char
pass[] =
"harsh123";
#define DHTPIN D3 // D3
// Uncomment whatever type you're using!
#define DHTTYPE DHT11 // DHT 11
DHT dht(DHTPIN,
DHTTYPE);
BlynkTimer timer;
void sendSensor()
{ float h = dht.readHumidity(); float t =
dht.readTemperature(); // or dht.readTemperature(true)
for Fahrenheit if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT
sensor!"); return;
}
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(V5, t);
Blynk.virtualWrite(V6, h);
} void
setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth,
ssid, pass);
pinMode(D5,OUTPU
T);
pinMode(D6,OUTPU
T);
pinMode(D7,OUTPU
T);
pinMode(D8,OUTPU
T); //
digitalWrite(D5,HIG
H);
digitalWrite(D6,HIG
H);
digitalWrite(D7,HIG
H);
digitalWrite(D8,HIG
H);
myservo.attach(D5);
myservo.write(90);
dht.begin();
// Setup a function to be called every second
timer.setInterval(1000L, sendSensor);
} void
loop()
{
Blynk.run();
timer.run(); int
a=analogRead(A0);
int c
=map(a,1024,400,0,10
0); int
b=digitalRead(D2);
Serial.println(a);
Serial.println(c);
Blynk.virtualWrite(V4,
c);
Blynk.virtualWrite(V3, b);
if(a>800)
{
for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree myservo.write(pos);
// tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to
reach the position
}
for (pos = 180; pos >= 0; pos -= 1) { // goes from
180 degrees to 0 degrees myservo.write(pos);
// tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to
reach the position } } else
{
myservo.write(90)
}
}
Working
The main aim of the system is to entertain and sooth the baby without human presence for
some time period. As the cry
of the baby will be detected through the analog pin of the LM393 sound sensor, it will turn
on the Toy Motor through the
L293D motor driver. The audio detected through the sensor will have a fixed value. So, once
the sound frequency goes
beyond the fixed value it will send a signal to the motor driver and the toy motor will be
turned ON through motor driver.
After a delay of some seconds, even if the sound detected is in between the range of the
fixed value, then the toy motor
and the DC motor for swing mechanism will be started simultaneously.
At the top of the cradle in the right-hand side there will be a camera module installed to keep
a watch on the baby and
monitor his actions. This camera will be connected to the parent’s mobile phone through the
Blynk App. By clicking on
the camera button on the GUI of the App, a camera window will pop-up. On detection of the
cry the swing mechanism
of the cradle and the toy will be turned on automatically. These controls can also be
controlled manually through the
Blynk App. As per requirement, after seeing the camera window through the App, parents
can turn ON/Off the swing
mechanism of the cradle and the toy interfaced to it accordingly.

IV. RESULTS AND DISCUSSION


A. Results of Hardware Implementation

Figure 5: view of Hardware prototype


B. Result of Bylnk IOT Notification App (i.e. Available on

Playstore for free)

Figure 6: view of IOT Blynk App

V. CONCLUSION

A smart crib with an IoT baby monitoring system is designed and built to monitor the baby's
vital parameters, such as crying, humidity, and ambient temperature. NodeMCU was used as
the main control board in the construction of the project circuit, because it had a built-in Wi-Fi
module, which enabled the implementation of the IoT concept in the advanced system. The
need for IoT was met through NodeMCU due to its simplicity and open source environment.
The completed prototype was tested using a cell phone with a baby ringtone, inserted into the
womb. When the mobile phone rang for a few seconds, the cradle began to sway from the
system's assumption that the baby was crying because of the noise received. A notification has
been sent to the user's cellphone to indicate that the child is crying. The temperature and
humidity of the surrounding area were determined by the parents' ability to control the child
using mobile applications. Monitoring of real-time vision was achieved with the help of a
wireless camera. The user can monitor the child with the camera's mobile app and talk to the
child via a microphone built into the wireless camera.

REFERENCES

[1] Aslam Forhad Symon, Nazia Hassan, Humayun Rashid, Iftekhar Uddin Ahmed, S M
Taslim Reza, ―Design and Development of a Smart Baby Monitoring System based on
Raspberry Pi and Pi Camera‖,4th International Conference on Advances in Electrical
Engineering pp 117-122, September 2017.
[2] S.Srikanth, P.Ramya, M.Satheesh, G.Thomas Philip and K.Vineetha ―Smart Baby
Cradle System‖,International Journal of Advances in Scientific Research and
Engineering,Volume 4, Issue 3, pp 51-60, March – 2018.
[3] Savita P. Patil and Manisha R. Mhetre, "Intelligent Baby Monitoring System", ITSI
Transactions on Electrical and Electronics Engineering, volume 2, Issue 1, pp.11-16, 2014.
[4] Shreelatha, Shreya Pai, Sonal Cynthia Pereira, Tanya Nicole, Ms Ushadevi A., ―
Advanced Baby Monitor‖ International Journal of Internet of Things ,pp 51-55 , June 2017.
[5] I.Natheera, S.Sundaravadivel, N.L.Visakan,S.Viswanathan and M.Vivekkumar,
―Smart Cradle‖, Asian Journal of Applied Science and Technology (AJAST), Volume 2,
Issue 2, Pages 291-300, April-June 2018.
[6] P.B. Patel, Sudhir Ticku, Suraj Darunde, ―Automation In Baby Cradle
Bed‖,International Journal of Advance Research in Science and Engineering,vol ,issue 4,april
2018.
[7] Misha Goyal,Dilip Kumar, ―Automatic E-Baby Cradle Swing based on Baby Cry‖,
International Journal of Computer Applications (0975 – 8887) Volume 71– No.21, June 2013.
[8] Tushar P. Patekar, Pooja S. Dawale, Pooja A. Jaiswal, ―Design and Fabrication of
Automatic Baby Cradle System‖, International Research Journal of Engineering and
Technology (IRJET) Volume: 05,Issue: 02,Feb-2018
A
n

I
o
T

(
I
n
t
e
r
n
e
t

o
f

T
h
i
n
g
s
)

b
a
b
y

m
o
n
i
t
o
r
i
n
g
s
y
s
t
e
m

t
y
p
i
c
a
l
l
y

c
o
m
b
i
n
e
s

v
a
r
i
o
u
s

t
e
c
h
n
o
l
o
g
i
e
s

t
o

p
r
o
v
i
d
e

r
e
a
l
-
t
i
m
e

m
o
n
i
t
o
r
i
n
g

a
n
d

i
n
f
o
r
m
a
t
i
o
n

a
b
o
u
t

b
a
b
y
'
s

e
n
v
i
r
o
n
m
e
n
t
.

H
e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