Giter VIP home page Giter VIP logo

slam's Introduction

BSMP-2016-Door-Opening-Warning-Sensor

This repo contains the code and schematics for creating an early warning system for people walking in creating an early warning system for doors opening into hallways


Participants

  • Gabriel Filipe Botelho Barbosa (@bestknighter)
  • Guilherme de Castro (@guidecastro)
  • Luiz Gustavo de Marchi Brito
  • Matheus Braz Duque
  • Rodrigo Ferreira Abdulmassih

Instructions

If you want to reproduce this project, follow the steps below.

  1. Download an Arduino IDE of your preference (we used their official one)
  2. Build the project as in the Fritzing diagram. If you don't have a solar panel, you can ignore the solar panel charger and simply power it through the micro-usb.
  3. Open the main code in the IDE.
  4. Build and upload it. Make sure to set the correct arduino model before uploading.

You can tweak with the constants declared as Macros to calibrate the project for your use. The values in this repo is the one that worked best with us.

Troubleshooting
Problem Solution Reason
I uploaded the code and it is running excruciatingly slow/not running at all If you're running with an external power, build the production version (comment all DEBUG defines). If you're powering with PC usb, open a serial monitor This happens because the arduino waits the serial port to be read, halting the program until done so or until timeout (which takes usually too long)
Buzzer sounds but LEDs don't/LEDs lights up but buzzer don't Check your cables to see if they are firmly attached, or change them, and plugged in to the right port described in the Macro areas The signal may not be reaching the component due to a broken cable, loose cable or wrong port
Alarm does not behave as expected/is weird. Callibrate your system by building the DEBUG version (uncomment just the #define DEBUG) and changing the constants. Your case/scenario may be different from ours. Activating the debug mode allows you to understand what is happening and then change the constants value to what may fit best.
Known Issues
  • When the distance with no one in front of the sensor is smaller than 2.5m and then someone enters (making the detected distance quickly reduce) is understood as someone walking towards the door, thus, triggering the alarm.
  • The solar panel by itself can power the system and when the battery is charged can also power the system for a long time. But when the battery is plugged to the solar panel and powering the system, it stops working quickly. Using a power bank to power the system also works for a long time.

slam's People

Contributors

bestknighter avatar guidecastro avatar jhajek avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.