Giter Site home page Giter Site logo

beaglebone_entry_alarm's Introduction

BeagleBone Black Entry Alarm

Objective

Door entry alarm that uses a BeagleBone Black microcontroller to monitor the opening & closing of a door.

Hardware overview video

Components

  • BeagleBone Black (BBB)
  • BBB Power Supply
  • Magnetic Door Alarm (used this model from Harbor Freight, cost $4.49 in a two-pack)
  • Small prototyping breadboard
  • (1) 10K Ohm resistor
  • Wire in various colors

Tools

  • Multimeter with test leads
  • Dremel tool with attachment to cut plastic
  • Soldering Iron
  • Solder
  • Desoldering Braid (optional)

Steps

  1. Open the magnetic door alarm case

  2. Cut wires from speaker

  3. Desolder the wires running from circuit board to the speaker

  4. Solder two new, longer wires to the circuit board

  5. Use a Dremel to create a small hole in the alarm case to route the new wires outside

  6. Seal up the case

  7. Connect the wires to the breadboard in a voltage divider configuration with the resistors, ensuring that voltage doesn’t exceed 1.3V

  8. Use a digital multimeter to verify that the alarm triggers about a 200 milli-volt rise in voltage across the voltage divider circuit wires when the magnet is removed.

  9. Connect the voltage divider outputs to analog input pins on the BeagleBone Black

  10. Apply power to the BBB

  11. SSH into the BBB

  12. Install Python dependencies:

    sudo apt-get update
    sudo apt-get install python-pip
    git clone https://github.com/bear/python-twitter.git
    cd python-twitter/
    sudo pip install -r requirements.txt
    python setup.py build
    sudo python setup.py install
    sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus -y
    sudo easy_install -U distribute
    sudo pip install Adafruit_BBIO
  13. Clone this project into the ubuntu home directory: git clone https://github.com/urlgrey/beaglebone_entry_alarm.git

  14. Edit the settings file: vi ~/beaglebone_entry_alarm/settings.py

  15. Add an entry to the /etc/rc.local file, before the exit statement, to start the script on boot:

/home/ubuntu/beaglebone_entry_alarm/door_alarm.sh &> /var/log/door_alarm.log

beaglebone_entry_alarm's People

Contributors

urlgrey avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.