find who came near your laptop when you are away shortly using arduino, ultra-sonic sensor and python.

Gogs d91d4d948d markdown style for attachment image 7 months ago
arudino 515cca05b4 Initial commit with basic functionalities 2 years ago
python 515cca05b4 Initial commit with basic functionalities 2 years ago
.gitignore 515cca05b4 Initial commit with basic functionalities 2 years ago
LICENSE d95b0faadf Initial commit 2 years ago
README.md d91d4d948d markdown style for attachment image 7 months ago
requirements.txt 515cca05b4 Initial commit with basic functionalities 2 years ago
ultrasonic_sensor_bb.png 515cca05b4 Initial commit with basic functionalities 2 years ago

README.md

Intruder detector


Detects if any intruder nears your computer with the help of Ultrasonic sensor and captures their image immediately with the help of your USB Webcam.

Arduino Sketch Schema

Setup

  • Install the required python libraries from requirement.txt file

    sudo pip install -r requirements.txt
    
  • Connect your Arduino board over USB and find the name of the port it is connected to (Usually this is /dev/ttyUSB0 if there is only one device connected over USB).

  • Open and Arduino IDE; Verify & Upload the sketch arduino/ultra_sonic_sensor.ino to the board.

Running the program

    python python/capture_user.py /dev/ttyUSB0

Depending on the range you have set in the python script capture_user.py RANGE variable, the script will activate the camera, captures the image and saves it. You can find the image in your $HOME/image_captures/ directory