Inspiration for the projects!
the instructable can be find here.
the instructable can be find here.
I had to post this……it cracks me up.
Maybe I can use this as a precedent. This fits in with my zipper time, mood music/lighting pants….only a bit more practical, but just slightly.
where exactly is the space bar? just checking. 🙂
I changed my LEDs to super brights and corrected the jitter that my code had by using the technique that Matt was using so the code is very similar to his.
Movie
—-
Currently, it plays three songs and forwards every time it detects a presence
Images
http://picasaweb.google.com/s/c/bin/slideshow.swf
—
Code
I started off with Matt’s code for the range finder–
#define NUMREADINGS 10
int readings[NUMREADINGS]; // the readings from the analog input
int index = 0; // the index of the current reading
int total = 0; // the running total
int average = 0; // the average
int play = 9; // which light connected to digital pin 9
// int stop = 10;
int fwd = 11;
int pValue = 0; // variable to keep the actual value
// int sValue = 1; // variable to keep the actual value
int fValue = 1; // variable to keep the actual value
int rangeFinder = 5;
int closeValue = 0;
void setup()
{
Serial.begin(9600); // setup serial
for (int i = 0; i < NUMREADINGS; i++)
readings[i] = 0; // initialize all the readings to 0
}
void loop() {
/* total -= readings[index]; // subtract the last reading
readings[index] =analogRead(rangeFinder) ; // read from the sensor
total += readings[index]; // add the reading to the total
index = (index + 1); // advance to the next index
if (index >= NUMREADINGS) // if we’re at the end of the array…
index = 0; // …wrap around to the beginning
average = total / NUMREADINGS; // calculate the average
// send it to the computer (as ASCII digits)
closeValue = average;
*/
Serial.println(analogRead(rangeFinder));
if(analogRead(rangeFinder) > 300) {
// pValue = 1;
// sValue = 1;
fValue = 0;
pValue = 1;
}
else{
fValue = 1;
pValue = 0;
}
analogWrite(play, pValue);
// analogWrite(stop, sValue);
analogWrite(fwd, fValue);
/* Serial.println("—-");
Serial.println(pValue);
Serial.println(sValue);
Serial.println(fValue);
Serial.println("—-");*/
}
1)
Upload your videos or flash animations before class starts on to Vimeo, YouTube, or etc.. Then embed them into your post.
Save into category of your name and category "Concept Sketch".
2)
Video can take a long time and have any technical challenges.
Make sure you spend most of your time on/in the video showing user interaction. Show your smart object in action and iteration, including color and distinct recorded dialogue if your object has it.
DO NOT spend most of your time on styling and background music. At this stage use minimal video production skills. Think more in the lines of "video sketch" and video prototyping. Do the best you can in a week time frame, but Finish the assignment.
Your object and your user should have a complete interaction. In video.
3)
Blog Categories. This blog has a readership outside the immediate class. This is generally a good thing, for all parties. To help this categorize your posts correctly.
I’ve added two more categorizes. Concept Sketch and Hardware Photos. Please go through your posts to reto-actively categorize them if they included Code and/or also Hardware photos. Have posts in as many categories as is appropriate and needed [including your name].
Keep up the grad level work.
thanks,
Yury
Finally I got the winbond chip to work. The problem was that I was not grounding FT 😦
Here is the video and some images
http://picasaweb.google.com/s/c/bin/slideshow.swf
http://a.parsons.edu/~udays709/movies/makingtoy.mov
Reply