loading

The perfect choice of one-stop service for diversification of architecture.

How to Control Motion Sensor Alarm with Bluetooth

Step 1: materials required

The materials required for the project are as follows:

1(image-1)-Arduino Uno/Duemilanove arduino arduino Uno

DF robot or other similar to image LCD protective cover

2 (image-2) - LCD shield

3 (image-3) - hc-05 Bluetooth module Bluetooth module

4 (Figure 4) - PIR motion sensor

5 (Fig. 5) - 6-pin button

6 (Figure 6) - bread board

7 (Figure 7) - jumper, male to male jumper and female to male jumper

8 (Figure 8) - light emitting diode (LED)

9 (Figure 9) - water pump (other improvements of the project)

10-10k resistor

11 - container used as project suitcase

12 (image10) - pie Zo buzzer

The cost of the project is less than 1200 rupees or $20

Step 2: Test LCD shield

Just fix the LCD shield on the Arduino, as shown in the figure, that is, the LCD pin is parallel to the Arduino pin.

Now upload the code.

Step 3: Test PIR sensor

Pyroelectric ("passive") infrared sensor: '"what is a PIR sensor?'" PIR sensors allow you to sense motion and are almost always used to detect whether a human has moved into or out of the sensor range. They are small, cheap, low power consumption, easy to use and will not wear. Therefore, they are usually found in appliances and gadgets used in homes or businesses. They are commonly referred to as PIR, "passive infrared", "pyroelectric" or "IR motion" sensors. PIR is basically made of a pyroelectric sensor (you can see a circular metal can above with a rectangular crystal in the center), which can detect the level of infrared radiation. Everything emits some low levels of radiation, and the hotter things are, the more radiation they emit. In fact, the sensor in the motion detector is divided into two parts. The reason for this is that we want to detect motion (change) rather than average IR levels. Connect the two halves so that they offset each other. If half of the infrared radiation is more or less than the infrared radiation on the other side, the output will swing up and down. Next to the pyroelectric sensor is a pile of support circuits, resistors and capacitors. It seems that most small amateur sensors use BISS0001 ("micro power PIR Motion Detector IC"), which is undoubtedly a very cheap chip. The chip receives the output of the sensor and performs some small processing to send digital output pulses from the analog sensor. PIR sensors are great for many basic items or products that need to detect when personnel leave or enter or approach the area. They have low power consumption, low cost, ruggedness, wide lens range and easy interface. Please note that PIR will not tell you how many people are around or how close they are to the sensor. The lens is usually fixed in a certain range and distance (although it can be cut to death somewhere), and sometimes it will be detonated by the house. Pets.

camera lens

PIR sensors are quite versatile, and most of them differ only in price and sensitivity. Most real magic happens in optics. This is a very good manufacturing idea: PIR sensors and circuits are fixed and cost a few dollars. The lens costs only a few cents and can easily change the width, range and sensing mode. In the above figure, the lens is just a piece of plastic, but this means that the detection area has only two rectangles. Usually, we want a larger detection area. To do this, we use a simple lens (such as the lens found in the camera): they gather large areas (such as scenery) into small areas (on film or CCD sensors). For reasons that will soon be understood, we hope to make the PIR lens small and thin and can be formed with cheap plastic, although it may increase deformation. Therefore, the sensor is actually a Fresnel lens (see figure below). Sure, so now we have a wider range. However, please remember that we actually have two sensors. More importantly, we don't want to have two very large sensing area rectangles, but to disperse multiple small areas. Therefore, what we need to do is to divide the lens into multiple parts, and each part is a Fresnel lens. Different facets and sub lenses create a series of staggered detection areas. This is why the lens centers on the upper facet are "inconsistent" - pointing to the other half of the PIR sensing element.

Read PIR sensor

Upload code, mentioned below:

Step 4: establish a connection

Power input:

Internal input: connect to the power input of the Arduino card through batteries (6 batteries, 1.5V each) or 9V batteries.

External input: input to 2.1mm through external transformer (9V, 1a) or mini USB input to Arduino card through USB cable.

Arduino (top: left to right):

GND LED / S (GND), speaker (GND).

Digital 13 LED / S (VCC).

Number 12 - button (right foot).

Digital 11 speaker (VCC).

