Have you ever wanted to interact with an RGB LED strip using the web? The Spark ecosystem allows you to take that one step further and allow anyone to use the same webpage to interact with their own device using your firmware!
It uses Node.js and SparkJS to provide the web UI and interact with a Spark account's claimed devices.
Talks to Spark Cloud to query for specific users, their devices, and interact with them.
spark-rgb.ino for custom additions (currently set up for 4-pin JST SM connection)
defines the functions that have endpoints exposed.
firmware.bin that was compiled from the spark-rgb.ino
Hook up your RGB LED Strip to your Spark Core. (Depending on how many LEDs your strip has, you might need to provide an external power supply. I suggest looking up the specs to your specific LED Strip for more information as it varies.)
If you are using the one I chose, you can connect your pins following the instructions here
I was able to drive mine from the Spark Core directly without the use of an external power supply, so if you hook:
+5V on the strip to 3.3V output from the Spark Core
GRD on the strip to GRD on the Spark Core
DI on the strip to D2 on the Spark Core
CI on the strip to D3 on the Spark Core
Flash your Spark Core with the firmware! You have two options here:
Open up spark.io/build and copy and paste the code from the spark-rgb.ino into a new app, then compile and flash it onto your Spark device (as long as it has a WiFi connection).
Download the firmware.bin and install it yourself through a USB connection to your Spark device.