Built to order

Automatic Power Saver using PIR Sensor for Classrooms

This project builds an automatic power saver for classrooms that switches fans and tube lights off when the room is empty. An HC-SR501 PIR motion sensor watches the room, an Arduino controller holds the loads on while movement is seen, and after an adjustable 5–15 minute no-motion timeout a relay switches the loads off; a manual override keeps them on for exams and meetings. A 16×2 LCD shows room status, the timeout and an estimated energy-saved counter. Suitable for B.E./B.Tech final-year projects in Electrical Engineering and Electronics & Telecommunication.

Chat on WhatsApp — get a quotation

Electrical Arduino UnoArduino IDE16x2 LCD displayHC-SR501 PIR sensor2-channel relay module5 V DC power supplyBreadboard jumper wires230 V AC mains switchingHardware
Automatic Power Saver using PIR Sensor for Classrooms — project thumbnail preview
More project photos (2)

The problem

An automatic power saver using a PIR sensor for classrooms is a mains load controller that switches fans and tube lights off when nobody is in the room, and switches them on the moment movement is detected. In colleges, fans and lights stay on in empty classrooms for hours because the last person out forgets the switches, and the waste adds up across dozens of rooms every day. This project fixes that with an HC-SR501 PIR motion sensor that watches the room, an Arduino controller, and a relay module that cuts power to the loads after an adjustable 5–15 minute no-motion timeout. A manual override switch keeps the loads on for exams and meetings, and a 16×2 LCD shows the room status, the timeout and an estimated energy-saved counter. The build covers sensing, low-voltage control logic, relay isolation and safe mains switching, and the energy saved is always an estimate from load ratings and off-time, never a measured saving.

SYSTEM FLOW

5 components 4 connections

Live flow
Drag to explore
100%
sensorPIR motion sensor

The HC-SR501 watches the classroom for movement.

Follow the working sequence

How it works

The automatic power saver for classrooms works as one continuous loop from sensing to switching: the HC-SR501 PIR sensor watches the room and, after its approximately 30–60 second warm-up settle time, drives its output to 3.3 V DC whenever it detects a person moving within its approximately 3–7 m range. The Arduino reads that output and energises the two relay channels, so the fans and tube lights come on and the LCD shows the room as occupied. While the room stays in use, every new movement restarts the adjustable 5–15 minute no-motion countdown, because the sensor runs in repeatable trigger mode. When nobody has moved for the full timeout, the Arduino de-energises the relays, the loads switch off, and the LCD changes to EMPTY while adding the off-time to the estimated energy-saved counter. A manual override switch bypasses the sensor entirely and forces both channels on for exams and meetings.

  1. On power-up the HC-SR501 PIR sensor needs an approximately 30–60 second warm-up settle time, during which its output is unreliable and the Arduino keeps the loads off.
  2. Once settled, the sensor drives its output to 3.3 V DC whenever it detects movement within its approximately 3–7 m adjustable range.
  3. The Arduino reads the sensor output and energises the 2-channel relay module, switching on the fans on one channel and the tube lights on the other.
  4. The 16×2 LCD shows the room as OCCUPIED together with the configured 5–15 minute timeout.
  5. Every new movement restarts the no-motion countdown, because the sensor is set to repeatable trigger mode (jumper H).
  6. If no movement is seen for the full timeout, the Arduino de-energises both relays and the fans and lights switch off.
  7. The LCD changes to EMPTY and adds the off-time, multiplied by the load ratings, to the estimated energy-saved counter.

Tech stack:

  • Arduino Uno (ATmega328P)
  • HC-SR501 PIR motion sensor
  • 2-channel relay module · 10 A · 250 V AC
  • 16×2 LCD display · I2C adapter
  • Arduino IDE · C/C++
  • 5 V DC power supply · 1 A adapter
  • Breadboard · jumper wires · toggle switch
  • 230 V AC mains loads · fans · tube lights
Parameter Value
Controller Arduino Uno (ATmega328P, 16 MHz clock)
PIR sensor HC-SR501 PIR module, BISS0001 controller
Sensor supply 4.5–20 V DC (datasheet), 5 V DC used in this build
Detection range Approximately 3–7 m (datasheet, adjustable)
Detection angle Approximately 110° (datasheet)
Sensor output 3.3 V DC HIGH on motion, 0 V DC idle (datasheet)
Quiescent current Less than 50 µA (datasheet)
Warm-up time Approximately 30–60 s after power-on (datasheet)
Block time Approximately 2.5 s after each trigger cycle (datasheet)
No-motion timeout Adjustable 5–15 min (design setting)
Relay module 2-channel, 10 A contacts at 250 V AC (datasheet rating)
Controlled loads 2 channels: 1 channel for fans, 1 channel for tube lights
Display 16×2 LCD with I2C adapter
Control supply 5 V DC, 1 A adapter (design target)
Mains supply 230 V AC, 50 Hz (Indian mains)
Energy-saved counter Estimate from load ratings × off-time (never a measured saving)

Project features

