|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
<html>
|
|
|
<head>
|
|
|
<title>Arduino - Windows </title>
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="http://arduino.cc/en/favicon.png">
|
|
|
<link rel='stylesheet' href='arduinoUno.css' type='text/css' />
|
|
|
<!--HeaderText--><style type='text/css'><!--
|
|
|
ul, ol, pre, dl, p { margin-top:0px; margin-bottom:0px; }
|
|
|
code { white-space: nowrap; }
|
|
|
.vspace { margin-top:1.33em; }
|
|
|
.indent { margin-left:40px; }
|
|
|
.outdent { margin-left:40px; text-indent:-40px; }
|
|
|
a.createlinktext { text-decoration:none; border-bottom:1px dotted gray; }
|
|
|
a.createlink { text-decoration:none; position:relative; top:-0.5em;
|
|
|
font-weight:bold; font-size:smaller; border-bottom:none; }
|
|
|
img { border:0px; }
|
|
|
|
|
|
span.anchor {
|
|
|
float: left;
|
|
|
font-size: 10px;
|
|
|
margin-left: -10px;
|
|
|
width: 10px;
|
|
|
position:relative; top:-0.1em;
|
|
|
text-align: center;
|
|
|
}
|
|
|
span.anchor a { text-decoration: none; }
|
|
|
span.anchor a:hover { text-decoration: underline; }
|
|
|
ol.toc { text-indent:-20px; list-style: none; }
|
|
|
ol.toc ol.toc { text-indent:-40px; }
|
|
|
div.tocfloat { font-size: smaller; margin-bottom: 10px;
|
|
|
border-top: 1px dotted #555555; border-bottom: 1px dotted #555555;
|
|
|
padding-top: 5px; padding-bottom: 5px;
|
|
|
width: 38%; float: right; margin-left: 10px; clear: right;
|
|
|
margin-right:-13px; padding-right: 13px; padding-left: 13px;
|
|
|
background-color: #eeeeee; }
|
|
|
div.toc { font-size: smaller;
|
|
|
padding: 5px; border: 1px dotted #cccccc;
|
|
|
background: #f7f7f7;
|
|
|
margin-bottom: 10px; }
|
|
|
div.toc p { background-color: #f9f6d6;
|
|
|
margin-top:-5px; padding-top: 5px;
|
|
|
margin-left:-5px; padding-left: 5px;
|
|
|
margin-right:-5px; padding-right: 5px;
|
|
|
padding-bottom: 3px;
|
|
|
border-bottom: 1px dotted #cccccc; }.editconflict { color:green;
|
|
|
font-style:italic; margin-top:1.33em; margin-bottom:1.33em; }
|
|
|
|
|
|
table.markup { border: 2px dotted #ccf; width:90%; }
|
|
|
td.markup1, td.markup2 { padding-left:10px; padding-right:10px; }
|
|
|
td.markup1 { border-bottom: 1px solid #ccf; }
|
|
|
div.faq { margin-left:2em; }
|
|
|
div.faq p.question { margin: 1em 0 0.75em -2em; font-weight:bold; }
|
|
|
div.faq hr { margin-left: -2em; }
|
|
|
|
|
|
.frame
|
|
|
{ border:1px solid #cccccc; padding:4px; background-color:#f9f9f9; }
|
|
|
.lfloat { float:left; margin-right:0.5em; }
|
|
|
.rfloat { float:right; margin-left:0.5em; }
|
|
|
a.varlink { text-decoration:none; }
|
|
|
|
|
|
--></style><script type="text/javascript">
|
|
|
function toggle(obj) {
|
|
|
var elstyle = document.getElementById(obj).style;
|
|
|
var text = document.getElementById(obj + "tog");
|
|
|
if (elstyle.display == 'none') {
|
|
|
elstyle.display = 'block';
|
|
|
text.innerHTML = "hide";
|
|
|
} else {
|
|
|
elstyle.display = 'none';
|
|
|
text.innerHTML = "show";
|
|
|
}
|
|
|
}
|
|
|
</script> <meta name='robots' content='index,follow' />
|
|
|
|
|
|
<meta name="verify-v1" content="TtxFIEJAB6zdJ509wLxjnapQzKAMNm9u0Wj4ho6wxIY=" />
|
|
|
</head>
|
|
|
<body>
|
|
|
<div id="page">
|
|
|
<!--PageHeaderFmt-->
|
|
|
<div id="pageheader">
|
|
|
<div class="title"><a href='http://arduino.cc/en'>Arduino</a></div>
|
|
|
<div class="search">
|
|
|
<!-- SiteSearch Google -->
|
|
|
<FORM method=GET action="http://www.google.com/search">
|
|
|
<input type=hidden name=ie value=UTF-8>
|
|
|
<input type=hidden name=oe value=UTF-8>
|
|
|
<INPUT TYPE=text name=q size=25 maxlength=255 value="">
|
|
|
<INPUT type=submit name=btnG VALUE="search">
|
|
|
<input type=hidden name=domains value="http://www.arduino.cc/">
|
|
|
<input type=hidden name=sitesearch value="http://www.arduino.cc/">
|
|
|
</FORM>
|
|
|
<!-- SiteSearch Google -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--/PageHeaderFmt-->
|
|
|
<!--PageLeftFmt-->
|
|
|
<div id="pagenav">
|
|
|
<div id="navbar">
|
|
|
<p><a class='wikilink' href='http://arduino.cc/en/Main/Buy'>Buy</a>
|
|
|
<a class='wikilink' href='http://arduino.cc/en/Main/Software'>Download</a>
|
|
|
<a class='wikilink' href='Guide_index.html'>Getting Started</a>
|
|
|
<a class='wikilink' href='http://arduino.cc/en/Tutorial/HomePage'>Learning</a>
|
|
|
<a class='wikilink' href='index.html'>Reference</a>
|
|
|
<a class='wikilink' href='http://arduino.cc/en/Main/Hardware'>Hardware</a>
|
|
|
<a class='wikilink' href='FAQ.html'>FAQ</a>
|
|
|
</p>
|
|
|
<p class='vspace'></p>
|
|
|
|
|
|
</div>
|
|
|
<div id="navbar_external">
|
|
|
<a class="urllink" href="http://www.arduino.cc/blog/" rel="nofollow">Blog »</a><a class="urllink" href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl" rel="nofollow">Forum »</a><a class="urllink" href="http://www.arduino.cc/playground/" rel="nofollow">Playground »</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--/PageLeftFmt-->
|
|
|
<div id="pagetext">
|
|
|
<!--PageText-->
|
|
|
<div id='wikitext'>
|
|
|
<h2>Getting Started w/ Arduino on Windows</h2>
|
|
|
<p><em>This document explains how to connect your Arduino board to the computer and upload your first sketch.</em>
|
|
|
</p>
|
|
|
<p class='vspace'></p><div class='toc'><p><a name='toc' id='toc'></a><b>On this page...</b> (<a id="tocidtog" href="javascript:toggle('tocid');">hide</a>)</p><ul class='toc' id='tocid'><li><a href='#toc1'>1 | Get an Arduino board and USB cable</a></li><li><a href='#toc2'>2 | Download the Arduino environment</a></li><li><a href='#toc3'>3 | Connect the board</a></li><li><a href='#toc4'>4 | Install the drivers</a></li><li><a href='#toc5'>5 | Launch the Arduino application</a></li><li><a href='#toc6'>6 | Open the blink example</a></li><li><a href='#toc7'>7 | Select your board</a></li><li><a href='#toc8'>8 | Select your serial port</a></li><li><a href='#toc9'>8 | Upload the program</a></li></ul></div>
|
|
|
<p class='vspace'></p><h3><a name='toc1' id='toc1'></a>1 | Get an Arduino board and USB cable</h3>
|
|
|
<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.
|
|
|
</p>
|
|
|
<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.)
|
|
|
</p>
|
|
|
<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>
|
|
|
<p class='vspace'></p><h3><a name='toc2' id='toc2'></a>2 | Download the Arduino environment</h3>
|
|
|
<p>Get the latest version from the <a class='wikilink' href='http://arduino.cc/en/Main/Software'>download page</a>.
|
|
|
</p>
|
|
|
<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.
|
|
|
</p>
|
|
|
<p class='vspace'></p><h3><a name='toc3' id='toc3'></a>3 | Connect the board</h3>
|
|
|
<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.
|
|
|
</p>
|
|
|
<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.
|
|
|
</p>
|
|
|
<p class='vspace'></p><h3><a name='toc4' id='toc4'></a>4 | Install the drivers</h3>
|
|
|
<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>
|
|
|
</p>
|
|
|
<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
|
|
|
</li><li>Click on the Start Menu, and open up the Control Panel.
|
|
|
</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.
|
|
|
</li><li>Look under Ports (COM & LPT). You should see an open port named "Arduino UNO (<span class='wikiword'>COMxx</span>)"
|
|
|
</li><li>Right click on the "Arduino UNO (<span class='wikiword'>COmxx</span>)" port and choose the "Update Driver Software" option.
|
|
|
</li><li>Next, choose the "Browse my computer for Driver software" option.
|
|
|
</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).
|
|
|
</li><li>Windows will finish up the driver installation from there.
|
|
|
</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>.
|
|
|
</p>
|
|
|
<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>
|
|
|
</p>
|
|
|
<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).
|
|
|
</p>
|
|
|
<p class='vspace'></p><p>On Windows Vista, the driver should be automatically downloaded and installed. (Really, it works!)
|
|
|
</p>
|
|
|
<p class='vspace'></p><p>On Windows XP, the Add New Hardware wizard will open:
|
|
|
</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.
|
|
|
</li><li>Select <strong>Install from a list or specified location (Advanced)</strong> and click next.
|
|
|
</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.
|
|
|
</li><li>The wizard will search for the driver and then tell you that a "USB Serial Converter" was found. Click finish.
|
|
|
</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.
|
|
|
</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.
|
|
|
</p>
|
|
|
<p class='vspace'></p><h3><a name='toc5' id='toc5'></a>5 | Launch the Arduino application</h3>
|
|
|
<p>Double-click the Arduino application.
|
|
|
</p>
|
|
|
<p class='vspace'></p><h3><a name='toc6' id='toc6'></a>6 | Open the blink example</h3>
|
|
|
<p>Open the LED blink example sketch: <strong>File > Examples > 1.Basics > Blink</strong>.
|
|
|
</p>
|
|
|
<p class='vspace'></p><div><img src='http://arduino.cc/en/uploads/Guide/Arduino0018Blink.png' alt='' title='' /></div>
|
|
|
<p class='vspace'></p><h3><a name='toc7' id='toc7'></a>7 | Select your board</h3>
|
|
|
<p>You'll need to select the entry in the <strong>Tools > Board</strong> menu that corresponds to your Arduino.
|
|
|
</p>
|
|
|
<p class='vspace'></p><div><img src='http://arduino.cc/en/uploads/Guide/ToolsMenu.png' alt='' title='' /></div>
|
|
|
<p><span style='font-size:83%'>Selecting an Arduino Uno</span>
|
|
|
</p>
|
|
|
<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='Guide_Environment#boards.html' rel='nofollow'>on the environment page</a>.)
|
|
|
</p>
|
|
|
<p class='vspace'></p><h3><a name='toc8' id='toc8'></a>8 | Select your serial port</h3>
|
|
|
<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.
|
|
|
</p>
|
|
|
<p class='vspace'></p><h3><a name='toc9' id='toc9'></a>8 | Upload the program</h3>
|
|
|
<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.)
|
|
|
</p>
|
|
|
<p class='vspace'></p><div><img src='http://arduino.cc/en/uploads/Guide/UploadButton.png' alt='' title='' /></div>
|
|
|
<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.
|
|
|
</p>
|
|
|
<p class='vspace'></p><p>If you have problems, please see the <a class='wikilink' href='Guide_Troubleshooting.html'>troubleshooting suggestions</a>.
|
|
|
</p>
|
|
|
<p class='vspace'></p><p>You might also want to look at:
|
|
|
</p><ul><li>the <a class='wikilink' href='http://arduino.cc/en/Tutorial/HomePage'>examples</a> for using various sensors and actuators
|
|
|
</li><li>the <a class='wikilink' href='index.html'>reference</a> for the Arduino language
|
|
|
</li></ul><p>The text of the Arduino getting started guide is licensed under a
|
|
|
<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.
|
|
|
</p>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<!-- AddThis Button BEGIN -->
|
|
|
<script type="text/javascript">var addthis_language = "en";
|
|
|
</script>
|
|
|
<div class="addthis_container addthis_toolbox addthis_default_style" addthis:url="Guide_Windows" addthis:title="Arduino Wiki English">
|
|
|
<a href="http://www.addthis.com/bookmark.php?v=250&username=arduinoteam" class="addthis_button_compact">Share</a><span
|
|
|
class="addthis_separator">|</span><a class="addthis_button_email"></a><a class="addthis_button_favorites"></a><a class="addthis_button_print"></a><a
|
|
|
class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><script type="text/javascript"
|
|
|
src="http://s7.addthis.com/js/250/addthis_widget.js#username=arduinoteam"></script></div>
|
|
|
<!-- AddThis Button END -->
|
|
|
|
|
|
</div>
|
|
|
<!--PageFooterFmt-->
|
|
|
<div id="pagefooter">
|
|
|
©Arduino |
|
|
|
<a href=.html'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>
|
|
|
</div>
|
|
|
<!--/PageFooterFmt-->
|
|
|
</div>
|
|
|
</body>
|
|
|
</html>
|