PageRenderTime 45ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/arduino-1.0/build/shared/reference/Guide_Windows.html

#
HTML | 161 lines | 121 code | 8 blank | 32 comment | 0 complexity | a5ff53218bf41f4f730715f624d2dac1 MD5 | raw file
Possible License(s): LGPL-2.1, AGPL-1.0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html>
  4. <head>
  5. <title>Arduino Reference - Windows </title>
  6. <link rel="shortcut icon" type="image/x-icon" href="http://arduino.cc/en/favicon.png">
  7. <link rel='stylesheet' href='arduinoWideRender.css'
  8. type='text/css' />
  9. <!--HeaderText--><style type='text/css'><!--
  10. ul, ol, pre, dl, p { margin-top:0px; margin-bottom:0px; }
  11. code { white-space: nowrap; }
  12. .vspace { margin-top:1.33em; }
  13. .indent { margin-left:40px; }
  14. .outdent { margin-left:40px; text-indent:-40px; }
  15. a.createlinktext { text-decoration:none; border-bottom:1px dotted gray; }
  16. a.createlink { text-decoration:none; position:relative; top:-0.5em;
  17. font-weight:bold; font-size:smaller; border-bottom:none; }
  18. img { border:0px; }
  19. .editconflict { color:green;
  20. font-style:italic; margin-top:1.33em; margin-bottom:1.33em; }
  21. table.markup { border: 2px dotted #ccf; width:90%; }
  22. td.markup1, td.markup2 { padding-left:10px; padding-right:10px; }
  23. td.markup1 { border-bottom: 1px solid #ccf; }
  24. div.faq { margin-left:2em; }
  25. div.faq p.question { margin: 1em 0 0.75em -2em; font-weight:bold; }
  26. div.faq hr { margin-left: -2em; }
  27. .frame
  28. { border:1px solid #cccccc; padding:4px; background-color:#f9f9f9; }
  29. .lfloat { float:left; margin-right:0.5em; }
  30. .rfloat { float:right; margin-left:0.5em; }
  31. a.varlink { text-decoration:none; }
  32. --></style> <meta name='robots' content='index,follow' />
  33. <meta name="verify-v1" content="TtxFIEJAB6zdJ509wLxjnapQzKAMNm9u0Wj4ho6wxIY=" />
  34. </head>
  35. <body>
  36. <div id="page">
  37. <!--PageHeaderFmt-->
  38. <div id="pageheader">
  39. <div class="title"><a href='http://arduino.cc/en'>Arduino</a></div>
  40. </div>
  41. <!--/PageHeaderFmt-->
  42. <!--PageLeftFmt-->
  43. <div id="pagenav">
  44. <div id="navbar">
  45. <p><a class='wikilink' href='http://arduino.cc/en/Main/Buy'>Buy</a>
  46. <a class='wikilink' href='http://arduino.cc/en/Main/Software'>Download</a>
  47. <a class='wikilink' href='Guide_index.html'>Getting Started</a>
  48. <a class='wikilink' href='http://arduino.cc/en/Tutorial/HomePage'>Learning</a>
  49. <a class='wikilink' href='index.html'>Reference</a>
  50. <a class='wikilink' href='http://arduino.cc/en/Main/Hardware'>Hardware</a>
  51. <a class='wikilink' href='FAQ.html'>FAQ</a>
  52. </p>
  53. <p class='vspace'></p>
  54. </div>
  55. </div>
  56. <!--/PageLeftFmt-->
  57. <div id="pagetext">
  58. <!--PageText-->
  59. <div id='wikitext'>
  60. <h2>Getting Started w/ Arduino on Windows</h2>
  61. <p><em>This document explains how to connect your Arduino board to the computer and upload your first sketch.</em>
  62. </p>
  63. <p class='vspace'></p><p>(:*toc :)
  64. </p>
  65. <p class='vspace'></p><h3>1 | Get an Arduino board and USB cable</h3>
  66. <p>In this tutorial, we assume you're using an <a class='wikilink' href='http://arduino.cc/en/Main/ArduinoBoardUno'>Arduino Uno</a>, <a class='wikilink' href='http://arduino.cc/en/Main/ArduinoBoardDuemilanove'>Arduino Duemilanove</a>, <a class='wikilink' href='http://arduino.cc/en/Main/ArduinoBoardNano'>Nano</a>, or <a class='wikilink' href='http://arduino.cc/en/Main/ArduinoBoardDiecimila'>Diecimila</a>. If you have another board, read the corresponding page in this getting started guide.
  67. </p>
  68. <p class='vspace'></p><p>You also need a standard USB cable (A plug to B plug): the kind you would connect to a USB printer, for example. (For the Arduino Nano, you'll need an A to Mini-B cable instead.)
  69. </p>
  70. <p class='vspace'></p><div><img src='http://arduino.cc/en/uploads/Main/ArduinoUnoFront240.jpg' alt='' title='' /> <img src='http://arduino.cc/en/uploads/Guide/USBCable.jpg' alt='' title='' /></div>
  71. <p class='vspace'></p><h3>2 | Download the Arduino environment</h3>
  72. <p>Get the latest version from the <a class='wikilink' href='http://arduino.cc/en/Main/Software'>download page</a>.
  73. </p>
  74. <p class='vspace'></p><p>When the download finishes, unzip the downloaded file. Make sure to preserve the folder structure. Double-click the folder to open it. There should be a few files and sub-folders inside.
  75. </p>
  76. <p class='vspace'></p><h3>3 | Connect the board</h3>
  77. <p>The Arduino Uno, Mega, Duemilanove and Arduino Nano automatically draw power from either the USB connection to the computer or an external power supply. If you're using an Arduino Diecimila, you'll need to make sure that the board is configured to draw power from the USB connection. The power source is selected with a jumper, a small piece of plastic that fits onto two of the three pins between the USB and power jacks. Check that it's on the two pins closest to the USB port.
  78. </p>
  79. <p class='vspace'></p><p>Connect the Arduino board to your computer using the USB cable. The green power LED (labelled <strong>PWR</strong>) should go on.
  80. </p>
  81. <p class='vspace'></p><h3>4 | Install the drivers</h3>
  82. <p><strong>Installing drivers for the <a class='wikilink' href='http://arduino.cc/en/Main/ArduinoBoardUno'>Arduino Uno</a> with Windows7, Vista, or XP:</strong>
  83. </p>
  84. <p class='vspace'></p><ul><li>Plug in your board and wait for Windows to begin it's driver installation process.  After a few moments, the process will fail, despite its best efforts
  85. </li><li>Click on the Start Menu, and open up the Control Panel.
  86. </li><li>While in the Control Panel, navigate to System and Security. Next, click on System. Once the System window is up, open the Device Manager.
  87. </li><li>Look under Ports (COM &amp; LPT).  You should see an open port named "Arduino UNO (<span class='wikiword'>COMxx</span>)"
  88. </li><li>Right click on the "Arduino UNO (<span class='wikiword'>COmxx</span>)" port and choose the "Update Driver Software" option.
  89. </li><li>Next, choose the "Browse my computer for Driver software" option.
  90. </li><li>Finally, navigate to and select the Uno's driver file, named <strong>"<span class='wikiword'>ArduinoUNO</span>.inf"</strong>, located in the "Drivers" folder of the Arduino Software download (not the "FTDI USB Drivers" sub-directory).
  91. </li><li>Windows will finish up the driver installation from there.
  92. </li></ul><p class='vspace'></p><p>See also: <a class='wikilink' href='Guide_UnoDriversWindowsXP.html'>step-by-step screenshots for installing the Uno under Windows XP</a>.
  93. </p>
  94. <p class='vspace'></p><p><strong>Installing drivers for the <a class='wikilink' href='http://arduino.cc/en/Main/ArduinoBoardDuemilanove'>Arduino Duemilanove</a>, <a class='wikilink' href='http://arduino.cc/en/Main/ArduinoBoardNano'>Nano</a>, or <a class='wikilink' href='http://arduino.cc/en/Main/ArduinoBoardDiecimila'>Diecimila</a> with Windows7, Vista, or XP:</strong>
  95. </p>
  96. <p class='vspace'></p><p>When you connect the board, Windows should initiate the driver installation process (if you haven't used the computer with an Arduino board before).
  97. </p>
  98. <p class='vspace'></p><p>On Windows Vista, the driver should be automatically downloaded and installed. (Really, it works!)
  99. </p>
  100. <p class='vspace'></p><p>On Windows XP, the Add New Hardware wizard will open:
  101. </p><ul><li>When asked <strong>Can Windows connect to Windows Update to search for software?</strong> select <strong>No, not this time</strong>. Click next.
  102. </li><li>Select <strong>Install from a list or specified location (Advanced)</strong> and click next.
  103. </li><li>Make sure that <strong>Search for the best driver in these locations</strong> is checked; uncheck <strong>Search removable media</strong>; check <strong>Include this location in the search</strong> and browse to the <strong>drivers/FTDI USB Drivers</strong> directory of the Arduino distribution. (The latest version of the drivers can be found on the <a class='urllink' href='http://www.ftdichip.com/Drivers/VCP.htm' rel='nofollow'>FTDI website</a>.) Click next.
  104. </li><li>The wizard will search for the driver and then tell you that a "USB Serial Converter" was found. Click finish.
  105. </li><li>The new hardware wizard will appear again. Go through the same steps and select the same options and location to search. This time, a "USB Serial Port" will be found.
  106. </li></ul><p class='vspace'></p><p>You can check that the drivers have been installed by opening the Windows Device Mananger (in the Hardware tab of System control panel). Look for a "USB Serial Port" in the Ports section; that's the Arduino board.
  107. </p>
  108. <p class='vspace'></p><h3>5 | Launch the Arduino application</h3>
  109. <p>Double-click the Arduino application.
  110. </p>
  111. <p class='vspace'></p><h3>6 | Open the blink example</h3>
  112. <p>Open the LED blink example sketch: <strong>File &gt; Examples &gt; 1.Basics &gt; Blink</strong>.
  113. </p>
  114. <p class='vspace'></p><div><img src='http://arduino.cc/en/uploads/Guide/Arduino0018Blink.png' alt='' title='' /></div>
  115. <p class='vspace'></p><h3>7 | Select your board</h3>
  116. <p>You'll need to select the entry in the <strong>Tools &gt; Board</strong> menu that corresponds to your Arduino.
  117. </p>
  118. <p class='vspace'></p><div><img src='http://arduino.cc/en/uploads/Guide/ToolsMenu.png' alt='' title='' /></div>
  119. <p><span style='font-size:83%'>Selecting an Arduino Uno</span>
  120. </p>
  121. <p class='vspace'></p><p>For Duemilanove Arduino boards with an <span class='wikiword'>ATmega328</span> (check the text on the chip on the board), select <strong>Arduino Duemilanove or Nano w/ <span class='wikiword'>ATmega328</span></strong>. Previously, Arduino boards came with an <span class='wikiword'>ATmega168</span>; for those, select <strong>Arduino Diecimila, Duemilanove, or Nano w/ <span class='wikiword'>ATmega168</span></strong>. (Details of the board menu entries are available <a class='urllink' href='http://arduino.cc/en/Guide/Environment#boards' rel='nofollow'>on the environment page</a>.)
  122. </p>
  123. <p class='vspace'></p><h3>8 | Select your serial port</h3>
  124. <p>Select the serial device of the Arduino board from the Tools | Serial Port menu. This is likely to be <strong><span class='wikiword'>COM3</span></strong> or higher (<strong><span class='wikiword'>COM1</span></strong> and <strong><span class='wikiword'>COM2</span></strong> are usually reserved for hardware serial ports). To find out, you can disconnect your Arduino board and re-open the menu; the entry that disappears should be the Arduino board. Reconnect the board and select that serial port.
  125. </p>
  126. <p class='vspace'></p><h3>9 | Upload the program</h3>
  127. <p>Now, simply click the "Upload" button in the environment. Wait a few seconds - you should see the RX and TX leds on the board flashing. If the upload is successful, the message "Done uploading." will appear in the status bar. (<em>Note:</em> If you have an Arduino Mini, NG, or other board, you'll need to physically present the reset button on the board immediately before pressing the upload button.)
  128. </p>
  129. <p class='vspace'></p><div><img src='http://arduino.cc/en/uploads/Guide/UploadButton.png' alt='' title='' /></div>
  130. <p class='vspace'></p><p>A few seconds after the upload finishes, you should see the pin 13 (L) LED on the board start to blink (in orange). If it does, congratulations! You've gotten Arduino up-and-running.
  131. </p>
  132. <p class='vspace'></p><p>If you have problems, please see the <a class='wikilink' href='Guide_Troubleshooting.html'>troubleshooting suggestions</a>.
  133. </p>
  134. <p class='vspace'></p><p>You might also want to look at:
  135. </p><ul><li>the <a class='wikilink' href='http://arduino.cc/en/Tutorial/HomePage'>examples</a> for using various sensors and actuators
  136. </li><li>the <a class='wikilink' href='index.html'>reference</a> for the Arduino language
  137. </li></ul><p>The text of the Arduino getting started guide is licensed under a
  138. <a class='urllink' href='http://creativecommons.org/licenses/by-sa/3.0/' rel='nofollow'>Creative Commons Attribution-ShareAlike 3.0 License</a>. Code samples in the guide are released into the public domain.
  139. </p>
  140. </div>
  141. </div>
  142. <!--PageFooterFmt-->
  143. <div id="pagefooter">
  144. &copy;Arduino |
  145. <a href='Guide_Windows?action=edit.html'>Edit Page</a> | <a href='Guide_Windows?action=diff.html'>Page History</a> | <a href='Guide_Windows?action=print.html' target='_blank'>Printable View</a> | <a href='http://arduino.cc/en/Site/AllRecentChanges'>All Recent Site Changes</a>
  146. </div>
  147. <!--/PageFooterFmt-->
  148. </div>
  149. </body>
  150. </html>