Coder Social home page Coder Social logo

seizu / ultrasonic-surveillance-system Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3.63 MB

Arduino based project using ultrasonic sensors to monitor areas. Bidirektional communication via Bluetooth.

arduino bluetooth esp32 ultrasonic cpp python sensor surveillance platformio

ultrasonic-surveillance-system's Introduction

Ultrasonic-Surveillance-System

Arduino-based project using ultrasonic sensors to monitor areas with bidirectional communication and notification via Bluetooth.

In this project for a surveillance system, ultrasonic sensors were deliberately chosen instead of infrared sensors. Of course, the range is less (0-3 meters), but ultrasonic sensors are more accurate and are not affected by sunlight or shading. So it's ideal for outdoor use. The application area for this circuit is manifold. For example, an automatic light control when someone enters a certain area of the front yard. A garage door control. Two sensors are responsible for opening the door and a third sensor detects the distance between garage wall and car and closes the door.

Spec:

  • Ultrasonic surveillance system with 1 to 3 (HC-SR04) ultrasonic distance sensors to monitor a specific area (2 - 300cm).

  • If a change in distance is detected by one of the sensors, a 230V relay (2-relay module 5V) should be switched active for a certain time.

  • An ESP32 microcontroller is used to control sensors and relays. The firmware is written in C++ and contains the logic for processing sensor data, switching relays and data exchange via Bluetooth.

  • A Python client app running in a Linux environment (Raspberry PI) is responsible to establish the connection to the ESP32 controller. The client should transmit configuration parameters to the controller and receive sensor data in real time from the controller. Received data (distance and relay state) should be passed to the standard output and/or to a Telegram chat.

  • Configuration parameters are: Relays time span in milliseconds and measuring range of the ultrasonic sensors in cm. The configuration is to be stored permanently on the ESP32. Communication between ESP32 and client must be password protected.

Breadboard sketch

  • In the development phase the program Fritzing is used to create a sketch of the circuit.

ultrasonic-surveillance-system's People

Contributors

seizu avatar

Stargazers

 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.