Motion-Activated Stair Lighting

Project type
Personal project
Role
Design & installation
Timeline
June 2026 – July 2026
Tools & Technologies
ESP32
ESP-NOW
Ultrasonic sensors
MOSFETs
Problem & Goal
Coordinate motion detection and reliable lighting control at opposite ends of a staircase.
Design & Build
I designed and installed the lighting system, built the switching circuit, and developed the ESP32 control software.
Sensing & communication: Used ESP32 controllers and ultrasonic sensors at both ends of the stairs, with ESP-NOW communication so either controller could activate the lights.
Switching circuit: Built and troubleshot the MOSFET circuit to control the 24 V LED lighting.
Control sequence: Developed the software for motion detection, automatic shutoff, sensor re-arming, and communication between the boards.


Outcome
Installed lighting that activates from either end of the staircase.
ESP-NOW coordinated the two controllers, with motion detection, automatic shutoff, and sensor re-arming forming the operating sequence.
What I learned
I learned how to integrate ESP32 controllers, ultrasonic sensors, and MOSFET switching into a working lighting system. Coordinating both ends of the staircase with ESP-NOW helped me understand motion detection, automatic shutoff, and sensor re-arming as parts of one control sequence.
Other works
Have a look at my other work

Custom RC Quadcopter
A custom aircraft developed from SolidWorks models through 3D printing, assembly, and flight testing.
Personal project
Mechanical design & prototyping

VEX V5 Robotics
Iterative mechanical design for object manipulation and autonomous collection.
VEX Robotics
Mechanical lead
Danial Hassan
Mechanical engineering · Vancouver, BC
© 2026 Danial Hassan