<?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; Arduino</title>
	<atom:link href="http://www.piterwilson.com/personal/tag/arduino/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.piterwilson.com/personal</link>
	<description>Piterwilson is/es Juan Carlos Ospina Gonzalez</description>
	<lastBuildDate>Sat, 17 Sep 2011 16:08:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Learning Arduino &#8211; Counting from 0 to 10 in binary</title>
		<link>http://www.piterwilson.com/personal/2009/10/24/learning-arduino-counting-from-0-to-10-in-binary/</link>
		<comments>http://www.piterwilson.com/personal/2009/10/24/learning-arduino-counting-from-0-to-10-in-binary/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 22:09:16 +0000</pubDate>
		<dc:creator>Piterwilson</dc:creator>
				<category><![CDATA[Something / Algo]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[hobby]]></category>

		<guid isPermaLink="false">http://www.piterwilson.com/personal/?p=308</guid>
		<description><![CDATA[Project 15 of the Arduino starter kit manual introduces the Shift Register. It took me a bit to get my head around the idea but once i did, it&#8217;s clear they can b used to control a large number of outputs using a few of the Arduino digital outputs.]]></description>
			<content:encoded><![CDATA[<p>Project 15 of the Arduino starter kit manual introduces the Shift Register. It took me a bit to get my head around the idea but once i did, it&#8217;s clear they can b used to control a large number of outputs using a few of the Arduino digital outputs.</p>
<p><object width="320" height="265"><param name="movie" value="http://www.youtube.com/v/LLFih22kk-c&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/LLFih22kk-c&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="265"></embed></object></p>]]></content:encoded>
			<wfw:commentRss>http://www.piterwilson.com/personal/2009/10/24/learning-arduino-counting-from-0-to-10-in-binary/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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 &#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>
	</channel>
</rss>

