[Stephen] took the safe route when getting his Raspberry Pi to dim an AC light bulb. He didn’t roll his own outlet box with a mains-rated relay inside, going with a mechanical connection instead of electrical. By attaching a servo motor to the dimmer knob the RPi can adjust the light level without risk of electric shock.
He is using the ServoBlaster package to drive the servo motor with the Raspberry Pi GPIO pins. That’s all fine and good by itself, but he went the extra mile and designed a few different levels of functionality around the pairing. The motivation behind the hack was to build a sunrise clock that had a lot of power when it comes to luminosity. But he also plied the RPi’s networking features to serve up a web-based control. It has a slider to set the light level, as well as breath (like a slow fade) and flash features.
The servo is a bit noisy when moving quickly, but the sunrise alarm takes 30 minutes so the gears don’t really make any noise at all. Check it out in the clip after the break.
Continue reading “Raspberry Pi Used To Automate A Dimmable Light Bulb”
For most of the working world, the onset of autumn and winter in the Northern hemisphere means one thing – waking up well before the sun rises to get a start on the daily grind. [Brent] from Freeside Atlanta knows that routine well and decided to build himself a sunrise alarm clock in an attempt to wake himself more naturally on those dark mornings.
He bought an assortment of LEDs in varying colors including blue, red, yellow, and white, along with a few UV diodes for good measure. His goal with this array of LEDs was to simulate the natural colors of the sunrise, rather than simply slowly brightening the room. The clock uses a DS1307 RTC to keep the time, and an Arduino is tasked with lighting the LEDs about 25 minutes before it’s time for [Brent] to wake up.
He says that it seems to be working pretty well, gently waking his body before the clock radio kicks in. It certainly beats a loud buzzer!
[Bogdan] has some trouble getting up in the morning. A blaring alarm will do the trick but that’s no way to start the day. To get him through the dark winter months he wanted to try a sunrise simulator. He patched into the alarm signal of his bedside clock, intercepting the command from the clock’s microprocessor and using it as an input for his own ATtiny13. From there, the tiny13 gradually brightens a 150W halogen lamp using a triac until his room is as bright as a July morning. A signal is then sent to the alarm clock’s audio amplifier to turn on the audible alarm. He’s got the system set for a 20-minute sunrise so it’s just a matter of programming his alarm 20-minutes early than the ‘I absolutely have to get out of bed now’ time.