SlideShare a Scribd company logo
1 of 37
Download to read offline
SMART BUNK BED CHILD MONITORING SYSTEM |
BABY MONITORING SYSTEM BY ANDROID
APPLICATION(PART-2)
This is a second part of project. We have already discussed about to 1st part of this
project. If you did not read article of part-01. So click on link. We told all about the
part-1. We told about to know all sensors. So today we are going to expand the
project of part -1. Which is our second part (part-2). Before this, we saw in part-1
that all the types of sensors we had in our bunk bed , through which we were
monitoring. All these sensors were connected to arduino board and the data that was
received by all the different types of sensors used to send that the data through the
microcontroller(atmega328) and the microcontroller used to turn on buzzer for alerts
parents. All the data processes with wired. All sensors,buzzer and arduino
communicate to each other only with wired. In this second part(part-2) of the project,
we will transfer the data ,received by all the connected sensors through the arduino.
Direct sensor's data transfer Arduino to android application of smartphone with
wireless.
COMPONENT REQUIRED
1.)Arduino uno.
2.)Mq2 gas sensor.
3.)Wet sensor.
4.)Piezo electric sensor.
5.) HC-SR04 Ultrasonic sensor.
6.)DHT11 Temperature module.
7.)HC-05 Bluetooth module.
8.)12v, 1 amp power supply adapter.
9.)Plywood for frame(Bunk bed).
10.) Some wires.
ARDUINO UNO
The Arduino Uno is an open-source microcontroller board based on the Microchip
ATmega328P microcontroller and developed by Arduino.cc. The board is equipped with sets
of digital and analog input/output (I/O) pins that may be interfaced to various expansion
boards (shields) and other circuits.[ The board has 14 digital I/O pins (six capable of PWM
output), 6 analog I/O pins, and is programmable with the Arduino IDE (Integrated
Development Environment), via a type B USB cable. It can be powered by the USB cable or
by an external 9-volt battery, though it accepts voltages between 7 and 20 volts. It is similar
to the Arduino Nano and Leonardo. The hardware reference design is distributed under a
Creative Commons Attribution Share-Alike 2.5 license and is available on the Arduino
website. Layout and production files for some versions of the hardware are also available.
Mq2 GAS SENSOR
Mq2 gas sensor is a type of sensor.Which detects Smoke or Gas in the air. This is
made metal oxide semiconductor (MOS) . We know as Chemiresistor .When a
smoke or gas comes into contact with gas sensor . The MOS material is heated then
stars causing the resistance value change according to concentration of gas or
smoke. And the resistance value level of sensor is changed depend up on the type
of gases presents in the atmosphere of Mq2 sensor.
There are following types of gases detect by Mq2 Gas sensor
● LPG.
● Propane.
● Methane.
● Butane.
● CO.
● Alcohol.
● Hydrogen etc.
Mq2 gas sensor works on 5v dc and draw at least 800 mW. Smoke sensor has a potentiao
meter .We can adjust the sensitivity of gas sensor module and one Digital output voltage
pin(D0) and one Analog output voltage pin (A0) for read data from the sensor. and it has
power led for Indication voltage.and final last output data indication led.
WET SENSOR OR SOIL MOISTURE SENSOR
Soil moisture sensor or wet sensor an electronic sensor. Which is used in the irrigation
system or any wet or dry detect . Soil sensor measure the volumetric water content in the
soil. sensor is low cost, less power consume and easy to interface to Arduino. Sensor operate
to 3.3V to 5V DC power supply.
PIEZO ELECTRIC
A piezoelectric sensor is a device that uses the piezoelectric effect to measure changes in
pressure, acceleration, temperature, strain, or force by converting them to an electrical charge.
The prefix piezo- is Greek for 'press' or 'squeeze'.
ULTRASONIC SENSOR
The HC-SR04 Ultrasonic sensor distance is distance measuring sensor. This
sensor uses sonar to determine distance to any object, It provide a some
no-contact range detection with high accuracy. You can easy-to-use and low
power consume and buy low cost ultrasonic use common in robotic. And other
automation field. Ultrasonic range is detect object within 2 cm to 400 cm but
sensor get better result within 10 cm to 250 cm.
There are Three sections of HC-SR04 ultrasonic sensor:-
1.Transmitter
2.Receiver
3.Circuit of HC-SR04
DHT-11
DHT11 sensor module is a type of sensor. Which measures the temperature and
humidity of the environment in single wire. It has a restive humidity sensor and NTC
(Negative Temperature Coefficient) temperature sensor or Thermistor sensor and
8-bit microcontroller chip, that are providing cost effectiveness, anti-interfacing ability,
excellent quality and also fast response. There is a 3 pin dht11 sensor and 4 pin
dht11 sensor available in the market, so you can buy either of them. These are both
same. 3 pin dht11 to 1. GND 2. VCC 3. Signal pin. And the 4 pin sensor has 1. GND
2. VCC 3. Signal pin 4. NC (no connection) pin. When you interface with arduino,
only 3 pins of dht11 use GND, VCC and signal pins of dht11 sensor module.
HC-05 Bluetooth Module
HC-05 Bluetooth module is a wireless module. It is a specially designed for wireless
data transfer and receiver.
It has 6 pin
1.)EN Pin.
2.)TXD Pin.
3.)RXD Pin.
4.)VCC Pin(3.3v To 5v)
5.)GND Pin.
6.)State Pin.
PIN OUT:-
HC-05 ARDUINO UNO
VCC +5V
GND GND
TX RX
RX TX
HC-SRO4 ARDUINO UNO
VCC +5V
GND GND
TRIG D2
ECHO D3
MQ2 ARDUINO UNO
VCC +5V
GND GND
DO D4
WET SENSOR ARDUINO UNO
VCC +5V
GND GND
DO D5
BUZZER ARDUINO UNO
+ D6
GND GND
DHT-11 SENSOR ARDUINO UNO
VCC +5V
GND GND
DO D7
PIEZO ELECTRIC ARDUINO UNO
+ A0
- GND
WORKING PROCEDURE
Download app
The working principle of this project is very simple. How do parents know
if their child is in the bed of the children's bedroom without enter. You
can easily monitor by the mobile app. All sensors live data transfer by
Bluetooth to your mobile Bluetooth for witch you can easily monitor in
app from anywhere. Bunk bed has attached 4 sensors hc-sro4
ultrasonic sensor,mq2 gas sensor, soil moisture or wet sensor and piezo
electric sensor ,dh11 temperature sensor and buzzer. All these sensors
are connected to arduino board and all sensors and arduino board
operates by 5 volt dc power supply . When the children go to sleep on
the bed or through the stair , the ultrasonic sensor detects the children
and the data transfer Arduino's Bluetooth to mobile and show live status
in app .it is detected . So that parents can easily know that their children
are inside the bed or not. Whenever children come in the bed, it detects
the piezo inside the bed due to electric pressure and sends a signal to
the arduino and arduino send data through the hc-05 bt to your app as
soon as it is detected. So this is how parents know that their on the bed.
And when the child spills water in the bed or urinates suddenly while
sleeping, so the wet sensor in the bed makes sensor sens and live
status show your mobile app .so that the parents know that the bed is
wet And changes the bed sheet in time so that infection can be easily
avoided. And when there is a gas leakage due to some reason or
burning of something than the gas sensor in the bunk bed detects then
show data in app so that the parents know easily So this kind of smart
bunk bed child monitoring system works.
There is some processes for witch you can all sensors data see in
your mobile app.
First of all the project's Bluetooth(hc-05) should be turned on when
bluetooth is on then bluetooth continuously starts blinking. And as soon
as the hc-05 bluetooth is connected to the bluetooth of our mobile
hc-05's led blinking stop.
1.)We have to give dc power supply our project for witch hc-05 bluetooth
provided 5v dc.
2.)Then after we have to go our mobile settings just click on settings
then after will show Bluetooth icon just click on it.
3.)Then we have to on the bluetooth device. Off to On and after on bt
then starts showing all available bluetooth devices in our around. We
have to only find out hc-05 bluetooth. When we will get hc-05 bt
of project then click on.
4.)After click on then we have to pair hc-05 bluetooth so we
have to put 1234 number and ok then successfully paired
bt.
5.)Then after we have to download apk file after downloaded
apk file then click on and install apk file simply
6.)After install app then open application of baby monitoring
system.
After as soon as you open the application, you will get to see
some interface like this. So right now you won't see any live
status of sensors of bunk bed because mobile bluetooth is not
yet connected to hc-05 bluetooth of project. So we have to
connect the bluetooth for witch send data from arduino through
in our mobile.
7.)Just click on bt list of app and show paired device so we have to find out hc-05
name and click on and as soon as we click on hc-05 bt and connect, then as soon as
it is connected, Live data of all the sensors in the bunk bed starts showing.
8.)So some data look like this when sens the sensors.
In this way show all sensor's data status in our mobile app.
SCHEMATICS DIAGRAM
CODE
//ultrasonic sensor
int trigPin=2;
int echoPin=3;
int duration;
int distance;
//gas sensor
int mq2 =4;
int val1;
//piezo sensor
int piezo= A0;
int val2;
//wet sensor
int wet = 5;
int val3;
// Buzzer
int buzzer=6;
//Temperature sensor
#include "DHT.h"
#define DHTPIN 7 // Digital pin connected to the DHT sensor
#define DHTTYPE DHT11 // DHT 11
DHT dht(DHTPIN, DHTTYPE);
void setup()
{
// put your setup code here, to run once:
Serial.begin(9600);
dht.begin();
// Serial.println(F("DHTxx test!"));
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(buzzer,OUTPUT);
pinMode(mq2,INPUT);
pinMode(piezo,INPUT);
pinMode(wet,INPUT);
}
void ultrasonicsensor()
{
digitalWrite(trigPin, HIGH);
digitalWrite(trigPin, LOW);
int duration = pulseIn(echoPin, HIGH);
int distance = (duration/2) / 29.1;
Serial.print(distance);
Serial.print("/");
}
void mq()
{
val1=digitalRead(mq2);
Serial.print(val1);
Serial.print("/");
}
void piezo_sensor()
{
val2=analogRead(piezo);
Serial.print(val2);
Serial.print("/");
}
void wet_sensor()
{
val3=digitalRead(wet);
// Serial.print("Wet=");
Serial.print(val3);
Serial.print("/");
}
void temperature()
{
// delay(2000);
// Reading temperature or humidity takes about 250 milliseconds!
// Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
float h = dht.readHumidity();
// Read temperature as Celsius (the default)
float t = dht.readTemperature();
// Read temperature as Fahrenheit (isFahrenheit = true)
float f = dht.readTemperature(true);
// Check if any reads failed and exit early (to try again).
if (isnan(h) || isnan(t) || isnan(f)) {
Serial.println(F("Failed to read from DHT sensor!"));
return;
}
// Compute heat index in Fahrenheit (the default)
float hif = dht.computeHeatIndex(f, h);
// Compute heat index in Celsius (isFahreheit = false)
float hic = dht.computeHeatIndex(t, h, false);
// Serial.print(h);
Serial.print(t);
Serial.print("/");
delay(1000);
// Serial.print(f);
}
void loop() {
// put your main code here, to run repeatedly:
ultrasonicsensor();
//wet_sensor();
piezo_sensor();
mq();
wet_sensor();
temperature();
}

