Coding for Kids

Energy Saver Classroom: Fun Arduino STEM Project (2026)

Energy Saver Classroom: Fun Arduino STEM Project (2026)

Energy Saver Classroom: Fun Arduino STEM Project (2026)

Overview of Energy Saver Classroom : A Simple Sensor-Based Electronics Project 

 

Energy Saver Classroom is a simple sensor-based electronics project that helps reduce unnecessary electricity use in classrooms. A PIR motion sensor detects whether a person is present. When movement is detected, an LED automatically turns ON. When no movement is detected for a selected period, the LED turns OFF. The Energy Saver Classroom project introduces students to sensors, LEDs, input and output devices, conditional logic, automation, and energy conservation.

Materials Required for Energy Saver Classroom

Component Quantity Purpose
Arduino Uno/Nano 1 Main controller
PIR Motion Sensor 1 Detects movement
LED 1–2 Represents classroom light
220Ω resistor 1–2 Protects LED
Breadboard 1 Circuit assembly
Jumper wires Several Connections
USB cable 1 Power and programming
Computer/Laptop 1 Arduino programming
Optional buzzer 1 Alert/feedback
Cardboard 1 Classroom model

Energy Saver Classroom: Fun Arduino STEM Project (2026)

Working Principle of Energy Saver Classroom

The project uses three main stages:

  • Input → PIR Motion Sensor
  • Controller → Arduino
  • Output → LED

When a student enters the classroom, the PIR sensor detects movement and sends a signal to the Arduino. If motion is detected, the LED turns ON. If no motion is detected for the selected time, the LED turns OFF. The process continues while the Energy Saver system is powered.

Energy Saver Classroom: Fun Arduino STEM Project (2026)

Detailed Step-by-Step Procedure to build the Energy Saver Classroom

Step 1: Prepare the Classroom Model

First, create a small classroom model using cardboard.

  1. Take a piece of cardboard for the base. 
  2. Make four walls around the base. 
  3. Create a small door at the front of the classroom. 
  4. Add small desks and chairs using cardboard or recycled materials. 
  5. Make a small teacher’s table. 
  6. Mark a suitable location for the classroom light. 
  7. Make a small hole in the ceiling or roof where the LED can be placed. 
  8. Place the PIR motion sensor near the entrance. 

Step 2: Understand the Three Main Parts

Before connecting the circuit, identify the three important parts:

PIR Sensor → Arduino → LED

The PIR sensor is the input device.

The Arduino is the controller.

The LED is the output device.

The basic idea is:

Movement → Sensor detects movement → Arduino processes the signal → LED turns ON

Step 3: Prepare the PIR Motion Sensor

Take the PIR motion sensor and identify its three pins.

Most common PIR modules have:

  • VCC 
  • OUT 
  • GND 

The sensor needs power from the Arduino.

Connect:

PIR VCC  → Arduino 5V

PIR GND  → Arduino GND

PIR OUT  → Arduino Digital Pin 2

The OUT pin is the important signal pin. It tells the Arduino whether motion has been detected.

Step 4: Prepare the LED Circuit

Take one LED to represent the classroom ceiling light.

An LED has two terminals:

  • Longer leg → Positive 
  • Shorter leg → Negative 

Connect the LED through a 220Ω resistor to protect it.

For example:

Arduino Pin 8

      ↓

   220Ω Resistor

      ↓

     LED

      ↓

    GND

Do not connect the LED directly to the Arduino output without a suitable resistor.

Step 5: Make the Complete Energy saver Circuit

Now combine the PIR sensor and LED circuit.

The connections can be arranged as follows:

Component Connection
PIR VCC Arduino 5V
PIR GND Arduino GND
PIR OUT Arduino Pin 2
LED positive Arduino Pin 8 through 220Ω resistor
LED negative Arduino GND

Make sure all connections are firmly inserted into the breadboard.

Step 6: Connect the Arduino to the Computer

