Introduction: Linkit One Motion Sensor Prank
Do you want to take revenge from your friend or your elder brother because he fooled you on a occasion. Are you searching for something by which you can scare anyone and have fun. If that is the case then you are at the right place. This instructable will tell you how to make a motion sensor prank by which you can scare or fool your friends and family member. It does not use any visual effects to scare people. Only loud sound is used which make this project very simple to be made.
This prank uses linkit one as the micro controller. When any motion is detected, a car or bike horn attached to it starts blowing and then noise made by it surprises the person. To detect motion, this prank uses a PIR motion sensor as well as a laser sensor. It has two sensors for detecting motion so rare would be the case when a motion is not detected by this alarm. PIR sensor detects the motion when their is a change in infrared radiation and turns it output pin high whereas laser sensor detects motion when someone blocks the path of the laser light. In case of motion, a loud horn is made by the horn which scares a person. Hide it is a place where no one can find it and scare people with it.
Please don't use it a lot because such a loud noise can damage your ears and can also make you partially def. Do not use it on old people. They may get scared a lot and can also get serious. You can get beating from your elders for scaring them. Excessive usage prohibited.
For more cool projects like and follow my Facebook page Frozen solenoid.
PLEASE VOTE FOR ME IN THE CONTEST.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Gather Parts
Here is the part list of this projects. Everything is easily available at online stores. Laser module can be bought easily from online store. You can buy a horn either from a car or bike access store or from a online store. Here is the list:
- Linkit one
- Motion sensor
- Relay module or simple relay
- LDR(light dependent resistor)
- Laser light
- Car or bike horn
- 12V adapter
- BC547 transistor
- 1K ohms resistor
- 10K ohms resistor
- 1N4007 diode
- Female header
- A box
- 3V battery pack
- A battery pack to power linkit one board
- Soldering iron
- Hot glue gun
- A dremel or drill or something why which you can make holes in your box
Step 2: Connecting Motion Sensor
When a motion is detected, the horn attached to the linkit one board should start blowing. There are multiple ways to detect a motion but according to me the best way is to use a PIR motion sensor. You can use a infrared led motion sensor but it is not as much accurate in detecting motion as PIR motion senor is. This PIR motion sensor works on the principle of infrared radiation. A human body emits infrared radiation due to heat generated by various organs of the body. A change in infrared radiation trig the motion sensor and output pin of this sensor goes high. This is how a infrared motion sensor works. To know more visit my instructable Linkit one sensor tutorial
I made a small shield for my sensor because it is not much breadboard friendly. You can use female to male jump cables but I prefer both side male. Connect your Motion sensor to your linkit one board as follow:
- vcc of sensor-----vcc of board
- gnd of sensor-----gnd of board
- Vout of sensor-----digital pin 8 of board
To check your motion sensor visit my instructable linkit one sensor tutorial whose link you can find above. Copy and paste the code given there. I also ,made a small shield for my linkit one power connector as it has only one vcc and gnd a number of connections to them are more
Step 3: Connecting the LDR
If a person is at a far distance or by chance our motion sensor fails to detect motion then their should be some backup plan which can detect motion a blow the horn. This laser trigger is for that only. The laser light get scattered a very little therefor it travel a very long distance in a straight path. A laser pointer is used here. The pointer of the laser light is on the LDR and when their is an obstruction in the path of laser light, the output of the LDR become low and the horn starts blowing. The LDR is connected to analog input of the linkit one board. Laser light is powered separately using a 3V battery pack. The circuit diagram is given above or follow these steps to connect your LDR to the board:
- One end of LDR-----vcc of Linkit one board
- Other end of LDR------Analog input 0 of linkit one board
- Short analog input 0 and gnd of the board using a 10K resistor
Connect the positive of the laser light to positive of the 3V battery pack with a switch in between and gnd of the battery pack to gnd of the laser light. Now you need to check what is the value send to your linkit one by your sensor when laser pointer is on the sensor. To check upload this code code to your board and open serial monitor:
Serial.print("The value is:");
Step 4: Making a Relay Module
Here relay is acting as a switch to switch the 5V supply of linkit one board with 12V supply of adapter. We have to do this because all car and bike horns work on 12V and 5V is not sufficient for them. If you don't have a relay, you can make a circuit using transistors but using a relay is a lot more easier than making a complicated circuit. If you already have a relay module, then their is no need to make it again. Those who are using a 5V relay can also skip this thing but if you have 12V relay then you have to make a circuit for it. The circuit diagram is given above. After making the above circuit here are its connections with the board:
- vcc of module-----vcc of the board
- gnd of module-----gnd of the board
- Vout of the module-----digital pin 5 of the linkit one board
Step 5: Attach the Horn to the Relay Module
A horn is necessary for this project. You can not use buzzer because the buzzer will not be able to make such a loud noise thus defeating the purpose to make this project. This loud noise only scares a person. A car horn is more louder than a bike horn but I advice you to use a bike horn because this such a loud noise can also make you partially def. Don't use this project a lot because it cause noise pollution and also irritates people living around you. You would be needing a 12V adapter(usually a automobile horn works on 12V) to power your horn. Don't use the same adapter to supply power to your linkit one. This would decrease the loudness of the horn. So here are the connections of the horn with the relay module:
- Common pin of relay-----positive of the adapter
- Normally close pin of relay-----positive of the horn
- Gnd of the horn-----gnd of the adapter
Step 6: Making an Enclosure
Now its time to make some holes. We would be making a box for our project. Pick up your box and start making the marks with the help of a marker and ruler for the holes of the component . You can use a drill machine to cut holes but a dremel would be better option. You have to make holes for the following things:
- Motion sensor
- A small hole from which laser pointer can enter the box
- A hole for the horn wires
- A hole for the adapter jack
- A hole for the USB cable
- For a switch
You can cover the box with a white paper or color the box with you favorite color. You can stick stickers on your box to decorate it.
Step 7: Upload the Code
Now this is the time to upload the code to your linkit one board. This is the main step. After uploading the code remove the USB cable from linkit one board. Here is the code and after uploading the code move to the next step.
// Linkit one motion prank
//Made by Dushyanta
if(analogRead(laser_sensor)>512) //write 512 from your value
if(analogRead(laser_sensor)>512) //change 512 from your value
Step 8: Hot Glue Everything
Heat up your glue gun because its time to stick your components. Don't skip this step as it is one of the most important steps of this project. You can use double sided tape to stick you board to the box but the better option would be to use a hot glue gun. It will not damage your board. Stick your linkit one board to the box and don't forget to apply some glue at the point from where the wire is going out to the horn. Glue the LDR in front of the small hole from where the laser beam would enter the box.
Step 9: Checking
Now its time to check your project. The project does not start working immediately after the power supply is turned on. 3 seconds after the power supply is turned on, the horn will blow for half a second by which you can assure yourself that your horn is working. Then keep your hand on laser beam so that it is not falling on LDR. Then again after three seconds a horn will blow for half a second. Now your laser sensor is also working. Then their would be a pause of 30 seconds because our PIR motion sensor take about 30 seconds to start working perfectly. After 30 seconds your prank will be ready to be used. When a person comes near to the box of the prank or pass near to it or obstruct the beam of light, the horn will start blowing for 2 seconds and after it their would be delay of 5 seconds so that person standing near to it or passing from near can move forward and clear space for the next fool.
Step 10: Done!!
Now fool people with this project. Use it on your friends and your family members. Use it on the people who are frank with you because you can get beating in return. This use it a lot.
This is the end of this instructable. Hope you like it. If there is any query, you can comment below or you can mail me or can ask me on my facebook page Frozen solenoid. For more cool projects,follow me. THANK YOU
PLEASE VOTE FOR ME IN THE CONTEST.
Participated in the