GuardDog

This is a GuardDog. Woof. Woof.

GuardDog

The GuardDog acts as a dog that patrols your house searching for possible intruders. It moves around, avoid obstacles. If it hears a sound, it stops to search for an intruder. If motion is detected, it begins to bark and notify via bluetooth the owner. /media/uploads/twmeares/robot_side_view.jpg /media/uploads/twmeares/robot_front_view.jpg

Components Needed

Set Up Instructions

  1. Mount the battery packs (6V AA and regulated 5V USB)
  2. Mount the servos, wheels, and caster
  3. Mount the mbed Application Board (with mbed)
  4. Mount a prototyping board
  5. Connect all devices
  6. Connect the regulated 5V USB power to the mbed
  7. Pair computer with the HC-06 (default password is 1234)
  8. Change “TO” email in shell script
  9. Run shell script
  10. Connect 6V AA to power servos
  11. Enjoy the security of a dog without the responsibility of owning a pet!

Pin Set Up

Mbed application Board

mbed
USBUSB charger
pinsapplication board

RC Servo Motor

Left Servo
SIGp21
VCCBattery Voltage
GNDGND
Right Servo
SIGp22
VCCBattery Voltage
GNDGND

Bluetooth

Bluetooth HC-06
TXp10
RXp9
VCCVU
GNDGND

Ultrasonic Sensor

Ping
SIGp16
VCCVU
GNDGND

PIR Sensors

Left PIR
SIGp12
VCCBattery Voltage
GNDGND
Right PIR
SIGp13
VCCBattery Voltage
GNDGND

Speaker Amplifier

Amp
pwr -GND
pwr +5V
in +p18
in -GND
out ++Speaker
out --Speaker

Microphone

Microphone
Vin3.3V
3V--
GNDGND
AC--
DCP17

Explanation Video

Program Code

Import program4180_Final_Project

GuardDog using application board robot.

Email Sender Scripter

#!/bin/bash

sendEmail () {
  SUBJECT='GuardDog: Intruder Detected!'
  BODY='GuardDog has detected an intruder in your house! Check to make sure nothing is happening to your home and everyone and all of your belongings are safe! Woof Woof.'
  TO='EMAIL_TO_RECIEVE_ALERT'
  FROM='GuardDog'

  if [ -n "$(cat)" ]
   then
     echo "$BODY" | mail -r "$FROM" -a "From:$FROM" -s "$SUBJECT" "$TO"
   fi
}

echo "Listening."
trap "echo Exiting.; exit;" SIGINT SIGTERM
cat /dev/tty.HC-06-DevB | sendEmail | awk '{system("echo Sending Email, `date`.")}'


Please log in to post comments.