Anti-Theft Alarm

by LiuLiu0112 in Circuits > Arduino

357 Views, 0 Favorites, 0 Comments

Anti-Theft Alarm

IMG_3043.jpg

Using a photoresistor to determine that the thing is been taken or not. If the thing is at the place, the machine will maintain normally. If the thing isn't at the place, the LED will light up and the speaker will make noise to let the owner notice.

Preparing Materials

IMG_3035.jpeg

The items needed to create the Anti-Theft Alarm

1. Arduino

2. Computer or Charging

3. LED (Red)

4. Photoresistance

5. Resistor

6. Speaker

7. Wire

8. Cardboard

Assemable the Materials

Arduino 3.PNG
IMG_3038.jpeg

Following the picture to place each material in the right place. There are three main important things in the Arduino.

First (LED parts): It needs one LED, one Resistor, and two Wires to connect to it into the D12 (Digital pin) and negative place.

Second (Photoresistance parts): It needs one Photoresistance, one Resistor, and two Wires to connect it into the positive and negative place/ one Wire for A0.

Third or Last (Speaker parts): One speaker only D12 for positive, and the black wire of the speaker is for the negative place.

Assemable the Code

Arduino 2.PNG
Arduino 1.PNG

Following the picture(using Code or Ardublock) to coding the code into the Arduino.

The Link of the code: https://create.arduino.cc/editor/liuliu0112/ccad1...

Combine the Code and Materials Together

IMG_3039.jpeg

After we finishing coding and putting materials into the Arduino, we put all of this into a small box for decoration. And making shell and packaging to look it better.

The Final Product

Arduino