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..



>> '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.

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

  • 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
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.

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()
 portc.f4=0;   // Buzzer off
          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 



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 ... !!



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

mona martin said...

A video intercom system is a possible choice for you reduce the need your family may feel to yell at other family members each time they need to talk to them. video intercom installation

Hendrik Friedheim said...

Everything is very open with a precise description of the challenges. It was definitely informative. Your site is very useful. Many thanks for sharing! capital one login

Elizabeth J. Neal said...

Super site! I am Loving it!! Will return once more, Im taking your food likewise, Thanks. security alarms rockport

Anonymous said...

I admire what you have done here. I love the part where you say you are doing this to give back but I would assume by all the comments that is working for you as well. Check Now

Oliver Jones said...

Wonderful post! We will be linking to this great post on our website. Keep up the good writing. aol.com mail login

elivin alayi said...

You've beaten yourself with this material. This is extraordinary substance.
House Alarms

Kelvin kas said...

This is my first time i visit here.
house alarms

Abdul Wasay said...

Considerably, this post is really the sweetest on this notable topic. I harmonise with your conclusions and will thirstily look forward to your incoming updates. Saying thanks will not just be sufficient, for the phenomenal clarity in your writing. I will directly grab your rss feed to stay informed of any updates. Admirable work and much success in your business dealings!? Please excuse my poor English as it is not my first tongue. www.forbrukeretaten.no

Jang said...

Very Informative,Thanks for sharing
400Mw Blue Laser Module

alex amarxon said...

Department Installation We are installing a Havis prisoner transport box in a Ford E-250 Van at our Pell City store...Hikvision 8MP Camera Suppliers

bradshawjohn said...

This is something I searchefor many days. My thirst has been quenched now after reading your article.I am highly thankful to you for writing this article.
Slomins Reviews

Interactive Protection Services said...

Thanks for the sharing for the information, your article provides great information home security system using laser project. Customized Home Security Solutions

Mr. Tokako Ochoa Jang said...

thanks this is one of the best way to protect your home through lasers and internal structure of lasers is clearly defined thanks for this

Unknown said...

Thanks for sharing this informative article, compared as latest home security solution like burglar alarm, monitored CCTV camera, smart video doorbell camera.

Post a Comment