BUZZER BEDROOM
MARNIWATI AFINA BINTI MAZLI
(01DIS15F1038)
SITI NORAZIRAH BINTI ADNAN
(01DIS15F1019)
WAN SITI AISAH BINTI MON
TALIB (01DIS15F1013)
INTAN SYAHIRAH BINTI AZIZOL
(01DIS15F1005)
Introduction
The purpose to allow a person under duress to quickly and silently call for help in the event of an emergency. It is used when it may be unsafe or uncomfortable to call for help in other ways. For example, if a belligerent person is standing in your bedroom, it may be unwise to further escalate the situation by picking up a phone to call for assistance. It also can provide a quick and convenient way to summon help without drawing attention.
List of hardware and software
HARDWARE
- BUZZER
- LED
- SWITCH
- MAN-TO-MAN WIRE
-RESISTOR
SOFTWARE
- MPLAB IDE V8.83
- HI-TECH C COMPILER VER 2.3
- PROTEUS 8 PROFESSIONAL
Circuit Diagram
Coding
#include<htc.h>
void delay(unsigned long);
#define LE0 RB0
#define sw1 RE0
__CONFIG (0x3F3A);
void main(void)
{
TRISE=0b00000000;
PORTE=0b00000000;
TRISB=0b00000001;
PORTB=0b00000000;
repeat:
PORTE=0b00011000;
RE0=1;
delay(2);
PORTB=0b00000000;
RB0=0;
delay(2);
goto repeat;
}
void delay(unsigned long) //delay subroutine
{
unsigned char i;
for (i=0xDE;i!=0;i--)
{
unsigned char j;
for (j=0x50;j!=0;j--)
{
unsigned char k;
for (k=0x02;k!=0;k--)
{
}
}
}
}
void delay(unsigned long);
#define LE0 RB0
#define sw1 RE0
__CONFIG (0x3F3A);
void main(void)
{
TRISE=0b00000000;
PORTE=0b00000000;
TRISB=0b00000001;
PORTB=0b00000000;
repeat:
PORTE=0b00011000;
RE0=1;
delay(2);
PORTB=0b00000000;
RB0=0;
delay(2);
goto repeat;
}
void delay(unsigned long) //delay subroutine
{
unsigned char i;
for (i=0xDE;i!=0;i--)
{
unsigned char j;
for (j=0x50;j!=0;j--)
{
unsigned char k;
for (k=0x02;k!=0;k--)
{
}
}
}
}
Video for this project
Conclusion
The aim of this object has been designed of a buzzer bedroom system. This system gives an audible alarm when the switch botton is connected to is touched. The necessary specification was taken and the design was made according to this specification. It will be tested. It also operated as required. It sufficies us to say that the aim as stated above that has been achieved. However, a lot of difficulties were encountered in the process of realizing the project work because we didn't know how to put the component correctly in the board but with many advices from member's group, lecturer, classmates most of it was conquered. Furthermore, the project enabled us to gain experience in electronic circuit and designing. Also, it enabled us to understand properly how the different circuit element works.
No comments:
Post a Comment