Connect the Arduino to a computer using a USB cable.

  1. Connect the USB cable to the Arduino. 
  2. Connect the other end to the computer. 
  3. Open the Arduino programming software. 
  4. Select the appropriate Arduino board. 
  5. Select the correct USB/COM port. 
  6. Create a new program. 

The Arduino will now be ready to receive the program.

Step 7: Create the Sensor and LED Variables

At the beginning of the program, define which Arduino pins are being used.

int pirSensor = 2;

int classroomLight = 8;

Here:

  • pirSensor represents the PIR sensor. 
  • classroomLight represents the LED. 

This makes the program easier for students to understand and modify.



void setup() {
  pinMode(pirSensor, INPUT);
  pinMode(classroomLight, OUTPUT);
}

void loop() {

  int motion = digitalRead(pirSensor);

  if (motion == HIGH) {
    digitalWrite(classroomLight, HIGH);
  }
  else {
    delay(5000);
    digitalWrite(classroomLight, LOW);
  }
}

Step 8: Set the Input and Output Pins

Inside the setup() function, tell the Arduino how each component will be used.

void setup() {

  pinMode(pirSensor, INPUT);

  pinMode(classroomLight, OUTPUT);

}

The PIR sensor is an INPUT because it sends information to the Arduino.

The LED is an OUTPUT because the Arduino controls it.

Step 9: Read the PIR Sensor

Inside the loop() function, continuously read the PIR sensor.

int motion = digitalRead(pirSensor);

The Arduino stores the sensor’s current state in the variable motion.

The sensor will normally provide a digital signal indicating whether movement has been detected.

Step 10: Create the Motion Detection Condition

Now tell the Arduino what to do when motion is detected.

if (motion == HIGH) {

    digitalWrite(classroomLight, HIGH);

}

This means:

If the PIR sensor detects movement, turn the classroom light ON.

The LED will represent the classroom light.

Step 11: Turn the Light OFF When the Room Is Empty

Now create the second condition.

else {

    delay(5000);

    digitalWrite(classroomLight, LOW);

}

If motion is not detected, the Arduino waits for the selected time.

In this demonstration, the waiting time is 5 seconds.

After that, the LED turns OFF.

This represents the classroom light switching off when nobody is present.

Step 12: Upload the Energy saver Program

After entering the complete program:

  1. Check the code for errors. 
  2. Click Verify/Compile. 
  3. Correct any errors if they appear. 
  4. Click Upload. 
  5. Wait until the upload is completed. 
  6. The Arduino will start running the program. 

Step 13: Test the Classroom Light

Now test the system.

Stand away from the PIR sensor and allow the system to remain idle.

Then walk toward the classroom entrance.

Observe what happens:

Student enters

      ↓

PIR detects movement

      ↓

Arduino receives signal

      ↓

LED turns ON

The LED should illuminate.

Step 14: Test the Automatic OFF Function

After the LED turns ON, stop moving in front of the sensor.

Wait for the programmed delay.

After approximately 5 seconds without detected motion:

No movement

      ↓

Waiting period

      ↓

LED turns OFF

This demonstrates the energy-saving feature.

Step 15: Test Multiple Entries

Repeat the experiment several times.

Try:

  1. Walk into the classroom. 
  2. Check whether the light turns ON. 
  3. Walk away. 
  4. Wait for the light to turn OFF. 
  5. Walk back toward the sensor. 
  6. Check whether the light turns ON again. 

The system should repeat this process automatically.

Step 16: Test Different Positions

Move around different areas in front of the PIR sensor.

Try:

  • Walking directly toward the sensor. 
  • Walking from the left. 
  • Walking from the right. 
  • Standing near the classroom door. 
  • Moving away from the sensor. 

Observe the sensor’s detection area.

This helps students understand that sensors have a limited detection range.

Step 17: Identify and Fix Problems

If the LED does not turn ON, check:

  • Is the Arduino powered? 
  • Is the PIR sensor connected correctly? 
  • Is the PIR OUT connected to Pin 2? 
  • Is the LED connected correctly? 
  • Is the resistor connected? 
  • Is the LED connected to the correct Arduino pin? 
  • Has the program been uploaded successfully? 

