[Originally posted 9/25/2013 by @dome]
Sorry it’s been awhile since I’ve updated. As much as I love tinkering with SmartThings, I have some more pressing responsibilities that have demanded a lot of my time and energy lately.
I have the LED Strip component working. I’m currently using three NPN transistors to control a short test length of LED strip mounted on the board. I’ll need some beefier transistors in order to properly switch the whole strip as it will pull significantly more amperage. The LED Strip responds to two types of commands. First, I’ve created a few generic commands for lighting up different colors. Second, the LED strip (along with a piezo speaker) respond to the Alarm device type commands. The system now creates an audible alert and flashes the LEDs alternating red and blue in response to activation from my Smart Security app.
I’ve also incorporated some nylon spacers from Fleet Farm in order to lift the boards off of the wood. This reduces stress on the boards and solder joints and also creates space to run wiring under the boards.
I’m not having success with controlling fans. My code is actuating the proper relay channels but I don’t think they’re all reliably activating. I’ve done some troubleshooting and I think the shift registers I’m using (HC595) aren’t rated for running relays. The relay board I have didn’t come with documentation so I’m not sure what it’s requirements are, but I ordered some high-power shift registers from SparkFun and hopefully that will solve the problem.
I want to give proper credit to @Jason3fc and his Smart Ceiling Fans project. (TODO: recover this project) I had the idea for an Arduino/Relay/ThingShield based system to control an LED strip and the outlets, but this project gave me the idea to extend it out to my ceiling fans and my garage door.
Here are some more pictures. I’m working on a video to detail functionality. I want to clean up the code a bit more but I will post an update to the Arduino Sketch and device type soon.
The spacers add a nice touch.
These are the shift registers. I’m waiting on some high-power variants. Unfortunately they have a different pinout so it won’t look as neat.
Here are the transistors, the voltage regulator with capacitors, the LED strip, and the piezo element.
Blue LEDs. For the record, the ST Shield RGB LED is controlled completely differently than the RGB strip. I wrote the code to make both blue for consistency but easily could have done something else.
White light by turning on Red, Green, and Blue LEDs. Surprising white, but I might tweak the mix a bit to make a softer color for my wife’s taste.
The LED Strip test section and Piezo element respond to Alarm commands.
I use a 12V LiPo battery pack if I am moving it around for programming and troubleshooting.
The Piezo speaker works by using the Tone command in the Arduino sketch or by simply writing it high.
[CANNOT FIND IMAGE ]
Schematic for the setup. It’s missing the second shift register but it provides a general idea.