Picture of Arduino laser detector with keypad
Hello everybody!!!
I have been messing around with a few components and my arduino. I figured out this project last week and just had to share it with all of you. What it is, is a laser beam hitting a  photo cell. The arduino reads the photo cell and when it detects the voltage level is below a certain amount, the beam must be broken while sounding an alarm. The alarm stays on until you punch in the code you have set up to the keypad in. Once the correct code is typed in, the arduino turns of the buzzer and gives you 15 seconds ( or what ever you set the delay time to) to reset the laser beam. You are able to change the code if you like. The steps are very easy to follow and i hope everyone makes one!!!

Remove these adsRemove these ads by Signing Up

Step 1: Materials

Picture of Materials
You will need a few components to make this project. Here is the list and the links to were i got them. Everything will cost around $40
      1 x 5V regulator       1 x red/green LED       1 x PC board       5 x 10K resistors       1 x Project enclosure       1 x 5V buzzer       1 x led holder       1 x 10 Ohm resistor                                                      1 x DIP socket 28 pin                                                      1 x Atmega328                                                      1 x 16MHz resonator                                                      1 x Photo cell                                                      1 x 12 button key pad                                                      2 x 0.1 uF capacitor                                                        1 x female header                                                      1 x Diode

Now were also going to need a laser. I have listed a very GOOD one and VERY cheap in cost laser. You can use any laser you want to, but if you don't have one, these work GREAT!!!      or  get one of these

also some spare wire, small mirrors, hot glue gun, solder, and a soldering iron.

 you can get all theses at Sparkfun and Radioshack

Now if you look at the list, you'll notice there is no switch to turn this device on and off. If there were to be an off and on switch, the person that sets of the alarm would just have to simply turn the device off. That defeats the purpose of the keypad to turn of the buzzer. You can add a switch if you like, but i'm not going to. To turn this off, your going to have to unplug the adapter from the wall.