Doorbell for the hearing impaired

Made by vaishnas

This prototype will help people with hearing disability to realize sitting in any room in the house that there is someone at the door. It can also be used in regular situations where you don't hear the doorbell such while in the shower, in a room with loud music and so on.

Created: January 28th, 2015

0

Goal

Bell ringing/ door knocking intimation for people with hearing problem.

0

Working

The way this circuit works is that the door bell has a force sensitive sensor which when rung activates the sensor and this sensor is connected to the lights to all the rooms in the house which  start blinking on and off intimating that someone rang the bell. At the same time the lights outside the house light up if it is night time. Weather it is day or night is judged by a photo resistor sensor connected outside door .The blinking of all house room lights go on until the door is opened. There is a force sensor present on the door which judges the opening and closing of the door. Once the door has been attended the outside light switches of and the room lights function normally. 

0

Circuit diagram

0

Circuit on breadboard

0

Code block

0
// variables
int button = D0;
int red = D5;
int photo = A1;
int door = A0;
int green = D7;

int buttonState=0;
int doorState=0;
int photoState=0;
int flag=0; //0 is day, 1 is night
//int photoCellPinState=0;

// setup
void setup()
{
  pinMode(button,INPUT);
  pinMode(red,OUTPUT);
  pinMode(photo,INPUT);
  pinMode(door,INPUT);
  pinMode(green,OUTPUT);
  Spark.variable("doorState", &doorState, INT);
  Spark.variable("buttonState", &buttonState,INT);
  //Spark.variable("", &stateOfDay,INT);
  Spark.variable("photoState", &photoState,INT);
}
//main loop
void loop()
{
  buttonState=digitalRead(button);
  doorState=analogRead(door);
  photoState=analogRead(photo);

  //photo=analogRead(photoCellPin);
  //when bell is rang and door is closed
  if((buttonState==0||flag==1)&&doorState<700)
  //light blinks after doorbell is rung
  {  digitalWrite(red,HIGH);
     delay(2000);
     digitalWrite(red,LOW);
     delay(1000);
     flag=1;
     //At night outside light switches on
  if(photoState<900)
  {
    digitalWrite(green,HIGH);
  }
}
// Door is opened both lights stop blinking
  if(doorState>900)
  {
    digitalWrite(red,LOW);
    digitalWrite(green,LOW);
    flag=0;
  }
}
Click to Expand
0

Video of working prototype

x
Share this Project


About

This prototype will help people with hearing disability to realize sitting in any room in the house that there is someone at the door. It can also be used in regular situations where you don't hear the doorbell such while in the shower, in a room with loud music and so on.