The title says it all. I have created a device type to interact with the Particle Photon/Core. I have also created a Photon/Core firmware that will interact with this and use the Neopixel.h library.
Firmware and device type can be found here:
This creates an extremely cheap set of RGB lights that can interact with Smartthings.
What you will need:
WS2812B rgb light strip
These worked great for me http://www.amazon.com/Addressable-Strip-WS2812B-meters-meter/dp/B00JSJSBZK/ref=lp_9219252011_1_1?srs=9219252011&ie=UTF8&qid=1443029994&sr=8-1
Bread board or soldering iron
The WS2812B is a great rgb for dev boards as it runs at 5v and in the case of the photon can run directly off of vin if you are supplying usb power or you can split an outside power supply to support both the strip and photon.
To setup wiring
- Run ground wire on strip to ground on photon
- Run data line on strip to D2 on photon
- Run +5v on strip to VIN on Photon
It is good to note that depending on your wall wart or power supply you will need to do some caclulations based on the amperage of your ps. Typically the WS2812B 30 led/m strips use around .6 amp per meter. So if you have a 2amp wall wart you should be able to comfortably run about 3 meters off of the VIN without an additional power supply. 9 feet of light is a good amount in my opinion and puts out a lot of light, so I feel this is very acceptable.
I have setup “ON” to display a color wash and then set to a slightly off white (Feel free to change the firmware code as you see fit) Additionaly there are pick colors that you can modify to your hearts content.
This is a first version of this code I would actually like to make this a little more variable with an RGB color wheel, but my home theater desperately needs some accent lighting and it told me I needed to have something up and running. I am always welcome to changes so feel free to pull and request merges based on improvement to code. (I’m not the best coder out there and I know it!
Oh and I am really excited about this. As I can now do interactive under cabinet lighting and home theater lighting for under $30 per strip.
Please let me know any feedback or thoughts. I am always open to that. (now that my basement(home theater) is done I should have some more free-time (oh wait we are having a baby in 3 weeks so maybe a little free-time).