Classroom Occupancy Counter with Live Display is a deliberately scoped, fully buildable mini-project that answers a question every department asks: how many people are inside that room right now? Labs are capped by bench strength, exam halls by seating, and reading halls by safety norms — yet the number on duty is maintained by guesswork or a register nobody updates.
The unit mounts two IR reflective sensor modules across the door frame, a few centimetres apart. An Arduino Uno watches the two beams; because a person entering breaks the outer beam before the inner one, and a person leaving breaks them in the reverse order, the firmware's small state machine decides direction from the sequence of beam breaks, not from a single trip — so it can tell entering from leaving. A 16x2 I2C LCD by the door shows OCC 47/60 in real time; when the count reaches the room's capacity, a buzzer and red LED signal that the room is full, and a green LED marks safe occupancy. Every entry and exit event is sent over USB serial to a Python (pyserial) logger that timestamps it with the PC clock and appends to a CSV file; a small report script summarises a week's footfall per classroom.
The engineering is honest and achievable: sensor tuning, debounce timing, an order-detecting state machine, non-volatile count storage, and a documented walk-trial that measures how accurate the unit really is. Everything uses parts already sitting in most college component stores.
- Relevant for
- Tamil Nadu
- Level
- Beginner · 12 weeks · team of 3
- Common at
- Anna University, Chennai, Visvesvaraya Technological University, Jawaharlal Nehru Technological University Hyderabad
- Updated
- Nov 2026