Bluetooth Arduino Security System
by 625549 in Circuits > Arduino
709 Views, 3 Favorites, 0 Comments
Bluetooth Arduino Security System
This project is a motion activated security system which also incorporates a bluetooth module and push buttons for ease of use for the user (shown in the picture provided).
An arduino is required for this project to function and the code for it can be found in the .ino file provided.
Downloads
Supplies
Wiring Speaker and Bluetooth Module
Take the bluetooth module and buzzer and wire their power and ground rails to the breadboards power and ground rails. Make sure to wire the bluetooth module and speaker to the right power rails or else they will not work.
Wiring Dip Switch and Logic Gates
Using a NOT and AND logic gate IC, wire them on the same breadboard which hold the red and green leds. This picture is just an example of what the wiring should look like when finished. A logisim file is provided and a tinkercad file has also been provided.
Note: Make sure to wire the logic gates exactly like the tinkercad file and the orientation of the gates must match the tinkercad file or else the circuit will not function.
To test if the logic gates are working is by flipping up switches 2 and 4 on the dip switch. Connecting a test led at the output of both logic gates should cause the led to turn on. Any other combonation of
Wiring 16x2 LCD With I2C Module to Arduino
Using jumper wires provided in your parts list, connect the LCD to the 5V and ground rails on the breadboard. On the arduino there will be two pins labeled A4 and A5. The A4 pin will connect to the SDA pin on the LCD. The A5 pin will connect to the SCL pin on
Wiring LEDs
On the same breadboard wire a green led and red led with the positive leg connected to a resistor. The green led is connected to pin 12 and the red led is connected to pin 13 on the Arduino. The ground side of the led is connected directly to the ground rail on the breadboard
Wiring PIR Motion Sensor
Wire the PIR motion sensor to the 5V and ground rails on the breadboard make sure the wire them properly or else the motion sensor will always output as HIGH to the arduino. Wire the OUT pin on the PIR motion sensor to pin 2 on the Arduino.
Connecting Button and Logic Gates to Arduino
Looking at the picture shown above, connect one side of the jumper wire to the button's ground and the other side to pin 7 on the arduino. On the logic gate, connect one side of the jumper wire to the output of the AND logic gate to pin 6 on the Arduino. Use the tinkercad file provided to help wiring correctly.
Wiring Power Rails to Breadboard
Connect a jumper wire to the 5V pin on the Arduino and connect the other side to the power rail on the breadboard. Do the same for the ground rail on the and pin on the Arduino.
On the second breadboard, connect the power rails and ground rails to the first breadboard using jumper wires.
You're Done!
The project you have now build is finally completed! All you have to do now is power it on by connecting the Arduino to a power source. To arm the system just press the push button on the breadboard. To disarm the system, switch the 2 and 4 pins on the dip switch to the on position. The system can be armed and disarmed using the bluetooth module by using a serial terminal. To arm and disarm the system using the serial terminal on the arduino IDE, just type "arm" and "disarm" without the quotes.
In the picture provided, I have also put a picture of this project in a box to show it can be used anywhere you want. The motion sensor is placed in the front of the box and the breadboard is held in with zip ties.