The automatic power saver for classrooms combines four capabilities that matter most: PIR occupancy sensing with an HC-SR501 sensor that watches the room across an approximately 3–7 m adjustable range, an adjustable no-motion timeout of 5–15 minutes so the loads never switch off while a class is in session, relay-switched mains control that keeps the low-voltage Arduino side fully isolated from the 230 V AC loads, and a manual override switch that forces the loads on for exams and meetings when students sit still. Around those four, the build adds a 16×2 LCD that shows room status, the timeout and an estimated energy-saved counter, plus careful handling of the sensor's 30–60 second warm-up settle time after power-on so the prototype does not switch loads on stray triggers while the sensor stabilises.

  • [PIR occupancy sensing] The HC-SR501 PIR sensor watches the room and drives its output to 3.3 V DC whenever it detects movement, with an approximately 3–7 m adjustable detection range and an approximately 110° detection angle (datasheet values).
  • [Adjustable no-motion timeout] The Arduino waits for an adjustable 5–15 minute no-motion period before switching the loads off, so a brief pause in movement never darkens a live classroom.
  • [Relay-switched mains loads] A 2-channel relay module switches the fans on one channel and the tube lights on the other, keeping the 5 V DC control side electrically isolated from the 230 V AC mains side.
  • [Manual override switch] A toggle switch forces both load channels on regardless of the sensor, for exams, meetings and quiet study sessions where students sit still for long stretches.
  • [LCD status display] A 16×2 LCD shows the room status (OCCUPIED or EMPTY), the configured timeout and the estimated energy saved so far.
  • [Estimated energy-saved counter] The Arduino adds load-rating × off-time to a running counter whenever the loads are off, and the LCD labels the figure as an estimate — it is never presented as a measured saving.
  • [Warm-up and retrigger handling] The firmware waits out the sensor's approximately 30–60 second warm-up settle time after power-on and uses the sensor's repeatable trigger mode, so every new movement restarts the timeout.

What is included

  • Working prototype: Arduino, HC-SR501 PIR sensor, 2-channel relay module, 16×2 LCD, breadboard wiring and override switch
  • Arduino firmware source code with timeout and sensor settings clearly marked
  • Circuit diagram and wiring documentation for the low-voltage and mains sides
  • Component list with ratings and sourcing notes
  • Project report PDF (background, PIR theory, methodology, results, limitations)
  • PPT presentation for final review
  • Viva Q&A preparation document (PIR sensing, relay isolation, mains safety, energy estimation)

Limitations & prerequisites

  • All mains wiring must be done and checked by a qualified person; the prototype is an academic build, not a certified electrical installation, and must never be wired into a live classroom board by a student alone.
  • The PIR sensor has blind spots: it cannot see through walls, desks or partitions, and a still-seated student may not trigger it — the override switch exists for exactly this case.
  • Ceiling fans and pets can false-trigger the sensor, so the sensor position and sensitivity need on-site adjustment.
  • The sensor needs an approximately 30–60 second warm-up settle time after power-on; its output is unreliable during that window.
  • The energy-saved figure is an estimate computed from load ratings and off-time, not a measured saving, and it changes with the actual loads connected.
  • Relay contacts are rated at 10 A at 250 V AC (datasheet); the total connected load must stay within that rating.
  • The system detects motion only: it cannot count people or detect a person who sits perfectly still.

Frequently Asked Questions

Is this project suitable for a final-year project?

Yes. It suits Electrical and Electronics & Telecommunication final-year projects because it combines sensor interfacing, microcontroller logic, relay-based mains switching and energy estimation in one working build, with clear viva topics in sensing, relay isolation, mains switching and electrical safety.

Which controller and sensor are used?

An Arduino Uno (ATmega328P) reads an HC-SR501 PIR motion sensor. The sensor runs from 5 V DC, outputs 3.3 V DC on motion, and covers approximately 3–7 m at approximately 110°, so the whole control side is standard, well-documented hardware.

How much electricity does it actually save?

No fixed saving is claimed, because the saving depends on the loads and on how long rooms sit empty. As an example estimate, 4 fans at a typical 75 W each plus 4 tube lights at a typical 36 W each is 444 W, so about 2 empty hours a day gives an estimated 0.9 kWh per day.

Does it work during exams when students sit still?

Yes, through the manual override switch. A still-seated student may not trigger the PIR sensor, so flipping the override forces both load channels on for the whole exam or meeting, and switching it back afterwards returns control to the sensor.

Is the mains wiring safe for a student to build?

The low-voltage side is safe to build, but the mains side is not a student job. All 230 V AC wiring must be done and checked by a qualified person, and the prototype is an academic build, not a certified installation.

Can the timeout and sensor range be changed?

Yes. The no-motion timeout is adjustable from 5–15 minutes in the firmware, and the sensor's own sensitivity and delay potentiometers adjust its approximately 3–7 m range and its output hold time, so the build is tuned to the actual classroom.

Components & software requirements
  • Arduino Uno (ATmega328P)
  • HC-SR501 PIR motion sensor
  • 2-channel relay module · 10 A · 250 V AC
  • 16×2 LCD display · I2C adapter
  • Arduino IDE · C/C++
  • 5 V DC power supply · 1 A adapter
  • Breadboard · jumper wires · toggle switch
  • 230 V AC mains loads · fans · tube lights
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation