**Building a Staircase Light System with Arduino**
The project involves mounting an Arduino Uno board inside a wooden box to create a staircase light system that can be controlled using a power supply and three PIR sensors. The system will consist of 10 rows of lights, each triggered by one or more motion sensors. To simplify the process of writing code for this complex system, we will break it down into manageable steps.
To begin with, the wooden box was designed to fit the Arduino Uno board, power supply, and other necessary components. The box is mounted on the wall, flush with the surface, and will conceal the electronics from view. To add a touch of elegance, a piece of Walnut wood was cut to fit on top of the box, creating a visually appealing surface.
The system's architecture consists of three PIR sensors spaced evenly across the handrail, each triggering one or more rows of lights when motion is detected. The sensors are connected to the Arduino Uno board, which will process the sensor data and control the lighting system. By using multiple sensors in combination, we can determine the direction of movement and adjust the lighting accordingly.
The power supply was chosen as a 40 amp unit, sufficient for all the LEDs required in the system. All the power and ground wires were connected to a small board that feeds into the power supply, powering both the Arduino Uno board and the lights. The only remaining task was to connect the data wires from each LED to the Arduino board.
However, the programming process proved to be more challenging than expected. Initially, I thought the code was complete, but I soon realized that I had to rewrite it multiple times due to library issues. To overcome this hurdle, I rewrote the code around one of the motion sensors and made further adjustments as needed. The end result is a functional system with four modes: Bright mode, Night light mode, Christmas mode, and custom animations.
The programming process was more complicated than anticipated, requiring careful consideration of sensor data, lighting control, and animation logic. As we move forward with the project, we will delve deeper into the code and discuss the challenges overcome during its development.
In addition to the technical aspects of the system, I also wanted to incorporate user-friendly features that enhance the overall experience. The system now includes multiple modes that can be easily switched between using a button. The animations can be swapped out with new designs or colors using simple programming adjustments.
The staircase light system is an innovative solution for improving the aesthetic and safety of staircases in homes. This project showcases the potential of Arduino technology to create interactive and dynamic lighting systems, making them more enjoyable and functional.
For those interested in learning how to build their own projects using Arduino, we recommend our online course, Arduino for Makers. The course is designed to simplify the process of programming, electronics, and system building, providing a comprehensive introduction to these technologies. With this course, individuals can create their own interactive systems, explore new ideas, and develop problem-solving skills.
The course features a range of tutorials, exercises, and projects that cater to different skill levels and interests. We offer a 10% discount on the course for our viewers, using the code MAYFORMAKERS at checkout. By joining our community, you can access a wealth of knowledge, share your creations with others, and stay up-to-date with the latest developments in Arduino technology.
As we conclude this project, I would like to thank our audience for their engagement and interest. We appreciate your feedback and suggestions, which will help shape future projects and tutorials. If you have any ideas or questions about the staircase light system or other projects, please share them with us in the comments section below.