Arduino Nano IR Sensor-Based Staircase Light | KitKraft DIY Smart Lighting

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:
https://github.com/kitkraftin/Arduino_Staircase_Lights.git

Step-by-Step Instructions

  1. 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.

  2. Wiring the LEDs:

    • Connect the LEDs in a series corresponding to the steps.

    • Attach each LED to a separate Arduino digital output pin.

  3. 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.

  4. 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:

  1. IR Sensor Modules:

    • IR Sensor 1: Output → D2 (Detects entry)

    • IR Sensor 2: Output → D3 (Detects exit)

    • VCC & GND → 5V & GND of Arduino

  2. 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.)

  3. 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:
https://youtube.com/shorts/r2uXYYr-NCA

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!

#DIY #Arduino #SmartLighting #HomeAutomation #KitKraftIndia

Frequently Asked Questions

Does this kit require soldering?
No — KitKraft's DIY kits are designed as plug-and-play breadboard builds. Header pins may need to be attached on some advanced/maker-level components, but no soldering is required for the core build.
Is the code pre-loaded, or do I need to upload it myself?
Code is provided (linked in this guide, or included with the kit) and needs to be uploaded to the board yourself using the free Arduino IDE — that's part of the learning experience. Step-by-step upload instructions are included in this guide.
What skill level or age is this project suitable for?
This project is beginner-friendly and works well for school students, engineering students, and hobbyists getting started with electronics — no prior coding or circuit experience is required.
What if I get stuck while building it?
KitKraft offers WhatsApp tech support with every kit purchase, and the wiring diagram, code, and video walkthrough are all included in this guide.