The problem
An automatic door opener removes the most-touched surface from the daily routine: the door handle. The Automatic Door Opener using PIR Sensor with Servo Motor and Arduino builds that behaviour at model scale: a passive infrared sensor watches the approach zone, an Arduino Uno interprets the signal, and a servo motor swings a model door open, then returns it after an adjustable delay. In hospitals, laboratories, offices and homes, a door that opens as a person approaches and closes itself behind them reduces contact and keeps conditioned air inside. The sensor works on first principles: its pyroelectric element sits behind a Fresnel lens divided into zones, and a moving warm body crossing zones changes the infrared pattern, which the module turns into a clean digital HIGH. That single mechanism — motion across zones, not proximity alone — is why the door opens for a person walking up and stays shut for a still room.
How it works
The chain from approaching person to swinging door has five links, and each one is visible on the prototype. The HC-SR501 PIR sensor watches the doorway through its Fresnel lens; when a warm body moves across its detection zones, the module's pyroelectric element produces a signal that its BISS0001 processor turns into a digital HIGH on the output pin. The Arduino Uno reads that pin and, on a rising edge, starts the open sequence: it writes a stepped series of PWM angles to the SG90 servo, which rotates its horn and pulls the linkage rod that swings the hinged model door open. While the door stands open, the firmware watches the sensor; every fresh detection restarts the auto-close countdown, so the door stays open as long as someone is in the approach zone. When the countdown expires with no further motion, the servo eases the door back to its closed angle and the system returns to watching the doorway.
- On power-up, the HC-SR501 warms up for 30–60 s (datasheet) while the Arduino holds the servo at the closed angle and the status LED shows the system is not yet ready.
- The PIR sensor watches the approach zone through its Fresnel lens; a person walking toward the door crosses detection zones and the module output goes HIGH (3.3 V).
- The Arduino Uno reads the sensor output on a digital pin and, on a rising edge, starts the open sequence and lights the status LED.
- The firmware steps the SG90 servo angle gradually from closed to open, and the servo horn pulls the linkage rod to swing the hinged model door to approximately 90 degrees (design target).
- While the door is open, every fresh sensor detection restarts the auto-close countdown, so the door stays open as long as someone is in the approach zone.
- When the countdown expires with no further motion, the firmware steps the servo back and the door eases to its closed angle.
- The system returns to idle, watching the doorway for the next approach, with each event recorded on the serial monitor.
Tech stack:
- Arduino Uno R3 · ATmega328P
- HC-SR501 PIR motion sensor
- SG90 micro servo motor
- Arduino IDE · C/C++ firmware
- Breadboard · jumper wiring
- 5 V DC power supply
- Plywood model door · hinges
- Servo linkage · hardware
| Parameter | Value |
|---|---|
| Controller | Arduino Uno R3 · ATmega328P at 16 MHz (datasheet) |
| PIR sensor | HC-SR501 module · BISS0001 processor (datasheet) |
| Detection range | 3–7 m adjustable (datasheet) |
| Detection angle | Less than 120° cone (datasheet) |
| Sensor hold delay | 3–300 s adjustable (datasheet) |
| Sensor warm-up | 30–60 s after power-up (datasheet) |
| Servo motor | Tower Pro SG90 · 9 g micro servo (datasheet) |
| Servo performance | 1.8 kg·cm stall torque at 4.8 V · 0.10 s per 60° no load (datasheet) |
| Door swing | Approximately 90° open angle · auto-close approximately 5 s default (design target) |
| Power supply | 5 V DC · approximately 1 A (expected) |
Project features
Three capabilities carry this build: reliable approach detection, a smooth servo-driven door swing, and a dependable auto-close that never leaves the door standing open. The HC-SR501 PIR sensor watches a cone of up to 120 degrees in front of the doorway, with its sensitivity and hold-time trimmers set for the approach distance the student actually needs, so the door opens for a person walking up and not for movement far down a corridor. The SG90 servo converts the Arduino's PWM command into a controlled swing through a metal linkage rod, and the firmware eases the horn between its closed and open angles instead of snapping the door, which protects the hinges and the servo gears. Finally, the auto-close timer counts down from the last detected motion and returns the door only when the approach zone is clear, so nobody is caught by a closing door. A status LED and serial log make every state visible during a demonstration.
- [PIR approach detection] The HC-SR501 watches the doorway through its Fresnel lens and raises a digital HIGH when a moving warm body crosses its detection zones, so the door responds to a person approaching and ignores a still room.
- [Servo-driven door swing] The SG90 servo pulls a metal linkage rod attached to the hinged model door, converting a PWM angle command into a real mechanical swing of approximately 90 degrees (design target).
- [Adjustable auto-close timer] The firmware counts down from the last detected motion and closes the door only when the approach zone is clear, with the delay set by the sensor's hold-time trimmer (3–300 s, datasheet).
- [Repeatable trigger mode] The sensor jumper is set to repeatable (H) mode, so continuous movement in the approach zone keeps refreshing the open state instead of letting the door close mid-entry.
- [Smooth eased motion] The servo angle is stepped gradually between closed and open positions, so the door swings smoothly instead of jerking, which protects the hinges and the servo gears.
- [Status LED and serial diagnostics] An onboard LED shows the door state at a glance, and the serial monitor logs each detection, open and close event for demonstration and debugging.
- [Tunable sensitivity and range] The sensor's sensitivity trimmer sets the detection distance between 3 m and 7 m (datasheet), so the approach zone can be matched to a corridor, a room entrance or a lab bench.
What is included
- Working model-door prototype: plywood door and frame, hinges, SG90 servo with linkage rod, HC-SR501 sensor and Arduino Uno, wired on a breadboard
- Complete Arduino firmware (commented): sensor read, eased servo motion, auto-close timer, LED and serial diagnostics
- Circuit diagram and wiring table for every connection
- Component list with the exact sensor, servo and board models used
- Project report PDF (background, PIR and servo theory, methodology, testing, limitations)
- PPT presentation for final review
- Viva Q&A preparation document (PIR sensing, PWM servo control, timing and linkage geometry)
Requirements
- The buyer provides a bench or table space of approximately 60 × 40 cm, a laptop with the Arduino IDE installed, a USB cable for the Arduino Uno, and a 5 V DC power outlet or USB power source for the prototype.
- No prior electronics experience is assumed: the build ships assembled and wired, with the firmware already uploaded, so the first demonstration runs from the supplied power source.
- The demonstration needs a clear approach path of approximately 2–3 m in front of the sensor, free of direct sunlight on the sensor dome and of strong draughts across the detection zone.
Timeline
- Typical build schedule is approximately 7–10 working days from order confirmation: component sourcing and frame assembly in the first 2–3 days, wiring and firmware in the next 2–3 days, then sensor tuning, linkage calibration and demonstration testing in the final 2–4 days.
- Sensor tuning and linkage calibration take the longest, because the sensitivity trimmer and the anchor point are set against the actual demonstration space rather than a nominal value.
- The report, PPT and Q&A document are prepared alongside the build and delivered with the finished prototype.
Support
- WhatsApp support during the build and the review period covers setup, the first demonstration, and answers to questions about the circuit, the firmware and the report.
- If the sensor needs re-tuning for the demonstration room, the sensitivity and hold-time adjustment procedure is explained step by step with the expected behaviour at each setting.
- Demonstration guidance is included: approach distance, sensor aiming, and the order of events to show so the door opens, holds and closes on cue.
Limitations & prerequisites
- This is a model-scale demonstration door, not a full-size door operator: the SG90 servo (1.8 kg·cm stall torque at 4.8 V, datasheet) suits a lightweight plywood panel and cannot drive a real door.
- Unlike a keypad lock, this opener has no authentication — anyone who approaches opens the door, so it is an access-convenience build, not a security device.
- The PIR sensor detects moving warm bodies only: a person standing perfectly still in the approach zone may not re-trigger the sensor, and pets or strong draughts across the sensor can cause false triggers.
- Direct sunlight on the sensor dome and sudden temperature changes reduce detection reliability; the sensor must be aimed away from windows and heaters.
- Builder note: the first linkage was anchored far from the hinge and the door only swung part-way, because the SG90 horn's travel could not pull the rod far enough. Moving the anchor point closer to the hinge gave a full swing within the horn's travel, at the cost of slightly higher load on the servo.
- Builder note: early testing showed false triggers from a sunlit window and an air-conditioner draught crossing the sensor. Aiming the sensor down the approach path, away from windows and vents, and trimming the sensitivity down from maximum stopped the false opens.
- No measured detection-distance or timing figures are claimed: the 3–7 m range and 3–300 s delay are datasheet ranges, and the actual approach distance is set and recorded during tuning on the built prototype.
Frequently Asked Questions
How does the PIR sensor know someone is approaching?
The sensor does not measure distance at all: its pyroelectric element sits behind a Fresnel lens divided into zones, and a moving warm body crossing from one zone to the next changes the infrared pattern it sees, which the module's BISS0001 processor turns into a digital HIGH for the Arduino. A still room produces no change, so the output stays LOW and the door stays shut.
How far away can the sensor detect a person?
Up to 7 m, with a minimum of about 3 m, set by the sensitivity trimmer on the module (datasheet range 3–7 m), and the detection cone is less than 120 degrees (datasheet). In practice the approach zone is tuned to the demonstration space, typically 2–3 m in front of the door, so the door opens for a person walking up and not for movement far down a corridor. The trimmer is adjusted during the build's tuning step and the chosen distance is recorded in the report.
Can the door stay open longer, or close faster?
Yes, both are adjustable: the hold time is set by the delay trimmer on the HC-SR501, which spans 3 s to 300 s (datasheet), and the firmware default auto-close is approximately 5 s. Turning the trimmer clockwise lengthens the hold time, and the repeatable trigger mode refreshes the timer whenever motion continues, so the door stays open while someone is in the approach zone. The chosen delay is set during tuning and recorded in the report.
Will the door close on someone standing in the doorway?
No, not while the sensor still sees movement: every fresh detection restarts the auto-close countdown, and the sensor is set to repeatable (H) trigger mode, so continuous movement in the approach zone keeps the door open. The door closes only after the countdown expires with no further motion. A person standing perfectly still may stop re-triggering the sensor, which is stated as a limitation of PIR sensing.
Is this project suitable for a final-year project?
Yes — for Electronics, E&TC and Electrical programs: it demonstrates sensor interfacing, PWM servo control, timing logic and mechanical linkage design in one working prototype, with datasheet-backed specifications and a clear testing story. The report explains the PIR mechanism, the servo drive and the auto-close logic in enough depth for a confident viva.
Components & software requirements
- Arduino Uno R3 · ATmega328P
- HC-SR501 PIR motion sensor
- SG90 micro servo motor
- Arduino IDE · C/C++ firmware
- Breadboard · jumper wiring
- 5 V DC power supply
- Plywood model door · hinges
- Servo linkage · hardware
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.