The proximity alarm is a defensive device that gives an audio signal when a person passes within its direct range. The goal is to detect unwanted visitors, so someone is aware of their position.The idea behind the project is taken from an online tactical shooter game and it acts like previously stated. The device can be used in Close-Quarters Battle by slowing down attackers and helping out defenders in certain areas.
Compontents:
Schema circuit :
The IDE used to write the program was Arduino IDE. The modules used in the circuit are:
The program uses a few functions such as :
Also in order to get the distance in centimeters we use a little formula: distance = (duration * 0.034)/2. Speed of sound travels at 340 meters per second or 0.034 centimeters/microseconds.The alarm gets more alert as you get closer to it. In this case if an object is less than 20 centimeters away from the sensor, but its adjustable according to your needs.
The proximity alarm in action.
Here is the demo that I uploaded on youtube.
Results that you recieve on the remote device ( smartphone ).
Although the project may look “Raw” this might be due to the low grade quality(especially the sensor) of the components or the lack of a casing to protect the circuit as in a real situation in can easly be destoyed. There are a few things that may be worth implementing such as .
In the end the Proximity alarm can set the base to a lot of practical devices, not only for tactical use by soldiers/special troops, but even for day to day activities like parking your car or a package delivery detector, so you know when that sweet order of yours arrived .The limit is only your imagination.
Here's the archive with all the files I used during the making of this project( schematics, video, photos and the code file )