|
|
ESP32-C3 Super MiniExpressif
|
x 1 | |
|
|
Screw_Terminal_01x02 |
x 2 |
|
|
Telegram |
|
|
Smart Soldering Iron TS101-BC2 |
|
|
Soldering Iron Wire |
|
|
arduino IDEArduino
|
Motion detector and notification on Telegram
Crea una alarma que te notifique en Telegram cuando alguien es detectado sin permiso en tu propiedad
Con esta tarjeta puedes conectar un sensor PIR HCSR501 al microcontrolador ESP 32 C3 (yo utilizo la versión Supermini) y así poder enviar una notificación a un grupo de Telegram cuando se detecte movimiento.
Te propongo utilizar este sistema para adaptarlo a tu casa u oficina pues así sera muy fácil saber aunque estés lejos cuando algun intruso esta en tu propiedad sin autorización y así poder tomar tus precauciones.
Aquí encuentras todo lo que necesitas para llevar a cabo la practica en protoboard o en circuito hecho en PCB.
Para la creación del código me apoye de la AI (DeepSeek), y en el tutorial te muestro como hacer la vinculación paso a paso con Telegram para que tengas las notificaciones sin falla.
Materiales:
1 Esp 32 C3
1 Sensor HCSR501
Jumpers
Materiales circuito PCB:
1 Esp32 C3
2 Borneras
1 Resistencias THT
4 Pines hembra
1 Porta pilas AA
1 Regulador voltaje AMS1117
1 Switch cola raton SMD
Promp DeepSeek:
crea un programa en ide arduino en donde utilizare el esp32 c3 que tiene conectado un sensor pir a la entrada GPIO20, y cuando el sensor detecte movimiento se tendra que encender un led que trae incluido el esp en el GPIO8 este led encendera cuando se detecte movimiento y permanecera encendido por 2 segundos para que posteriormente despues de cada deteccion espere 10 segundos antes de volver a detectar, y tambien hara exactamente lo mismo que hace el led pero enviando una sola notificacion a un grupo en telegram, utilizando las librerias WiFi.h
HTTPClient.h WiFiClientSecure.h, el SSID es ......, el password es ......., el tokenBot .......... el ChatID -100.......
NOTA!
Sustituye con tus datos en el programa o en el promp
SSID
Password
Token Bot
Chat ID
Link para generar el ID del chat
https://api.telegram.org/botTU_TOKEN_AQUI/getUpdates
Para mas detalles visita el siguiente tutorial completo:
#include <WiFi.h>
#include <HTTPClient.h>
#include <WiFiClientSecure.h>
// Configuración de pines
const int PIR_PIN = 20;
const int LED_PIN = 8;
// Configuración de WiFi
const char* ssid = "Ck Red";
const char* password = "balambalam";
// Configuración de Telegram
const char* BOT_TOKEN = "8162674973:AAHI1L0T-JX-g5DDmHa94Y56_mXumo0SPis";
const char* CHAT_ID = "-1002345900797";
// Variables de control
bool ledActivo = false;
bool cooldown = false;
unsigned long tiempoLED = 0;
unsigned long tiempoCooldown = 0;
WiFiClientSecure clienteSeguro;
HTTPClient clienteHTTP;
void setup() {
Serial.begin(115200);
pinMode(PIR_PIN, INPUT);
pinMode(LED_PIN, OUTPUT);
conectarWiFi();
clienteSeguro.setInsecure(); // Ignorar verificación SSL (solo para pruebas)
}
void loop() {
unsigned long tiempoActual = millis();
if (!cooldown && !ledActivo) {
if (digitalRead(PIR_PIN) == HIGH) {
activarSistema(tiempoActual);
}
}
if (ledActivo && (tiempoActual - tiempoLED >= 2000)) {
apagarLED();
iniciarCooldown(tiempoActual);
}
if (cooldown && (tiempoActual - tiempoCooldown >= 10000)) {
cooldown = false;
}
}
void conectarWiFi() {
WiFi.begin(ssid, password);
Serial.print("Conectando a WiFi");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("\nConectado! IP: ");
Serial.println(WiFi.localIP());
}
void activarSistema(unsigned long tiempo) {
digitalWrite(LED_PIN, HIGH);
ledActivo = true;
tiempoLED = tiempo;
enviarNotificacionTelegram();
}
void apagarLED() {
digitalWrite(LED_PIN, LOW);
ledActivo = false;
}
void iniciarCooldown(unsigned long tiempo) {
cooldown = true;
tiempoCooldown = tiempo;
}
void enviarNotificacionTelegram() {
String mensaje = "👮♂️ ¡Alerta INTRUSO Detectado!";
String url = "https://api.telegram.org/bot" + String(BOT_TOKEN) +
"/sendMessage?chat_id=" + String(CHAT_ID) +
"&text=" + mensaje;
clienteHTTP.begin(clienteSeguro, url.c_str());
int codigoHTTP = clienteHTTP.GET();
if (codigoHTTP > 0) {
Serial.printf("Notificación enviada. Código: %d\n", codigoHTTP);
} else {
Serial.printf("Error en envio. Código: %d\n", codigoHTTP);
}
clienteHTTP.end();
}
Motion detector and notification on Telegram
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Catia Diaz
-
Led strip 5630 SMD with screw terminal
This project is designed for 2 things. The first is so that people can practice soldering SMD compon...
-
Motion detector and notification on Telegram
Crea una alarma que te notifique en Telegram cuando alguien es detectado sin permiso en tu propiedad...
-
Level detector with ultrasonic sensor and telegram
Crea una alarma que te notifique cuando se le terminara la comida a tu perro en TelegramCon esta tar...
-
Bluetooth control for LED lights or motors with ESP32 C3
Con esta tarjeta puedes controlar vía Bluetooth motores o luces led con ayuda del ESP32 C3 (yo utili...
-
Control de luces led con servidor web y ESP32 C3
Te comparto todos los archivos que necesitas para realizar esta practica, encontraras 2 códigos de p...
-
CIRCUIT WITH ESP32 C3 TO CONTROL ELECTRIC LOCK
I will apply this circuit to build a safe to store the phone and thus not use it for a long time and...
-
Tarjeta para controlar un motor para Ruleta con ESP32 C3 Super Mini
Lista de materiales completa:2 Capacitores SMD 1206 100nF5 Borneras 3.5 mm de 2 terminales1 Buzzer S...
-
Tira led circular 2835 de 12V
Lista de materiales para la PCB:6 Leds 2835 (naranja)2 Resistencias 1206 100 Ohms1 Bornera 2 tornill...
-
Números aleatorios para dinámicas divertidas de participación
Lista de materiales completa:5 Borneras de 2 terminales cada una2 Cap 100n (SMD 1206)2 Resistencias ...
-
Numeros aleatorios matriz-
Se trata de una PCB con esp32 que permite controlar una matriz de leds ws2812bLista de materiales co...
-
Esp 32 wireless communication card
Here you can see more details of the programming process
-
Card for LED light sequence and memory game
Here you can find the complete tutorial to see how this game works.Characteristics of the assembly o...
-
Timer with 5-position selector and ESP 32 C3 super mini
Full tutorial in the following video
-
USB Charger
Its a charger with a 7 segments display to stop with the time the charge, its controlled with a esp3...
-
PCB for charging AA rechargeable batteries
With this card you can charge from 1 to 5 AA batteries independently. With the charger you can selec...
-
H bridge module to control crank
With the help of this H-bridge circuit we can control the rotation of a motor, and better yet, if we...
-
Design to control 7 segment display with switches
One way to connect a 7-segment display is using cables and switches.In order to form a number you wi...
-
Wireless control for motor dc
It is a pair of PCBs that allow transmitting a signal that is sent through 4 buttons and received by...
-
-
AEL-2011 Power Supply Module
321 0 1 -
AEL-2011 50W Power Amplifier
295 0 1 -
-
-
Custom Mechanical Keyboard
564 0 0 -
Tester for Touch Screen Digitizer without using microcontroller
229 2 2 -
Audio reactive glow LED wristband/bracelet with NFC / RFID-Tags
235 0 1 -
-
-







