<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-38695495</id><updated>2011-04-21T12:32:54.032-07:00</updated><title type='text'>Living Art</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-38695495.post-5024401123083462722</id><published>2007-04-02T23:13:00.000-07:00</published><updated>2007-04-02T23:14:05.646-07:00</updated><title type='text'>Final project idea - Affection</title><content type='html'>Taking care of plant is very difficult. If the person doesn 't take care of the plant, it will die because of the lack of water or sunshine. If the person takes too much care of the plant, such as giving too much water or over extended exposure to sunlight, it will die too. The plant needs proper level of affection to ensure vivid growth and ability to bloom. It is the same in the relationship between people or any life. There should be a certain distance to keep good relationship all the time.&lt;br /&gt;&lt;br /&gt;This projects "Affection" is about the relationship between people and plants which also implies the right amount of affection for all relationship. If the user is far away from flowers, the lightings of the flowers will appear to be deem and will produce a dull sound. If the user gets close to the flowers, they will appear to be more bright, and will trigger a fast tempo music. However, if the user moves too much close the flower, it will blink the lights and will produce a high tempo sound; eventually the flowers will suddenly be turned off.&lt;br /&gt;&lt;br /&gt;The light and sound are the metaphor of the plant 's life. So, the user will recognize the flowers becoming more alive, based on the brightness of the lights and speed and pitch of the sound. The physical distance will be used to define the affection level because the proper amount of attention is needed for a happy and healthy life. The project will be installed on top of the mirror with several flower shapes of fiber optic. It will be attached a distance sensor to detect the distance between the user and flowers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-5024401123083462722?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/5024401123083462722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=5024401123083462722' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/5024401123083462722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/5024401123083462722'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/04/final-project-idea-affection.html' title='Final project idea - Affection'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-2584874823516718924</id><published>2007-04-02T23:10:00.000-07:00</published><updated>2007-04-02T23:13:06.291-07:00</updated><title type='text'>Final project idea - center of the universe</title><content type='html'>When people look at stars on the sky, they are often impressed of how infinite night sky is. They begin to feel like they are the center in the universe. In eastern culture, there are some theories that the life forces of humans create movement in universe. So, if humans are the center point of the universe, then the universe can be moved by the free will of human.&lt;br /&gt;This project will be creating an infinite night sky with lots of star to make people the center of the world, rather the center of the universe. This project will give people the feeling of importance of their identity. To create this universe, small lights, using LED or fiber optic, will be attached on mirrors inside of box. People ' s head will be placed in the box surrounded by hanging lightings&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-2584874823516718924?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/2584874823516718924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=2584874823516718924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/2584874823516718924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/2584874823516718924'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/04/final-project-idea-center-of-universe.html' title='Final project idea - center of the universe'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-3984980229906748954</id><published>2007-04-02T23:08:00.000-07:00</published><updated>2007-04-02T23:10:27.645-07:00</updated><title type='text'>Wedding Cake arduino code for switches, dc motor and mp3 player</title><content type='html'>&lt;pre&gt;&lt;br /&gt;int wedCurrentState = 0;&lt;br /&gt;int rightSwitch = 2;//switch that controlls the direction of the servo&lt;br /&gt;int wrongSwitch = 3;&lt;br /&gt;int rightSwitchState = 0;//variable for the switch state&lt;br /&gt;int wrongSwitchState = 0;//variable for the switch state&lt;br /&gt;&lt;br /&gt;int servoPin1 = 4; // signal pin for servo motor&lt;br /&gt;int servoPin2 = 5; // signal pin for servo motor&lt;br /&gt;int minPulse =500; // Minimum servo position&lt;br /&gt;int maxPulse = 2500; // Maximum servo position&lt;br /&gt;int pulse = 0; // var for the pulse&lt;br /&gt;int speed1 = 10;//sets the speed of the servo range 0 - 5&lt;br /&gt;int speed2 = 10;//sets the speed of the servo range 0 - 5&lt;br /&gt;&lt;br /&gt;long lastPulse = 0; // the time in milliseconds of the last pulse&lt;br /&gt;int refreshTime = 20; // the time needed in between pulses&lt;br /&gt;&lt;br /&gt;int dcMotor = 6;&lt;br /&gt;&lt;br /&gt;int firstMp3Play = 7;&lt;br /&gt;int firstMp3Forward = 8;&lt;br /&gt;int firstMp3PlayCounter = 0;&lt;br /&gt;int secondMp3PlayCounter = 0;&lt;br /&gt;int thirdMp3PlayCounter = 0;&lt;br /&gt;int fourthMp3PlayCounter = 0;&lt;br /&gt;&lt;br /&gt;int firstLayerLEDs = 9;&lt;br /&gt;int secondLayerLEDs = 10;&lt;br /&gt;int thirdLayerLEDs = 11;&lt;br /&gt;&lt;br /&gt;//int loveLEDs = 12;&lt;br /&gt;int resetSwitch = 13;&lt;br /&gt;int resetSwitchState = 0;//variable for the switch state&lt;br /&gt;&lt;br /&gt;int micDigital = 12; //analogue input&lt;br /&gt;//int microPhone = 1; //analogue input&lt;br /&gt;//int AmpVar = 0;&lt;br /&gt;int micVal = 0;&lt;br /&gt;//int THRESHOLD = 400;&lt;br /&gt;int micCounter = 0;&lt;br /&gt;&lt;br /&gt;void setup() {&lt;br /&gt;  pinMode(rightSwitch, INPUT);//initialize the switchPin as an INPUT&lt;br /&gt;  pinMode(wrongSwitch, INPUT);&lt;br /&gt;  pinMode(servoPin1, OUTPUT); // initialize the servo signal pin as an OUTPUT&lt;br /&gt;  pinMode(servoPin2, OUTPUT); // initialize the servo signal pin as an OUTPUT&lt;br /&gt;  pulse =maxPulse; // Set the motor position value to the minimum&lt;br /&gt;&lt;br /&gt;  pinMode(dcMotor, OUTPUT);&lt;br /&gt;&lt;br /&gt;  pinMode(firstMp3Play, OUTPUT);&lt;br /&gt;  pinMode(firstMp3Forward, OUTPUT);&lt;br /&gt;&lt;br /&gt;  pinMode(firstLayerLEDs, OUTPUT);&lt;br /&gt;  pinMode(secondLayerLEDs, OUTPUT);&lt;br /&gt;  pinMode(thirdLayerLEDs, OUTPUT);&lt;br /&gt;&lt;br /&gt;  //pinMode(loveLEDs, OUTPUT);&lt;br /&gt;  pinMode(micDigital, INPUT);&lt;br /&gt;  pinMode(resetSwitch, INPUT);&lt;br /&gt;&lt;br /&gt;  Serial.begin(9600);//initialize the serial&lt;br /&gt;&lt;br /&gt;  digitalWrite(firstMp3Play,HIGH);&lt;br /&gt;  delay (3000);&lt;br /&gt;  digitalWrite(firstMp3Play, LOW);&lt;br /&gt;  delay (500);&lt;br /&gt;  Serial.println("firstMp3Play was pressed onece - turn on");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void loop() {&lt;br /&gt;  &lt;br /&gt;  wrongSwitchState = digitalRead(wrongSwitch);//read the state of the switch&lt;br /&gt;  switch (wrongSwitchState){&lt;br /&gt;  case 1:&lt;br /&gt;    firstMp3PlayCounter = firstMp3PlayCounter+1;&lt;br /&gt;    if (firstMp3PlayCounter == 1){&lt;br /&gt;      digitalWrite(firstMp3Play,HIGH);&lt;br /&gt;      delay (500);&lt;br /&gt;      digitalWrite(firstMp3Play, LOW);&lt;br /&gt;      delay (5000);&lt;br /&gt;      Serial.println("firstMp3Play was pressed twice - play");&lt;br /&gt;      digitalWrite(firstMp3Play,HIGH);&lt;br /&gt;      delay (500);&lt;br /&gt;      digitalWrite(firstMp3Play, LOW);&lt;br /&gt;      //digitalWrite(loveLEDs, HIGH);&lt;br /&gt;      //delay (1000);&lt;br /&gt;      //digitalWrite(loveLEDs, LOW);&lt;br /&gt;      Serial.println("firstMp3Play was pressed third - stop");&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;    break;&lt;br /&gt;  case 0:&lt;br /&gt;    firstMp3PlayCounter = 0;&lt;br /&gt;    break;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  rightSwitchState = digitalRead(rightSwitch);//read the state of the switch&lt;br /&gt;  switch (rightSwitchState){&lt;br /&gt;  case 1:&lt;br /&gt;    if(pulse&gt;minPulse){&lt;br /&gt;      pulse--;&lt;br /&gt;      delay(speed1); // 0-5 slow to fast&lt;br /&gt;    } &lt;br /&gt;    break;&lt;br /&gt;  case 0:&lt;br /&gt;    if(pulse&lt;maxpulse){ secondmp3playcounter="=" micval="analogRead(microPhone);"&gt; 0) {&lt;br /&gt;    micCounter = micCounter+1;&lt;br /&gt;  }&lt;br /&gt;  //micRead();&lt;br /&gt; &lt;br /&gt;  /*if (micVal&gt;=512){&lt;br /&gt;    AmpVar = micVal-512;&lt;br /&gt;  }&lt;br /&gt;  else {&lt;br /&gt;    AmpVar = 512-micVal;&lt;br /&gt;  }&lt;br /&gt;  micValue = AmpVar; // read the analog input&lt;br /&gt;&lt;br /&gt;  //Serial.println(AmpVar);&lt;br /&gt;  //Serial.println(micVal);&lt;br /&gt; &lt;br /&gt;  if (AmpVar &gt; THRESHOLD) {&lt;br /&gt;    micCounter = micCounter+1;&lt;br /&gt;  }&lt;br /&gt;  */&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;  if (micCounter == HIGH){&lt;br /&gt;    digitalWrite(dcMotor, LOW);&lt;br /&gt;    thirdMp3PlayCounter = thirdMp3PlayCounter+1;&lt;br /&gt;    if (thirdMp3PlayCounter == 1){&lt;br /&gt;      digitalWrite(firstMp3Forward,HIGH);&lt;br /&gt;      delay (500);&lt;br /&gt;      digitalWrite(firstMp3Forward, LOW);&lt;br /&gt;      delay (500);&lt;br /&gt;      Serial.println("firstMp3Forward was pressed onece - mic change");&lt;br /&gt;    }&lt;br /&gt;    //digitalWrite(loveLEDs, HIGH);&lt;br /&gt;    digitalWrite(firstLayerLEDs, LOW);&lt;br /&gt;    digitalWrite(secondLayerLEDs,LOW);&lt;br /&gt;    digitalWrite(thirdLayerLEDs, LOW);&lt;br /&gt;    delay(500);&lt;br /&gt;    //digitalWrite(loveLEDs, LOW);&lt;br /&gt;    digitalWrite(firstLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(secondLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(thirdLayerLEDs, HIGH);&lt;br /&gt;    delay(500);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  resetSwitchState = digitalRead(resetSwitch);//read the state of the switch&lt;br /&gt; &lt;br /&gt;  switch (resetSwitchState){&lt;br /&gt;  case 1:&lt;br /&gt;  Serial.println("resetSwitch on");&lt;br /&gt;    micCounter = 0;&lt;br /&gt;    firstMp3PlayCounter = 0;&lt;br /&gt;    secondMp3PlayCounter = 0;&lt;br /&gt;    thirdMp3PlayCounter = 0;&lt;br /&gt;    digitalWrite(firstLayerLEDs, LOW);&lt;br /&gt;    digitalWrite(secondLayerLEDs,LOW);&lt;br /&gt;    digitalWrite(thirdLayerLEDs, LOW);&lt;br /&gt;    //digitalWrite(loveLEDs, LOW);&lt;br /&gt;    digitalWrite(dcMotor, LOW);&lt;br /&gt;    fourthMp3PlayCounter = fourthMp3PlayCounter+1;&lt;br /&gt;    if (fourthMp3PlayCounter == 1){&lt;br /&gt;      digitalWrite(firstMp3Forward,HIGH);&lt;br /&gt;      delay (500);&lt;br /&gt;      digitalWrite(firstMp3Forward, LOW);&lt;br /&gt;      delay (1000);&lt;br /&gt;      Serial.println("firstMp3Forward was pressed onece - change");&lt;br /&gt;      digitalWrite(firstMp3Play,HIGH);&lt;br /&gt;      delay (500);&lt;br /&gt;      digitalWrite(firstMp3Play, LOW);&lt;br /&gt;      delay (1000);&lt;br /&gt;      Serial.println("firstMp3Play was pressed onece - stop");&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    break;&lt;br /&gt;  case 0:&lt;br /&gt;    fourthMp3PlayCounter = 0;&lt;br /&gt;    break;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void movetheServo(){&lt;br /&gt;  if (millis() - lastPulse &gt;= refreshTime) {&lt;br /&gt;    digitalWrite(servoPin1, HIGH); // Turn the motor on&lt;br /&gt;    digitalWrite(servoPin2, HIGH); // Turn the motor on&lt;br /&gt;    delayMicroseconds(pulse); // Length of the pulse sets the motor  position&lt;br /&gt;    digitalWrite(servoPin1, LOW); // Turn the motor off&lt;br /&gt;    digitalWrite(servoPin2, LOW); // Turn the motor off&lt;br /&gt;    lastPulse = millis(); // save the time of the last pulse&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-3984980229906748954?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/3984980229906748954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=3984980229906748954' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/3984980229906748954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/3984980229906748954'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/04/wedding-cake-arduino-code-for-switches.html' title='Wedding Cake arduino code for switches, dc motor and mp3 player'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-8676238813352225027</id><published>2007-04-02T23:06:00.000-07:00</published><updated>2007-04-02T23:08:36.947-07:00</updated><title type='text'>Wedding Cake arduino code for mic</title><content type='html'>&lt;pre&gt;int microPhone = 0; //analogue input&lt;/pre&gt;int AmpVar = 0;&lt;br /&gt;int micCounter = 0;&lt;br /&gt;int micCurrentState = 0;&lt;br /&gt;int micPreviousState = 0;&lt;br /&gt;int micVal = 0;&lt;br /&gt;int THRESHOLD = 400;&lt;br /&gt;&lt;br /&gt;int resultLEDs = 7;&lt;br /&gt;int resultOutPin = 8;&lt;br /&gt;&lt;br /&gt;void setup() {&lt;br /&gt;&lt;br /&gt;pinMode(resultLEDs, OUTPUT);&lt;br /&gt;Serial.begin(9600);//initialize the serial&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void loop() {&lt;br /&gt;micVal = analogRead(microPhone);&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;/span&gt;&lt;br /&gt;if (micVal&gt;=512){&lt;br /&gt;AmpVar = micVal-512;&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;AmpVar = 512-micVal;&lt;br /&gt;}&lt;br /&gt;micVal = AmpVar; // read the analog input&lt;br /&gt;&lt;br /&gt;Serial.println(AmpVar);&lt;br /&gt;&lt;br /&gt;if (AmpVar &gt; THRESHOLD) {&lt;br /&gt;digitalWrite(resultLEDs, HIGH);&lt;br /&gt;digitalWrite(resultOutPin, HIGH);&lt;br /&gt;delay(1000);&lt;br /&gt;digitalWrite(resultLEDs, LOW);&lt;br /&gt;digitalWrite(resultOutPin, LOW);&lt;br /&gt;delay(1000);&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-8676238813352225027?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/8676238813352225027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=8676238813352225027' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/8676238813352225027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/8676238813352225027'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/04/wedding-cake-arduino-code-for-mic.html' title='Wedding Cake arduino code for mic'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-7928893369392429432</id><published>2007-04-02T23:03:00.000-07:00</published><updated>2007-04-02T23:04:57.765-07:00</updated><title type='text'>Wedding Cake proejct URL</title><content type='html'>&lt;a href="http://itp.nyu.edu/~jsl398/cake/img/wedding_progress.jpg"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://itp.nyu.edu/~jsl398/cake/img/wedding_progress.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://itp.nyu.edu/~jsl398/cake/"&gt;http://itp.nyu.edu/~jsl398/cake/&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-7928893369392429432?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/7928893369392429432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=7928893369392429432' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/7928893369392429432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/7928893369392429432'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/04/wedding-cake-proejct-url.html' title='Wedding Cake proejct URL'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-7405241140596979735</id><published>2007-04-02T22:51:00.000-07:00</published><updated>2007-04-02T23:03:36.082-07:00</updated><title type='text'>how to make flowers with wax papers and LEDs</title><content type='html'>&lt;div&gt;&lt;a href="http://itp.nyu.edu/~jsl398/tree/img/fabrication02.jpg"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://itp.nyu.edu/~jsl398/tree/img/fabrication02.jpg" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;1. make star shape using 5 ultra white LEDs and make sure connect power and ground of LEDs in parallel.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;2. connect to wires and test turning on lights&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;3. cut wax paper like petals of a flower&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;4. attach petals to LEDs and make shape like flower&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://farm1.static.flickr.com/145/418043573_f34c21230b.jpg"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://farm1.static.flickr.com/145/418043573_f34c21230b.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-7405241140596979735?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/7405241140596979735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=7405241140596979735' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/7405241140596979735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/7405241140596979735'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/04/how-to-make-flowers-with-wax-papers-and.html' title='how to make flowers with wax papers and LEDs'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm1.static.flickr.com/145/418043573_f34c21230b_t.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-2712855820489489216</id><published>2007-04-02T22:49:00.000-07:00</published><updated>2007-04-02T22:51:04.417-07:00</updated><title type='text'>Secret Tree project site</title><content type='html'>&lt;a href="http://itp.nyu.edu/~jsl398/tree/img/fabrication04.jpg"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://itp.nyu.edu/~jsl398/tree/img/fabrication04.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://itp.nyu.edu/~jsl398/tree/"&gt;http://itp.nyu.edu/~jsl398/tree/&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-2712855820489489216?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/2712855820489489216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=2712855820489489216' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/2712855820489489216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/2712855820489489216'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/04/secret-tree-project-site.html' title='Secret Tree project site'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-6800543057400821286</id><published>2007-02-14T00:00:00.000-08:00</published><updated>2007-02-14T00:05:14.853-08:00</updated><title type='text'>random idea - Secret Tree</title><content type='html'>When the people confess their secrets to the tree, the secrets make the tree grow, the flowers bloom and the fruits bear. In the book “The Giving Tree” by Shel Silverstein and the movie “In the Mood for Love” by director Wong Kar Wai, the main characters confess their secrets to a tree because it never tells their secrets to other people and it always keep them as long as the tree stays alive.&lt;br /&gt;The project “Secret Tree” listens, interprets and stores people’s secrets in its leaves or fruits with a unique format. Afterwards, their secret is stored in the fruit and through a speaker other people will be able to listen to these secrets in a unique and altered format. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Idea scketch&lt;br /&gt;&lt;a href="http://farm1.static.flickr.com/151/386819163_ffd212edd8.jpg?v=0"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://farm1.static.flickr.com/151/386819163_ffd212edd8.jpg?v=0" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://farm1.static.flickr.com/175/386819366_7df9deb09d.jpg?v=0"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://farm1.static.flickr.com/175/386819366_7df9deb09d.jpg?v=0" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The First Prototype&lt;br /&gt;&lt;a href="http://farm1.static.flickr.com/149/386820128_6a67164347.jpg?v=0"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://farm1.static.flickr.com/149/386820128_6a67164347.jpg?v=0" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-6800543057400821286?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/6800543057400821286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=6800543057400821286' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/6800543057400821286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/6800543057400821286'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/02/random-idea-secret-tree.html' title='random idea - Secret Tree'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-4847750408189076088</id><published>2007-02-07T22:24:00.000-08:00</published><updated>2007-02-07T22:31:43.223-08:00</updated><title type='text'>Do as I told you!</title><content type='html'>&lt;a href="http://bp0.blogger.com/_ZFI9FoWQMAM/RcrDs6iVrbI/AAAAAAAAACc/k3mpHLBnFF8/s1600-h/DSC05304.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5029047110307524018" style="CURSOR: hand" alt="" src="http://bp0.blogger.com/_ZFI9FoWQMAM/RcrDs6iVrbI/AAAAAAAAACc/k3mpHLBnFF8/s320/DSC05304.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Untie tangled strings!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-4847750408189076088?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/4847750408189076088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=4847750408189076088' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/4847750408189076088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/4847750408189076088'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/02/do-as-i-told-you.html' title='Do as I told you!'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_ZFI9FoWQMAM/RcrDs6iVrbI/AAAAAAAAACc/k3mpHLBnFF8/s72-c/DSC05304.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-8891859591791086639</id><published>2007-02-02T13:32:00.000-08:00</published><updated>2007-02-02T14:15:21.885-08:00</updated><title type='text'>microphone setup on breadboard</title><content type='html'>&lt;a href="http://farm1.static.flickr.com/146/377730963_6e8b2caa3d.jpg?v=0"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://farm1.static.flickr.com/146/377730963_6e8b2caa3d.jpg?v=0" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;reference : Physical Computing - Dan O'Sullivan and Tom Igoe&lt;br /&gt;Sound Input on a Microcontroller (p.356)&lt;br /&gt;audio amplifier : LM386&lt;br /&gt;capacitor : 220 microparads, 10 microparads, 4.7 microparads&lt;br /&gt;resistor : 1kohm, 10kohm, 100kohm&lt;br /&gt;&lt;br /&gt;microphone Arduiono code&lt;br /&gt;int microPhone = 0;&lt;br /&gt;int AmpVar = 0;&lt;br /&gt;int micValue =0;&lt;br /&gt;&lt;br /&gt;void setup() {&lt;br /&gt;Serial.begin(9600);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void loop() {&lt;br /&gt;micVal = analogRead(microPhone);&lt;br /&gt;if (micVal&gt;=512){&lt;br /&gt;AmpVar = micVal-512;&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;AmpVar = 512-micVal;&lt;br /&gt;}&lt;br /&gt;micValue = AmpVar; // read the analog input&lt;br /&gt;//Serial.println(AmpVar);&lt;br /&gt;resetVal = digitalRead(resetSwitch);&lt;br /&gt;&lt;br /&gt;if (micValue &gt;= THRESHOLD) { // check if the input is HIGH (button released)&lt;br /&gt;micCurrentState = 1;&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;micCurrentState = 0;&lt;br /&gt;}&lt;br /&gt;//if(micCurrentState != micPreviousState){&lt;br /&gt;if(micCurrentState == 1){&lt;br /&gt;micCounter = micCounter + 1;&lt;br /&gt;//Serial.println("micCounter = ");&lt;br /&gt;//Serial.println(micCounter);&lt;br /&gt;}&lt;br /&gt;//}&lt;br /&gt;//micPreviousState = micCurrentState;&lt;br /&gt;&lt;br /&gt;if (micCounter &gt; 0) {&lt;br /&gt;digitalWrite(candleLEDs, LOW);&lt;br /&gt;delay(100);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-8891859591791086639?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/8891859591791086639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=8891859591791086639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/8891859591791086639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/8891859591791086639'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/02/microphone-setup-on-breadboard.html' title='microphone setup on breadboard'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-4109681733589443369</id><published>2007-02-02T13:27:00.000-08:00</published><updated>2007-02-02T13:29:57.641-08:00</updated><title type='text'>Happy Birthday project 1st prototype code</title><content type='html'>int firstLayerLEDs = 3;&lt;br /&gt;int secondLayerLEDs = 4;&lt;br /&gt;&lt;br /&gt;int candleVal = 0;&lt;br /&gt;int candleSwitch =5;                                                                                                                                                                     &lt;br /&gt;int switchState = 0;    // the state of all situation&lt;br /&gt;int candleLEDs = 6; &lt;br /&gt;int microPhone = 0;&lt;br /&gt;int AmpVar = 0;&lt;br /&gt;int micValue =0;&lt;br /&gt;int micCounter = 0;&lt;br /&gt;int micCurrentState = 0;&lt;br /&gt;int micPreviousState = 0;&lt;br /&gt;&lt;br /&gt;int resetVal = 0;&lt;br /&gt;int resetSwitch = 7;  &lt;br /&gt;&lt;br /&gt;int micVal = 0; &lt;br /&gt;int statePin = HIGH;&lt;br /&gt;int THRESHOLD = 20;&lt;br /&gt;&lt;br /&gt;int relay1 = 8; // select the realy pin for mp3 player&lt;br /&gt;int relay2 = 9;&lt;br /&gt;int relay3 = 10;&lt;br /&gt;&lt;br /&gt;int firstCounter = 0;&lt;br /&gt;int secondCounter = 0;&lt;br /&gt;int thirdCounter =0;&lt;br /&gt;&lt;br /&gt;void setup() {&lt;br /&gt;  pinMode(firstLayerLEDs, OUTPUT);&lt;br /&gt;  pinMode(secondLayerLEDs, OUTPUT);&lt;br /&gt;  pinMode(candleSwitch, INPUT);&lt;br /&gt;  pinMode(candleLEDs, OUTPUT);&lt;br /&gt;  pinMode(resetSwitch, INPUT);&lt;br /&gt;  pinMode(relay1, OUTPUT); // declare the relay Pin as an OUTPUT&lt;br /&gt;  pinMode(relay2, OUTPUT);&lt;br /&gt;  pinMode(relay3, OUTPUT);&lt;br /&gt;&lt;br /&gt;  Serial.begin(9600); &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void loop() {&lt;br /&gt;  candleVal = digitalRead(candleSwitch); &lt;br /&gt;  micVal = analogRead(microPhone); &lt;br /&gt;  if (micVal&gt;=512){&lt;br /&gt;    AmpVar = micVal-512;&lt;br /&gt;  } &lt;br /&gt;  else {&lt;br /&gt;    AmpVar = 512-micVal;&lt;br /&gt;  }&lt;br /&gt;  micValue = AmpVar; // read the analog input&lt;br /&gt;  //Serial.println(AmpVar);&lt;br /&gt;  resetVal = digitalRead(resetSwitch); &lt;br /&gt;&lt;br /&gt;  if (micValue &gt;= THRESHOLD) { // check if the input is HIGH (button released)&lt;br /&gt;    micCurrentState = 1;&lt;br /&gt;  } &lt;br /&gt;  else {&lt;br /&gt;    micCurrentState = 0;&lt;br /&gt;  }&lt;br /&gt;  //if(micCurrentState != micPreviousState){&lt;br /&gt;  if(micCurrentState == 1){&lt;br /&gt;    micCounter = micCounter + 1;&lt;br /&gt;    //Serial.println("micCounter = ");&lt;br /&gt;    //Serial.println(micCounter);&lt;br /&gt;  }&lt;br /&gt;  //}&lt;br /&gt;  //micPreviousState = micCurrentState;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  if (switchState == 0) { &lt;br /&gt;    thirdCounter = 0;&lt;br /&gt;    secondCounter =0;  &lt;br /&gt;    firstCounter= firstCounter + 1;&lt;br /&gt;    if (firstCounter == 1){&lt;br /&gt;      digitalWrite(relay1,HIGH);&lt;br /&gt;      delay (500);&lt;br /&gt;      digitalWrite(relay1, LOW);&lt;br /&gt;      //delay (500);&lt;br /&gt;      //digitalWrite(relay3,HIGH);&lt;br /&gt;     //delay (500);&lt;br /&gt;      //digitalWrite(relay3, LOW);&lt;br /&gt;      //delay (3000);&lt;br /&gt;      Serial.println("relay2 &amp; relay3, each was pressed once");&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    digitalWrite(firstLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(secondLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(candleLEDs, LOW);&lt;br /&gt;    delay(100);&lt;br /&gt;  }&lt;br /&gt;  //if (candleVal == HIGH &amp;&amp; micValue &lt; THRESHOLD) {&lt;br /&gt;  if (candleVal == HIGH &amp;&amp; micCounter == 0) {&lt;br /&gt;    switchState = 1;&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;  if (switchState == 1) { &lt;br /&gt;    firstCounter =0;&lt;br /&gt;    thirdCounter =0;&lt;br /&gt;    secondCounter= secondCounter + 1;&lt;br /&gt;    if (secondCounter == 1){&lt;br /&gt;      digitalWrite(relay1,HIGH);&lt;br /&gt;      delay (500);&lt;br /&gt;      digitalWrite(relay1, LOW);&lt;br /&gt;      //delay (3000);&lt;br /&gt;      Serial.println("relay2 was pressed onece");&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    digitalWrite(firstLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(secondLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(candleLEDs, HIGH);&lt;br /&gt;    delay(100);&lt;br /&gt;    digitalWrite(firstLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(secondLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(candleLEDs, HIGH);&lt;br /&gt;    delay(100);&lt;br /&gt;  }&lt;br /&gt;  //comment your code!&lt;br /&gt;  if  (candleVal == HIGH &amp;&amp; micCounter &gt; 0) {&lt;br /&gt;    switchState = 2;&lt;br /&gt;  }&lt;br /&gt;  if (switchState == 2) {&lt;br /&gt;    firstCounter = 0;&lt;br /&gt;    secondCounter = 0;&lt;br /&gt;    thirdCounter= thirdCounter + 1;&lt;br /&gt;    if (thirdCounter == 1){&lt;br /&gt;      digitalWrite(relay1,HIGH);&lt;br /&gt;      delay (500);&lt;br /&gt;      digitalWrite(relay1, LOW);&lt;br /&gt;      //delay (3000);&lt;br /&gt;      Serial.println("relay1 was pressed once");&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    digitalWrite(firstLayerLEDs, LOW);&lt;br /&gt;    digitalWrite(secondLayerLEDs, LOW);&lt;br /&gt;    digitalWrite(candleLEDs, LOW);&lt;br /&gt;    delay(100);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  //if  (resetVal == 0) {&lt;br /&gt;  //if  (resetVal == 0 || candleVal == LOW) {&lt;br /&gt;  if  (candleVal == LOW) {&lt;br /&gt;    switchState = 0;&lt;br /&gt;    micCounter = 0;&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;when the cake is built all lights are on&lt;br /&gt; &lt;br /&gt; when the candle is blown all lightw go off&lt;br /&gt; &lt;br /&gt; */&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-4109681733589443369?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/4109681733589443369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=4109681733589443369' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/4109681733589443369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/4109681733589443369'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/02/happy-birthday-project-1st-prototype_02.html' title='Happy Birthday project 1st prototype code'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-5442505377822410505</id><published>2007-02-02T13:24:00.000-08:00</published><updated>2007-02-02T14:19:37.458-08:00</updated><title type='text'>Happy Birthday project 1st prototype picture and movie</title><content type='html'>&lt;a href="http://farm1.static.flickr.com/160/377731046_b8051f5c38.jpg?v=0"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://farm1.static.flickr.com/160/377731046_b8051f5c38.jpg?v=0" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://farm1.static.flickr.com/83/377731190_8bf9c507bc.jpg?v=0"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://farm1.static.flickr.com/83/377731190_8bf9c507bc.jpg?v=0" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://farm1.static.flickr.com/129/377731115_f0d7921c20.jpg?v=0"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://farm1.static.flickr.com/129/377731115_f0d7921c20.jpg?v=0" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;object width="425" height="350"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Ltozd5cQfnk"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/Ltozd5cQfnk" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-5442505377822410505?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/5442505377822410505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=5442505377822410505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/5442505377822410505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/5442505377822410505'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/02/happy-birthday-project-1st-prototype.html' title='Happy Birthday project 1st prototype picture and movie'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-2385073699708714176</id><published>2007-02-02T13:22:00.000-08:00</published><updated>2007-02-02T19:01:17.452-08:00</updated><title type='text'>Happy Birthday project prototype picture and video</title><content type='html'>&lt;a href="http://farm1.static.flickr.com/131/377730806_ab0b5eb1a2.jpg?v=0"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://farm1.static.flickr.com/131/377730806_ab0b5eb1a2.jpg?v=0" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="425" height="350"&gt;&lt;param name="movie" value="http://www.youtube.com/v/xXtk9ExX-kI"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/xXtk9ExX-kI" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-2385073699708714176?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/2385073699708714176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=2385073699708714176' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/2385073699708714176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/2385073699708714176'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/02/happy-birthday-project-prototype.html' title='Happy Birthday project prototype picture and video'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-7802462209730495879</id><published>2007-02-02T13:21:00.001-08:00</published><updated>2007-02-02T13:21:41.480-08:00</updated><title type='text'>Happy Birthday project prototype code without mp3 function</title><content type='html'>int firstLayerLEDs = 3;&lt;br /&gt;int secondLayerLEDs = 4;&lt;br /&gt;&lt;br /&gt;int candleVal = 0;&lt;br /&gt;int candleSwitch = 5;                                                                                                                                                                                                                                                                                                                                                &lt;br /&gt;int switchState = 0;    // the state of all situation&lt;br /&gt;int candleLEDs = 6; &lt;br /&gt;int microPhone = 0;&lt;br /&gt;int AmpVar = 0;&lt;br /&gt;int micValue =0;&lt;br /&gt;int micCounter = 0;&lt;br /&gt;int micCurrentState = 0;&lt;br /&gt;int micPreviousState = 0;&lt;br /&gt;&lt;br /&gt;int resetVal = 0;&lt;br /&gt;int resetSwitch = 7;  &lt;br /&gt;&lt;br /&gt;int micVal = 0; &lt;br /&gt;int statePin = HIGH;&lt;br /&gt;int THRESHOLD = 100;&lt;br /&gt;&lt;br /&gt;void setup() {&lt;br /&gt;  pinMode(firstLayerLEDs, OUTPUT);&lt;br /&gt;  pinMode(secondLayerLEDs, OUTPUT);&lt;br /&gt;  pinMode(candleSwitch, INPUT);&lt;br /&gt;  pinMode(candleLEDs, OUTPUT);&lt;br /&gt;  pinMode(resetSwitch, INPUT);&lt;br /&gt;&lt;br /&gt;  Serial.begin(9600); &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void loop() {&lt;br /&gt;  candleVal = digitalRead(candleSwitch); &lt;br /&gt;  micVal = analogRead(microPhone); &lt;br /&gt;  if (micVal&gt;=512){&lt;br /&gt;    AmpVar = micVal-512;&lt;br /&gt;  } &lt;br /&gt;  else {&lt;br /&gt;    AmpVar = 512-micVal;&lt;br /&gt;  }&lt;br /&gt;  micValue = AmpVar; // read the analog input&lt;br /&gt;  Serial.println(AmpVar);&lt;br /&gt;  resetVal = digitalRead(resetSwitch); &lt;br /&gt;  &lt;br /&gt;  if (micValue &gt;= THRESHOLD) { // check if the input is HIGH (button released)&lt;br /&gt;    micCurrentState = 1;&lt;br /&gt;  } &lt;br /&gt;  else {&lt;br /&gt;    micCurrentState = 0;&lt;br /&gt;  }&lt;br /&gt;  //if(micCurrentState != micPreviousState){&lt;br /&gt;    if(micCurrentState == 1){&lt;br /&gt;      micCounter = micCounter + 1;&lt;br /&gt;      Serial.print("micCounter = ");&lt;br /&gt;      Serial.println(micCounter);&lt;br /&gt;    }&lt;br /&gt;  //}&lt;br /&gt;  //micPreviousState = micCurrentState;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  if (switchState == 0) { &lt;br /&gt;    digitalWrite(firstLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(secondLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(candleLEDs, LOW);&lt;br /&gt;    delay(100);&lt;br /&gt;  }&lt;br /&gt;  //if (candleVal == HIGH &amp;&amp; micValue &lt; THRESHOLD) {&lt;br /&gt;  if (candleVal == HIGH &amp;&amp; micCounter == 0) {&lt;br /&gt;    switchState = 1;&lt;br /&gt;  }&lt;br /&gt;  if (switchState == 1) { &lt;br /&gt;    digitalWrite(firstLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(secondLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(candleLEDs, HIGH);&lt;br /&gt;    delay(100);&lt;br /&gt;    digitalWrite(firstLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(secondLayerLEDs, HIGH);&lt;br /&gt;    digitalWrite(candleLEDs, HIGH);&lt;br /&gt;    delay(100);&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;  //comment your code!&lt;br /&gt;  if  (candleVal == HIGH &amp;&amp; micCounter &gt; 0) {&lt;br /&gt;    switchState = 2;&lt;br /&gt;  }&lt;br /&gt;  if (switchState == 2) {&lt;br /&gt;    digitalWrite(firstLayerLEDs, LOW);&lt;br /&gt;    digitalWrite(secondLayerLEDs, LOW);&lt;br /&gt;    digitalWrite(candleLEDs, LOW);&lt;br /&gt;    delay(100);&lt;br /&gt;  }&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;  //if  (resetVal == 0) {&lt;br /&gt;  if  (resetVal == 0 || candleVal == LOW) {&lt;br /&gt;    switchState = 0;&lt;br /&gt;    micCounter = 0;&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;when the cake is built all lights are on&lt;br /&gt;&lt;br /&gt;when the candle is blown all lightw go off&lt;br /&gt;&lt;br /&gt;*/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-7802462209730495879?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/7802462209730495879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=7802462209730495879' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/7802462209730495879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/7802462209730495879'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/02/happy-birthday-project-prototype-code.html' title='Happy Birthday project prototype code without mp3 function'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-1775168119083003754</id><published>2007-01-25T12:11:00.000-08:00</published><updated>2007-01-25T12:12:34.036-08:00</updated><title type='text'>Happy Birthday Blocks mockups</title><content type='html'>&lt;a href="http://itp.nyu.edu/~jsl398/pcom/puzzle_all_cake.jpg"&gt;&lt;img style="WIDTH: 400px; CURSOR: hand" alt="" src="http://itp.nyu.edu/~jsl398/pcom/puzzle_all_cake.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-1775168119083003754?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/1775168119083003754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=1775168119083003754' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/1775168119083003754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/1775168119083003754'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/01/happy-birthday-blocks-mockups.html' title='Happy Birthday Blocks mockups'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-116942485558405993</id><published>2007-01-21T16:03:00.000-08:00</published><updated>2007-01-21T16:20:44.286-08:00</updated><title type='text'>example and idea of FSM</title><content type='html'>&lt;a href="http://photos1.blogger.com/x/blogger/6137/502/1600/760403/knob_puzzle_01.jpg"&gt;&lt;img style="CURSOR: hand" alt="" src="http://photos1.blogger.com/x/blogger/6137/502/400/73902/knob_puzzle_01.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Idea of Finite State Machine&lt;br /&gt;Knob Puzzle The knob puzzle is consisted by basic diagrams such as square, triangle, circle, and star. When the piece of the puzzle is inserted in the right place, the user will get instant feedback from lights and sound. Also, the user will get finish feedback when he or she completes the puzzle.&lt;br /&gt;&lt;a href="http://photos1.blogger.com/x/blogger/6137/502/1600/197575/knob_puzzle_02.jpg"&gt;&lt;img style="CURSOR: hand" alt="" src="http://photos1.blogger.com/x/blogger/6137/502/400/123473/knob_puzzle_02.jpg" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-116942485558405993?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/116942485558405993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=116942485558405993' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/116942485558405993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/116942485558405993'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/01/example-and-idea-of-fsm.html' title='example and idea of FSM'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38695495.post-116942422241758353</id><published>2007-01-21T16:01:00.000-08:00</published><updated>2007-01-21T16:03:42.426-08:00</updated><title type='text'>Finite State Machine</title><content type='html'>A finite state machine (FSM) or finite state automaton (plural: automata) is a model of behavior composed of a finite number of &lt;a title="State (computer science)" href="http://en.wikipedia.org/wiki/State_%28computer_science%29"&gt;states&lt;/a&gt;, transitions between those states, and actions. A state stores information about the past, i.e. it reflects the input changes from the system start to the present moment. reference  : &lt;a href="http://en.wikipedia.org/wiki/Finite_state_machine"&gt;http://en.wikipedia.org/wiki/Finite_state_machine&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38695495-116942422241758353?l=sun-livingart.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sun-livingart.blogspot.com/feeds/116942422241758353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38695495&amp;postID=116942422241758353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/116942422241758353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38695495/posts/default/116942422241758353'/><link rel='alternate' type='text/html' href='http://sun-livingart.blogspot.com/2007/01/finite-state-machine.html' title='Finite State Machine'/><author><name>Sun</name><uri>http://www.blogger.com/profile/02944203431472956388</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://itp.nyu.edu/~jsl398/img/jisun2_s.jpg'/></author><thr:total>0</thr:total></entry></feed>
