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

ESP32-Based Smart Environmental Control System with PIR and Temperature Sensing

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Environmental Control System with PIR and Temperature Sensing

Circuit Documentation

Summary

This document provides a detailed overview of a circuit designed to interface an ESP32 microcontroller with various sensors, a relay module, a triac, a display module, and LEDs. The circuit is capable of monitoring temperature and motion, controlling a 220V fan, and displaying information on an OLED display. The ESP32 microcontroller is the central processing unit that manages inputs from the sensors and controls outputs like the relay and the fan through the triac.

Component List

Microcontroller

Sensors

Actuators

Display

Indicators

Passive Components

Power Supply

Interface Components

Wiring Details

ESP32 (30 pin)

PIR sensor

Temperature Sensor (LM35)

2 channel relay module

BT139 600 (Triac)

220 fan

1.3 OLED Display Module

LEDs (Red, Green, Orange)

Resistor (220 Ohm)

AC wall plug point

M281 Optocoupler relay

12v power supply

Documented Code

The code for the ESP32 microcontroller is not provided in the input. However, the code would typically include initialization of GPIO pins, setup of Wi-Fi or Bluetooth if needed, reading from the temperature sensor and PIR sensors, controlling the relay module and triac, and updating the OLED display based on sensor readings and system status.

// Code would be placed here if provided.

Please note that the actual implementation of the code would depend on the specific requirements of the circuit's functionality and the logic needed to control the components based on sensor inputs.