More Related Content

Similar to SMART BUNK BED CHILD MONITORING SYSTEM.pdf

applications of arduino
applications of arduinoapplications of arduino
applications of arduinoshubhamw25
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using ArduinoABHISHEKJAISWAL282
 
IRJET- PC Controlled Wireless Robot for Detecting Human Presence
IRJET-  	  PC Controlled Wireless Robot for Detecting Human PresenceIRJET-  	  PC Controlled Wireless Robot for Detecting Human Presence
IRJET- PC Controlled Wireless Robot for Detecting Human PresenceIRJET Journal
 
Arduino Based Bluetooth Controlled Robotic Car
Arduino Based Bluetooth Controlled Robotic CarArduino Based Bluetooth Controlled Robotic Car
Arduino Based Bluetooth Controlled Robotic CarIRJET Journal
 
Automatic Room Lights Controller Using Arduino & PIR Sensor
Automatic Room Lights Controller Using Arduino & PIR SensorAutomatic Room Lights Controller Using Arduino & PIR Sensor
Automatic Room Lights Controller Using Arduino & PIR SensorAnkit Chaudhary
 
Floor cleaning robot(autonomus mannual) vatsal shah-ec_4th year
Floor cleaning robot(autonomus mannual)  vatsal shah-ec_4th yearFloor cleaning robot(autonomus mannual)  vatsal shah-ec_4th year
Floor cleaning robot(autonomus mannual) vatsal shah-ec_4th yearVatsal N Shah
 
AUTOMATIC ENGINE LOCKING SYSTEM.pptx
AUTOMATIC ENGINE LOCKING SYSTEM.pptxAUTOMATIC ENGINE LOCKING SYSTEM.pptx
AUTOMATIC ENGINE LOCKING SYSTEM.pptx19A51A04J3SASALABHAR
 
Report 171115175724
Report 171115175724Report 171115175724
Report 171115175724PAVINRAJ5
 
Project report on home automation using Arduino
Project report on home automation using Arduino Project report on home automation using Arduino
Project report on home automation using Arduino AMIT SANPUI
 
An IOT Project Integrated with RFID and GPRS
An IOT Project Integrated with RFID and GPRSAn IOT Project Integrated with RFID and GPRS
An IOT Project Integrated with RFID and GPRSIJMTST Journal
 
IoT Based Solar Water Pump Controller
IoT Based Solar Water Pump ControllerIoT Based Solar Water Pump Controller
IoT Based Solar Water Pump ControllerIJSRED
 
IRJET- Intruder Detection Security System
IRJET- Intruder Detection Security SystemIRJET- Intruder Detection Security System
IRJET- Intruder Detection Security SystemIRJET Journal
 
Automatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorAutomatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorRAGHUVARMA09
 
Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266Rishav Pandey
 
IRJET- Intelligent Home Monitoring using IoT for Physically Challenged
IRJET- Intelligent Home Monitoring using IoT for Physically ChallengedIRJET- Intelligent Home Monitoring using IoT for Physically Challenged
IRJET- Intelligent Home Monitoring using IoT for Physically ChallengedIRJET Journal
 
IRJET - Intelligent Lighting Solution
IRJET -  	  Intelligent Lighting SolutionIRJET -  	  Intelligent Lighting Solution
IRJET - Intelligent Lighting SolutionIRJET Journal
 
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdfAdvanced View Arduino Projects List - Use Arduino for Projects-4.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdfWiseNaeem
 

Similar to SMART BUNK BED CHILD MONITORING SYSTEM.pdf (20)

Ppt
PptPpt
Ppt
 
applications of arduino
applications of arduinoapplications of arduino
applications of arduino
 
Robotics and Automation Using Arduino
Robotics and Automation Using ArduinoRobotics and Automation Using Arduino
Robotics and Automation Using Arduino
 
IRJET- PC Controlled Wireless Robot for Detecting Human Presence
IRJET-  	  PC Controlled Wireless Robot for Detecting Human PresenceIRJET-  	  PC Controlled Wireless Robot for Detecting Human Presence
IRJET- PC Controlled Wireless Robot for Detecting Human Presence
 
371275588.pptx
371275588.pptx371275588.pptx
371275588.pptx
 
Arduino Based Bluetooth Controlled Robotic Car
Arduino Based Bluetooth Controlled Robotic CarArduino Based Bluetooth Controlled Robotic Car
Arduino Based Bluetooth Controlled Robotic Car
 
Automatic Room Lights Controller Using Arduino & PIR Sensor
Automatic Room Lights Controller Using Arduino & PIR SensorAutomatic Room Lights Controller Using Arduino & PIR Sensor
Automatic Room Lights Controller Using Arduino & PIR Sensor
 
Floor cleaning robot(autonomus mannual) vatsal shah-ec_4th year
Floor cleaning robot(autonomus mannual)  vatsal shah-ec_4th yearFloor cleaning robot(autonomus mannual)  vatsal shah-ec_4th year
Floor cleaning robot(autonomus mannual) vatsal shah-ec_4th year
 
AUTOMATIC ENGINE LOCKING SYSTEM.pptx
AUTOMATIC ENGINE LOCKING SYSTEM.pptxAUTOMATIC ENGINE LOCKING SYSTEM.pptx
AUTOMATIC ENGINE LOCKING SYSTEM.pptx
 
Report 171115175724
Report 171115175724Report 171115175724
Report 171115175724
 
