-
Notifications
You must be signed in to change notification settings - Fork 1
Home
StairsJs is a minimal NodeJS app to automatically drive the stairs LED lights using 2 passive infra red detectors (PIRs) and uses the current sunset and sunrise times to activate the stair LED lights when someone enters the PIR detection zone. It uses a few packages for logging (bunyan) and of driving the input and outputs: GPIO (onoff). It can run by it own (after installation no internet required). Currently working on a client app (react application) to show the status and give control to the stairs program ; but this is optional and not required.
The goal of this project is to build a nice led-light for my stairs (which I renovated recently) and to learn the raspberry PI, nodeJS and GPIO programming
List of each component and link to specification
Picture | Quantity | Component | Remark / Chosen Mode |
---|---|---|---|
2 | Passive Infra Red (PIR) Detector | SR501 HC-SR501 IR Pyroelectric Infrared PIR module Motion Sensor Detector | |
#stairs | Relays (to switch on the Led Strips with 12 VDC) | Depending the number of stairs, buy enough relais, or combine with one or more 8 channel relays. 8 Channel DC 5V Relay | |
#stairs | Flexible Led Strips | Buy two or more 5m led strip and cut for each stair the needed stair length. SMD 2835 Flexible LED Strip 120led/m 600Leds | |
1 | 5 Volt Power supply | Stable 5V for the Controller DC step-down Converter Module 24 / 12V to 5V / 5A power supply | |
1 | 12 Volts Power supply for the Led Strips | Stable 12 Volts for the Led Strips . Switching power supply 100W 12v 8A,Single Output ac-dc voltage converter for Led Strip,AC110V/220V Transformer to DC 12V | |
1 | Controller, single board mini computer. | Raspberry Pi 3 Model B or B+ Board 1GB LPDDR2 BCM2837 Quad-Core Ras PI3 B,PI 3B,PI 3 B with WiFi&Bluetooth | |
1 | Dimmer for the Led Strips LED Dimmer dedicated DC 12V 24V 8A |
I should use a tool to make it better looking...someday...