The Bedside Command Center!


(Brian) #1

This one kept me up until 4am writing notes and pouring ideas on to paper. I welcome improvements! I will of course be sharing my code/diagrams.

I present, the Bedside Command Center! (2001 music playing)

The Concept
A bedside alarm clock that is connected to the SmartThings zigbee network utilizing an Arduino Uno and the ST shield. It would not only be an input terminal for controlling other ST devices but be controlled by triggers from within the home.

Proposed Components

  1. Broken Philips HL3470 Wake Up Light - $17
  2. Arduino Uno - $25
  3. ThingShield - $35
  4. NeoPixel Ring - $10
  5. PIR Motion Sensor - $10
  6. Electret Microphone - $7
  7. Analog Light Sensor - $4
  8. DC/DC Step-Down Converter - $10
  9. N-channel power MOSFET (3) - $6
  10. RGB 5050 Strip Kit - $22
  11. Temperature Sensor - $4
    Total: ~ $150

Proposed Capabilities

  1. Mimic the original function of the “wake up clock” by having basic alarm clock functionality that slowly increases the light as you near the alarm time. Tie into existing snooze button.
  2. With an RGB light ring instead of halogen bulb, it would put you to sleep with more amber light at night that slowly dims, and the wake up light would be more of a blue hue to wake you up. (Blue/Amber light therapy)
  3. Has motion sensor that can detect your movement in bed and wake you up or put you to sleep based on movment.
  4. Has a speaker to wake you up at alarm time if you dont wake up based on light.
  5. 30 minutes before the alarm time (or your own threshold) it could turn on any ST switch or set any ST thermostat. For my application it would turn on the heater and my radiant flooring.
  6. Has external control of RGB strip lighting. Mine will go under the bed frame.
  7. Based on mode, if a motion or door sensor is triggered, it would make a sound and change LEDs to desired color. Mine will turn red if someone breaks into the house in night mode, and amber if someone breaks into my shed.
  8. Utilizing the microphone, you can give it sound commands (clapping) to enter different modes or “scenes”. Like an intimate color scene of bedroom lights set to 15% and LED’s to deep purple when you clap 3 times.
  9. Temperature sensor would give basic temperature reporting of the room to ST.

Thoughts on Future Extensibility

  1. A replacement LCD screen that would display weather data when the alarm goes off.
  2. A wave sensor for gesture control of scenes.
  3. Ambient light sensor could be tied to other actions.
  4. so much more…

What I Have So Far
Here is the start of a breadboard layout. Ill have code examples on git pretty soon.

Sample Video

feedback please!


Smart Room Controller
(Bryan) #2

Kickstarter it. If people are paying $100 for a Quirky Nimbus, I’m sure they’d pay more for something that gives a lot more features. You might want to consider adding some level of info display like the Nimbus. Nice idea!


(George Sudarkoff) #3

I like! I was looking for something like this to alert me without waking up my wife if my older kiddo escapes from his room in the middle of the night.

And yes, I’d totally “Kickstarter” it!


(Brian) #4

@sudarkoff I was thinking about the parents out there as well. Maybe set a group of sensors and a color to trigger.
kids windows = blue

something like that

BTW - LED ring and strips now functional. I love all the Adafruit libraries!


(Matthew Bial) #5

@docwisdom Great concept - keep up the fantastic work!


(Todd Richert) #6

How is this different from www.theubi.com ?


(Brian) #7
  • I hate voice command, so thats #1. I want physical controls.
  • The Ubi doesn’t work natively as an alarm clock (that was my original goal). And I like the gentle wake-up features of the Philips Wake up light.
  • The Ubi doesn’t have native control of any lighting (it relies on other smart lights like Hues)
  • The Ubi doesn’t have any motion sensing.
  • I can build this now, and not wait to be included in the Ubi limited release.
  • Ubi ~ $269
  • I’m a tinkerer and like building stuff

The Ivee looks like a much better product to me than the Ubi, but I already had most of the parts for this project. It only cost me $46 out of pocket.


(Jake) #8

Dude… nice!!


(Dome) #9

Very cool. It has a lot in common with my project, the Smart Room Controller. We can talk about it on your thread or mine, but I bet your project would benefit from a custom PCB. I’m not sure if that’s something you were already doing, but I’m already planning most of those sensors for my PCB.


(Brian) #10

thanks @dome!
I was inspired by your project back at the end of june and thought some of those basic functions would do very well on my night stand. The alarm clock function is the core of my design with the other color and alert controls as secondary. We can comment and update wherever is most relevant at the time, Im flexible


(Brian) #11

@dome
I had a epiphany!

Instead of using MOSFETS on board of the Arduino to run the PWM to the LED strip, would it be possible to use the dimmer module that came with the power strips, cut off the IR receiver, and hard wire it to the arduino and sent it signal that way? This way the power handling is offloaded to the factory dimmer module?

Just a thought. And it would free up 2 pins on the arduino


(Edward Pope) #12

Sounds like a workable idea, I have hacked a Hunter Fan module in a similar fashion. So if I understand the direction, this should work.


(Brian) #13

@theedpope did you use the standard IR library?


(Edward Pope) #14

Nope this unit used a RF switch. I ended up taking the switch and wiring the switches to relays that were controlled by the Arduino.


(Dome) #15

@docwisdom I think that could work. However, I wanted to build my own LED driver into my project for these reasons:

  • Cheap, since it’s only a matter of including 3 mosfets, a few resistors, an ATTiny85 chip, and a pin header.
  • Better quality control: I don’t know if I trust cheap components to push 5 amps to an LED strip. This way, I know the rating of the components I use.
  • More specific control: I can do things such as the red/blue alarm flash with the ATTiny85 that wouldn’t be possible with a conventional LED strip driver. Since it runs its own code, it’s very easy to customize.
  • Add sound: I actually run the piezo element off the ATTiny85 as well. It seemed cleaner, and that way audio and visual feedback could be in sync
  • Pin savings: The main Arduino ATMega328 only uses one pin to control 3 light channels and one audio channel, since it sends simple serial commands to the ATTiny that are in turn executed independently on the Tiny.

I don’t know your comfort with electronics, and programming on the ATTiny85 is a bit more involved than simply plugging in an Arduino. I think it’s well worth the extra effort, however, and would be more than happy to help in any way I can. I even made a programming shield that plugs into an Arduino’s headers and makes programming the Tiny as easy as programming any Arduino.

All that said, I don’t know your reasons for wanting to use a conventional LED driver, and it might make sense for your project where it doesn’t for mine. If you do get it working by bypassing the IR port, I’d be curious to see how you did it.


(Brian) #16

Very good points! You have easily swayed my opinion with point #3

I purchased an ATtiny with my last adafruit order. Ill havent had a chance to play with it yet. I also got a real time clock for the alarm clock function portion.


(Dome) #17

@docwisdom Glad I could win you over. I used this tutorial and this one for getting going on programming the Tiny. If you want to use my programming shield, here is a Fritzing file. It uses SMDs, but if you don’t work with SMDs it should be easy enough to change to THT components.

Even aside from this project, Tinys are great because they allow you to shrink Arduino projects. When you don’t need more than 5 IO pins, they are usually able to do the trick. The software serial library is needed if you want to use the Tiny as a coprocessor (as I did).


(Katelyn Petronick) #18

@docwisdom
I really enjoy this project, its the closest I’ve been able to find on the internet to a project I am trying to do. Does any of the controls connect to a phone app?