Numbers 10, 9, 8, 7, 6, 5, 4-lcd keyboard guard (D10, D9, D8, D7, D6, D5, D4).

Digital 2-pir sensor (out). Digital 1 (TX) - Bluetooth module (RXD).

Digital 0 (Rx) - Bluetooth module (TXD).

Arduino (bottom: left to right):

Reset - LCD keyboard guard (RST).

5V Bluetooth module (VCC), PIR sensor (VCC), LCD keyboard cover (5V), button (with 10K resistor between 5V and middle leg)

GND Bluetooth module (GND), PIR sensor (GND), LCD keyboard guard (GND), button (left foot).

Gnd-9v connector (-). Vin-9v connector (switch between VIN and ).

Note-you should use the built-in power pin (usually with USB cable or charger) to power Arduino. To get better results, especially in this project.

Step 5: make LED surface

Connect the LED above the image.

Step 6: establish connection with water pump

To operate the pump, simply install the pipe together with the motor in the inlet and outlet extension pipe, and connect the inlet pipe to the water source containing water.

The pump is an improvement of the project, so as soon as the PIR sensor detects movement or intruder, the pump will start to absorb water and inject water into the intruder with turbulent force or flow.

Note-you should connect the nozzle to a small cross-section to allow water to flow out of the pump with turbulent force.

Step 7: upload code

Download and run the Arduino software from the link provided below:

http://arduino.cc/en/main/software

1。 Download the u.ino file that exists on this page (this is your final Arduino code).

2。 Download the zip file, stopwatchclass and liquidcrystal display

3。 Extract these files into the Library folder in the Arduino software location (as shown).

4。 For more information about these libraries, see the following links:

http://playground.arduino.cc/Code/StopWatchClass

http://arduino.cc/en/Reference/LiquidCrystal

5。 Select development board: Tools - development board - Arduino UNO.

6。 For other boards, see more information about Serial1 connections (to avoid compatibility issues): http://arduino.cc/zh/reference/serial

Verify the code and upload it to Arduino.

Step 8: receive messages on Android smartphones

Download the Arduino Bluetooth control application via broxcode from the link below:

Arduino Bluetooth control application

https://play.google.com/store/apps/details? id=com 。..。

To connect to an Android smartphone:

1。 Open the project.

2. Turn on the Bluetooth of the mobile phone.

3。 Open the application, and then click terminal window.

4。 To connect to hc-05, type 1234 or 0000 if a connection password is required.

5 open the terminal in the application.

6。 Congratulations, you have completed the project.

Step 9: organize things

Now package the project in a container to make it look good.

If you want to program Arduino mega, then change all sequences in the code to Serial1.

How to Control Motion Sensor Alarm with Bluetooth 1

GET IN TOUCH WITH Us
recommended articles
Related Blogs blog
Although GPR has been widely used in hydrology, engineering, environment and other fields, many basic theoretical and technical problems have not been fundamentally ...
So I am thinking of a possible answer to my own question:Build my own journal note entry app linked to a wiki.Zim Wiki uses a file based system for wiki. Maybe I cou...
About 8 I think1. where can i get ncaa football 10 rosters with names?For the last two years I got mine from "Pastapadre". From what i can tell they are really prett...
The Haunting I vaguely remember some kind of eye injury in the movie.• Other Related Knowledge ofa cocktail glass— â€&...
rsync can be somewhat painful if you have a very large number of files - especially if your rsync version is lower than 3. On the other hand: if you use tar, you wou...
Blockchain Technology Explained: Powering BitcoinMicrosoft recently became the latest big name to officially associate with Bitcoin, the decentralized virtual curren...
PLEASE HELP ME CHOOSE A VIDEO CAMERA!?the Flip ultra HD is a really good HD portable camcorder, and it's fairly cheap. A lot of famous youtubers use it, such as timo...
In order to implement the tasks proposed in the outline of the national medium and long term science and technology development plan (2006-2020), the national key R ...
Alibaba group and Royal Philips of the Netherlands announced that they have officially signed an IT infrastructure service framework agreement to jointly promote the...
but it seems the company has disappeared and you can only get it from other sites such as Canadian Content.It works on Windows 7 and due to the nature of the OSes, t...
no data
Customer service
detect