If the LED stays ON continuously, check the PIR sensor’s position and allow it some time to stabilize after powering up.

Step 18: Improve the Classroom Model

Once the basic system works, improve the physical model.

Students can add:

  • More desks 
  • Windows 
  • Classroom board 
  • Teacher’s table 
  • School name 
  • Ceiling 
  • Multiple LED lights 
  • A miniature student 
  • A classroom door 

The PIR sensor can be positioned near the entrance so the model clearly demonstrates automatic classroom lighting.

Step 19: Add a Second Classroom Light

For an advanced version, add another LED.

For example:

PIR Sensor

     ↓

  Arduino

   ↙   ↘

LED 1   LED 2

Both LEDs can represent different classroom lights.

Students can experiment with controlling both lights together.

Step 20: Add an LDR for Daylight Detection

The project can be made more intelligent by adding an LDR (Light Dependent Resistor).

Now the system can consider both movement and surrounding light.

For example:

              ┌── PIR Sensor ──┐

              │                ↓

Student → Movement        Arduino

                               ↓

Daylight → LDR ───────────────→ Decision

                               ↓

                         Classroom LED

The system could be designed so that the light turns ON only when:

A person is present AND the room is dark.

This is a much better representation of an actual energy-saving system.

Complete Basic Program for Energy Saver Classroom

int pirSensor = 2;

int classroomLight = 8;

void setup() {

  pinMode(pirSensor, INPUT);

  pinMode(classroomLight, OUTPUT);

}

void loop() {

  int motion = digitalRead(pirSensor);

  if (motion == HIGH) {

    digitalWrite(classroomLight, HIGH);

  }

  else {

    delay(5000);

    digitalWrite(classroomLight, LOW);

  }

}

Energy Saver Classroom: Fun Arduino STEM Project (2026)

Suggested Variables

Variable Purpose
pirSensor Stores the PIR sensor pin
classroomLight Stores the LED pin
motion Stores whether movement is detected

Expected Output

The final Energy Saver Classroom model shows a miniature classroom with an automatic lighting system. When a student enters the classroom, motion is detected and the light turns ON. When the classroom remains empty, the light turns OFF. This demonstrates how an electronic system can automatically control lighting and help prevent unnecessary energy consumption. Energy Saver Classroom: Fun Arduino STEM Project (2026)

Applications of Energy Saver 

  • Classrooms
  • School corridors
  • Libraries
  • Washrooms
  • Staircases
  • Store rooms
  • Offices
  • Home rooms
  • Parking areas
  • Energy-use display
  • Automatic brightness control
  • Automatic curtain control Energy Saver Classroom: Fun Arduino STEM Project (2026)

Conclusion

Energy Saver Classroom is a practical electronics project that allows Grade 5–7 students to understand how sensors and controllers can solve everyday problems. Students learn how an electronic system can detect movement, process sensor input, make decisions, control an output, automate a task, and reduce unnecessary energy usage. Energy Saver Classroom: Fun Arduino STEM Project (2026)

FAQs

1. What is the Energy Saver Classroom project?

Energy Saver Classroom is a sensor-based electronics project that uses a PIR motion sensor, Arduino and LED to demonstrate automatic classroom lighting.

2. Which sensor is used in the Energy Saver project?

The project uses a PIR motion sensor to detect movement.

3. What does the PIR sensor do?

It detects movement caused by people or other warm objects moving within its detection area.

4. Why is an Arduino used?

The Arduino reads the sensor signal and controls the LED according to the programmed conditions.

5. Can this Energy Saver project control a real classroom light?

The school demonstration should use a low-voltage LED model. Controlling household AC lighting requires properly rated hardware and adult/professional supervision.

.

 

Real Projects, Real Results

From hands-on learning to competition wins—see what Chitti students achieve

Find a class near you

Pick your city, district or county. Each page has local class times, kit shipping notes, and a trial button for families in that place.

India & US cities

India states

United States states