Project report on home automation using Arduino
Project report on home automation using Arduino Project report on home automation using Arduino
Project report on home automation using Arduino
 
An IOT Project Integrated with RFID and GPRS
An IOT Project Integrated with RFID and GPRSAn IOT Project Integrated with RFID and GPRS
An IOT Project Integrated with RFID and GPRS
 
IoT Based Solar Water Pump Controller
IoT Based Solar Water Pump ControllerIoT Based Solar Water Pump Controller
IoT Based Solar Water Pump Controller
 
IRJET- Intruder Detection Security System
IRJET- Intruder Detection Security SystemIRJET- Intruder Detection Security System
IRJET- Intruder Detection Security System
 
ir sensor.docx
ir sensor.docxir sensor.docx
ir sensor.docx
 
Automatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorAutomatic Door Opener using PIR Sensor
Automatic Door Opener using PIR Sensor
 
Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266
 
IRJET- Intelligent Home Monitoring using IoT for Physically Challenged
IRJET- Intelligent Home Monitoring using IoT for Physically ChallengedIRJET- Intelligent Home Monitoring using IoT for Physically Challenged
IRJET- Intelligent Home Monitoring using IoT for Physically Challenged
 
IRJET - Intelligent Lighting Solution
IRJET -  	  Intelligent Lighting SolutionIRJET -  	  Intelligent Lighting Solution
IRJET - Intelligent Lighting Solution
 
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdfAdvanced View Arduino Projects List - Use Arduino for Projects-4.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdf
 

Recently uploaded

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

