RGBed
My original idea was to put a light which color automatically changes over the time behind the bed, but the project has evolved to a more useful gadget. Now RGBed has these features:
- Controlled by an Android app via Bluetooth.
- 8 light modes, two of which uses the mobile's microphone to create an audio spectrum effects.
- The temperature color changes depending on current time.
- An alarm for each day of the week to power on of the light at some hour. [Under development.]
The Evolution of Ambiance: What is RGBed?
The RGBed project is a professional-grade bedroom upgrade that transforms a standard headboard into an interactive light installation. What began as a simple "color-cycling" light evolved into a multi-featured smart gadget that handles Bluetooth teleoperation, Music-Reactive Visualization, and Time-Based Circadian Lighting. It's a complete ecosystem comprising custom firmware, a 3D-printed enclosure, and a dedicated Android application.
Feature Suite: Mode and Control
RGBed is defined by its versatility, controlled entirely via an Android App built in Android Studio:
- Audio Spectrum Effects: Two of the 8 light modes utilize the smartphone's microphone to analyze audio in real-time. The app then sends frequency data via the HC-06 Bluetooth link to the NeoPixel strip, creating a localized music light show.
- Circadian Rhythms: Utilizing a DS1302 RTC (Real-Time Clock), the system automatically shifts the light's color temperature throughout the day—cooler whites for waking up and warm, amber hues for winding down at night.
- Weekly Alarm System: The integrated clock allows the user to set specific "Wake-up Alarms" for each day of the week, gently powering on the light to simulate a sunrise.
Connections
The LED strip is connected to the pin 10 following the instructions from Adafuit. The DS1302 RTC module needs 3 pins, CLK, DAT and RST, wich are connected to the pins 11, 12 and 13. Finally the HC-06 Bluetooth module are connected to the RX and TX serial pins. I used a perfboard to connect all modules, with some connectors to make easier to replace/remove anything.
Hardware Architecture: Built to Last
The build prioritizes electrical stability and mechanical integration:
- Industrial Power: A Mean Well RS-15-5 power supply provides a rock-solid $15\text{W}$ of current, ensuring the RGBW NeoPixels never flicker or brown out even at full brightness.
- Protection Circuity: In accordance with Adafruit NeoPixel guidelines, the project includes a $1000\mu F$ capacitor and a $470\Omega$ resistor to protect the LEDs from voltage spikes and signal jitter.
- The Case: A custom 3D-printed enclosure houses the Arduino Pro Mini and all communication modules. It provides a flush, professional finish that hides all the "spaghetti wiring" associated with DIY electronics.
Case
I designed a little case with Sketchup. Some parts are to fragile and need to be improved, but it works.

App
The Android app allows to select the mode and colors easily. Also can synchronize the RTC with the mobile's clock and set/unset the alarms.

Visual and Functional Integration
By mounting the NeoPixel strip to a 1m wood strip behind the bed, the project achieves a soft, diffused "Halo" effect on the wall. This minimizes glare while maximizing the atmospheric impact. Whether you're using it to wake up in the morning, set the mood for a movie, or visualize your favorite music, RGBed turns a piece of furniture into a smart hub.
RGBed is more than just mood lighting; it's a useful home gadget. Controlled by an Android app via Bluetooth, it features 8 light modes, two of which use your mobile's microphone to create spectacular audio spectrum effects. It even syncs with the current time to adjust color temperatures automatically. Check the GitHub for the full source code!
Result
All modules assembled into the printed case
Frontal view
Mounted case
LED strip behind bed
