I am starting a new project and remembered I have a Spark Core bought from KS and therefore wanted to give it a try (finally !!!) and play with the wifi feature.
Good thing is that for the last month I have been working with Arduinos and I feel more confident now.
Usually, I communicate via serial port with my Arduino, or via physical devices (buttons, pot etc). But now, I really want to take advantage of the wifi feature to send some stuff to the Arduino.
Here is basically what I want to do :
I have a set of LEDs that will display a message (text) or patterns for effects. The content of the message or pattern is coded in a certain way (basically it is not “test = ‘hello world’”, it’s more complicated than that because of the animations, scrolling etc). The whole thing is hardcoded in the arduino and then the stuff are “displayed” on loop (i.e. message 1, then animations, then message 2, then back to message 1). This is the project of my inspiration: http://www.instructables.com/id/Rave-Shades-The-Self-Assembly-LED-Glasses-Kit/
What I would like to do is to be able to send what I want to display, via wifi and even better if I could do this via my Android phone.
I would have an app where I would select predefined animations, or where I could write a text, then the app would convert it into the code, and then it would be sent as a data to the Spark Core.
My question is the following : can this be possible ? can I have my program on the Spark Core, and then send via wifi some data, that would be complementary to my code and lead to an actions. Can this be done via wifi (since it is a Spark core feature)?
If so, where could I look at in order to start playing around, and even better, to do a simple Android app to do so?
The code on the instructable page (the ‘animations’ part in the middle and at the end of the code) is what I want to be able to send via wifi on the fly, the rest would remain unchanged, hence making the whole thing ‘variable’ and being able to send text/animation on demand, and not having to rewrite the whole code to change the text I want to display:
Thank you very much for any help !