Project-Report https://drive.google.com/file/d/18vexKBdzoGaN8CIMzaQ4-NZs2poVH5wS/view?usp=drive_link
Occupancy-based lighting + PID HVAC temperature control with a 24-hour MATLAB/Octave simulation, energy (kWh) and cost reporting.
This project simulates an automated energy management system designed to optimize building lighting and HVAC energy usage while maintaining comfort. Lighting is enabled only during occupied hours, and HVAC power is controlled by a PID controller to regulate room temperature to a 22°C setpoint.
- Building automation logic (occupancy-driven actuation)
- Feedback control (PID) applied to temperature regulation
- End-to-end reporting: hourly power traces, temperature trace, and daily energy/cost summary
- Simulation horizon: 24 hours (hourly steps)
- Ambient temperature: 30°C
- Desired temperature: 22°C
- Lighting power: 100 W (max)
- HVAC power: up to 1500 W
- PID gains: Kp = 20, Ki = 5, Kd = 2
- Occupancy schedule: 24-element array (1 = occupied)
The script generates:
- Occupancy vs time
- Lighting power vs time
- HVAC power + room temperature (dual-axis) with desired setpoint
- Bar chart: lighting energy, HVAC energy, total energy
It also prints a daily energy report (kWh + cost estimate) in the console.
Run: code/energy_automation_pid.m
Octave syntax is largely compatible with MATLAB.
Run: energy_automation_pid.m from the code/ folder.
code/energy_automation_pid.m— simulation + PID control + plots + energy reportreport/Energy_Automation_Project.pdf— full mini-project write-upoutputs/— exported plots (add later)
- Use smaller time steps (e.g., 1–5 minutes)
- Multi-zone thermal model (multiple rooms)
- Add disturbance models (door open, external heat gains)
- IoT pipeline (ESP32 sensors + MQTT + dashboard)