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

ESP32 and SIM900A Based Smart Home Automation with Wi-Fi and GSM Control

View and Edit Project In Cirkit DesignerImage of ESP32 and SIM900A Based Smart Home Automation with Wi-Fi and GSM Control

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes various components such as relays, switches, an ESP32 microcontroller, an AC source, and a SIM900A module. The circuit is designed to control multiple relays using the ESP32 microcontroller, with inputs from flush switches and power supplied by an AC source and a DC converter.

Component List

  1. Relay 4 Channel 5v

    • Description: A relay module with 4 channels, each capable of switching high voltage devices.
    • Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
  2. actodc

    • Description: A DC converter module.
    • Pins: 12v, -, 5v, live, neutral
  3. Flush Switch

    • Description: A simple switch with two pins.
    • Pins: GND, VCC
  4. ESP32 (30 pin)

    • Description: A microcontroller with 30 pins, used for various control and communication tasks.
    • 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
  5. AC source

    • Description: An AC power source.
    • Pins: +, -
  6. SIM900A

    • Description: A GSM module for communication.
    • Pins: GND, DB9-3 (RXD), DB9-2 (TXD), 5V, 3VR, 5VR, 3VT, 5VT, VCC, Ring, RESTART, RESET, STATUS
  7. Comment

    • Description: A placeholder component for comments.
    • Pins: None

Wiring Details

Relay 4 Channel 5v

actodc

Flush Switch

ESP32 (30 pin)

AC source

SIM900A

Code Documentation

ESP32 (30 pin)

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

}

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

}

This code is a basic template for the ESP32 microcontroller. The setup function is called once when the microcontroller starts, and the loop function runs continuously. You can add your specific logic to control the relays and handle inputs from the flush switches in these functions.