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

ESP32-Based Smart Home Safety System with GSM Alerts

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

Circuit Documentation

Summary

This circuit is designed to monitor environmental conditions using various sensors and respond to specific events. It reads temperature and humidity from a DHT11 sensor, checks for fire using a Flame sensor, and monitors LPG gas levels using an MQ-6 sensor. The readings are displayed on an LCD screen. Based on sensor inputs, the circuit controls LEDs, a servo motor, a buzzer, and a fan. Additionally, it sends alerts via a GSM module.

Component List

  1. ESP32 (30 pin)

    • Description: Microcontroller with Wi-Fi and Bluetooth capabilities.
    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
  2. LED: Two Pin (red)

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

    • Description: Green LED.
    • Pins: cathode, anode
  4. Buzzer

    • Description: Piezoelectric buzzer.
    • Pins: PIN, GND
  5. Servo

    • Description: Servo motor.
    • Pins: GND, VCC, PWM
  6. MQ-6 SENSOR LPG GAS

    • Description: LPG gas sensor.
    • Pins: VCC, GND, A0, D0
  7. Fan

    • Description: DC fan.
    • Pins: GND, 5V
  8. SIM900A

    • Description: GSM module for sending SMS alerts.
    • Pins: GND, DB9-3 (RXD), DB9-2 (TXD), 5V, 3VR, 5VR, 3VT, 5VT, VCC, Ring, RESTART, RESET, STATUS
  9. Sensor SHT113 Flame

    • Description: Flame sensor.
    • Pins: A0, D0, GND, VCC
  10. KY-015 DHT11

    • Description: Temperature and humidity sensor.
    • Pins: 5V, S, GND
  11. MB102 Breadboard Power Supply Module 3.3V/5V

    • Description: Power supply module for breadboards.
    • Pins: VCC, GND, 3.3V, 5V
  12. 16x2 I2C LCD

    • Description: LCD display with I2C interface.
    • Pins: GND, VCC, SDA, SCL

Wiring Details

ESP32 (30 pin)

LED: Two Pin (red)

LED: Two Pin (green)

Buzzer

Servo

MQ-6 SENSOR LPG GAS

Fan

SIM900A

Sensor SHT113 Flame

KY-015 DHT11

MB102 Breadboard Power Supply Module 3.3V/5V

16x2 I2C LCD

Code Documentation

/*
 * This Arduino sketch reads temperature and humidity from a DHT11 sensor