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

Arduino and ESP32-Based Smart Home Monitoring System with GSM and Battery Backup

View and Edit Project In Cirkit DesignerImage of Arduino and ESP32-Based Smart Home Monitoring System with GSM and Battery Backup

Circuit Documentation

Summary

This circuit integrates various sensors and modules with an Arduino UNO and an ESP32 microcontroller. The system includes voltage, current, temperature, and flame sensors, a GSM module, a relay module, and an LCD display. The circuit is designed to monitor environmental parameters and control a fan based on sensor inputs.

Component List

  1. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  2. Voltage Sensor

    • Description: Measures voltage levels.
    • Pins: Ground, Phase, Vcc, Out, Gnd
  3. Current Sensor 5A

    • Description: Measures current up to 5A.
    • Pins: 1, 2, GND, OUT, VCC
  4. Temperature Sensor (LM35)

    • Description: Measures temperature.
    • Pins: +Vs, Vout, GND
  5. ESP32 (30 pin)

    • Description: A low-power system on a chip microcontroller with integrated Wi-Fi and dual-mode Bluetooth.
    • 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
  6. GSM SIM900

    • Description: A GSM module for communication.
    • Pins: A5, A4, A3, A2, A1, A0, 5V, GND, 3.3V, RESET, D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, AREF
  7. Relay module 5v-30v

    • Description: A relay module for switching.
    • Pins: common contact, normally open, normally closed, trigger, V-, V+
  8. Fan

    • Description: A fan for cooling.
    • Pins: GND, 5V
  9. 18650 Li-ion Battery x 2

    • Description: Power source.
    • Pins: +, -
  10. Potentiometer

    • Description: A variable resistor.
    • Pins: GND, Output, VCC
  11. LCD Display 20x4

    • Description: A 20x4 character LCD display.
    • Pins: LEDK, LEDA, DB7, DB6, DB5, DB4, DB3, DB2, DB1, DB0, E, RW, RS, VO, VDD, VSS
  12. KY-026 Flame Sensor

    • Description: Detects flame.
    • Pins: A0, GND, VCC, D0

Wiring Details

Arduino UNO

ESP32 (30 pin)

Voltage Sensor

Current Sensor 5A

Temperature Sensor (LM35)

KY-026 Flame Sensor

LCD Display 20x4

Relay module 5v-30v

GSM SIM900

Fan

18650 Li-ion Battery x 2

Documented Code

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Additional Documentation

// No additional documentation provided.

This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the microcontroller.