
Arduino Nano IR Sensor-Based Staircase Light | KitKraft DIY Smart Lighting
Upgrade your home with an automatic staircase lighting system using Arduino Nano and IR sensor modules! This project ensures that LED lights turn on sequentially when motion is detected at one end of the staircase and turn off in reverse sequence when detected at the other end. Ideal for home automation and energy-saving applications!
Components Required
-
Arduino Nano
-
2 IR Sensor Modules
-
Multiple LEDs (as required for steps)
-
Jumper Wires
-
Breadboard (optional for prototyping)
How It Works
The system operates using two IR sensor modules placed at opposite ends of the staircase:
-
When a person is detected by the first IR sensor, the LEDs light up one by one in sequence.
-
When the second IR sensor detects movement at the other end, the LEDs turn off in reverse order.
-
This system ensures smooth and energy-efficient lighting, only activating when needed.
Circuit Diagram & Code
For the complete wiring diagram and Arduino code, visit our GitHub repository:
GitHub Code & Schematic
Step-by-Step Instructions
-
Connect the IR Sensors:
-
Place one IR sensor at the bottom and another at the top of the staircase.
-
Connect their output pins to digital input pins on the Arduino Nano.
-
-
Wiring the LEDs:
-
Connect the LEDs in a series corresponding to the steps.
-
Attach each LED to a separate Arduino digital output pin.
-
-
Upload the Code:
-
The Arduino code reads input signals from the IR sensors.
-
If motion is detected at the bottom, LEDs turn on in sequence.
-
If motion is detected at the top, LEDs turn off in reverse order.
-
-
Test the System:
-
Place the setup near your staircase and check the LED activation based on movement.
-
Adjust sensor sensitivity if necessary for optimal performance.
-
Connections:
-
IR Sensor Modules:
-
IR Sensor 1: Output → D2 (Detects entry)
-
IR Sensor 2: Output → D3 (Detects exit)
-
VCC & GND → 5V & GND of Arduino
-
-
LEDs:
-
LED 1 → D4
-
LED 2 → D5
-
LED 3 → D6
-
LED 4 → D7
-
LED 5 → D8
-
LED 6 → D9
(More LEDs can be added as needed.)
-
-
Power Supply:
-
Use Arduino’s 5V to power the IR sensors and LEDs (or an external power supply for more LEDs).
-
Applications
-
Smart home automation
-
Energy-efficient lighting solutions
-
Hands-free navigation in dark areas
Watch the Full Tutorial
Check out our YouTube video for a step-by-step guide:
Watch on YouTube
Conclusion
This Arduino Nano IR sensor-based staircase light is a simple yet effective way to enhance convenience and efficiency in your home. Try building your own and share your results with us!
Stay Connected
For more exciting Arduino projects, follow KitKraft!
-
Website: kitkraft.in
-
Instagram: @kitkraft
-
YouTube: KitKraft Channel
#DIY #Arduino #SmartLighting #HomeAutomation #KitKraftIndia