Project · B.Tech

Ultrasonic Occupancy Counter

A device that counts people entering and leaving a room with ultrasonic sensing, so lights and machines can be switched off when the space is empty.

EmbeddedArduinoGreen computing
Context
B.Tech project
Controller
Arduino
Sensing
Ultrasonic
Goal
Save energy

Overview

Rooms are often left lit and powered long after everyone has gone. Across a campus or an office, that waste adds up.

This counter keeps track of how many people are in a room by watching the doorway with ultrasonic sensors. When the count drops to zero, the room is empty and the loads in it can be switched off. It is a simple, low-cost idea in the spirit of green computing.

See it in action

How it works

Stage 1Ultrasonic sensorsWatch the doorway
Stage 2ArduinoDetects each person passing and the direction
Stage 3Live countKeeps track of how many are inside
Stage 4Energy decisionWhen empty, switch loads off

From a person in the doorway to an energy-saving decision.

How I did it

1

Choosing the sensing

Chose ultrasonic sensing to detect people at the doorway without cameras.

2

Wiring the hardware

Connected the sensors to the Arduino and mounted them at the entrance.

3

Writing the counting logic

Programmed the Arduino to register each person passing and whether they were entering or leaving.

4

Testing and tuning

Tested with people walking through and tuned the detection to avoid miscounts.

What mattered most

Direction, not just presence

Counting correctly means knowing whether someone came in or went out.

False triggers

Doors, bags and people pausing in the doorway can confuse a naive counter.

Privacy

Ultrasonic sensing counts people without recording who they are.

Low cost

A device meant to save energy should itself be cheap and frugal.

Tools and technologies

ArduinoUltrasonic sensorsEmbedded CGreen computing