Giter Site home page Giter Site logo

rascafr / esp32-din-cctv Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 1.08 MB

WIP / DIN-rail compatible WiFi security camera with additional features (doorbell detection, magnetic / reed switch door & PIR sensor...) that sends you alerts on Telegram if someone unauthorised breaks into your house.

OpenSCAD 18.98% C++ 66.46% C 14.56%

esp32-din-cctv's Introduction

ESP32 DIN CCTV

🚧 Work in progress / more details / code / features coming soon 🚧

40€ DIN-rail compatible WiFi security camera with additional features (doorbell detection, magnetic / reed switch door & PIR sensor...) that sends you alerts on Telegram if someone unauthorised breaks into your house.

Embedded software

Project is based on the Arduino framework (C++), with the PlatformIO Visual Studio Code add-on.

Uploading code

You either can flash the updates directly with a USB to TTL module, or directly upload updates over the air (OTA) using espota (already installed with PlatformIO).

Ensure you did the setup part by updating the src/secrets.h file and replacing WiFi SSID, password and Telegram API token with your values.

Build it

I wanted to keep it simple, hence it's using the well known AI-Thinker ESP32-CAM board. I'm using the 160° wide lens, so my entrancy / hallway can be seen in one sight.

The module is designed to be integrated into your electric panel, fixed on a standard DIN rail for direct wall mounting.

3D printed parts have been designed with OpenSCAD, which is an open-source software that helps create parts with just code. Easy to change, easy to share.

*.stl and *.scad files are stored under the /mechanical folder.

The module is powered thanks to a DIN-rail AC/DC 15W 5VDC converter, MeanWell HDR-15-5.

You might / need to add a circuit breaker, connected upstream of the 5V power supply (see note below)

The one I used is 16A / C-type curve, which is way overkill, since the HDR-15-5 only draws 250mA from main power (230V). However, due to its internal capacitors, this will reach 45A for a few dozen ms when powered up, hence my 16A circuit breaker. It'd be better to use a 2A model with a D-type curve - which I couldn't find here in my local store (refer to: https://www.meanwell.com/Upload/PDF/HDR-15/HDR-15-SPEC.PDF)

Bill of materials

  • Core + camera: AI-Thinker ESP32-CAM OV2640 160° [link] (13€)
  • 5V 15W DC supply: MeanWell HDR-15-5 [link] (16€)
  • Door Reed-switch: Ref? [link] (2€ / unit)
  • PIR sensor: HW-740 [link] (1€)
  • Alarm piezo buzzer: 95db, DC 3-24V [link] (1€)
  • Circuit breaker: Lexman 16A / C [link] (7€)

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.