Custom Bed Frame - Part 8 | [0018-8] 🛏
In Part 8 I stain and apply polyurethane to the frame, make the under bed drawers and add the automatic LED night lights.
I used an ATtiny85 microcontroller with an LDR (Light Dependent Resistor) so I could have the nightlight turn on/off automatically based on light level. The LEDs run on 12v and require 1.8 amps of current (in my case given the length of strip/number of LEDs I used). A MOSFET was used to allow the ATtiny85 to turn the LEDs on/off and also allow it to control the brightness using PWM (Pulse Width Modulation).
Code and schematics (and rough Sketchup drawings of the frame) for the LED controller are available on GitHub.
This post is licensed under
CC BY-SA 4.0
by the author.