GithubHelp home page GithubHelp logo

albino98 / telegram_esp32 Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 8.0 47 KB

Security System with ESP32, PIR and Telegram Bot

License: MIT License

C++ 100.00%
telegram telegram-bot arduino esp32-cam esp32-wroom security-camera security-cam security-cam-arduino security-cam-esp32 camera

telegram_esp32's Introduction

C++ Telegram Arduino

Introduction - Introduzione

ENG

I devised this project to create a smart security system, without the need for external input devices, such as a numeric keypad for alarm activation, etc. In fact, the project allows you to manage the esp32 directly from your mobile phone or PC via a telegram bot.

Credits:

To create the project I took inspiration from other projects on the net, such as the following: https://randomnerdtutorials.com/esp32-cam-take-photo-save-microsd-card/

ITA

Ho ideato questo progetto per creare un sistema di sicurezza smart, senza il bisogno di dispositivi esterni per l’input, come ad esempio un tastierino numerico per l’attivazione dell’allarme, ecc. Il progetto infatti consente di gestire il l’esp32 direttamente dal cellulare o da pc tramite un bot telegram.

Credits:

Per creare il progetto ho preso spunto da altri progetti in rete, come ad esempio il seguente: https://randomnerdtutorials.com/esp32-cam-take-photo-save-microsd-card/

Components - Componenti

ENG

  • ESP32 cam
  • PIR
  • connection cable

I bought this kit from Amazon: https://www.amazon.it/ideaspark-ESP32-CAM-Istantanea-Riconoscimento-Telecamera/dp/B084H5XNGQ/ref=sr_1_11?__mk_it_IT=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=esp32+kit&qid=1614103288&sr=8-11

The kit already contains the USB2.0 serial cable from USB to TTL PL2303TA needed to program the esp32.

ITA

  • ESP32 cam
  • PIR
  • cavo di collegamento

Io ho comprato questo kit da Amazon: https://www.amazon.it/ideaspark-ESP32-CAM-Istantanea-Riconoscimento-Telecamera/dp/B084H5XNGQ/ref=sr_1_11?__mk_it_IT=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=esp32+kit&qid=1614103288&sr=8-11

Il kit contiene già il Cavo USB2.0 seriale da USB a TTL PL2303TA necessario per programmare l'esp32.

Apps and services

  • Arduino ide
  • Telegram

Connection schema - Schema di collegamento

immagine

Connection between the Esp32Cam and the USB to serial cable - Connessione tra l'Esp32Cam e il cavo da USB a seriale

ESP32-CAM USB-to-Serial Cable
5V Red Cable
GPIO3 Green Cable
GPIO1 White Cable
GND Black Cable

⚠️ Connect GPIO 0 and GND ports with DuPont cable as following to load the code - Collega GPIO 0 e GND per caricare il codice sull'ESP.

ESP32-CAM ESP32-CAM
GND GPIO0

⚠️ Remember to disconnect the GPIO 0 and GND ports after loading the code and press the reset button on the Esp to execute the code - Ricorda di disconnettere i pin GPIO 0 e GND dopo aver caricato il codice e premere il tasto reset dell'Esp per eseguire il codice.

Connection between Esp32Cam and PIR - Connessione tra l'Esp32Cam e il sensore di movimento

ESP32-CAM HC-SR501 Human Infrared Sensor
3.3V VCC
GND GND
GPIO 13 DATA

immagine

⚠️ If ESP32 CAM takes pictures frequently. Or never take a picture. Adjust the rotary buttons on the HC-SR501 Human Infrared Sensor - Se il Pir è troppo sensibile e quindi fa scattare troppe fotografie oppure è troppo poco sensibile, regolalo attraverso i pulsanti rotanti.

1

2

3

About the project

ITA

Questo semplice sistema di sorveglianza domestico ti consente di ricevere una fotografia su telegram non appena viene rilevato un movimento tramite il sensore PIR, di richiedere all’esp32 una foto istantanea, accendere o spegnere il led integrato sull’esp o di armare e disarmare il sensore PIR. Il tutto tramite dei semplici comandi del bot telegram. Per la creazione del bot telegram ci sono molte guide online che spiegano come crearlo partendo dal botFather.

ENG

This simple home surveillance system allows you to receive a photo on telegram when movement is detected via the PIR sensor, to request an instant photo from the esp32, turn on or off the integrated led on the esp or to arm and disarm the PIR sensor. . All through simple commands of the telegram bot. For the creation of the telegram bot there are many online guides that explain how to create it starting from the botFather.

5

6

7

Arduino Ide configuration

Screenshot (2)

Code

https://github.com/albino98/telegram_esp32/blob/main/telegram_esp32.ino

BuyMeACoffee

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.