HOME SECURITY SYSTEM USING LASER PROJECT

on Monday, 25 November 2013

INTRODUCTION: Are you worried about the protection to your home? Are you  worried about the security of your precious belongings? Are you burdened to pay salary to 'security guard' every month? Then this is the best choice to protect your home and save your money spending on security guards.
This is a simple project, the main intention of this project is to make you aware of  interfacing micr0controller with simple sensors.

AIM: The aim of this project is, whenever an unknown person tries to enter into home through windows then buzzer alerts. 

We are using a laser beam across  the window (look below fig.), Whenever anyone tries to enter through the window then laser light cuts, sensor (L14F1) senses the missing of laser light and sends signal to buzzer and by which buzzer starts beeping..





 

ALGORITHM:

>> 'ON' the laser source, try to make the laser light beam to fall directly onto the sensor L14F1, which is on the opposite side of the window.
>> As long as the light beam fall on the sensor buzzer will be in OFF state.
>>As soon as the light beam cuts then microcontroller will make a buzzer ON and alerts.

BASIC UNDERSTANDING:
Before going into the project schematic and code, we need to understand few basic modules of the project i.e. Sensor.
Here we are using L14F1 sensor to detect the laser beam.
L14F1 Sensor: It is the 3 terminal device, it is a type of transistor which have emitter, base and collector. Look at the below fig.

See the below fig. to know which are the  Emitter, Base and Collector pins


Now let us analyze the connections to microcontroller(pic18f452).


>>when L14F1 sense the laser light then 'C' will be short to 'E' so current flows to ground, i.e pin21 will be '0' low.
>>As long as the sensor L14F1 senses the laser light then the  input 'pin 21' will be '0' i.e low, when the light is cut then pin21 will be high i.e '1'.
Laser Source:
In this project we are using Laser pointer as the source. It look something like the below image


PROJECT REQUIREMENTS:
  • MikroC compiler(download free from official website)
  • Micro controller- pic18f452
  • Buzzer,Led
  • Resistors-200 ohm(2) , 10k ohm(1)
  • capacitors-30 pf(2), 0.1 uf, 100uf  crystal oscillator 4Mhz
  • 9v battery , Lm7805 voltage regulator
CIRCUIT DIAGRAMS:
POWER SUPPLY:As we are using 9v input battery , so we need to convert it to 5v using 7805 Ic.


Overall circuit look like this:


The general connections for pic are the same
i.e crystal oscillator between 13 and 14th pin, pin31=pin12=ground,pin11=pin32=pin1=vcc.

SOFTWARE:
MikroC is one of the comprehensive software which have lot of inbuilt libraries. We need not to worry about writing code for general modules interfacing like Lcd's, keypad's, and many more.. so basic idea at C language is enough to code using MikroC compiler.
Now let us analyze the code, its very simple code.

void main()
{
 TRISC=0X00;
 TRISD=0XFF;
 portc.f4=0;   // Buzzer off
 for(;;)
 {
          if(portd.f2==0)//i.e laser is not cut i.e sensor sensing the laser
          {
              portc.f5=1;   //RED led on
              portc.f4=0; // Buzzer off
          }
          if(portd.f2==1)    //if  laser light is cut
          { 
              portc.f5=0;       //Red led off
              portc.f4=1;       // Buzzer on 
          }
      }
 }

AUTHOR: YOUSTRON SIC

8 comments:

Samuel Bressani said...

I can't find the component L14F1 in my country :/ What component can i replace it?

Dreamers said...

u have used PIC18F452 microcontoller and in description u have told about some pins like pin # 11,12.13,14,31,32 .. but these pins are not available in that microcontroller .. were u drunk while posting about this project ... Correct this project ... !!

YOUSTRON SIC said...

http://www.microcontroller4beginners.com/2013/10/pin-diagram-general-connections.html?m=1

Read it to understand, if there r no pins shown in picture doesnt means that there r no pins on real hardware...by the way, i have spent a lot of time for writing these posts, if u dont want to read then dont read it, but dont ever hurt others with ur harsh words... May God bless u...

Rosetta Garcillano said...

This is kind of tricky for me especially that I am not into the "mechanical/techy" side. But this idea I would say might actually be good too and yes you are right, money-saving. On the other hand, I got my home security from https://www.getkuna.com/, which by far works really really great for me.

JeffreyShockley said...

Compare affordable wireless alarm monitoring and home security packages from Protection 1. CompleteAlarms.com.au

Deborah Richards said...

Wow! This could be one of the most useful blogs we have ever come across on thesubject. Actually excellent info! I’m also an expert in this topic so I can understand your effort. safetylabs.org Tracking devices

Sai Manoj said...

where the base of the L14F1 should be connected

Innocent Saqib said...

Excellent and very exciting site. Love to watch. Keep Rocking. AlarmSystem.tips

Post a Comment