SMART BUNKBED CHILD MONITORING SYSTEM | BABY MONITORING SYSTEM

SMART BUNK BED CHILD MONITORING SYSTEM | BABY MONITORING SYSTEM(PART-01)

SMART BUNKBED CHILD MONITORING SYSTEM | BABY MONITORING SYSTEM




Bunk bed! What is bunk bed? Do you know bunk bed? Bunk bed is type of a bed.  All kinds of beds you see in your daily life, among them it is a one type of a bed.
They have four poles and with the support of four poles, a bed is just a bed on its top, a bed on its top, in this way you can  put as many beds as you want. This bed takes up only one bed space, you can put two or more bed in this bunk bed. The use of bunk beds is mostly in hostels, military, prisons and it is used the most in the children's bedroom. Because children need a lot of space to play, bunk bed is the most suitable for them. So today our focus will be in the children's bedroom. In a bunk bed of children's bedroom something is going to do. So that you can easily monitor the children along with using the bunk bed. Who young children are 2 years ,3 year old or under years old they are in learning mode. The children of this age are very naughty. They have the curiosity to know any things. In this age there is a lot of mischief going on in the minds of these children. Kids are jumping and jumping everywhere. If a lighter, match box or any chemical accidentally comes in the hands of children, then those kids start experimenting . Which is very dangerous for kids. Children do not sleep on time, which can cause health problems and the child urinates or spills water on the bed during sleeping. Children who are at risk of infection. If do not change the bed sheet  and there are many thins that are not favor of children's health. So in this article, we can reduce some problems with the help of smart bunk bed child monitoring system or baby monitoring system and you can easily monitor from any where. For example if the kids burns any things in the children's bed room or  there is a gas leak due to chemical reaction, then the gas sensor will sens the gas, smoke or fire and notify you so that you will know and you are in time. You can solve the problem before accidentally. Similarly, if the child urinates or spills water on the bed while sleeping, then you will know this in children's bed room without any intervention and you can change the bed sheet in time so that you can easily save infection your child.
If your  children are in the bed then you will know whether their presence is in the bed or not etc.


COMPONENT REQUIRED

1.)Arduino uno.
2.)Mq2 gas sensor.
3.)Wet sensor.
4.)Piezo electric sensor.
5.) HC-SR04  Ultrasonic sensor.
6.)12v, 1 amp power supply adapter.
7.)Plywood for frame(Bunk bed).
8.) 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


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 SENSOR

PIEZO ELECTRIC


piezoelectric sensor is a device that uses the piezoelectric effect to measure changes in pressureaccelerationtemperaturestrain, or force by converting them to an electrical charge. The prefix piezo- is Greek for 'press' or 'squeeze'.


HC-SRO4 ULTRASONIC SENSOR 



HC-SR04 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


WORKING PRINCIPLE

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. Bunk bed has attached three sensors hc-sro4 ultrasonic sensor,mq2 gas sensor, soil moisture or wet sensor and piezo electric 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 the buzzer in the bunk bed starts ringing as soon as 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 as soon as it is detected and turns on the buzzer.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 the buzzer starts ringing 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 in the buzzer starts ringing so that the parents know easily So this kind of smart bunk bed child monitoring system works.   


PIN OUT

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

 PIEZO ELECTRIC          ARDUINO UNO

              +                       A0
              -                       GND

BUZZER         ARDUINO UNO
+                     D6
GND               GND


SCHEMATICS DIAGRAM


Video:-



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;

void setup()
{
  // put your setup code here, to run once:
  Serial.begin(9600);
  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.println(distance);
    
    
  if (distance <= 5 || distance <= 1) //when distance is greater than or equal to 200 OR less than or equal to 0,the buzzer and LED are of
  {
        digitalWrite(buzzer ,HIGH);
        delay(100);
  }
       else
  {
          digitalWrite(buzzer, LOW);          
      
  }
}

void mq()
{
  val1=digitalRead(mq2);
  Serial.print("mq=");
  Serial.println(val1);
  
  if(val1==0)
  {
    digitalWrite(buzzer ,HIGH);
    delay(100);
  }
   else
  {
          
    digitalWrite(buzzer, LOW);          
      
  }
}


void piezo_sensor()
{
  val2=analogRead(piezo);
  Serial.print("Piezo=");
  Serial.println(val2);
  
  if(val2>10)
  {
    digitalWrite(buzzer ,HIGH);
    delay(100);
  }
   else
  {
          digitalWrite(buzzer, LOW);          
      
  }
}




void wet_sensor()
{

  val3=digitalRead(wet);
  Serial.print("Wet=");
  Serial.println(val3);
   
  if(val3==0)
  {
    digitalWrite(buzzer ,HIGH);
    delay(100);
       
  }
   else
  {
          digitalWrite(buzzer, LOW);          
      
  }
}



void loop() {
  // put your main code here, to run repeatedly:
ultrasonicsensor();
wet_sensor();
piezo_sensor();
mq();
wet_sensor();
}

Post a Comment

0 Comments