Power the classroom.Not the emptiness.
EcoSwitch is a low-cost, camera-free classroom energy management system that combines PIR motion sensing with 24 GHz mmWave presence detection to control electrical loads zone by zone.
Open PDF in a new tabA serious, low-cost, experimental smart-classroom controller.
Lights and fans in classrooms, labs and offices are often left running in empty rooms. PIR sensors are cheap but respond to movement, so they can switch off on someone reading or writing an exam. Cameras avoid that but cost more and raise privacy concerns.
EcoSwitch is a low-cost, offline controller. An ESP32-S3 reads a PIR sensor and a 24 GHz mmWave presence sensor in each of three zones, and turns a zone's loads off only after both sensors have reported that zone clear for a set time. The team is building a three-zone, low-voltage (5 V DC) prototype with an LED light indicator and a DC motor/fan per zone, then testing hybrid against PIR-only and mmWave-only sensing on false-vacancy rate, false-occupancy time, response time and energy saved.
How to read the numbers on this site
Collected from the prototype or a real room. Nothing on this page is in this category yet.
An input chosen for the scenario model, to be verified by an audit.
A claim the experiments are designed to test.
A goal or target, not a prediction or a result.
Scenario estimates Scenario modelNot yet measured
Objectives and scope
- Estimate waste with a transparent, measured-where-possible model.
- Build a three-zone prototype that controls a light indicator and a fan per zone from hybrid detection.
- Compare PIR-only, mmWave-only and hybrid sensing.
- Measure false vacancy, false occupancy, response time and energy saved.
- Document the design for a larger deployment.
- One bench-scale classroom model with three zones
- Per zone: one LED indicator and one 5 V DC motor/fan
- Offline local decisions on an ESP32-S3
- Per-zone manual override
- OLED status display and buzzer feedback
- Scenario tests and energy calculation
- Switching building mains (unless under qualified supervision)
- AC integration
- People counting
- Cloud dashboards
- Machine learning
- Whole-institute installation
Empty rooms keep drawing power.
Buildings use a large share of electricity. Schools run on fixed timetables with gaps (between lectures, breaks, after practicals, early and late hours) where lights and fans stay on because switching off is nobody's explicit job Hypothesis: to be validated by audit
Surveys of occupancy sensing (Nguyen & Aiello 2013; Dong et al. 2019; Chen et al. 2018) cover cost, accuracy, privacy and installation trade-offs. A lighting-control meta-analysis (Williams et al. 2012) found roughly a quarter average lighting savings, mostly in commercial buildings abroad, so it cannot be applied directly to an Indian campus.
Existing solutions
Why they are not more common Hypotheses to test with the college electrician
- Tariffs and budgets make payback unattractive unless waste is high.
- Retrofits need wiring changes and trained labour.
- PIR-only systems can switch off on seated people, so users bypass them.
- Split incentive: whoever pays the bill is not who chooses or uses the equipment.
- Cameras raise privacy concerns and need more processing.
Two sensors with different blind spots.
Table 4 compares sensing technologies. Relevance ratings are the team's judgement for this application. Filter by minimum stars.
The hybrid approach
A PIR sensor reacts to infrared change from moving warm bodies. A 24 GHz mmWave presence/motion sensor reports reflected-energy changes; exact range and detection performance depend on module configuration, placement and calibration Confirm against the S3KM1110 datasheet
See how each sensor sees the room
Choose what the person is doing. These are conceptual diagrams of sensing principles, not measured coverage.
PIR: passive infrared
mmWave: 24 GHz radar
24 GHz mmWave presence/motion sensor; exact range and detection performance depend on module configuration, placement and calibration.
What can go wrong with mmWave
None of these is a reason to avoid the sensor; each is a test case in the experimental matrix.
An empty zone does not force the entire classroom to switch off.
The classroom is split into three independent zones. Each zone has its own mmWave and PIR pair, its own timer, its own light indicator and fan, and its own manual override. The ESP32-S3 evaluates them separately.
Plan view of a stylised classroom model. Field shapes and positions are conceptual, not measured coverage. This illustration is linked to the simulator, so toggling sensors there changes the zones here.
Live zone status
One controller, three zones, one switching pattern.
Everything below describes the same prototype: an ESP32-S3, three 24 GHz mmWave sensors (S3KM1110 modules), three PIR sensors, three LED light indicators and three 5 V DC motor/fan loads switched by logic-level N-channel MOSFETs.
Per-zone signal chain
Workflow: read sensors, classify each zone as OCCUPIED, GRACE or VACANT (or MANUAL OVERRIDE / DEGRADED), switch that zone's loads, show state, and log events for energy and accuracy analysis.
Power electronics: switching a 5 V motor with a MOSFET
Connections to build
- Motor positive to the 5 V supply.
- Motor negative to the MOSFET drain.
- MOSFET source to GND.
- 10 kΩ resistor from the gate to GND (gate pulldown).
- Flyback diode across the motor terminals, cathode to +5 V and anode to the drain.
- Controller GND and load supply GND joined: a common ground.
- ESP32-S3 GPIO connects to the MOSFET gate only.
Part selection: choose a MOSFET whose on-resistance is specified at a 3.3 V gate voltage and whose current rating comfortably exceeds the motor's start-up current. Size the 5 V supply for all three motors starting together.
Known engineering challenges
Every component, and why it is there.
Fourteen parts make up the prototype. Hover or focus a card to lift it; filter by role.
Bill of materials
Indicative costs are not yet confirmed for the three-zone design. The original single-zone estimate in the project plan was ₹2,500–4,000; the total for three zones will be recalculated from the final parts list.
Connection map
Pin numbers are intentionally left to be filled in from the built prototype, so this page never disagrees with the firmware.
Why these technologies
Energy loss calculator.
Annual waste = rooms × load (kW) × vacant-but-ON hours per day × 220 days. Pick a scenario or drag the sliders.
Each control node is assumed to draw 1.5 W continuously. Tariff ₹8/kWh, deployment ₹3,000 per room, 0.75 kg CO₂/kWh. These are assumptions to verify, not measurements, and the real standby power of the three-zone controller is listed under Prototype Measurements as not yet measured.
Table 1: Scenario assumptions
Table 2: Estimated annual loss (lights and fans)
Table 3: Recoverable savings, net of node consumption
Prototype Measurements
These cards stay empty until the experiments are run. Nothing here is estimated, simulated or copied from the scenario model. To fill them in, edit the MEASUREMENTS list at the top of the script.
Try the three-zone controller.
Switch the sensing mode, then give each zone its own inputs. Simulate a person who sits still: PIR drops out, the mmWave sensor may keep the zone occupied. Zones never affect each other.
Sensing mode
State machine
Solid highlight: the zone's current state. Dashed outline: the automatic state running underneath a manual or degraded mode.
Recent transitions
Table 7: Controller states
Tunable parameters
The research question.
Core question
Can a low-cost, camera-free hybrid PIR + 24 GHz mmWave system improve zone-level occupancy detection and reduce unnecessary classroom energy consumption?
Where the novelty is
Literature and research gap
Comparison with existing approaches
Experimental matrix.
Three configurations (PIR-only, mmWave-only, hybrid) under identical conditions, with at least 20 trials per scenario per configuration (to fix with the guide). No results have been collected yet, so every cell is a placeholder.
Metrics by configuration
Metric definitions
Expected results Hypotheses
- Hybrid sensing is designed to lose seated-still occupants less often than PIR-only.
- Hybrid may have more extra ON time than PIR-only if mmWave triggers on fans.
- The prototype shows how the scenario-model estimates become a measurable test.
Possible applications: classrooms, labs, seminar rooms, offices, libraries, hostel common areas, restrooms and corridors, each with its own timeout.
Feasibility and 12-week plan.
Timeline
Team roles
- Hardware and circuit
- Firmware and fusion logic
- Testing and data analysis
- Research, energy audit and economics
- Enclosure, integration, documentation and demo
Safety, privacy and ethics.
The student prototype runs from a low-voltage supply (5 V DC loads). It does not switch live 230 V mains.
Any building-mains implementation requires appropriately rated hardware, protection and qualified electrical supervision. Students do not wire, open or test anything connected to building mains.
Risk register
Limitations: one test room will not generalise to all rooms; no AC control; costs and tariffs are estimates; all sensor performance statements depend on module configuration, placement and calibration.
Future improvements
A modest, testable design for a real problem.
EcoSwitch tackles electricity wasted on empty rooms with a three-zone, low-voltage prototype. PIR brings low cost and speed; 24 GHz mmWave sensing adds awareness during low-motion periods, with no cameras. The scenario model shows that value depends on actual waste, so the project starts with measurement and reports honestly, including what has not been measured yet.