Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32-Based Smart Home Safety System with Wi-Fi and Telegram Alerts

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Home Safety System with Wi-Fi and Telegram Alerts

Circuit Documentation

Summary

This circuit is designed to monitor environmental conditions and detect hazards such as gas leaks, smoke, flames, and motion. It uses an ESP32 microcontroller to read data from various sensors and display the information on a 16x2 I2C LCD. The system also sends alerts via Telegram and activates a buzzer, LEDs, a servo, and a fan in case of danger.

Component List

  1. ESP32 Devkit V1

    • Description: Microcontroller
    • Pins: 3V3, GND, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, VIN
  2. Resistor (200 Ohms)

    • Description: Resistor
    • Pins: pin1, pin2
  3. Buzzer

    • Description: Buzzer
    • Pins: PIN, GND
  4. Servo

    • Description: Servo Motor
    • Pins: GND, VCC, PWM
  5. Fan

    • Description: Cooling Fan
    • Pins: GND, 5V
  6. Sensor SHT113 Flame

    • Description: Flame Sensor
    • Pins: A0, D0, GND, VCC
  7. MB102 Breadboard Power Supply Module 3.3V/5V

    • Description: Power Supply Module
    • Pins: VCC, GND, 3.3V, 5V
  8. MQ-6 SENSOR LPG GAS

    • Description: Gas Sensor
    • Pins: VCC, GND, A0, D0
  9. L298N DC Motor Driver

    • Description: Motor Driver
    • Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
  10. Battery 12V

    • Description: Power Source
    • Pins: +, -
  11. MQ-2

    • Description: Smoke Sensor
    • Pins: GND, VCC, ANALOG, Digital
  12. IR Sensor

    • Description: Infrared Sensor
    • Pins: out, gnd, vcc
  13. PIR Sensor

    • Description: Motion Sensor
    • Pins: VDD, SIG, GND
  14. 16x2 I2C LCD

    • Description: LCD Display
    • Pins: GND, VCC, SDA, SCL
  15. LED: Two Pin (red)

    • Description: Red LED
    • Pins: cathode, anode
  16. LED: Two Pin (green)

    • Description: Green LED
    • Pins: cathode, anode
  17. KY-015 DHT11

    • Description: Temperature and Humidity Sensor
    • Pins: 5V, S, GND

Wiring Details

ESP32 Devkit V1

Resistor (200 Ohms)

Buzzer

Servo

Fan

Sensor SHT113 Flame

MB102 Breadboard Power Supply Module 3.3V/5V

MQ-6 SENSOR LPG GAS

L298N DC Motor Driver

Battery 12V

MQ-2

IR Sensor

PIR Sensor

16x2 I2C LCD