<?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>Piterwilson = Juan Carlos Ospina Gonzalez &#187; hobbies</title>
	<atom:link href="http://www.piterwilson.com/personal/category/hobbies/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.piterwilson.com/personal</link>
	<description>Piterwilson is/es Juan Carlos Ospina Gonzalez</description>
	<lastBuildDate>Sun, 22 Aug 2010 20:30:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Learning Arduino &#8211; project 6 &#8211; Interactive chase light</title>
		<link>http://www.piterwilson.com/personal/2009/10/04/learning-arduino-project-6-interactive-chase-light/</link>
		<comments>http://www.piterwilson.com/personal/2009/10/04/learning-arduino-project-6-interactive-chase-light/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 01:56:16 +0000</pubDate>
		<dc:creator>Piterwilson</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[hobbies]]></category>
		<category><![CDATA[hobby]]></category>

		<guid isPermaLink="false">http://www.piterwilson.com/personal/?p=280</guid>
		<description><![CDATA[Over the weekend i had some time to take out the Arduino board out of the box and onto my desk for some starter kit exercises. I went trough exercise 5, which introduced the concept of a tactile button (basically just a switch). I had a bit of trouble as the diagram on the manual [...]]]></description>
			<content:encoded><![CDATA[<p>Over the weekend i had some time to take out the Arduino board out of the box and onto my desk for some starter kit exercises.</p>
<p>I went trough exercise 5, which introduced the concept of a tactile button (basically just a switch). I had a bit of trouble as the diagram on the manual seems to be layed out incorrectly, i could never get it to work the way it was drawn there. It would seem that the digital pin that goes to the ground (in yellow wire in the graphic bellow), is positioned just after the resistor and connected directly to it (am i missing something?)</p>
<p><a href="http://www.piterwilson.com/personal/wp-content/uploads/2009/10/pushbutton.png"><img class="alignnone size-full wp-image-281" title="pushbutton" src="http://www.piterwilson.com/personal/wp-content/uploads/2009/10/pushbutton.png" alt="pushbutton" width="365" height="316" /></a></p>
<p>It was only until i did some googling and found other examples, ( <a href="http://arduino.cc/en/Tutorial/Button" target="_blank">this one was very useful</a> ), where i found the correct wiring that made the tactile button work.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="225" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="intl_lang=en-us&amp;photo_secret=62507cb3a6&amp;photo_id=3982404700" /><param name="bgcolor" value="#000000" /><param name="allowFullScreen" value="true" /><param name="src" value="http://www.flickr.com/apps/video/stewart.swf?v=71377" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="400" height="225" src="http://www.flickr.com/apps/video/stewart.swf?v=71377" allowfullscreen="true" bgcolor="#000000" flashvars="intl_lang=en-us&amp;photo_secret=62507cb3a6&amp;photo_id=3982404700"></embed></object></p>
<p>After this it was not hard to understand how the button worked and i moved on to <a href="http://www.earthshinedesign.co.uk/ASKManual/" target="_blank">project #6 on the manual</a>, which introduces an analog input playing together with a bunch of shinny LEDS. You turn the knob and you can read it&#8217;s value and use that on your circuits. In this case, it makes the lights go faster.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="intl_lang=en-us&amp;photo_secret=52794bc7bc&amp;photo_id=3981646601" /><param name="bgcolor" value="#000000" /><param name="allowFullScreen" value="true" /><param name="src" value="http://www.flickr.com/apps/video/stewart.swf?v=71377" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="400" height="300" src="http://www.flickr.com/apps/video/stewart.swf?v=71377" allowfullscreen="true" bgcolor="#000000" flashvars="intl_lang=en-us&amp;photo_secret=52794bc7bc&amp;photo_id=3981646601"></embed></object></p>
<p>At this point, i have made a couple of notes to make wiring the physical prototype easier:</p>
<ul>
<li>The holes in the breadboard are stiff the first time you use them. This is really annoying when you are trying to connect a resistor because its legs are very weak and will bend out of shape trying to go into the stiff hole. Also the legs are way too long and start to get in the way if you are connecting things next to them.</li>
<li>The best way to prevent this is by pre-opening the breadboard holes with the tip of the jump wire before attempting to connect the resistors.</li>
<li>Also it helps to cut the legs of the resistors to about half the length so they are bit sturdier and don&#8217;t bend so easily.</li>
<li>Talking about jumper wires, i have separated them by length so that it&#8217;s easy to use the shorter ones whenever possible and not end up with a mess of wires all over the place.</li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.piterwilson.com/personal/2009/10/04/learning-arduino-project-6-interactive-chase-light/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Arduino – Project 3 – Traffic lights</title>
		<link>http://www.piterwilson.com/personal/2009/09/29/learning-arduino-%e2%80%93-project-3-%e2%80%93-traffic-lights/</link>
		<comments>http://www.piterwilson.com/personal/2009/09/29/learning-arduino-%e2%80%93-project-3-%e2%80%93-traffic-lights/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 00:29:21 +0000</pubDate>
		<dc:creator>Piterwilson</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://www.piterwilson.com/personal/?p=273</guid>
		<description><![CDATA[Project 3 of the Arduino Starter Kit was pretty easy to complete. It&#8217;s a variation of the previous two projects except we are handling multiple LEDs at once and they are wired in parallel. Nothing much to note except for a couple of thing i noticed about the equipment itself (not necessarily relating to the [...]]]></description>
			<content:encoded><![CDATA[<p>Project 3 of the Arduino Starter Kit was pretty easy to complete. It&#8217;s a variation of the previous two projects except we are handling multiple LEDs at once and they are wired in parallel. Nothing much to note except for a couple of thing i noticed about the equipment itself (not necessarily relating to the projects) :</p>
<ul>
<li>The solder-less board that came with my kit is not the same as the one drawn on the diagrams. Mine only has one row on each of the opposite ends, instead of the two shown on the board on the diagrams. It&#8217;s not a big deal now, but perhaps this is gonna make things a bit harder at some point as i will have to re-interpret and adapt the wiring slightly to get the same effect as the diagram on the manual.</li>
<li>To no surprise the latest project i had worked on was still loaded on the Arduino until i replaced it with the new one. This is the intended behavior, but the old program started to run in the moment before i uploaded the new one (with the new wiring on the board). It was not a problem now, but maybe in the future i can damage the parts if the board is trying to run a old program and the wiring is set differently for the new project. That&#8217;s why i decided to create a &#8220;reset&#8221; program to empty the board of any programs in between projects.</li>
</ul>
<p>This is what the traffic lights look like when completed. Now my skill level is equivalent to lights on a christmas tree!</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="380" height="295" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/lTtRpHUKV48&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="380" height="295" src="http://www.youtube.com/v/lTtRpHUKV48&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>The next project introduces a switch to make things interactive. I hope to get some time to work on it soon.</p>]]></content:encoded>
			<wfw:commentRss>http://www.piterwilson.com/personal/2009/09/29/learning-arduino-%e2%80%93-project-3-%e2%80%93-traffic-lights/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Arduino &#8211; Project 1 &#8211; Blinking LEDs</title>
		<link>http://www.piterwilson.com/personal/2009/09/25/learning-arduino-project-1-blinking-leds/</link>
		<comments>http://www.piterwilson.com/personal/2009/09/25/learning-arduino-project-1-blinking-leds/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 00:30:18 +0000</pubDate>
		<dc:creator>Piterwilson</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[hobby]]></category>

		<guid isPermaLink="false">http://www.piterwilson.com/personal/?p=254</guid>
		<description><![CDATA[[ Update : I have resolved my confusion regarding the resistor color band system after i found out that there are actually 3 types of system : 4,5 and 6 band. My particular resistor is a 5 band, and it's color code brown-green-black-black-brown does in fact correspond to 150 with 1% tolerance. This page was [...]]]></description>
			<content:encoded><![CDATA[<p>[ Update : I have resolved my confusion regarding the resistor color band system after i found out that there are actually 3 types of system : 4,5 and 6 band. My particular resistor is a 5 band, and it's color code brown-green-black-black-brown does in fact correspond to 150 with 1% tolerance. <a href="http://www.samengstrom.com/nxl/10116/5_band_resistor_color_code_page.en.html" target="_blank">This page was useful to find out about this 3 different systems</a> ]</p>
<p>After the installation of the Arduino board, exercise number 1 dictates the easiest of tasks : make those damn sexy lights turn on and off on command.</p>
<p>The lesson i followed can be found on <a title="ARDUINO MANUAL" href="http://earthshinedesign.co.uk/ASKManual/ASKManual.pdf" target="_blank">this manual</a> under project 1 &#8220;LED FLASHER&#8221; (By the way, what&#8217;s up with that font they use in the beginning of each project? Why are Arduino boards all &#8220;street like&#8221; all of the sudden? ). This project is just a variation of the test you do to confirm that your Arduino board is in correct working order, <a href="http://arduino.cc/en/Tutorial/Blink" target="_blank">The &#8220;Blink&#8221; example</a>. The only difference is that you are using a different pin number for your digital output and that you are involving the solderless breadboard included with the kit and you are introduced to the idea that you have to use resistors in front of your LEDs to keep them from blowing up. <span style="text-decoration: line-through;">The concept seems easy enough but honestly im having some trouble with the </span><a title="Color code of resistors - Wikipedia" href="http://wiki.xtronics.com/index.php/Resistor_Codes" target="_blank"><span style="text-decoration: line-through;">color coding on the resistors</span></a><span style="text-decoration: line-through;">.</span></p>
<p>Maybe im getting old and my eyes are starting to fail me, but the first problem i had is that the &#8220;lines&#8221; that note the capacity of the resistors are too small. Maybe i need to add a magnifying glass to my Arduino hobby kit. <span style="text-decoration: line-through;">The second problem, or confusion i have, is that i have used the 150ohm resistor that comes clearly marked and included with the kit, just like the manual says, and that ,according to the color coding chart and these </span><a href="http://images.google.com/images?client=safari&amp;rls=en&amp;q=150+ohm+resistor&amp;oe=UTF-8&amp;um=1&amp;ie=UTF-8&amp;ei=llO9Sr_XJMzM8Qamv4yiAQ&amp;sa=X&amp;oi=image_result_group&amp;ct=title&amp;resnum=7" target="_blank"><span style="text-decoration: line-through;">google image results</span></a><span style="text-decoration: line-through;">, should have brown-green-brown lines plus the quality and tolerance lines. Instead this little guy, seems to have brown-green-black-black-brown lines.</span></p>
<p><a href="http://www.piterwilson.com/personal/wp-content/uploads/2009/09/sos_2.jpg"><img class="alignnone size-thumbnail wp-image-255" title="sos_2" src="http://www.piterwilson.com/personal/wp-content/uploads/2009/09/sos_2-450x450.jpg" alt="sos_2" width="450" height="450" /></a></p>
<p><span style="text-decoration: line-through;">I know this is the right one because the plastic bag said so and because this worked and the LED didn&#8217;t blow up, but from what i can tell, the shades of the colors and even the distribution of these lines are not really that standardized, which would beat the whole porpoise of having a color code system. Maybe it would have been better to just write down the actual numbers on the resistors?</span></p>
<p>In any case the whole project took just a couple of minutes to complete and there i had an LED blinking 1 second on and 1 second off. Because i was bored but didn&#8217;t feel confident enough to start project 2 i decided that i would do something a bit more exciting with this first skill of making happy shinny lights go on and off. I thought about making a morse code machine to broadcast my SOS distress signal of confusion regarding the resistor to make myself feel better about the whole thing. Using the info on the morse code wikipedia page it wasn&#8217;t long before i had my red little LED asking for help with little bursts of light going on into the Buenos Aires night.</p>
<p><a href="http://www.piterwilson.com/personal/wp-content/uploads/2009/09/sos_1.jpg"><img class="alignnone size-thumbnail wp-image-256" title="sos_1" src="http://www.piterwilson.com/personal/wp-content/uploads/2009/09/sos_1-450x450.jpg" alt="sos_1" width="450" height="450" /></a></p>
<p><a href="http://www.piterwilson.com/personal/wp-content/uploads/2009/09/sos_1.jpg"></a>The code i ended up with looks like this:</p>
<pre><span style="color: #7E7E7E;">// SOS I'm a n00b</span>
<span style="color: #CC6600;">int</span> ledPin = 10;
<span style="color: #CC6600;">int</span> unitLength = 100;
<span style="color: #CC6600;">void</span> <span style="color: #CC6600;"><strong>setup</strong></span>(){
  <span style="color: #CC6600;">pinMode</span>(ledPin,<span style="color: #006699;">OUTPUT</span>);
}
<span style="color: #7E7E7E;">/*short mark, dot or 'dit' (·) — one unit long*/</span>
<span style="color: #CC6600;">void</span> shortMark(){
  <span style="color: #CC6600;">digitalWrite</span>(ledPin,<span style="color: #006699;">HIGH</span>);
  <span style="color: #CC6600;">delay</span>(unitLength);
}
<span style="color: #7E7E7E;">/*longer mark, dash or 'dah' (–) — three units long*/</span>
<span style="color: #CC6600;">void</span> longMark(){
  <span style="color: #CC6600;">digitalWrite</span>(ledPin,<span style="color: #006699;">HIGH</span>);
  <span style="color: #CC6600;">delay</span>(unitLength*3);
}
<span style="color: #7E7E7E;">/*intra-character gap (between the dots and dashes within a character) — one unit long*/</span>
<span style="color: #CC6600;">void</span> intraCharGap(){
  <span style="color: #CC6600;">digitalWrite</span>(ledPin,<span style="color: #006699;">LOW</span>);
  <span style="color: #CC6600;">delay</span>(unitLength);
}
<span style="color: #7E7E7E;">/*short gap (between letters) — three units long*/</span>
<span style="color: #CC6600;">void</span> shortGap(){
  <span style="color: #CC6600;">digitalWrite</span>(ledPin,<span style="color: #006699;">LOW</span>);
  <span style="color: #CC6600;">delay</span>(unitLength*3);
}
<span style="color: #7E7E7E;">/*medium gap (between words) — seven units long*/</span>
<span style="color: #CC6600;">void</span> medGap(){
  <span style="color: #CC6600;">digitalWrite</span>(ledPin,<span style="color: #006699;">LOW</span>);
  <span style="color: #CC6600;">delay</span>(unitLength*7);
}
<span style="color: #CC6600;">void</span> sayS(){
  shortMark();
  intraCharGap();
  shortMark();
  intraCharGap();
  shortMark();
}
<span style="color: #CC6600;">void</span> sayO(){
  longMark();
  intraCharGap();
  longMark();
  intraCharGap();
  longMark();
}
<span style="color: #CC6600;">void</span> <span style="color: #CC6600;"><strong>loop</strong></span>(){
  sayS();
  shortGap();
  sayO();
  shortGap();
  sayS();
  medGap();
}</pre>]]></content:encoded>
			<wfw:commentRss>http://www.piterwilson.com/personal/2009/09/25/learning-arduino-project-1-blinking-leds/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Learning Arduino &#8211; Intro</title>
		<link>http://www.piterwilson.com/personal/2009/09/25/learning-arduino-intro/</link>
		<comments>http://www.piterwilson.com/personal/2009/09/25/learning-arduino-intro/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 00:05:45 +0000</pubDate>
		<dc:creator>Piterwilson</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Something / Algo]]></category>

		<guid isPermaLink="false">http://www.piterwilson.com/personal/?p=248</guid>
		<description><![CDATA[Ever since my Fabrica years, i had watched with interest how some of my &#8220;co-borsisti&#8221; friends played around with physical computing, and having never learned how to do whatever it is they did, had become a sort of frustration; a wish-i-had-learned-that kind of thought floating around in my head, jumping at from time to time. [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since my Fabrica years, i had watched with interest how some of my &#8220;co-borsisti&#8221; friends played around with physical computing, and having never learned how to do whatever it is they did, had become a sort of frustration; a <em>wish-i-had-learned-that</em> kind of thought floating around in my head, jumping at from time to time. I had always been of the line of thought that the physical world was kind of too messy for me to handle, too impractical, and you need to be in places where physical things have to be available for you to order and actually get in your hands&#8230; but after years of coding web stuff for a living i have found myself more and more feeling this urge to explore other ways my coding skills can be used, outside flash and outside a web browser. And let&#8217;s face it : those damn blinking LEDs are just so damn cool. I caved. The shinny lights have seduced me. Shinnyyy&#8230;</p>
<p>So on my recent trip to London this august, i decided to take advantage of the availability of digital bits and pieces enjoyed there (now i believe every city in the world should have something like maplin electronics, those stores are FUUUUNNN), to get my hands on different pre-made-assemble-youself kits soldering equipment and start learning the basics of physical computing as a hobby and perhaps as a future addition to my semi-nerd skills arsenal.</p>
<p>My friends always played around with Arduino boards, which can be programmed in an IDE similar to processing (easy-piecy), so i figure that was a safe bet, and I ordered online one of those &#8220;Arduino Starter kits&#8221;, in my case <a title="Arduino started kit" href="http://www.robotiq.co.uk/ccp51/cgi-bin/cp-app.cgi?usr=51F1802563&amp;rnd=2127437&amp;rrc=N&amp;affl=&amp;cip=&amp;act=&amp;aff=&amp;pg=prod&amp;ref=ard_starter_kit&amp;cat=arduino&amp;catstr=HOME:arduino" target="_blank">i got this one</a> offered by Robotik in the UK and after a long anxious week, it finally arrived and i have given myself the mission to make some time around my work schedule (and other stuff i have to do),  to go trough the exercises that accompany my new starter kit. I hope to at least do a project each week.</p>
<p>The first thing i did once i had the time was to do the whole setup and installation of the environment, and i had no problem with that. I was setup within minutes of getting started using the instructions found online. The process to load a program seems to be as easy as plugging the board, coding something in the IDE, then hitting the play button and then uploading that to the board. I somehow expected more steps but hey! i&#8217;m not complaining.</p>
<p>And so i venture off as a total novice and hope not to fry my board too soon into this learning process&#8230;</p>
<p><a title="Project 1" href="http://www.piterwilson.com/personal/2009/09/25/learning-arduino-project-1-blinking-leds/" target="_self">Project 1 is here for those wishing to read on&#8230;</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.piterwilson.com/personal/2009/09/25/learning-arduino-intro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
