I'm trying to take a website with a slide show that randomly reorders .jpegs that then triggers a pattern of LED's that correspond to each .jpeg, so
the images will have a corresponding series of patterns. So for example
'example.jpeg' appears processing retrieves this info and sends it to arduino, and a pattern such as
void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
digitalWrite(12, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(12, LOW); // set the LED off
delay(1000); // wait for a second
}
etc.. and so on for many different patterns and images.
I'm unclear as to where or how I would assign a .jpeg to a set of patterns.
And then where I would put the patterns in the sketch. Forgive my ignorance, I'm new to this!
Does anyone have any suggestions for tutorials to look at or advice for this type of project? Thanks for your help!Hello,
I'm researching a project connecting arduino to processing. I'm looking to have processing retrieve data from a website that will have rotating pictures (.jpeg's changing every 10 seconds). Each time a new picture comes up a corresponding pattern will occur with LED lights attached to the arduino board. I've been working with arduino alone, programming patterns etc. and am new to working with serial connections and coding.
I've been looking at this tutorial http://makezine.com/getstartedarduino/ (the last two chapters. It seems like this is the right track, I'm wondering if anyone has any suggestions for how I could modify this code so that instead of what happens in the sketch, a text reading from the website would trigger a LED light, say PEACE triggers pin 13 on for etc....off for...? Or at least put me in the right direction in my research.
Thanks again for you help!