<?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/"
	>

<channel>
	<title>ctv@andrew.cmu.edu &#8211; Making Things Interactive</title>
	<atom:link href="https://courses.ideate.cmu.edu/48-339/s2018/?feed=rss2&#038;author=7" rel="self" type="application/rss+xml" />
	<link>https://courses.ideate.cmu.edu/48-339/s2018</link>
	<description>48-339/739 Spring 2018</description>
	<lastBuildDate>Mon, 14 May 2018 15:10:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.2.20</generator>
	<item>
		<title></title>
		<link>https://courses.ideate.cmu.edu/48-339/s2018/?p=706</link>
				<comments>https://courses.ideate.cmu.edu/48-339/s2018/?p=706#respond</comments>
				<pubDate>Mon, 14 May 2018 15:10:13 +0000</pubDate>
		<dc:creator><![CDATA[ctv@andrew.cmu.edu]]></dc:creator>
				<category><![CDATA[Assignment 8]]></category>

		<guid isPermaLink="false">https://courses.ideate.cmu.edu/48-339/s2018/?p=706</guid>
				<description><![CDATA[&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Vinyl &#38; controller setups are large and expensive. &#160; &#160; Two audio track crossfade without beat/tempo match. &#160; &#160; interactive textile interface &#8211; acrylic and silver-nano inks on polyester substrate. &#160; &#160; Bluno Nano and CapSense &#8230; <a href="https://courses.ideate.cmu.edu/48-339/s2018/?p=706" class="more-link">Continue reading<span class="screen-reader-text"> ""</span></a>]]></description>
								<content:encoded><![CDATA[<p><img class="alignnone wp-image-5390 " src="http://cmuems.com/2018/60212s/wp-content/uploads/2018/05/Product-Shot.jpg" alt="" width="1084" height="813" /></p>
<p><img class="size-medium wp-image-5392 aligncenter" src="http://cmuems.com/2018/60212s/wp-content/uploads/2018/05/IMG_20180507_095631-640x480.jpg" alt="" width="640" height="480" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><iframe width="840" height="473" src="https://www.youtube.com/embed/tXUz_RYR_Jc?feature=oembed" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img class="size-medium wp-image-5389 aligncenter" src="http://cmuems.com/2018/60212s/wp-content/uploads/2018/05/Rolling-480x480.jpg" alt="" width="480" height="480" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img class="size-medium wp-image-5391 aligncenter" src="http://cmuems.com/2018/60212s/wp-content/uploads/2018/05/Outdoor-Orange-480x480.jpg" alt="" width="480" height="480" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img class="size-medium wp-image-5251 alignright" src="http://cmuems.com/2018/60212s/wp-content/uploads/2018/05/dj-640x205.jpg" alt="" width="640" height="205" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Vinyl &amp; controller setups are large and expensive.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<!--[if lt IE 9]><script>document.createElement('audio');</script><![endif]-->
<audio class="wp-audio-shortcode" id="audio-706-1" preload="none" style="width: 100%;" controls="controls"><source type="audio/wav" src="http://cmuems.com/2018/60212s/wp-content/uploads/2018/05/baddddTwo.wav?_=1" /><a href="http://cmuems.com/2018/60212s/wp-content/uploads/2018/05/baddddTwo.wav">http://cmuems.com/2018/60212s/wp-content/uploads/2018/05/baddddTwo.wav</a></audio>
<p>Two audio track crossfade without beat/tempo match.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img class="alignnone wp-image-5245" src="http://cmuems.com/2018/60212s/wp-content/uploads/2018/05/ezgif.com-video-to-gif-2.gif" alt="" width="642" height="361" /></p>
<p>interactive textile interface &#8211; acrylic and silver-nano inks on polyester substrate.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><iframe width="840" height="473" src="https://www.youtube.com/embed/xKZuMRM3Wj4?feature=oembed" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></p>
<p><a href="https://www.dfrobot.com/product-1122.html">Bluno Nano</a> and <a href="https://playground.arduino.cc/Main/CapacitiveSensor?from=Main.CapSense">CapSense</a> arduino library.<br />
<a href="https://www.dfrobot.com/product-1122.html"><br />
</a>Bluno can easily connect arduino sensors to Android &amp; iOS. Although, this project is not serially connected to Unity on Android, the example code connects to an app created in Android Studio and the Bluno connects to Unity on iOS.</p>
<p>This program uses an initialization stage to calculate a baseline for each screen<br />
printed touch sensor, then uses a multiplier to calculate a touch threshold. To<br />
increasethe correctness of the sensor data, I will implement a touch calibration<br />
step into the setup sequence.</p>
<pre>
#include 

// infinEight Driver
// Ty Van de Zande 2018

/*
 * CapitiveSense Library Demo Sketch
 * Paul Badger 2008
 * Uses a high value resistor e.g. 10M between send pin and receive pin
 * Resistor effects sensitivity, experiment with values, 50K - 50M. Larger resistor values yield larger sensor values.
 * Receive pin is the sensor pin - try different amounts of foil/metal on this pin
 */


// Arcitecture
// TBD

static int IN1 = 18;
static int IN2 = 17;
static int IN3 = 16;

static int ledGROUND = 23;
static int ledONE    = 21;
static int ledTWO    = 20;
static int ledTHREE  = 19;


int SENSE1;
int SENSE2;
int SENSE3;

long THRESH1;
long THRESH2;
long THRESH3;

float mult = 1.7;



void setup()                    
{
   pinMode(ledONE, OUTPUT);
   pinMode(ledTWO, OUTPUT);
   pinMode(ledTHREE, OUTPUT);
   pinMode(ledGROUND, OUTPUT);
   
   
   Serial.begin(9600);
   Serial.println("Prepping");
   initializeSensors();
}

void loop()                    
{
  updateSensors();
  //printSensors();
  digitalWrite(ledONE, LOW);
  digitalWrite(ledTWO, LOW);
  digitalWrite(ledTHREE, LOW);
  areWeTouched();     
  delay(10);                    
}

void  areWeTouched()
{
  if(SENSE1 &gt; THRESH1 || SENSE1 == -2){
//    printSensors();
    digitalWrite(ledONE, HIGH);
      Serial.println("3");
  };
  if(SENSE2 &gt; THRESH2 || SENSE2 == -2){
//    printSensors();
      digitalWrite(ledTWO, HIGH);
      Serial.println("2");
  };
  if(SENSE3 &gt; THRESH3  || SENSE3 == -2){
//    printSensors();
      digitalWrite(ledTHREE, HIGH);
      Serial.println("1");
  };
}



void printThresh(int one, int two, int three)
{
  Serial.print(one);
  Serial.print(" . ");
  Serial.print(two);
  Serial.print(" . ");
  Serial.print(three);
  Serial.println(" ");
  
}



void updateSensors()
{
    SENSE1 = touchRead(IN1);
    SENSE2 = touchRead(IN2);
    SENSE3 = touchRead(IN3);
    // Array not working???
//     int SENSESTATES[] = {SENSE1, SENSE2, SENSE3, SENSE4};
//     int lisLEN = sizeof(SENSESTATES);
//     for(int i = 0; i &lt; lisLEN; i++){
//        Serial.print(i);
//        Serial.print(&quot;:  &quot;);
//        Serial.print(SENSESTATES[i]);      
//     }
}

void printSensors()
{
    Serial.print(SENSE1);
    Serial.print(&quot; . &quot;);
    Serial.print(SENSE2);
    Serial.print(&quot; . &quot;);
    Serial.print(SENSE3);
    Serial.println(&quot; &quot;);
}


void initializeSensors()
{
  int cts = 104;
  //int mult = 20;
  
  long temp1 = 0;
  long temp2 = 0;
  long temp3 = 0;

  for(int i = 0; i &lt; 20; i++){
    updateSensors();
    //printSensors();
  }
  
  Serial.println(&quot;Collecting Summer Readings&quot;);
  for(int i = 0; i &lt; cts; i++){
    if (i % 4 == 0) { Serial.print(&quot;|&quot;); }
    updateSensors();
    temp1 += SENSE1;
    temp2 += SENSE2;
    temp3 += SENSE3;
  }

  Serial.println(&quot; &quot;);
  Serial.println(&quot;Averaging thresholds&quot;);
  THRESH1 =  mult * (temp1 / cts);
  THRESH2 =  mult * (temp2 / cts);
  THRESH3 =  mult * (temp3 / cts);
  printThresh(THRESH1, THRESH2, THRESH3);
  printThresh(THRESH1/mult, THRESH2/mult, THRESH3/mult);
  Serial.println(&quot; &quot;);
  digitalWrite(ledONE, HIGH);
  delay(80);
  digitalWrite(ledTWO, HIGH);
  delay(80);
  digitalWrite(ledTHREE, HIGH);
  delay(80);
  Serial.println(&quot;Ready!&quot;);
  
}


</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Thank you to people who helped, and others!!!!<br />
Golan Levin<br />
Claire Hentschker<br />
Zachary Rapaport<br />
Gray Crawford<br />
Daiki Itoh<br />
Lucas Ochoa<br />
Lucy Yu<br />
Jake Scherlis<br />
Imin Yeh<br />
Jesse Klein<br />
Dan Lockton<br />
FRFAF<br />
URO-SURF</p>
]]></content:encoded>
							<wfw:commentRss>https://courses.ideate.cmu.edu/48-339/s2018/?feed=rss2&#038;p=706</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<enclosure url="http://cmuems.com/2018/60212s/wp-content/uploads/2018/05/baddddTwo.wav" length="1615456" type="audio/wav" />
			</item>
		<item>
		<title>Proposal</title>
		<link>https://courses.ideate.cmu.edu/48-339/s2018/?p=656</link>
				<comments>https://courses.ideate.cmu.edu/48-339/s2018/?p=656#respond</comments>
				<pubDate>Tue, 10 Apr 2018 16:09:10 +0000</pubDate>
		<dc:creator><![CDATA[ctv@andrew.cmu.edu]]></dc:creator>
				<category><![CDATA[Final Proposals]]></category>

		<guid isPermaLink="false">https://courses.ideate.cmu.edu/48-339/s2018/?p=656</guid>
				<description><![CDATA[Title: InfinEight Summary: An interactive rollup phone case that can be used to mix and mashup music. Descriptive paragraph The goal of this project is to design a fabric-based user interface that controls media on a phone. A phone is an incredibly fast processor and has access to millions of songs, but the screen is &#8230; <a href="https://courses.ideate.cmu.edu/48-339/s2018/?p=656" class="more-link">Continue reading<span class="screen-reader-text"> "Proposal"</span></a>]]></description>
								<content:encoded><![CDATA[<header class="entry-header"></header>
<div class="entry-content">
<h2>Title: InfinEight</h2>
<h3>Summary: An interactive rollup phone case that can be used to mix and mashup music.</h3>
<h4>Descriptive paragraph</h4>
<p>The goal of this project is to design a fabric-based user interface that controls media on a phone. A phone is an incredibly fast processor and has access to millions of songs, but the screen is small and not usable for actions that incorporate a persons&#8217; whole body. I will be designing an interactive electrical sensor system, boolean capacitive sensing to receive input. The interactions will be sent to my phone using a bluetooth chip to control a Unity Application.</p>
</div>
<p><img class="alignnone wp-image-664 size-large" src="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/04/YES-1024x662.png" alt="" width="840" height="543" srcset="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/04/YES-1024x662.png 1024w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/04/YES-300x194.png 300w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/04/YES-768x497.png 768w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/04/YES-1200x776.png 1200w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/04/YES.png 1225w" sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" /></p>
<div class="entry-content">
<h4>YouR PLAN</h4>
<p>How are you going to complete this project?  It can be an outline.</p>
<ol>
<li>Write a program for the Bluno Nano to send boolean capacitive values to my phone.</li>
<li>Finalize interface design, and screen print conductive ink</li>
<li>Unity visual of capacitive buttons being touched</li>
<li>Use Unity to control music playback.</li>
<li>If Unity does not work, I will use p5.js to write a program.</li>
</ol>
<h4>Materials Needed</h4>
<p>Bluno Nano is the main additional component. I will additionally be screen printing the design.</p>
<h4>Deliverables for Show</h4>
<p>I will need the product, my computer, and my phone. Additional speakers would be nice, but are not necessary.</p>
<h4>MEDIA for Show</h4>
<p>Poster describing interaction, so people can play with the design!</p>
</div>
]]></content:encoded>
							<wfw:commentRss>https://courses.ideate.cmu.edu/48-339/s2018/?feed=rss2&#038;p=656</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Sketchbook Color Sliders</title>
		<link>https://courses.ideate.cmu.edu/48-339/s2018/?p=413</link>
				<comments>https://courses.ideate.cmu.edu/48-339/s2018/?p=413#respond</comments>
				<pubDate>Tue, 20 Feb 2018 16:33:45 +0000</pubDate>
		<dc:creator><![CDATA[ctv@andrew.cmu.edu]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://courses.ideate.cmu.edu/48-339/s2018/?p=413</guid>
				<description><![CDATA[This sketch uses conductive silver ink to create capacitive sliders on paper. Three sliders can control Hue, Saturation, and Value to help a designer tactfully choose colors. The interface features a &#8220;tap in/tap out&#8221; button, so the user lifting their finger on the slider doesnt affect the color reading. &#160; This interface is a sketch &#8230; <a href="https://courses.ideate.cmu.edu/48-339/s2018/?p=413" class="more-link">Continue reading<span class="screen-reader-text"> "Sketchbook Color Sliders"</span></a>]]></description>
								<content:encoded><![CDATA[<p><iframe width="840" height="473" src="https://www.youtube.com/embed/eVOUH4ktUuY?feature=oembed" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></p>
<p>This sketch uses conductive silver ink to create capacitive sliders on paper. Three sliders can control Hue, Saturation, and Value to help a designer tactfully choose colors. The interface features a &#8220;tap in/tap out&#8221; button, so the user lifting their finger on the slider doesnt affect the color reading.</p>
<p>&nbsp;</p>
<p><img class="alignnone wp-image-414 size-large" src="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231843-1024x768.jpg" alt="" width="840" height="630" srcset="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231843-1024x768.jpg 1024w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231843-300x225.jpg 300w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231843-768x576.jpg 768w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231843-1200x900.jpg 1200w" sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" /></p>
<p>This interface is a sketch at bringing digital decisions, like RGB color,<br />
into the physical world through tangible interaction.</p>
<p><img class="alignnone wp-image-415 size-large" src="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231850-1024x768.jpg" alt="" width="840" height="630" srcset="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231850-1024x768.jpg 1024w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231850-300x225.jpg 300w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231850-768x576.jpg 768w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231850-1200x900.jpg 1200w" sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" /></p>
<p>The project features teensy 3.2&#8217;s touchRead() function for capacitive input.</p>
<p><img class="alignnone wp-image-416 size-large" src="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231935-1024x768.jpg" alt="" width="840" height="630" srcset="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231935-1024x768.jpg 1024w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231935-300x225.jpg 300w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231935-768x576.jpg 768w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/02/IMG_20180219_231935-1200x900.jpg 1200w" sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" /><br />
As an attempt to reduce interference noise in the sensor system, a swatch of conductive fabric was added to the opposite side of the page; it was grounded to the the teensy. Sensor signal smoothing still needs works.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
							<wfw:commentRss>https://courses.ideate.cmu.edu/48-339/s2018/?feed=rss2&#038;p=413</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Assignment 2</title>
		<link>https://courses.ideate.cmu.edu/48-339/s2018/?p=212</link>
				<comments>https://courses.ideate.cmu.edu/48-339/s2018/?p=212#respond</comments>
				<pubDate>Tue, 30 Jan 2018 16:59:55 +0000</pubDate>
		<dc:creator><![CDATA[ctv@andrew.cmu.edu]]></dc:creator>
				<category><![CDATA[Assignment 2]]></category>

		<guid isPermaLink="false">https://courses.ideate.cmu.edu/48-339/s2018/?p=212</guid>
				<description><![CDATA[This project is supposed to be an embodiment of Steve Reich&#8217;s Clapping Music. The code for this project has two versions. The first version works unreliably because it uses the delay function to time the LEDs. The second uses a helper function to time and illuminate the LEDs using millis(). This program does not even &#8230; <a href="https://courses.ideate.cmu.edu/48-339/s2018/?p=212" class="more-link">Continue reading<span class="screen-reader-text"> "Assignment 2"</span></a>]]></description>
								<content:encoded><![CDATA[<p>This project is supposed to be an embodiment of Steve Reich&#8217;s Clapping Music. The code for this project has two versions. The first version works unreliably because it uses the delay function to time the LEDs. The second uses a helper function to time and illuminate the LEDs using millis(). This program does not even finish compiling though. It probably just needs debugging, but I am not sure. With the original program, the interrupt does not reliably switch the case. To continue this project, I will use solenoids to make a percussive sound.</p>
<p><img class="alignnone wp-image-214" src="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/IMG_20180130_115738-225x300.jpg" alt="" width="555" height="740" srcset="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/IMG_20180130_115738-225x300.jpg 225w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/IMG_20180130_115738-768x1024.jpg 768w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/IMG_20180130_115738-1200x1600.jpg 1200w" sizes="(max-width: 555px) 85vw, 555px" /></p>
<div style="width: 840px;" class="wp-video"><!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->
<video class="wp-video-shortcode" id="video-212-1" width="840" height="473" preload="metadata" controls="controls"><source type="video/mp4" src="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/VID_20180130_115938.mp4?_=1" /><a href="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/VID_20180130_115938.mp4">https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/VID_20180130_115938.mp4</a></video></div>
<p>&nbsp;</p>
<p><a href="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/vandezandeStateMachineInterrupt.zip">vandezandeStateMachineInterrupt</a></p>
<p>&nbsp;</p>
<p><iframe width="840" height="473" src="https://www.youtube.com/embed/lzkOFJMI5i8?feature=oembed" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></p>
<p><img class="alignnone wp-image-218" src="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/Screen-Shot-2018-01-30-at-12.29.04-PM-300x189.png" alt="" width="625" height="394" srcset="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/Screen-Shot-2018-01-30-at-12.29.04-PM-300x189.png 300w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/Screen-Shot-2018-01-30-at-12.29.04-PM.png 650w" sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
]]></content:encoded>
							<wfw:commentRss>https://courses.ideate.cmu.edu/48-339/s2018/?feed=rss2&#038;p=212</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<enclosure url="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/VID_20180130_115938.mp4" length="12219550" type="video/mp4" />
			</item>
		<item>
		<title>Assignment 1 &#8211; Smoothing</title>
		<link>https://courses.ideate.cmu.edu/48-339/s2018/?p=81</link>
				<comments>https://courses.ideate.cmu.edu/48-339/s2018/?p=81#respond</comments>
				<pubDate>Sun, 21 Jan 2018 02:57:00 +0000</pubDate>
		<dc:creator><![CDATA[ctv@andrew.cmu.edu]]></dc:creator>
				<category><![CDATA[Assignment 1]]></category>

		<guid isPermaLink="false">https://courses.ideate.cmu.edu/48-339/s2018/?p=81</guid>
				<description><![CDATA[&#160; &#160; For the software, my main goal is to modulize the requests or organization for information into separate functions. One function receives the current value from the sensor. A second function calls the initial function, and places the value into an array for the number of times, variable sampleSize. A third function iterates through &#8230; <a href="https://courses.ideate.cmu.edu/48-339/s2018/?p=81" class="more-link">Continue reading<span class="screen-reader-text"> "Assignment 1 &#8211; Smoothing"</span></a>]]></description>
								<content:encoded><![CDATA[<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img class="alignnone wp-image-89" src="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/sensorSetup-225x300.png" alt="" width="492" height="656" srcset="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/sensorSetup-225x300.png 225w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/sensorSetup-768x1024.png 768w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/sensorSetup-1200x1600.png 1200w" sizes="(max-width: 492px) 85vw, 492px" /></p>
<p><img class="alignnone wp-image-94" src="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/sensorList-225x300.png" alt="" width="495" height="660" srcset="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/sensorList-225x300.png 225w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/sensorList-768x1024.png 768w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/sensorList-1200x1600.png 1200w" sizes="(max-width: 495px) 85vw, 495px" /></p>
<p><img class="alignnone wp-image-90" src="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/thermsistorSetup-225x300.png" alt="" width="492" height="657" srcset="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/thermsistorSetup-225x300.png 225w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/thermsistorSetup-768x1024.png 768w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/thermsistorSetup-1200x1600.png 1200w" sizes="(max-width: 492px) 85vw, 492px" /></p>
<p><img class="alignnone wp-image-87" src="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/resistorSetup-300x240.png" alt="" width="625" height="500" srcset="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/resistorSetup-300x240.png 300w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/resistorSetup-768x614.png 768w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/resistorSetup-1024x819.png 1024w, https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/resistorSetup.png 1072w" sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<pre>For the software, my main goal is to modulize the requests or organization for information into separate functions. One function receives the current value from the sensor. A second function calls the initial function, and places the value into an array for the number of times, variable sampleSize. A third function iterates through the array and returns the mean of all values. The different function can be called to view the sample value in an organized table.</pre>
<h5>Code:</h5>
<p><a href="https://courses.ideate.cmu.edu/48-339/s2018/wp-content/uploads/2018/01/dataSmoothing-jan23.zip">dataSmoothing-jan23</a></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;">//Ty Van de Zande<br />
//Simple Data Average<br />
static const int sampleSize = 160;<br />
int readings[sampleSize];<br />
int sampleIndex = 0;<br />
void setup() {<br />
Serial.begin(9600);<br />
}<br />
void loop() {<br />
//straightData();<br />
//buildArray();<br />
//printArray();<br />
meanArray();<br />
delay(10);<br />
}<br />
// Averages samples array to output mean<br />
int meanArray(){<br />
int mean = buildArray();<br />
mean = mean / sampleSize;<br />
Serial.print(&quot;Mean: &quot;);<br />
Serial.println(mean);<br />
return mean;<br />
}<br />
// Prints readings array in a nice format<br />
void printArray(){<br />
buildArray();<br />
for(int i = 0; i&amp;lt;sampleSize; i++){<br />
Serial.print(&quot;||&quot;);<br />
Serial.print(readings[i]);<br />
}<br />
Serial.println();<br />
}<br />
// Fills readings array with data from the sensor<br />
int buildArray() {<br />
int sum = 0;<br />
for (int i = 0; i &amp;lt; sampleSize; i++){<br />
readings[i] = straightData();<br />
sum += readings[i];<br />
}<br />
return sum;<br />
}<br />
// Live feed of data from sensor<br />
int straightData(){<br />
int tempIn = analogRead(A6);<br />
//Serial.println(tempIn);<br />
return tempIn;<br />
}</div></div>
]]></content:encoded>
							<wfw:commentRss>https://courses.ideate.cmu.edu/48-339/s2018/?feed=rss2&#038;p=81</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Does this Title?</title>
		<link>https://courses.ideate.cmu.edu/48-339/s2018/?p=39</link>
				<comments>https://courses.ideate.cmu.edu/48-339/s2018/?p=39#respond</comments>
				<pubDate>Wed, 17 Jan 2018 21:48:33 +0000</pubDate>
		<dc:creator><![CDATA[ctv@andrew.cmu.edu]]></dc:creator>
				<category><![CDATA[Tests]]></category>

		<guid isPermaLink="false">https://courses.ideate.cmu.edu/48-339/s2018/?p=39</guid>
				<description><![CDATA[This is a test post in the &#8220;Tests&#8221; category.]]></description>
								<content:encoded><![CDATA[<p>This is a test post in the &#8220;Tests&#8221; category.</p>
]]></content:encoded>
							<wfw:commentRss>https://courses.ideate.cmu.edu/48-339/s2018/?feed=rss2&#038;p=39</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
