Most smart-home projects start with a gadget. This one started with a dressing area that had, in the maker's words, "not enough Zigbee, electronics, complication or lighting involved". Marcus of Marcus Lab fixed that with his Drawer Illumination Subsystem: open any of 14 drawers and a strip hidden under the countertop lights just the column that drawer sits in, then goes dark a second after the last drawer in that column shuts. It is a tidy example of how far a single ESP32-C6, a few cheap alarm contacts and one addressable strip can go, for about 128 GBP in parts.
One strip, three columns, 14 contacts
The light is one 24 V WS2814 RGBW COB strip running across the whole top, routed into a 4 mm deep groove so the top drawers still clear it. Because it is a COB strip, the light is an even line rather than a row of dots, and because every pixel is addressable, the board can light only the seven pixels above the open column. Only 21 pixels are used in total.
Each drawer has a normally closed MC-38 door contact, the same wired reed contact used in burglar alarms, fixed inside the carcase. A magnet on the back of the drawer front holds it shut; pull the drawer out a couple of centimetres and the contact opens. Each column's contacts run back through one 8-core alarm cable to the board in a box under the left unit.
The board and a radio gotcha
The brain is an Espressif ESP32-C6-DevKitC-1 running ESPHome, plugged into a carrier board Marcus drew in KiCad. A Mean Well 24 V 2.5 A supply is the only mains part, a Traco TSR 1-2450 drops 24 V to 5 V, and SN74AHCT125 buffers lift the C6's 3.3 V data line to the 5 V the strip expects.
The C6 reports every drawer to Home Assistant over Zigbee. At first it would not join the network at all: the C6 shares one 2.4 GHz radio between Wi-Fi and Zigbee, and Wi-Fi was hogging it. The fix was to keep Wi-Fi off until the Zigbee join completes, a detail worth knowing before you put both on one C6.
Small touches that make it feel finished
Between 22:00 and 06:30 a drawer gets dim red light instead of white. The light sweeps out from the middle of the column rather than snapping on, and a drawer left open breathes amber for its last 30 seconds before switching off at five minutes. Home Assistant also drives a 15-minute sunrise on the strip, a short light show, a Christmas routine timed to a song on the bedroom Echo, and a drawer alarm that flashes red and blue when an armed drawer is opened.
Our take: the electronics are simple, but the build shows the parts that make home automation reliable, from proper level shifting and a branded mains supply to one cable per column and contacts that fail safe. For another Zigbee build on Espressif's 802.15.4 chips, see this ESP32-H2 Home Assistant remote that runs about 4 months a charge.
Image credit: Marcus Lab, project photo, cropped and resized.
About the author: Aswinth Raj is an electronics engineer and the editor of CircuitDigest, where he has published more than 150 hands-on projects and tutorials across Arduino, PIC, ESP32, Raspberry Pi and EV battery systems. He selects the stories on this page for what engineers and makers can actually learn or build from. Connect on LinkedIn
Add a comment
No account needed. Your comment appears once a moderator has reviewed it.