SMART BUNK BED CHILD MONITORING SYSTEM.pdf

  • 1. SMART BUNK BED CHILD MONITORING SYSTEM | BABY MONITORING SYSTEM BY ANDROID APPLICATION(PART-2) This is a second part of project. We have already discussed about to 1st part of this project. If you did not read article of part-01. So click on link. We told all about the part-1. We told about to know all sensors. So today we are going to expand the project of part -1. Which is our second part (part-2). Before this, we saw in part-1 that all the types of sensors we had in our bunk bed , through which we were monitoring. All these sensors were connected to arduino board and the data that was received by all the different types of sensors used to send that the data through the
  • 2. microcontroller(atmega328) and the microcontroller used to turn on buzzer for alerts parents. All the data processes with wired. All sensors,buzzer and arduino communicate to each other only with wired. In this second part(part-2) of the project, we will transfer the data ,received by all the connected sensors through the arduino. Direct sensor's data transfer Arduino to android application of smartphone with wireless. COMPONENT REQUIRED 1.)Arduino uno. 2.)Mq2 gas sensor. 3.)Wet sensor. 4.)Piezo electric sensor. 5.) HC-SR04 Ultrasonic sensor. 6.)DHT11 Temperature module. 7.)HC-05 Bluetooth module. 8.)12v, 1 amp power supply adapter. 9.)Plywood for frame(Bunk bed). 10.) Some wires. ARDUINO UNO
  • 3. The Arduino Uno is an open-source microcontroller board based on the Microchip ATmega328P microcontroller and developed by Arduino.cc. The board is equipped with sets of digital and analog input/output (I/O) pins that may be interfaced to various expansion boards (shields) and other circuits.[ The board has 14 digital I/O pins (six capable of PWM output), 6 analog I/O pins, and is programmable with the Arduino IDE (Integrated Development Environment), via a type B USB cable. It can be powered by the USB cable or by an external 9-volt battery, though it accepts voltages between 7 and 20 volts. It is similar to the Arduino Nano and Leonardo. The hardware reference design is distributed under a Creative Commons Attribution Share-Alike 2.5 license and is available on the Arduino website. Layout and production files for some versions of the hardware are also available. Mq2 GAS SENSOR
  • 4. Mq2 gas sensor is a type of sensor.Which detects Smoke or Gas in the air. This is made metal oxide semiconductor (MOS) . We know as Chemiresistor .When a smoke or gas comes into contact with gas sensor . The MOS material is heated then stars causing the resistance value change according to concentration of gas or smoke. And the resistance value level of sensor is changed depend up on the type of gases presents in the atmosphere of Mq2 sensor. There are following types of gases detect by Mq2 Gas sensor ● LPG. ● Propane. ● Methane. ● Butane. ● CO. ● Alcohol. ● Hydrogen etc. Mq2 gas sensor works on 5v dc and draw at least 800 mW. Smoke sensor has a potentiao meter .We can adjust the sensitivity of gas sensor module and one Digital output voltage
  • 5. pin(D0) and one Analog output voltage pin (A0) for read data from the sensor. and it has power led for Indication voltage.and final last output data indication led. WET SENSOR OR SOIL MOISTURE SENSOR Soil moisture sensor or wet sensor an electronic sensor. Which is used in the irrigation system or any wet or dry detect . Soil sensor measure the volumetric water content in the soil. sensor is low cost, less power consume and easy to interface to Arduino. Sensor operate to 3.3V to 5V DC power supply. PIEZO ELECTRIC
  • 6. A piezoelectric sensor is a device that uses the piezoelectric effect to measure changes in pressure, acceleration, temperature, strain, or force by converting them to an electrical charge. The prefix piezo- is Greek for 'press' or 'squeeze'. ULTRASONIC SENSOR
  • 7. The HC-SR04 Ultrasonic sensor distance is distance measuring sensor. This sensor uses sonar to determine distance to any object, It provide a some no-contact range detection with high accuracy. You can easy-to-use and low power consume and buy low cost ultrasonic use common in robotic. And other automation field. Ultrasonic range is detect object within 2 cm to 400 cm but sensor get better result within 10 cm to 250 cm. There are Three sections of HC-SR04 ultrasonic sensor:- 1.Transmitter 2.Receiver 3.Circuit of HC-SR04 DHT-11
  • 8. DHT11 sensor module is a type of sensor. Which measures the temperature and humidity of the environment in single wire. It has a restive humidity sensor and NTC (Negative Temperature Coefficient) temperature sensor or Thermistor sensor and 8-bit microcontroller chip, that are providing cost effectiveness, anti-interfacing ability, excellent quality and also fast response. There is a 3 pin dht11 sensor and 4 pin dht11 sensor available in the market, so you can buy either of them. These are both same. 3 pin dht11 to 1. GND 2. VCC 3. Signal pin. And the 4 pin sensor has 1. GND 2. VCC 3. Signal pin 4. NC (no connection) pin. When you interface with arduino, only 3 pins of dht11 use GND, VCC and signal pins of dht11 sensor module. HC-05 Bluetooth Module
  • 9. HC-05 Bluetooth module is a wireless module. It is a specially designed for wireless data transfer and receiver. It has 6 pin 1.)EN Pin. 2.)TXD Pin. 3.)RXD Pin. 4.)VCC Pin(3.3v To 5v) 5.)GND Pin. 6.)State Pin.
  • 10. PIN OUT:- HC-05 ARDUINO UNO VCC +5V GND GND TX RX RX TX HC-SRO4 ARDUINO UNO VCC +5V GND GND TRIG D2 ECHO D3 MQ2 ARDUINO UNO VCC +5V GND GND DO D4 WET SENSOR ARDUINO UNO
  • 11. VCC +5V GND GND DO D5 BUZZER ARDUINO UNO + D6 GND GND DHT-11 SENSOR ARDUINO UNO VCC +5V GND GND DO D7 PIEZO ELECTRIC ARDUINO UNO + A0 - GND WORKING PROCEDURE
  • 12. Download app The working principle of this project is very simple. How do parents know if their child is in the bed of the children's bedroom without enter. You can easily monitor by the mobile app. All sensors live data transfer by Bluetooth to your mobile Bluetooth for witch you can easily monitor in app from anywhere. Bunk bed has attached 4 sensors hc-sro4
  • 13. ultrasonic sensor,mq2 gas sensor, soil moisture or wet sensor and piezo electric sensor ,dh11 temperature sensor and buzzer. All these sensors are connected to arduino board and all sensors and arduino board operates by 5 volt dc power supply . When the children go to sleep on the bed or through the stair , the ultrasonic sensor detects the children and the data transfer Arduino's Bluetooth to mobile and show live status in app .it is detected . So that parents can easily know that their children are inside the bed or not. Whenever children come in the bed, it detects the piezo inside the bed due to electric pressure and sends a signal to the arduino and arduino send data through the hc-05 bt to your app as soon as it is detected. So this is how parents know that their on the bed. And when the child spills water in the bed or urinates suddenly while sleeping, so the wet sensor in the bed makes sensor sens and live status show your mobile app .so that the parents know that the bed is wet And changes the bed sheet in time so that infection can be easily avoided. And when there is a gas leakage due to some reason or burning of something than the gas sensor in the bunk bed detects then show data in app so that the parents know easily So this kind of smart bunk bed child monitoring system works. There is some processes for witch you can all sensors data see in your mobile app.
  • 14. First of all the project's Bluetooth(hc-05) should be turned on when bluetooth is on then bluetooth continuously starts blinking. And as soon as the hc-05 bluetooth is connected to the bluetooth of our mobile hc-05's led blinking stop.
  • 15. 1.)We have to give dc power supply our project for witch hc-05 bluetooth provided 5v dc. 2.)Then after we have to go our mobile settings just click on settings
  • 16. then after will show Bluetooth icon just click on it. 3.)Then we have to on the bluetooth device. Off to On and after on bt then starts showing all available bluetooth devices in our around. We have to only find out hc-05 bluetooth. When we will get hc-05 bt of project then click on.
  • 17.
  • 18. 4.)After click on then we have to pair hc-05 bluetooth so we have to put 1234 number and ok then successfully paired bt.
  • 19.
  • 20. 5.)Then after we have to download apk file after downloaded apk file then click on and install apk file simply
  • 21. 6.)After install app then open application of baby monitoring system.
  • 22. After as soon as you open the application, you will get to see some interface like this. So right now you won't see any live status of sensors of bunk bed because mobile bluetooth is not yet connected to hc-05 bluetooth of project. So we have to connect the bluetooth for witch send data from arduino through in our mobile.
  • 23. 7.)Just click on bt list of app and show paired device so we have to find out hc-05 name and click on and as soon as we click on hc-05 bt and connect, then as soon as it is connected, Live data of all the sensors in the bunk bed starts showing. 8.)So some data look like this when sens the sensors.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31. In this way show all sensor's data status in our mobile app. SCHEMATICS DIAGRAM
  • 32. CODE //ultrasonic sensor int trigPin=2; int echoPin=3; int duration; int distance; //gas sensor int mq2 =4; int val1;
  • 33. //piezo sensor int piezo= A0; int val2; //wet sensor int wet = 5; int val3; // Buzzer int buzzer=6; //Temperature sensor #include "DHT.h" #define DHTPIN 7 // Digital pin connected to the DHT sensor #define DHTTYPE DHT11 // DHT 11 DHT dht(DHTPIN, DHTTYPE); void setup() { // put your setup code here, to run once: Serial.begin(9600); dht.begin(); // Serial.println(F("DHTxx test!"));
  • 34. pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); pinMode(buzzer,OUTPUT); pinMode(mq2,INPUT); pinMode(piezo,INPUT); pinMode(wet,INPUT); } void ultrasonicsensor() { digitalWrite(trigPin, HIGH); digitalWrite(trigPin, LOW); int duration = pulseIn(echoPin, HIGH); int distance = (duration/2) / 29.1; Serial.print(distance); Serial.print("/"); } void mq() { val1=digitalRead(mq2); Serial.print(val1); Serial.print("/");
  • 36. { // delay(2000); // Reading temperature or humidity takes about 250 milliseconds! // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor) float h = dht.readHumidity(); // Read temperature as Celsius (the default) float t = dht.readTemperature(); // Read temperature as Fahrenheit (isFahrenheit = true) float f = dht.readTemperature(true); // Check if any reads failed and exit early (to try again). if (isnan(h) || isnan(t) || isnan(f)) { Serial.println(F("Failed to read from DHT sensor!")); return; } // Compute heat index in Fahrenheit (the default) float hif = dht.computeHeatIndex(f, h); // Compute heat index in Celsius (isFahreheit = false) float hic = dht.computeHeatIndex(t, h, false); // Serial.print(h); Serial.print(t); Serial.print("/"); delay(1000); // Serial.print(f);
  • 37. } void loop() { // put your main code here, to run repeatedly: ultrasonicsensor(); //wet_sensor(); piezo_sensor(); mq(); wet_sensor(); temperature(); }