Giter Club home page Giter Club logo

iot-security-cam-motion's Introduction

RPi

  • host the django server
  • sound notification
  • respend to client request

wemos

  • server respensible for sensors data

  • server.on(capture ) respend to capture request take a picture and read the SPI data

  • server.on(pir_check) return a yes or a no , concerning if there is motin each of the above have its own respense function,

  • handle_PIR to check if the motion is present and change the state of to motion/non

  • check_PIR_respense respens to the client and formulate the http needed and send it depending on the current state of the motion

  • you can setup the wemos to pe an access point AP or a Station using the wifi-type variable

  • settup the AP or the Wifi ssid and password

  • create a server and cams instances

    NOTE use D1--> D15 predefined constants instead of regular arduino pins numbers

arducam

  • clone the arducam repos

      *  copie it to arduino/libraries
    
    • uncommment the define of the ardcam
    • in our case we have an arducam 5mp mini BOO68 or aduino 5 plus ov5642
  • use the following pins to link the cam D0 -----> chip select // defined in the code D3 SCL--> SCL D4 SDA -> SDA D5 SCK -> SCK D6 MISO-> MISO D6 MOSI-> MOSI GND TO GND VCC TO 5v

  • use the exemple defined for the same arducam as a base for the application

PIR

  • passive infrared

  • needs a 60 seconds to stablise with the room radiations

  • tune the ssensitivity and the time to stay up when motion detection

  • output a HIGH if theer is Motion

DJANGO

  • main interface is the interface1

  • / retuen the home page

  • /reset remove the captured images and reinitialize the counters

  • /refresh requested from the refresh button or the auto interval function to execute the captureThread and run it if it is not already running reload all the captured images in the static/captures to the client

  • captureThread respensible for sending request to get motion stat and if the state requested is true , enumerate the image give it a name after downloading it

  • app.js hold the code for refreshing the captures dynamicly

  • jqury and ajax to simplify the loading

  • bootstrap for styling

THE ARCHITECTURE IMAGE IS IN THE REPOSETRY

iot-security-cam-motion's People

Contributors

yasseerr avatar

Stargazers

Lahreche Tahar avatar Otman LAHRECHE avatar

Watchers

 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.