Ultrasonic Motion Detection
![New Bitmap Image (3).bmp](/proxy/?url=https://content.instructables.com/FD4/6A90/HYC6GG3Q/FD46A90HYC6GG3Q.bmp&filename=New Bitmap Image (3).bmp)
it detects the motion at certain distance using arduino program and ultrasonic sensor and triggers the speaker when some person come in front of sensor, it displays the distance in serial monitor and it plays our own tone.
Materials
![FEFPAB2HYH374XP.bmp](/proxy/?url=https://content.instructables.com/F4H/ICQ6/HYH3752A/F4HICQ6HYH3752A.bmp&filename=FEFPAB2HYH374XP.bmp)
![New Bitmap Image (3).bmp](/proxy/?url=https://content.instructables.com/FD4/6A90/HYC6GG3Q/FD46A90HYC6GG3Q.bmp&filename=New Bitmap Image (3).bmp)
![F0FG8QBHYC63AR8.bmp](/proxy/?url=https://content.instructables.com/FTR/OR54/HYC64TJV/FTROR54HYC64TJV.bmp&filename=F0FG8QBHYC63AR8.bmp)
- arduino
- ultrasonic sensor (4 pins)
- wires
- speaker
- bread board
Connection
The circuit:
* VCC connection of the sensor attached to +5V * GND connection of the sensor attached to ground * TRIG connection of the sensor attached to digital pin 2
* ECHO connection of the sensor attached to digital pin 4
speaker Pin is connected to pin 13