Differences

This shows you the differences between two versions of the page.

Link to this comparison view

products:ardx:circ-01 [2012/03/14 04:58] (current)
Line 1: Line 1:
  
 +<html>
 +<div id="CIRC-head">
 +<div id="CIRC-100"><table height="100px" width="100px" valign="center"><tr><td><span class="headText"><center>CIRC<br>01</center></span></td></tr></table></div>
 +<div id="CIRC-465"><table height="100px" width="465px" valign="center"><tr><td><span class="subText"><center>.:Getting Started:.<br>.:Blinking LED:.</center></span></td></tr></table></div>
 +<div id="CIRC-100"><img src="http://www.ardx.org/src/circ/CIRC-01-square-100.jpg" width="100" height="100"></div>
 +</div>
 +<span class="familyName"><center>(ARDX)   .:Arduino Expermentation Kit:.   (ARDX)</center></span>
 +<div id="CIRC-whitespace"></div>
 +<div id="CIRC-body">
 +<div id="CIRC-whitespace"></div><br>
 +<div id="CIRC-whatweredoing">
 +<span class="titleText">What We're Doing</span><br>
 +<span class="regularText">LEDs (light emitting diodes) are used in all sorts of clever things which is why we have included them in this kit. We will start off with something very simple, turning one on and off, repeatedly, producing a pleasant blinking effect. To get started, grab the parts listed below, pin the layout sheet to your breadboard and then plug everything in. Once the circuit is assembled you'll need to upload the program. To do this plug the Arduino board into your USB port. Then select the proper port in Tools &gt; Serial Port &gt; (the comm port of your Arduino). Next upload the program by going to File &gt; Upload to I/O Board  (ctrl+U). Finally, bask in the glory and possibility that controlling lights offers.<br><br>If you are having trouble uploading, a full trouble shooting guide can be found here: <a href="http://ardx.org/TRBL">http://ardx.org/TRBL</a></span>
 +</div><br>
 +<div id="CIRC-whitespace"></div><br>
 +<div id="CIRC-thecircuit">
 +<span class="titleText">The Circuit</span><br>
 +<div id="CIRC-thepartsSideSpacer">
 +</div>
 +        <div id="CIRC-theparts">
 +          <span class="smallTitleText">The Parts</span><br>
 +          <span class="regularText">
 +<table>
 +<tr>
 +<td>
 +<img src="http://www.oomlout.com/parts/CIRC-01-3dsheet-60.png" width="60px" height="36px">
 +</td>
 +<td>
 +<span class="partsText">
 +CIRC-01<br>Breadboard Sheet<br>x1
 +</span>
 +</td>
 +<td>
 +<img src="http://www.oomlout.com/parts/HEAD-02-60.png" width="60px" height="36px">
 +</td>
 +<td>
 +<span class="partsText">
 +2 Pin Header<br>x4
 +</span>
 +</td>
 +<td>
 +<img src="http://www.oomlout.com/parts/LED-10B-60.png" width="60px" height="36px">
 +</td>
 +<td>
 +<span class="partsText">
 +10mm LED<br>x1
 +</span>
 +</td>
 +<td>
 +
 +<img src="http://www.oomlout.com/parts/WIRE-01-60.png" width="60px" height="36px">
 +</td>
 +<td>
 +<span class="partsText">
 +Wire
 +</span>
 +</td>
 +</tr>
 +
 +<tr>
 +<td>
 +<img src="http://www.oomlout.com/parts/RES-331-60.png" width="60px" height="36px">
 +</td>
 +<td>
 +<span class="partsText">
 +560 Ohm Resistor<br>Green-Blue-Brown<br>x1
 +</span>
 +</td>
 +<td>
 +<img src="http://www.oomlout.com/parts/BLANK.png" width="60px" height="36px">
 +</td>
 +<td>
 +<span class="partsText">
 +
 +</span>
 +</td>
 +<td>
 +<img src="http://www.oomlout.com/parts/BLANK.png" width="60px" height="36px">
 +</td>
 +<td>
 +<span class="partsText">
 +
 +</span>
 +</td>
 +<td>
 +
 +<img src="http://www.oomlout.com/parts/BLANK.png" width="60px" height="36px">
 +</td>
 +<td>
 +<span class="partsText">
 +
 +</span>
 +</td>
 +</tr>
 +</table>
 +</span>
 +        </div><br>
 +        <div id="CIRC-whitespace"></div><br>
 +        <div id="CIRC-thepartsSideSpacer"></div>
 +          <div id="CIRC-circuitBox">
 +            <div id="CIRC-schematic"><center><span class="smallTitleText">Schematic</span><span class="smallTitleText"><img src="http://www.ardx.org/src/circ/ARDX-SC-01-150.png"></span></center></div>
 + <br>
 + <div id="CIRC-smallwhitespace">&nbsp;</div><br>
 +            <div id="CIRC-resources">
 + <center><span class="smallTitleText">Resources</span><br><span class="smallMediumDarkText"><b>.:download:.</b><br>breadboard layout sheet<br><b><a href="http://ardx.org/BBLS01">http://ardx.org/BBLS01</a></b><br><br><b>.:view:.</b><br>assembly video <b><br><a href="http://ardx.org/VIDE01">http://ardx.org/VIDE01</a></b></span></center>
 +            </div>
 +          </div>
 +        <div id="CIRC-circuitPicture">
 +          <center>
 +            <img src="http://www.ardx.org/src/circ/CIRC01-3dexploded-445.png" width="445">
 +          </center>
 +        </div>
 +      </div><br>
 +      <div id="CIRC-whitespace">&nbsp;</div><br>
 +<div id="CIRC-thecode">
 +        <span class="titleText">Code</span> <span class="smallDarkText">(no need to type everything in just)</span><br>
 +        <span class="mediumDarkText">File &gt; Examples &gt; 1.Basic &gt; Blink<br>(example from the great arduino.cc site, check it out for other ideas)</span><br>
 +        <span class="code">        <prew>/*<br>
 +&nbsp;&nbsp;*Blink<br>
 +&nbsp;&nbsp;*Turns&nbsp;on&nbsp;an&nbsp;LED&nbsp;on&nbsp;for&nbsp;one&nbsp;second,&nbsp;then&nbsp;off&nbsp;for&nbsp;one&nbsp;second,&nbsp;repeatedly.<br>
 +&nbsp;&nbsp;*The&nbsp;circuit:<br>
 +&nbsp;&nbsp;*&nbsp;LED&nbsp;connected&nbsp;from&nbsp;digital&nbsp;pin&nbsp;13&nbsp;to&nbsp;ground.<br>
 +&nbsp;&nbsp;*&nbsp;Note:&nbsp;On&nbsp;most&nbsp;Arduino&nbsp;boards,&nbsp;there&nbsp;is&nbsp;already&nbsp;an&nbsp;LED&nbsp;on&nbsp;the&nbsp;board<br>
 +&nbsp;&nbsp;*&nbsp;connected&nbsp;to&nbsp;pin&nbsp;13,&nbsp;so&nbsp;you&nbsp;don't&nbsp;need&nbsp;any&nbsp;extra&nbsp;components&nbsp;for&nbsp;this&nbsp;example.<br>
 +&nbsp;&nbsp;<br>
 +&nbsp;&nbsp;*Created&nbsp;1&nbsp;June&nbsp;2005<br>
 +&nbsp;&nbsp;*By&nbsp;David&nbsp;Cuartielles<br>
 +&nbsp;&nbsp;*http://arduino.cc/en/Tutorial/Blink<br>
 +&nbsp;&nbsp;*based&nbsp;on&nbsp;an&nbsp;orginal&nbsp;by&nbsp;H.&nbsp;Barragan&nbsp;for&nbsp;the&nbsp;Wiring&nbsp;i/o&nbsp;board<br>
 +*/<br>
 +&nbsp;<br>
 +int&nbsp;ledPin&nbsp;=&nbsp;&nbsp;13;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;LED&nbsp;connected&nbsp;to&nbsp;digital&nbsp;pin&nbsp;13<br>
 +&nbsp;<br>
 +//&nbsp;The&nbsp;setup()&nbsp;method&nbsp;runs&nbsp;once,&nbsp;when&nbsp;the&nbsp;sketch&nbsp;starts<br>
 +&nbsp;<br>
 +void&nbsp;setup()&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
 +&nbsp;&nbsp;//&nbsp;initialize&nbsp;the&nbsp;digital&nbsp;pin&nbsp;as&nbsp;an&nbsp;output:<br>
 +&nbsp;&nbsp;pinMode(ledPin,&nbsp;OUTPUT);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
 +}<br>
 +&nbsp;<br>
 +//&nbsp;the&nbsp;loop()&nbsp;method&nbsp;runs&nbsp;over&nbsp;and&nbsp;over&nbsp;again,<br>
 +//&nbsp;as&nbsp;long&nbsp;as&nbsp;the&nbsp;Arduino&nbsp;has&nbsp;power<br>
 +&nbsp;<br>
 +void&nbsp;loop()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
 +{<br>
 +&nbsp;&nbsp;digitalWrite(ledPin,&nbsp;HIGH);&nbsp;&nbsp;&nbsp;//&nbsp;set&nbsp;the&nbsp;LED&nbsp;on<br>
 +&nbsp;&nbsp;delay(1000);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;wait&nbsp;for&nbsp;a&nbsp;second<br>
 +&nbsp;&nbsp;digitalWrite(ledPin,&nbsp;LOW);&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;set&nbsp;the&nbsp;LED&nbsp;off<br>
 +&nbsp;&nbsp;delay(1000);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;wait&nbsp;for&nbsp;a&nbsp;second<br>
 +}<br>
 +<br>
 +        </prew></span>
 +      </div>
 +      <div id="CIRC-whitespace">&nbsp;</div><br>
 +<div id="CIRC-notWorking">
 +        <span class="titleText">Not Working?</span> <span class="smallDarkText">(3 things to try)</span>
 + <br><div id="CIRC-smallwhitespace">&nbsp;</div><br>
 + <div>
 +        <div id="CIRC-thepartsSideSpacer">&nbsp;</div>
 +        <div id="CIRC-nw1"><center><span class="regularText"><b>LED Not Lighting Up?</b></span><br><span class="regularText">LEDs will only work in one direction. Try taking it out and twisting it 180 degrees.<br>(no need to worry, installing it backwards does no permanent harm).</span></center></div>
 +        <div id="CIRC-thepartsSideSpacer">&nbsp;</div>
 +        <div id="CIRC-nw2"><center><span class="regularText"><b>Program Not Uploading </b></span><br><span class="regularText">This happens sometimes, the most likely cause is a confused serial port, you can change this in <b>tools>serial port></b></span></center></div>
 +        <div id="CIRC-thepartsSideSpacer">&nbsp;</div>
 +        <div id="CIRC-nw3"><center><span class="regularText"><b>Still No Success?</b></span><br><span class="regularText">A broken circuit is no fun, send us an e-mail and we will get back to you as soon as we can.<br><br><b>help@oomlout.com</b></span></center></div>
 +        <div id="CIRC-thepartsSideSpacer">&nbsp;</div>
 +</div></div>
 +<div id="CIRC-whitespace">&nbsp;</div><br>
 +<div id="CIRC-makingBetter">
 +<span class="titleText">Making it Better?</span><br>&nbsp;<br>
 +<span class="regularText"><b>Changing the pin:</b> <BR>The LED is connected to pin 13 but we can use any of the Arduino's pins. To change it take the wire plugged into pin 13 and move it to a pin of your choice (from 0-13) (you can also use analog 0-5 analog 0 is 14...) <BR>&nbsp; <BR> <BR>Then in the code change the line: <BR><center><span class="bigCode"> int ledPin = 13; -> int ledPin = newpin;</span></center> <BR> <BR>Then upload the sketch: (ctrl-u) <BR>&nbsp; <BR> <BR><b>Change the Blink Time:</b> <BR>Unhappy with one second on one second off?   <BR>&nbsp; <BR>In the code change the lines: <BR><span class="bigCode"> <BR>&nbsp; &nbsp;&nbsp; &nbsp;digitalWrite(ledPin, HIGH);   <BR>&nbsp; &nbsp;&nbsp; &nbsp;delay(time on);  //(seconds * 1000)  <BR>&nbsp; &nbsp;&nbsp; &nbsp;digitalWrite(ledPin, LOW);  <BR>&nbsp; &nbsp;&nbsp; &nbsp;delay(time off); //(seconds * 1000)  <BR>&nbsp; <BR></span> <BR><b>Control the Brightness:</b> <BR>Along with digital (on/off) control the Arduino can control some pins in an analog (brightness) fashion. (more details on this in later circuits). To play around with it. <BR>&nbsp; <BR> <BR>Change the LED to pin 9: (also change the wire) <BR><center><span class="bigCode">ledPin = 13; -> int ledPin = 9;</span></center> <BR> <BR>Replace the code inside the <span class="bigCode">{ }</span>'s of <span class="bigCode">loop()</span> with this:  <BR> <BR><center><span class="bigCode">analogWrite(ledPin, new number);</span> </center> <BR>&nbsp; <BR> <BR><span class="bigCode">(new number)</span> = any number between 0 and 255. 0 = off, 255 = on, in between = different brightness  <BR>&nbsp; <BR> <BR><b>Fading:</b> <BR>We will use another included example program. To open go to. <BR>&nbsp; <BR><center><b>File &gt; Examples &gt; Analog &gt; Fading</b></center> <BR>&nbsp; <BR>Then upload to your board and watch as the LED fades in and then out.
 +</span></html>