Ultrasonic Motion Detection

by maheshs11 in Circuits > Arduino

3651 Views, 25 Favorites, 0 Comments

Ultrasonic Motion Detection

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
New Bitmap Image (3).bmp
F0FG8QBHYC63AR8.bmp

  1. arduino
  2. ultrasonic sensor (4 pins)
  3. wires
  4. speaker
  5. 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

Code

to change the tone edit code from 106 to 113

link:

http://pastebin.com/bJFQFGWA