LSD: Led Stairs Driver (night lights) (2 boards)
Hi everyone!
I’d like to share my stair lighting controller. It handles two flights of stairs and integrates with Domoticz or Home Assistant through a MySensors gateway.
Design and operation
In my setup, Domoticz enables night mode at sunset and disables it at sunrise. In this mode, both flights remain softly illuminated. When someone enters either flight, its lighting brightens, then returns to the idle brightness after a configurable delay. For everyday use, I prefer the entire flight to brighten at once, so I decided to skip the sequential step-lighting effect.
Each light consists of a short section of LED strip, with all sections on a given flight controlled together. A laser beam sensor is installed at each end of each flight. Its output pulls low when the beam is interrupted. The controller supports four sensor inputs and two independent LED channels.
The previous version used a commercial dimmer. The control circuitry and LED strips shared a common ground, which allowed noise from the LED circuit to couple into the RS-485 bus. For this design, I used separate power supplies for the control circuitry and LED strips, along with galvanically isolated signals. This removes the shared-ground path through which LED circuit noise could reach the bus.
Hardware
Assembled controller without its enclosure
The controller consists of two PCBs connected by pin headers.
The control board contains an ATmega328PB microcontroller, an RS-485 interface built around a MAX485CSA+T transceiver, power and bus terminals (A and B), and LEDs indicating power and gateway connection status.
I also fitted a 433 MHz transmitter to a three-pin connector on this board. It controls a nearby 230 V remote-controlled socket adapter, which can be used to switch Christmas lights, for example. The transmitter is visible in the photo of the controller inside its enclosure.
The I/O board provides four sensor inputs, a 12 V DC supply connection for the LED strips, and two LED strip outputs. Each channel uses an IRLR2705TRPBF logic-level MOSFET for low-side PWM dimming of a non-addressable LED strip. Indicator LEDs show activity on each LED channel and signals received from the sensors.
A single cartridge fuse on the shared +12 V rail protects both LED channels. The microcontroller and RS-485 interface are powered through a RECOM DC/DC converter with a 7–36 V DC input range. ACPL-227-500E optocouplers provide galvanic isolation between the microcontroller and both the sensor inputs and MOSFET gate-drive circuits.
Control board schematicI/O board schematic
Firmware and integration
The lighting logic runs on the ATmega328PB. The controller communicates with the gateway over RS-485 using the MySensors protocol and exposes 14 logical devices.
Four per LED channel
- On/off control
- Dimmer
- Idle brightness setting for night mode
- Brightness setting when a sensor is triggered
Two shared by both channels
- Night mode switch, enabling background illumination and sensor-triggered lighting
- Duration setting for the brighter lighting after a sensor is triggered
Four sensor inputs
One logical device per laser sensor, reporting its state
See more: https://www.elektroda.pl/news/news4187583.html




LSD: Led Stairs Driver (night lights) (2 boards)
Project images are for reference only. Actual production is based on the manufacturing files on the project page.
Please review the designer's notes (e.g., PCB thickness) and select the appropriate options.
PCBWay is not responsible
for issues caused by unsuitable parameter selections.
For more important ordering information, please refer to
Read More
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Jacek jr
-
LSD: Led Stairs Driver (night lights) (2 boards)
Hi everyone!I’d like to share my stair lighting controller. It handles two flights of stairs and int...
-
WiFI Grass Watering Manager working in Home Automation system (I use mySensors)
I wanted to show you my irrigation controller, which I built using the ESP8266 on a WemosD1 clone bo...
-
-
-
BorePilot - ESP32-S3 Smart Borewell Pump Controller
277 0 0 -
-
-
AudioLink – USB & Bluetooth LE Audio / Auracast Receiver with Balanced Line Outputs (nRF5340)
437 0 1 -
-
-
-
Émetteur Récepteur Optique Expérimental (communication UART ATtiny + fibre optique)
446 0 1 -







