<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title></title>
	<atom:link href="http://group15kna.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://group15kna.wordpress.com</link>
	<description>we&#039;re going to Stockholm and London. You&#039;re coming with us?</description>
	<lastBuildDate>Thu, 22 Oct 2009 20:08:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='group15kna.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/e0ce3b08790dec3e47c34342f089afd5?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title></title>
		<link>http://group15kna.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://group15kna.wordpress.com/osd.xml" title="" />
	<atom:link rel='hub' href='http://group15kna.wordpress.com/?pushpress=hub'/>
		<item>
		<title>The hardware and software is done!</title>
		<link>http://group15kna.wordpress.com/2009/10/22/the-hardware-and-software-is-done/</link>
		<comments>http://group15kna.wordpress.com/2009/10/22/the-hardware-and-software-is-done/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 20:07:15 +0000</pubDate>
		<dc:creator>group15kna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://group15kna.wordpress.com/?p=140</guid>
		<description><![CDATA[Now when everything is completed and ready to be presented I though I&#8217;d do a small tutorial discribing the acctual work we&#8217;ve done with the hardware and the software programming. To start this all off here&#8217;s list of all the &#8230; <a href="http://group15kna.wordpress.com/2009/10/22/the-hardware-and-software-is-done/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=140&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now when everything is completed and ready to be presented I though I&#8217;d do a small tutorial discribing the acctual work we&#8217;ve done with the hardware and the software programming. To start this all off here&#8217;s list of all the ingredients you need, or at least, what we used:</p>
<p><span style="text-decoration:underline;">Hardware</span><br />
1x <a title="Arduino Homepage" href="http://www.arduino.cc" target="_blank">Arduino</a> microcomputer chip<br />
3x <a title="Parallax homepage" href="http://www.parallax.com/tabid/768/ProductID/92/Default.aspx" target="_blank">Parallax Ping)))</a> ultrasonic sensors<br />
Wires and such.</p>
<p><span style="text-decoration:underline;">Software</span><a href="http://www.adobe.com/products/flash/?promoid=BPDEE" target="_blank"><br />
Flash CS4</a><br />
The <a title="Arduino Homepage" href="http://arduino.cc/en/Main/Software" target="_blank">Arduino</a> software<br />
A <a title="Page of serverproxys" href="http://www.arduino.cc/playground/Interfacing/SerialNet" target="_blank">Server Proxy</a> we used the one called Serproxy.<br />
Particle generator from <a title="Activeden" href="http://activeden.net/" target="_blank">activeden.net</a></p>
<p>This is the setup of the hardware:</p>
<p><img class="size-full wp-image-142 alignleft" title="kopplingsschema" src="http://group15kna.files.wordpress.com/2009/10/kopplingsschema1.jpg?w=500" alt="kopplingsschema"   /></p>
<p>After getting to know the basics of the Arduino a litte bit, making led-lamps blink and such, we started looking for ways to  get the Arduino to send data to a Flash based application written in ActionScript 3. The reason we wanted it in Actionscript 3 was because we had already found a complete raingenerator and because of the limited time we decided to go with that one rather than making one of our own. We found some codes called Firmata and Glue that supposedly works really well for sending information fråm the Arduino to Flash but to our regret we found out that it didn&#8217;t really work at all if ping))) sensors were involved.<br />
The problem for this solution came in the form of a blog, none other than the blog of<a title="James Alliban's blog" href="http://jamesalliban.wordpress.com/category/arduino/" target="_blank"> James Alliban</a> (deepest thanks to you James).<br />
Here we found another way for the Flash to get data from the sensors. We modified James code for our own purpous and then started to work on the flash code.</p>
<p>I will now post all of the code and settings we have written and in it there&#8217;s plenty of comments for you to understand it better.<br />
Press the &#8220;keep reading&#8221; to see it all.</p>
<p><span id="more-140"></span><br />
<span style="text-decoration:underline;">Serproxy Config</span></p>
<p># Config file for serproxy</p>
<p># Transform newlines coming from the serial port into nils<br />
# true (e.g. if using Flash) or false<br />
newlines_to_nils=true</p>
<p># Comm ports used<br />
comm_ports=1</p>
<p># Default settings<br />
comm_baud=9600<br />
comm_databits=8<br />
comm_stopbits=1<br />
comm_parity=none</p>
<p># Idle time out in seconds<br />
timeout=300</p>
<p># Port 3 settings (ttyS2)<br />
comm_ports=1<br />
serial_device1=/dev/cu.usbserial-A6008ekD<br />
net_port1=5331</p>
<p><span style="text-decoration:underline;">Arduino Code</span></p>
<p>/* Ultrasound Sensor<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
*<br />
* Reads values (00014-01199) from an ultrasound sensor (3m sensor)<br />
* and writes the values to the serialport.<br />
*<br />
* http://www.xlab.se | http://www.0j0.org<br />
* copyleft 2005 Mackie for XLAB | DojoDave for DojoCorp<br />
*<br />
*/</p>
<p>int ultraSoundSignal = 7; // Ultrasound signal pin<br />
int ultraSoundSignal2 = 8; // Ultrasound signal pin<br />
int ultraSoundSignal3 = 9; // Ultrasound signal pin<br />
int val = 0;<br />
int ultrasoundValue = 0;<br />
int ultrasoundValue2 = 0;<br />
int ultrasoundValue3 = 0;<br />
int timecount = 0; // Echo counter<br />
int timecount2 = 0;<br />
int timecount3 = 0;<br />
int ledPin = 13; // LED connected to digital pin 13</p>
<p>void setup() {<br />
Serial.begin(9600);            // Sets the baud rate to 9600 &#8211; was Serial.begin(9600);<br />
pinMode(ledPin, OUTPUT);        // Sets the digital pin as output<br />
}</p>
<p>void loop() {</p>
<p>//POLLY!<br />
timecount = 0;<br />
timecount2 = 0;<br />
timecount3 = 0;<br />
val = 0;<br />
pinMode(ultraSoundSignal, OUTPUT); // Switch signalpin to output<br />
pinMode(ultraSoundSignal2, OUTPUT); // Switch signalpin to output</p>
<p>/* Send low-high-low pulse to activate the trigger pulse of the sensor<br />
* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
*/</p>
<p>digitalWrite(ultraSoundSignal, LOW); // Send low pulse<br />
delayMicroseconds(2); // Wait for 2 microseconds<br />
digitalWrite(ultraSoundSignal, HIGH); // Send high pulse<br />
delayMicroseconds(5); // Wait for 5 microseconds<br />
digitalWrite(ultraSoundSignal, LOW); // Holdoff</p>
<p>/* Listening for echo pulse<br />
* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
*/</p>
<p>pinMode(ultraSoundSignal, INPUT); // Switch signalpin to input<br />
val = digitalRead(ultraSoundSignal); // Append signal value to val<br />
while(val == LOW) { // Loop until pin reads a high value<br />
val = digitalRead(ultraSoundSignal);<br />
}</p>
<p>while(val == HIGH) { // Loop until pin reads a high value<br />
val = digitalRead(ultraSoundSignal);<br />
timecount = timecount +1;        // Count echo pulse time<br />
}<br />
//POLLY!<br />
val = 0;<br />
pinMode(ultraSoundSignal2, OUTPUT); // Switch signalpin to output</p>
<p>/* Send low-high-low pulse to activate the trigger pulse of the sensor<br />
* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
*/</p>
<p>digitalWrite(ultraSoundSignal2, LOW); // Send low pulse<br />
delayMicroseconds(2); // Wait for 2 microseconds<br />
digitalWrite(ultraSoundSignal2, HIGH); // Send high pulse<br />
delayMicroseconds(5); // Wait for 5 microseconds<br />
digitalWrite(ultraSoundSignal2, LOW); // Holdoff</p>
<p>/* Listening for echo pulse<br />
* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
*/</p>
<p>pinMode(ultraSoundSignal2, INPUT); // Switch signalpin to input<br />
val = digitalRead(ultraSoundSignal2); // Append signal value to val<br />
while(val == LOW) { // Loop until pin reads a high value<br />
val = digitalRead(ultraSoundSignal2);<br />
}</p>
<p>while(val == HIGH) { // Loop until pin reads a high value<br />
val = digitalRead(ultraSoundSignal2);<br />
timecount2 = timecount2 +1;        // Count echo pulse time<br />
}</p>
<p>//POLLY!<br />
val = 0;<br />
pinMode(ultraSoundSignal3, OUTPUT); // Switch signalpin to output</p>
<p>/* Send low-high-low pulse to activate the trigger pulse of the sensor<br />
* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
*/</p>
<p>digitalWrite(ultraSoundSignal3, LOW); // Send low pulse<br />
delayMicroseconds(2); // Wait for 2 microseconds<br />
digitalWrite(ultraSoundSignal3, HIGH); // Send high pulse<br />
delayMicroseconds(5); // Wait for 5 microseconds<br />
digitalWrite(ultraSoundSignal3, LOW); // Holdoff</p>
<p>/* Listening for echo pulse<br />
* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
*/</p>
<p>pinMode(ultraSoundSignal3, INPUT); // Switch signalpin to input<br />
val = digitalRead(ultraSoundSignal3); // Append signal value to val<br />
while(val == LOW) { // Loop until pin reads a high value<br />
val = digitalRead(ultraSoundSignal3);<br />
}</p>
<p>while(val == HIGH) { // Loop until pin reads a high value<br />
val = digitalRead(ultraSoundSignal3);<br />
timecount3 = timecount3 +1;        // Count echo pulse time<br />
}<br />
/* Writing out values to the serial port<br />
* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
*/<br />
ultrasoundValue3 = timecount3;<br />
ultrasoundValue2 = timecount2;<br />
ultrasoundValue = timecount; // Append echo pulse time to ultrasoundValue<br />
Serial.write(&#8216;A&#8217;); // Example identifier for the sensor<br />
Serial.print(ultrasoundValue);<br />
//  Serial.write(10);<br />
// Serial.write(13);<br />
Serial.write(&#8216;B&#8217;); // Example identifier for the sensor<br />
Serial.print(ultrasoundValue2);<br />
// Serial.write(10);<br />
// Serial.write(13);<br />
Serial.write(&#8216;C&#8217;); // Example identifier for the sensor<br />
Serial.print(ultrasoundValue3);<br />
Serial.write(10);<br />
Serial.write(13);</p>
<p>/* Lite up LED if any value is passed by the echo pulse<br />
* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
*/</p>
<p>if(timecount &gt; 0){<br />
digitalWrite(ledPin, HIGH);<br />
}</p>
<p>/* Delay of program<br />
* &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
*/<br />
delay(100);<br />
}</p>
<p><span style="text-decoration:underline;">ActionScript</span><br />
import flash.display.Sprite;<br />
import flash.display.MovieClip;<br />
import flash.net.Socket;<br />
import flash.events.ProgressEvent;<br />
import flash.media.Sound;<br />
import flash.media.SoundChannel;<br />
import global<br />
import com.gskinner.geom.ColorMatrix;<br />
import flash.filters.ColorMatrixFilter;</p>
<p>var s                :    Socket;<br />
var varden            :    String;<br />
var sensor1            :    String;<br />
var sensor2            :    String;<br />
var sensor3            :    String;<br />
var prevInput        :    String;        // the previously processed input (returned value)<br />
var currInput        :    String;        // the currently processed input<br />
var finalInput        :    String;        // the input after processin<br />
var Bpos            :    Number;<br />
var Cpos            :     Number;<br />
var Apos            :     Number;<br />
var Regn            :    Number;<br />
var Vind            :    Number;<br />
var Temp            :    Number;<br />
var lastRegn        :    Number;<br />
var lastVind        :    Number;<br />
var lastTemp        :    Number;<br />
var particleNumber    :    int;<br />
var particleNumber2 :    int;</p>
<p>var minusett        :    Number = -1;<br />
var lightOn            :    Number = 5;<br />
var FadeValue        :    Number = 5;<br />
var RegnOut            :    Number = 0;<br />
var VindOut            :    Number = 0;<br />
var TempOut            :    Number = 0;<br />
var RegnH            :    Number = 0;<br />
var VindH            :    Number = 0;<br />
var TempH            :    Number = 0;<br />
var maxvalues        :    Number = 900;    // set min/max values<br />
var minvalues        :    Number = 120;<br />
var absolutemin        :    Number = 50;<br />
var AskCountdown    :    Number = 0;<br />
var AskFordrojning    :    int = 0;<br />
var RegnVarden        :    Array = new Array(900,900,900,900,900);</p>
<p>//&#8211; Declaring the different sounds were using and putting them in different sound-<br />
//&#8211; channels so we can individually set the volume on them. three sounds for Rain,<br />
//&#8211; two for wind and one for birds.</p>
<p>var Rainsnd:Sound = new Sound();<br />
var Chan:SoundChannel = new SoundChannel();<br />
var Trans = new SoundTransform();<br />
Rainsnd.load(new URLRequest(&#8220;Rain.mp3&#8243;));<br />
Chan = Rainsnd.play(5,int.MAX_VALUE);<br />
Trans.volume = 0;<br />
Chan.soundTransform = Trans;</p>
<p>var Rain1snd:Sound = new Sound();<br />
var Chan1:SoundChannel = new SoundChannel();<br />
var Trans1 = new SoundTransform();<br />
Rain1snd.load(new URLRequest(&#8220;Rain1.mp3&#8243;));<br />
Chan1 = Rain1snd.play(5,int.MAX_VALUE);<br />
Trans1.volume = 0;<br />
Chan1.soundTransform = Trans1;</p>
<p>var Rain3snd:Sound = new Sound();<br />
var Chan3:SoundChannel = new SoundChannel();<br />
var Trans3 = new SoundTransform();<br />
Rain3snd.load(new URLRequest(&#8220;Rain3.mp3&#8243;));<br />
Chan3 = Rain3snd.play(5,int.MAX_VALUE);<br />
Trans3.volume = 0;<br />
Chan3.soundTransform = Trans3;</p>
<p>var Wind2snd:Sound = new Sound();<br />
var Chan5:SoundChannel = new SoundChannel();<br />
var Trans5 = new SoundTransform();<br />
Wind2snd.load(new URLRequest(&#8220;wind.mp3&#8243;));<br />
Chan5 = Wind2snd.play(0,int.MAX_VALUE);<br />
Trans5.volume = 0;<br />
Chan5.soundTransform = Trans5;</p>
<p>var Wind3snd:Sound = new Sound();<br />
var Chan7:SoundChannel = new SoundChannel();<br />
var Trans7 = new SoundTransform();<br />
Wind3snd.load(new URLRequest(&#8220;windy.mp3&#8243;));<br />
Chan7 = Wind3snd.play(0,int.MAX_VALUE);<br />
Trans7.volume = 0;<br />
Chan7.soundTransform = Trans7;</p>
<p>var Birdsnd:Sound = new Sound();<br />
var Chan8:SoundChannel = new SoundChannel();<br />
var Trans8 = new SoundTransform();<br />
Birdsnd.load(new URLRequest(&#8220;Bird.mp3&#8243;));<br />
Chan8 = Birdsnd.play(5,int.MAX_VALUE);<br />
Trans8.volume = 0;<br />
Chan8.soundTransform = Trans8;</p>
<p>//&#8211; Telling the two different particle generators which particle they are going to use.<br />
//&#8211; One of them raindrops and the other one snowflakes.</p>
<p>SnowGen.sourceClasses=["BasicSnowflake"]<br />
RainGen.sourceClasses=["BasicRaindrop"]</p>
<p>function RangeFinderData()<br />
{<br />
init();</p>
<p>}</p>
<p>//&#8211; Initiative data like portnumbers and such are set.</p>
<p>function init() : void<br />
{</p>
<p>s = new Socket(&#8220;127.0.0.1&#8243;, 5331);<br />
s.addEventListener(ProgressEvent.SOCKET_DATA, sData);<br />
}</p>
<p>//&#8211; This is the function that controls the brightness of the background.<br />
//&#8211; Brightness is controlled by the variable called RegnOut.</p>
<p>function colorChange() : void<br />
{</p>
<p>var cm:ColorMatrix = new ColorMatrix();<br />
cm.adjustColor(RegnOut/18*minusett, 0, 0, 0);<br />
Blue.filters = [new ColorMatrixFilter(cm)];</p>
<p>}</p>
<p>function RegnFade() : void            //&#8211; Function that fades the rain up and down.<br />
{</p>
<p>//&#8211; Since the electronics sometimes seem to fail and give us a few false values we had<br />
//&#8211; to produce a function that checks the last 5 values and all of them needs to have a<br />
//&#8211; value below 900 for the program to register them.<br />
varden = &#8220;bra&#8221;;<br />
RegnVarden.unshift(Regn);<br />
RegnVarden.pop();</p>
<p>var u:int = 0;<br />
while (u &lt; 6)<br />
{<br />
if (RegnVarden[u] &gt; 900)<br />
{<br />
varden = &#8220;daligt&#8221;;<br />
}<br />
u++;<br />
}</p>
<p>if(Regn &lt; absolutemin){            //&#8211; Due to electrical bugs the sensors sometime registers a zero, this<br />
Regn = lastRegn;            //&#8211; code works around that issue.<br />
}</p>
<p>else if (Regn &lt; minvalues){        //&#8211; If if you put you hand under our minumum value<br />
RegnH = 0;                    //&#8211; the outputvalue is set to zero.<br />
}<br />
else if (Regn &gt; maxvalues){        //&#8211; If you remove the hand Regn goes through the roof<br />
//&#8211; the outputvalue stays at the value u set it on.<br />
}<br />
else if (varden == &#8220;bra&#8221;)        //&#8211; If you have 5 good values in a row, a new value is set.<br />
{<br />
RegnH = Regn;<br />
}</p>
<p>if (RegnH &lt; RegnOut){                            //&#8211; Makes the value fade up or down less ore more<br />
if ((RegnOut &#8211; RegnH) &gt; 100 ){                //&#8211; Depending on how far off it is.<br />
RegnOut = (RegnOut &#8211; (FadeValue*10));<br />
}<br />
else<br />
{<br />
RegnOut = (RegnOut &#8211; FadeValue);<br />
}<br />
}<br />
else if (RegnH &gt; RegnOut){<br />
if ((RegnH &#8211; RegnOut) &gt; 100 ){<br />
RegnOut = (RegnOut + (FadeValue*10));<br />
}<br />
else<br />
{<br />
RegnOut = (RegnOut + FadeValue);<br />
}<br />
}<br />
lastRegn = Regn;<br />
}</p>
<p>//&#8211; The Wind- and TempFade works basically exactly like RegnFade.</p>
<p>function VindFade() : void<br />
{<br />
if(Vind &lt; absolutemin){<br />
Vind = lastVind;<br />
}</p>
<p>else if (Vind &lt; minvalues){<br />
VindH = 0;<br />
}<br />
else if (Vind &gt; maxvalues){</p>
<p>}<br />
else<br />
{<br />
VindH = Vind;<br />
}</p>
<p>if (VindH &lt; VindOut){<br />
if ((VindOut &#8211; VindH) &gt; 100 ){<br />
VindOut = (VindOut &#8211; (FadeValue*10));<br />
}<br />
else<br />
{<br />
VindOut = (VindOut &#8211; FadeValue);<br />
}<br />
}<br />
else if (VindH &gt; VindOut){<br />
if ((VindH &#8211; VindOut) &gt; 100 ){<br />
VindOut = (VindOut + (FadeValue*10));<br />
}<br />
else<br />
{<br />
VindOut = (VindOut + FadeValue);<br />
}<br />
}<br />
lastVind = Vind;<br />
}</p>
<p>function TempFade() : void<br />
{<br />
if(Temp &lt; absolutemin){<br />
Temp = lastTemp;<br />
}</p>
<p>else if (Temp &lt; minvalues){<br />
TempH = 0;<br />
}<br />
else if (Temp &gt; maxvalues){</p>
<p>}<br />
else<br />
{<br />
TempH = Temp;<br />
}</p>
<p>if (TempH &lt; TempOut){<br />
if ((TempOut &#8211; TempH) &gt; 100 ){<br />
TempOut = (TempOut &#8211; (FadeValue*10));<br />
}<br />
else<br />
{<br />
TempOut = (TempOut &#8211; FadeValue);<br />
}<br />
}<br />
else if (TempH &gt; TempOut){<br />
if ((TempH &#8211; TempOut) &gt; 100 ){<br />
TempOut = (TempOut + (FadeValue*10));<br />
}<br />
else<br />
{<br />
TempOut = (TempOut + FadeValue);<br />
}<br />
}<br />
lastTemp = Temp;<br />
}</p>
<p>function randomAska() : void                                 //&#8211; Function controlling the randomness of the lightning<br />
{<br />
if (AskCountdown == 0){                                     //&#8211; The countdown sees to it that the lightning doesn&#8217;t come too often.<br />
var Aska = Math.floor(Math.random()*AskFordrojning); //&#8211; The random time beforethe lightning goes off is variable.<br />
if (Aska == 5){<br />
playAska();<br />
AskCountdown = AskFordrojning;</p>
<p>}<br />
}<br />
else<br />
{<br />
AskCountdown = AskCountdown &#8211; 1;<br />
}</p>
<p>}</p>
<p>function playAska() : void            //&#8211; Function triggering the sound and graphical effects of the lightning.<br />
{<br />
//&#8211; The randomfunction plays either of two different lightningsounds so that it feels more &#8220;real&#8221;.</p>
<p>lightOn = 0;<br />
var askRndm = Math.floor(Math.random()*2)<br />
if (askRndm == 0){<br />
var dundersnd:Sound = new Sound();<br />
dundersnd.load(new URLRequest(&#8220;Thunder2.mp3&#8243;));<br />
dundersnd.play();</p>
<p>}<br />
else<br />
{<br />
var dundersnd2:Sound = new Sound();<br />
dundersnd2.load(new URLRequest(&#8220;Thunder1.mp3&#8243;));<br />
dundersnd2.play();<br />
}<br />
}</p>
<p>function sData( e:ProgressEvent ) : void<br />
{</p>
<p>//&#8211; read the correct data from the socket. In this instance. The first sensors data arrives in millimeters<br />
//&#8211; preceeded by &#8220;A&#8221;, the second ones with a &#8220;B&#8221; and the third ones with a &#8220;C&#8221;.<br />
//&#8211; The data comes in strings of different lenght and must therefore be assembeled to a longer one in order to pick the useful data out.<br />
var sData:String = s.readUTFBytes( s.bytesAvailable )</p>
<p>light.alpha = 0;</p>
<p>if (isDataCorrect(sData)) {<br />
prevInput = currInput;<br />
currInput = sData;<br />
finalInput = prevInput + currInput</p>
<p>//&#8211; Only half of the stings begin with the A value but because of the high update rate we can<br />
//&#8211; skip every other one. The following if and while picks out the position of the letter A, B and C<br />
//&#8211; from the string in all of the strinngs beginning with the letter A.</p>
<p>if (finalInput.indexOf( &#8220;A&#8221; ) == 0) {</p>
<p>Apos = 0;<br />
Bpos = 0;<br />
Cpos = 0;</p>
<p>finalInput = finalInput.substr(1)<br />
var i:int = 0;<br />
while (i &lt; 20)<br />
{</p>
<p>if (finalInput.indexOf (&#8220;B&#8221;) == i){<br />
Bpos = i;<br />
}<br />
if (finalInput.indexOf (&#8220;C&#8221;) == i){<br />
Cpos = i;<br />
}<br />
if (finalInput.indexOf (&#8220;A&#8221;) == i){<br />
Apos = i;<br />
i = 50;<br />
}<br />
i++<br />
}</p>
<p>//&#8211; When knowing the position of the A&#8217;s, B&#8217;s and C&#8217;s we can pick out the numbers we want<br />
//&#8211; with the use of the substring command.</p>
<p>sensor1 = finalInput.substr(0,Bpos);<br />
sensor2 = finalInput.substr((Bpos+1),(Cpos-Bpos-1));</p>
<p>if(Apos == 0){<br />
sensor3 = finalInput.substr((Cpos+1));<br />
}<br />
else{<br />
sensor3 = finalInput.substr((Cpos+1),(Apos-Cpos-1));<br />
}</p>
<p>//&#8211; We now have the distance measured in millimeters by each of the three sensors.</p>
<p>Temp = (Number(sensor1));<br />
Vind = (Number(sensor2));<br />
Regn = (Number(sensor3));</p>
<p>//&#8211; Calling the functions for fading the rain, wind and temperature.</p>
<p>RegnFade();<br />
VindFade();<br />
TempFade();</p>
<p>//&#8211; If the wind and rain parameters are high enough the possibility for<br />
//&#8211; lightning and thunder will be made possible.<br />
if ((VindOut + RegnOut) &gt; 1200 &amp;&amp; TempOut &lt; 500){</p>
<p>AskFordrojning = 100-((VindOut + RegnOut &#8211; 1000)/8);<br />
randomAska();<br />
}</p>
<p>//&#8211; This is the acctual lightning flash. Light is just a bright while box lying in front of everything<br />
//&#8211; with default alphavalue of zero.<br />
if (lightOn &lt; 5){</p>
<p>light.alpha = (1-lightOn/10);<br />
lightOn++;</p>
<p>}</p>
<p>//&#8211; Sets the windspeed and rainamount according to readings and tells the<br />
//&#8211; particle generator how to behave.</p>
<p>//&#8211; Depending on the temperaturemeters value theres either rain or snowparticles shown.</p>
<p>var windSpeed = VindOut;</p>
<p>if (TempOut &gt; 700)<br />
{<br />
particleNumber = 0;<br />
particleNumber2 = RegnOut;<br />
}<br />
else if (TempOut &gt; 400)<br />
{<br />
var rakna1:Number = (1-((TempOut-400)/300));<br />
var rakna2:Number = ((TempOut-400)/300)<br />
particleNumber = RegnOut*rakna1;<br />
particleNumber2 = RegnOut*rakna2;</p>
<p>}<br />
else<br />
{<br />
particleNumber = RegnOut;<br />
particleNumber2 = 0;<br />
}</p>
<p>SnowGen.raindropNumber = ((particleNumber2-120));<br />
SnowGen.speedX = windSpeed/10;</p>
<p>RainGen.raindropNumber = ((particleNumber-120));<br />
RainGen.speedX = windSpeed/10;</p>
<p>//&#8211; calling the function that changes the brightness of the backgroundcolor.</p>
<p>colorChange();</p>
<p>//&#8211; This part sets the volume of different sounds depending on the distance to different sensors.</p>
<p>if (RegnOut &gt; 700)<br />
{<br />
Trans.volume = 0;<br />
Trans1.volume = 0.2;<br />
Trans3.volume = 1;<br />
}<br />
else if (RegnOut &gt; 500)<br />
{<br />
Trans.volume = 0;<br />
Trans1.volume = 1-(((RegnOut-500)/200)*0.8);<br />
Trans3.volume = 0.2+(((RegnOut-500)/2000)*4);<br />
}<br />
else if (RegnOut &gt; 300)<br />
{<br />
Trans.volume = 0.4-(((RegnOut-300)/200)*0.4);<br />
Trans1.volume = 0.2+(((RegnOut-300)/200)*0.4);<br />
Trans3.volume = ((RegnOut-300)/200)*0.2;<br />
}<br />
else if (RegnOut &gt; 20)<br />
{<br />
Trans.volume = ((RegnOut-20)/280)*0.4;<br />
Trans1.volume = ((RegnOut-20)/280)*0.2;<br />
Trans3.volume = 0;<br />
}</p>
<p>if (VindOut &gt; 600)<br />
{<br />
Trans5.volume = 0;<br />
Trans7.volume = 2/6<br />
}<br />
else if (VindOut &gt; 400)<br />
{<br />
Trans5.volume = (((((VindOut/400)*minusett)+1)*2)+1)/6;<br />
Trans7.volume = (VindOut/400)/6;<br />
}<br />
else if (VindOut &gt; 200)<br />
{<br />
Trans5.volume = 1/6;<br />
Trans7.volume = 0.4/6;<br />
}<br />
else<br />
{<br />
Trans5.volume = (VindOut/200)/6;<br />
Trans7.volume = (VindOut/200)*0.2/6;<br />
}<br />
}</p>
<p>//&#8211; If all the meters are low bird twittering are played.</p>
<p>if (RegnOut == 0 &amp;&amp; VindOut &lt; 200 &amp;&amp; TempOut &lt; 500)<br />
{<br />
Trans8.volume = 0.6;<br />
}<br />
else<br />
{<br />
Trans8.volume = 0;<br />
}</p>
<p>//&#8211; This if-case sees to it that the rainsound stops accordingly to the amount of snow.</p>
<p>if (TempOut &gt; 700)<br />
{<br />
Trans.volume = 0;<br />
Trans1.volume = 0;<br />
Trans3.volume = 0;<br />
Trans8.volume = 0;<br />
}<br />
else if (TempOut &gt; 400)<br />
{<br />
var volvar:Number = 1-((TempOut-400)/300)<br />
Trans.volume = Trans.volume*volvar;<br />
Trans1.volume = Trans1.volume*volvar;<br />
Trans3.volume = Trans3.volume*volvar;<br />
Trans8.volume = Trans8.volume*volvar;<br />
}</p>
<p>Chan.soundTransform = Trans;<br />
Chan1.soundTransform = Trans1;<br />
Chan3.soundTransform = Trans3;<br />
Chan5.soundTransform = Trans5;<br />
Chan7.soundTransform = Trans7;<br />
Chan8.soundTransform = Trans8;<br />
}</p>
<p>}</p>
<p>//&#8211; This is a function that checks if the data from the Arduino is valid data.</p>
<p>function isDataCorrect( sData:String ) : Boolean<br />
{<br />
//&#8211; occasionally, between real results the data returned consists of a carriage return<br />
//&#8211; then a zero.<br />
if (parseInt(sData) == 0 &amp;&amp; sData.length &gt; 1) return false;<br />
//&#8211; another occasional unwanted reult<br />
if (sData == &#8220;&#8221;) return false;<br />
if (sData == &#8220;0&#8243;) return false;</p>
<p>return true;<br />
}</p>
<p>RangeFinderData();</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/group15kna.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/group15kna.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/group15kna.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/group15kna.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/group15kna.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/group15kna.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/group15kna.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/group15kna.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/group15kna.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/group15kna.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/group15kna.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/group15kna.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/group15kna.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/group15kna.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=140&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://group15kna.wordpress.com/2009/10/22/the-hardware-and-software-is-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2e065cb8a586d3867f5a928492e20a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">group15kna</media:title>
		</media:content>

		<media:content url="http://group15kna.files.wordpress.com/2009/10/kopplingsschema1.jpg" medium="image">
			<media:title type="html">kopplingsschema</media:title>
		</media:content>
	</item>
		<item>
		<title>22 oct</title>
		<link>http://group15kna.wordpress.com/2009/10/22/22-oct/</link>
		<comments>http://group15kna.wordpress.com/2009/10/22/22-oct/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 07:36:23 +0000</pubDate>
		<dc:creator>group15kna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://group15kna.wordpress.com/?p=138</guid>
		<description><![CDATA[day 2 in Stockholm. it&#8217;s 09.26 and I&#8217;ve been in school for half an hour, and I&#8217;m not alone! around me there&#8217;s creative hyper students who&#8217;s doing there best to finish up with there different projects. feels good to be &#8230; <a href="http://group15kna.wordpress.com/2009/10/22/22-oct/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=138&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>day 2 in Stockholm. it&#8217;s 09.26 and I&#8217;ve been in school for half an hour, and I&#8217;m not alone! around me there&#8217;s creative hyper students who&#8217;s doing there best to finish up with there different projects. feels good to be in Stockholm (finally). Almost three weeks has passed and now the time has come to show the world what we have done. my head is filled with hope and fear! what if something goes wrong? and what IF we&#8217;re the ones whom will go to London..?! soon we&#8217;ll find out!</p>
<p>today we have some final things to do. Carl will fix the techie side of the MFS, Henrik has some exhibition things to be done, I have (more) printing and marketing stuff to do and Anna has some final details with the design that must be done. Hopefully Ola will join us in the afternoon!</p>
<p>Sanna</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/group15kna.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/group15kna.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/group15kna.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/group15kna.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/group15kna.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/group15kna.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/group15kna.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/group15kna.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/group15kna.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/group15kna.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/group15kna.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/group15kna.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/group15kna.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/group15kna.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=138&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://group15kna.wordpress.com/2009/10/22/22-oct/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2e065cb8a586d3867f5a928492e20a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">group15kna</media:title>
		</media:content>
	</item>
		<item>
		<title>On place in Stockholm</title>
		<link>http://group15kna.wordpress.com/2009/10/21/on-place-in-stockholm/</link>
		<comments>http://group15kna.wordpress.com/2009/10/21/on-place-in-stockholm/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 10:10:48 +0000</pubDate>
		<dc:creator>group15kna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://group15kna.wordpress.com/?p=134</guid>
		<description><![CDATA[Yesterday was a great day for travelling. The lot of us took an 8 hour trip up to our capital city to prepare for the exhibition. Once here we got greeted by some of the students from the Stockholm class &#8230; <a href="http://group15kna.wordpress.com/2009/10/21/on-place-in-stockholm/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=134&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday was a great day for travelling. The lot of us took an 8 hour trip up to our capital city to prepare for the exhibition. Once here we got greeted by some of the students from the Stockholm class and got some time to get to know them. A lot of us were staying a while at school to check it out and I got drafted by one of the Stockholm groups as technical support. Sadly I couldn&#8217;t help them a lot since their technology was rather complicated and they really didn&#8217;t know anything about it.</p>
<p>Today the girls have started building the box on place while Henrik works for the exhibition group and I&#8217;m about to head out on town to hunt down some paper and hopefully the third and last laser. Sanna&#8217;s been given the task to prepare for the short interview that we&#8217;re gonna have.</p>
<p>A few problems have shown up though. Ola has fallen ill and didn&#8217;t join us on our journey up here, hopefully he will get better until friday so he can attend the exhibition anyway. Also the smoke idéa that much of the coolness of our project is built upon have been totally wrecked. It seems theres a bit of a huge fee te get a technitian here who can turn the smoke alarm off and those kinds of sums really arn&#8217;t in our budget. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Hopefully it will work out anyway. Hope to see you all on Saturday!</p>
<p>Carl out!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/group15kna.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/group15kna.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/group15kna.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/group15kna.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/group15kna.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/group15kna.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/group15kna.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/group15kna.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/group15kna.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/group15kna.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/group15kna.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/group15kna.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/group15kna.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/group15kna.wordpress.com/134/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=134&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://group15kna.wordpress.com/2009/10/21/on-place-in-stockholm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2e065cb8a586d3867f5a928492e20a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">group15kna</media:title>
		</media:content>
	</item>
		<item>
		<title></title>
		<link>http://group15kna.wordpress.com/2009/10/15/132/</link>
		<comments>http://group15kna.wordpress.com/2009/10/15/132/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 15:53:22 +0000</pubDate>
		<dc:creator>group15kna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://group15kna.wordpress.com/2009/10/15/132/</guid>
		<description><![CDATA[Mission accomplished- I&#8217;ve bought the material for &#8216;The Entity&#8217; and on the morrow it will start it&#8217;s journey towards perfection. I can&#8217;t wait to see it up and running. Carl has been thundering and raining all day, wearing a hat &#8230; <a href="http://group15kna.wordpress.com/2009/10/15/132/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=132&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Mission accomplished- I&#8217;ve bought the material for &#8216;The Entity&#8217; and on the morrow it will start it&#8217;s journey towards perfection. I can&#8217;t wait to see it up and running.<br />
Carl has been thundering and raining all day, wearing a hat and earphones, Sanna&#8217;s been printing lovely flyers, Ola has managed to destroy a laser and an actionscript and Henrik just sent the press relase. One small step for man.. Or in our case, a little technical step backwards today.. But only to take a huge leap forward tomorrow, offcourse.</p>
<p>Anna</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/group15kna.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/group15kna.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/group15kna.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/group15kna.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/group15kna.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/group15kna.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/group15kna.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/group15kna.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/group15kna.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/group15kna.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/group15kna.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/group15kna.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/group15kna.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/group15kna.wordpress.com/132/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=132&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://group15kna.wordpress.com/2009/10/15/132/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2e065cb8a586d3867f5a928492e20a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">group15kna</media:title>
		</media:content>
	</item>
		<item>
		<title>thursday 15</title>
		<link>http://group15kna.wordpress.com/2009/10/15/thursday-15/</link>
		<comments>http://group15kna.wordpress.com/2009/10/15/thursday-15/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 08:30:07 +0000</pubDate>
		<dc:creator>group15kna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://group15kna.wordpress.com/?p=119</guid>
		<description><![CDATA[some morning advertisement; http://eat09.se check it out!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=119&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>some morning advertisement; http://eat09.se</p>
<p>check it out!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/group15kna.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/group15kna.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/group15kna.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/group15kna.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/group15kna.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/group15kna.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/group15kna.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/group15kna.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/group15kna.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/group15kna.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/group15kna.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/group15kna.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/group15kna.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/group15kna.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=119&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://group15kna.wordpress.com/2009/10/15/thursday-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2e065cb8a586d3867f5a928492e20a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">group15kna</media:title>
		</media:content>
	</item>
		<item>
		<title>wednesday 14 oct</title>
		<link>http://group15kna.wordpress.com/2009/10/14/wednesday-13-oct/</link>
		<comments>http://group15kna.wordpress.com/2009/10/14/wednesday-13-oct/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 13:23:41 +0000</pubDate>
		<dc:creator>group15kna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://group15kna.wordpress.com/2009/10/14/wednesday-13-oct/</guid>
		<description><![CDATA[shepp å hoj! soon the Michael Fish solution will be launched. just six days to go before Stockholm. I (Sanna) made some flyers for our exhibition. Think they will fit good with our presentation space. The website for the exhibition is &#8230; <a href="http://group15kna.wordpress.com/2009/10/14/wednesday-13-oct/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=115&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>shepp å hoj! soon the Michael Fish solution will be launched. just six days to go before Stockholm.</p>
<p>I (Sanna) made some flyers for our exhibition. Think they will fit good with our presentation space. The website for the exhibition is up and running; eat09.se. Check it out! Henrik (our little techie/programmer) has been a big part in its creation!</p>
<p>Right now we&#8217;re just fixing the last parts on the Michael Fish Solution. Some animation is still to be done and the sound library is still missing some audio-files. Just hang on out there in cyberspace, the Michael Fish Solution is on its way!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/group15kna.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/group15kna.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/group15kna.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/group15kna.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/group15kna.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/group15kna.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/group15kna.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/group15kna.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/group15kna.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/group15kna.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/group15kna.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/group15kna.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/group15kna.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/group15kna.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=115&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://group15kna.wordpress.com/2009/10/14/wednesday-13-oct/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2e065cb8a586d3867f5a928492e20a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">group15kna</media:title>
		</media:content>
	</item>
		<item>
		<title>Depression, frustration and&#8230; euphoria!</title>
		<link>http://group15kna.wordpress.com/2009/10/09/depression-frustration-and-euphoria/</link>
		<comments>http://group15kna.wordpress.com/2009/10/09/depression-frustration-and-euphoria/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 22:48:41 +0000</pubDate>
		<dc:creator>group15kna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://group15kna.wordpress.com/?p=90</guid>
		<description><![CDATA[This morning was of course the start of a day, but not a day like any other days, but probably one of the most important days in this projects life. It all started out with us having a group process &#8230; <a href="http://group15kna.wordpress.com/2009/10/09/depression-frustration-and-euphoria/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=90&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This morning was of course the start of a day, but not a day like any other days, but probably one of the most important days in this projects life.</p>
<p>It all started out with us having a group process follow up with Sofie, very early in the morning. We talked about how we felt about the project and eachother and even though we were all happy about the members of the group we soon noticed that the motivation wasn&#8217;t as good as at the start of the project, especiallt not for my own part.<br />
This was because since wednesday the progress we had been making on the programming side of the projec was about equal to the number of elephants who&#8217;ve visited space the last couple of years. This of course resulted in loads of frustraion and sad faces for the most of us. After talking it all out we decided to give it one last try before we took last modules golden words, keep it simple stupid, into consideration and scale the project down a lot.</p>
<p>After trying out some new pieces of code that didn&#8217;t work we were really close to giving up, going home, partying and probably get so drunk that it just wasn&#8217;t fun anymore.<br />
But then a great insight came to us and suddenly the most important part of the whole programming code fell into place allowing us to suddenly do whatever we wanted to.</p>
<p>With these new possibilities we tried out a few things, got a lot of motivation back and decided to stay over a litte while to get some more things done. But  the fun of it  suddenly made us forget about the upcomming party and we were programming until our keyboards were smoking hot. I got a cup of strange tea from the dear Cristopher-Robin that somehow made me get a bit speeded and suddenly we had done almost all of the necessary code leaving us very satisfied and motivated to go back and do some more stuff tomorrow.</p>
<p>So, now we all deserve to have a really great weekend and we&#8217;re all longing for monday when we start building the physical installation.<br />
Have a nice weekend all of you!<br />
M4573R 0f G33k5 51gN1nG 0u7!</p>
<p>/Carl</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/group15kna.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/group15kna.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/group15kna.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/group15kna.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/group15kna.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/group15kna.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/group15kna.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/group15kna.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/group15kna.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/group15kna.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/group15kna.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/group15kna.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/group15kna.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/group15kna.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=90&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://group15kna.wordpress.com/2009/10/09/depression-frustration-and-euphoria/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2e065cb8a586d3867f5a928492e20a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">group15kna</media:title>
		</media:content>
	</item>
		<item>
		<title>The Brand.</title>
		<link>http://group15kna.wordpress.com/2009/10/09/the-brand/</link>
		<comments>http://group15kna.wordpress.com/2009/10/09/the-brand/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 10:30:57 +0000</pubDate>
		<dc:creator>group15kna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://group15kna.wordpress.com/?p=87</guid>
		<description><![CDATA[I think we&#8217;ve just found it. Yes. The Solution. Michael Fish made me do it. /Anna<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=87&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I think we&#8217;ve just found it. Yes. The Solution. Michael Fish made me do it.</p>
<p>/Anna</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/group15kna.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/group15kna.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/group15kna.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/group15kna.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/group15kna.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/group15kna.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/group15kna.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/group15kna.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/group15kna.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/group15kna.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/group15kna.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/group15kna.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/group15kna.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/group15kna.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=87&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://group15kna.wordpress.com/2009/10/09/the-brand/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2e065cb8a586d3867f5a928492e20a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">group15kna</media:title>
		</media:content>
	</item>
		<item>
		<title>friday, 9 oct</title>
		<link>http://group15kna.wordpress.com/2009/10/09/friday-9-oct/</link>
		<comments>http://group15kna.wordpress.com/2009/10/09/friday-9-oct/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 09:50:00 +0000</pubDate>
		<dc:creator>group15kna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://group15kna.wordpress.com/?p=77</guid>
		<description><![CDATA[This morning we had a quick meeting with one of the co-workers at Hyper Island where we did some team-building. Lots of feelings where released  (as usual when it comes to Hyper), but we also had time for some pepp-talk. After the &#8230; <a href="http://group15kna.wordpress.com/2009/10/09/friday-9-oct/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=77&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This morning we had a quick meeting with one of the co-workers at Hyper Island where we did some team-building. Lots of feelings where released  (as usual when it comes to Hyper), but we also had time for some pepp-talk. After the meeting we had our daily check-in. The discussion went back and forth, and finally we had to realize  that the Arduino and the AS3 don&#8217;t work together. So now Carl and Henrik&#8217;s doing some SERIOUS coding. No cheating, just clean coding in AS2. But there&#8217;s still some hope that we (miraculously) will find a way to make the Arduino and the AS3 work together. That would save us so mush time, and our techies would finally stop swearing.</p>
<p>Sanna</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/group15kna.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/group15kna.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/group15kna.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/group15kna.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/group15kna.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/group15kna.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/group15kna.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/group15kna.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/group15kna.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/group15kna.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/group15kna.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/group15kna.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/group15kna.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/group15kna.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=77&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://group15kna.wordpress.com/2009/10/09/friday-9-oct/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2e065cb8a586d3867f5a928492e20a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">group15kna</media:title>
		</media:content>
	</item>
		<item>
		<title>YES!</title>
		<link>http://group15kna.wordpress.com/2009/10/08/yes/</link>
		<comments>http://group15kna.wordpress.com/2009/10/08/yes/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 09:31:02 +0000</pubDate>
		<dc:creator>group15kna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://group15kna.wordpress.com/?p=67</guid>
		<description><![CDATA[Now we have connection with Flash AS3 and arduino! And this is how happy we where when it worked:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=67&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now we have connection with Flash AS3 and arduino!<br />
And this is how happy we where when it worked:</p>
<span style="text-align:center; display: block;"><a href="http://group15kna.wordpress.com/2009/10/08/yes/"><img src="http://img.youtube.com/vi/Yo3F6ciKXuA/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/group15kna.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/group15kna.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/group15kna.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/group15kna.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/group15kna.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/group15kna.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/group15kna.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/group15kna.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/group15kna.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/group15kna.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/group15kna.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/group15kna.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/group15kna.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/group15kna.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=group15kna.wordpress.com&amp;blog=9723839&amp;post=67&amp;subd=group15kna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://group15kna.wordpress.com/2009/10/08/yes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2e065cb8a586d3867f5a928492e20a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">group15kna</media:title>
		</media:content>
	</item>
	</channel>
</rss>
