I love lights. I love lights that change color even more, so when I found out about the Philip Hue lights I went a crazy and ordered some. I had a lot of fun using the mobile app they have created, but I wanted to control the lights via the Intel Edison board to add them to my existing projects.
Initial Intel Edison Setup
In case this is a new Edison board please go through this Getting Started Guide by Intel. Once you have completed the getting started guide you should be able to log into your board (ssh or serial), and your Intel Edison board should be connected to WiFi.
Adding and Running Code on Intel Edison
There are several ways you can add code to the Edison (SCP, Intel XDK, Eclipse). In all of my projects I use Intel XDK IoT Edition, but for this project let's just SCP the files on the board directly.
Download the code listed below (make sure to change the values where denoted) and put that in a destination of your choice. After that is completed on your host machine open a Terminal and goto the directory where you saved the file and type:
scp main.js root@<IP ADDRESS OF INTEL EDISON>:/home/root
After the command is finished the log-in to the Edison board and run
node main.js
Assuming no errors you should now be in the Node REPL where you can run commands like:
- Disco()
- On()
- Off()
Use Cases
This project is great if you are using the Intel Edison for home automation! Have the Edison tell the Hue lights what to do during any time of the day.
Future Additions
I would like to add more functions to the code:
- Tweet notifier (lights change color based on twitter notifications)
- Use a simple button to turn on and off the lights
As well create a web interface to easily interact with the lights and Edison.
Hope you guys like the project! Have questions? Please leave a comment or reach out to me on Twitter @ashishbdatta
Comments
Please log in or sign up to comment.