How to Upload a Sketch to an Arduino – dummies

{“appState”:{“pageLoadApiCallsStatus”:true},”articleState”:{“article”:{“headers”:{“creationTime”:”2016-03-26T14:42:45+00:00″,”modifiedTime”:”2016-03-26T14:42:45+00:00″,”timestamp”:”2022-09-14T18:04:36+00:00″},”data”:{“breadcrumbs”:[{“name”:”Technology”,”_links”:{“self”:”https://dummies-api.dummies.com/v2/categories/33512″},”slug”:”technology”,”categoryId”:33512},{“name”:”Computers”,”_links”:{“self”:”https://dummies-api.dummies.com/v2/categories/33513″},”slug”:”computers”,”categoryId”:33513},{“name”:”Hardware”,”_links”:{“self”:”https://dummies-api.dummies.com/v2/categories/33516″},”slug”:”hardware”,”categoryId”:33516},{“name”:”Arduino”,”_links”:{“self”:”https://dummies-api.dummies.com/v2/categories/33517″},”slug”:”arduino”,”categoryId”:33517}],”title”:”How to Upload a Sketch to an Arduino”,”strippedTitle”:”how to upload a sketch to an arduino”,”slug”:”how-to-upload-a-sketch-to-an-arduino”,”canonicalUrl”:””,”seo”:{“metaDescription”:”The content of circuits and Arduino sketches can vary greatly. Before you get started, there is one simple process for uploading a sketch to an Arduino board th”,”noIndex”:0,”noFollow”:0},”content”:”<p>The content of circuits and Arduino sketches can vary greatly. Before you get started, there is one simple process for uploading a sketch to an Arduino board that you can refer back to.</p>\n<p>Follow these steps to upload your sketch:</p>\n<ol class=\”level-one\”>\n <li><p class=\”first-para\”>Connect your Arduino using the USB cable.</p>\n<p class=\”child-para\”><b></b>The square end of the USB cable connects to your Arduino and the flat end connects to a USB port on your computer.</p>\n </li>\n <li><p class=\”first-para\”>Choose Tools→Board→Arduino Uno to find your board in the Arduino menu.</p>\n<p class=\”child-para\”>You can also find all boards through this menu, such as the Arduino MEGA 2560 and Arduino Leonardo.</p>\n </li>\n <li><p class=\”first-para\”>Choose the correct serial port for your board.</p>\n<p class=\”child-para\”>You find a list of all the available serial ports by choosing Tools→Serial Port→ comX or /dev/tty.usbmodemXXXXX. X marks a sequentially or randomly assigned number. In Windows, if you have just connected your Arduino, the COM port will normally be the highest number, such as com 3 or com 15.</p>\n<p class=\”child-para\”>Many devices can be listed on the COM port list, and if you plug in multiple Arduinos, each one will be assigned a new number. On Mac OS X, the /dev/tty.usbmodem number will be randomly assigned and can vary in length, such as /dev/tty.usbmodem1421 or /dev/tty.usbmodem262471. Unless you have another Arduino connected, it should be the only one visible.</p>\n </li>\n <li><p class=\”first-para\”>Click the Upload button.</p>\n<p class=\”child-para\”><b></b>This is the button that points to the right in the Arduino environment. You can also use the keyboard shortcut Ctrl+U for Windows or Cmd+U for Mac OS X.</p>\n </li>\n</ol>\n<p>Now that you know how to upload a sketch, you should be suitably hungry for some more Arduino sketches.</p>”,”description”:”<p>The content of circuits and Arduino sketches can vary greatly. Before you get started, there is one simple process for uploading a sketch to an Arduino board that you can refer back to.</p>\n<p>Follow these steps to upload your sketch:</p>\n<ol class=\”level-one\”>\n <li><p class=\”first-para\”>Connect your Arduino using the USB cable.</p>\n<p class=\”child-para\”><b></b>The square end of the USB cable connects to your Arduino and the flat end connects to a USB port on your computer.</p>\n </li>\n <li><p class=\”first-para\”>Choose Tools→Board→Arduino Uno to find your board in the Arduino menu.</p>\n<p class=\”child-para\”>You can also find all boards through this menu, such as the Arduino MEGA 2560 and Arduino Leonardo.</p>\n </li>\n <li><p class=\”first-para\”>Choose the correct serial port for your board.</p>\n<p class=\”child-para\”>You find a list of all the available serial ports by choosing Tools→Serial Port→ comX or /dev/tty.usbmodemXXXXX. X marks a sequentially or randomly assigned number. In Windows, if you have just connected your Arduino, the COM port will normally be the highest number, such as com 3 or com 15.</p>\n<p class=\”child-para\”>Many devices can be listed on the COM port list, and if you plug in multiple Arduinos, each one will be assigned a new number. On Mac OS X, the /dev/tty.usbmodem number will be randomly assigned and can vary in length, such as /dev/tty.usbmodem1421 or /dev/tty.usbmodem262471. Unless you have another Arduino connected, it should be the only one visible.</p>\n </li>\n <li><p class=\”first-para\”>Click the Upload button.</p>\n<p class=\”child-para\”><b></b>This is the button that points to the right in the Arduino environment. You can also use the keyboard shortcut Ctrl+U for Windows or Cmd+U for Mac OS X.</p>\n </li>\n</ol>\n<p>Now that you know how to upload a sketch, you should be suitably hungry for some more Arduino sketches.</p>”,”blurb”:””,”authors”:[{“authorId”:9682,”name”:”John Nussey”,”slug”:”john-nussey”,”description”:” \t <p><b>John Nussey</b> is a designer, a technologist, and an entrepreneur who loves using technology in new and interesting ways. He has worked with Arduino for many years to prototype products and create interactive artwork. A proud Arduino advocate, he has taught the craft of physical computing and prototyping to people of all ages, competencies, and abilities. “,”hasArticle”:false,”_links”:{“self”:”https://dummies-api.dummies.com/v2/authors/9682″}}],”primaryCategoryTaxonomy”:{“categoryId”:33517,”title”:”Arduino”,”slug”:”arduino”,”_links”:{“self”:”https://dummies-api.dummies.com/v2/categories/33517″}},”secondaryCategoryTaxonomy”:{“categoryId”:0,”title”:null,”slug”:null,”_links”:null},”tertiaryCategoryTaxonomy”:{“categoryId”:0,”title”:null,”slug”:null,”_links”:null},”trendingArticles”:null,”inThisArticle”:[],”relatedArticles”:{“fromBook”:[],”fromCategory”:[{“articleId”:258607,”title”:”What You Should Know about Arduino Sensors: Using Capacitive Sensors”,”slug”:”what-you-should-know-about-arduino-sensors-using-capacitive-sensors”,”categoryList”:[“technology”,”computers”,”hardware”,”arduino”],”_links”:{“self”:”https://dummies-api.dummies.com/v2/articles/258607″}},{“articleId”:258604,”title”:”10 Awesome Arduino Resources”,”slug”:”10-awesome-arduino-resources”,”categoryList”:[“technology”,”computers”,”hardware”,”arduino”],”_links”:{“self”:”https://dummies-api.dummies.com/v2/articles/258604″}},{“articleId”:258598,”title”:”Finding and Browsing Arduino Libraries”,”slug”:”finding-and-browsing-arduino-libraries”,”categoryList”:[“technology”,”computers”,”hardware”,”arduino”],”_links”:{“self”:”https://dummies-api.dummies.com/v2/articles/258598″}},{“articleId”:258590,”title”:”An Overview of Arduino Shields”,”slug”:”an-overview-of-arduino-shields”,”categoryList”:[“technology”,”computers”,”hardware”,”arduino”],”_links”:{“self”:”https://dummies-api.dummies.com/v2/articles/258590″}},{“articleId”:258583,”title”:”How to Assemble an Arduino Shield”,”slug”:”how-to-assemble-an-arduino-shield”,”categoryList”:[“technology”,”computers”,”hardware”,”arduino”],”_links”:{“self”:”https://dummies-api.dummies.com/v2/articles/258583″}}]},”hasRelatedBookFromSearch”:true,”relatedBook”:{“bookId”:292900,”slug”:”arduino-projects-for-dummies”,”isbn”:”9781118551479″,”categoryList”:[“technology”,”computers”,”hardware”,”arduino”],”amazon”:{“default”:”https://www.amazon.com/gp/product/1118551478/ref=as_li_tl?ie=UTF8&tag=wiley01-20″,”ca”:”https://www.amazon.ca/gp/product/1118551478/ref=as_li_tl?ie=UTF8&tag=wiley01-20″,”indigo_ca”:”http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1118551478-item.html&cjsku=978111945484″,”gb”:”https://www.amazon.co.uk/gp/product/1118551478/ref=as_li_tl?ie=UTF8&tag=wiley01-20″,”de”:”https://www.amazon.de/gp/product/1118551478/ref=as_li_tl?ie=UTF8&tag=wiley01-20″},”image”:{“src”:”https://catalogimages.wiley.com/images/db/jimages/9781118551479.jpg”,”width”:250,”height”:350},”title”:”Arduino Projects For Dummies”,”testBankPinActivationLink”:””,”bookOutOfPrint”:false,”authorsInfo”:”\n <p><p><b><b data-author-id=\”9224\”>Brock Craft</b></b> is a Lecturer in Physical Computing at Goldsmiths, University of London in the Department of Computing. He was a Partner at the design firm TinkerLondon, where he introduced the Arduino into the UK along with its creator, Massimo Banzi.</p></p>”,”authors”:[{“authorId”:9224,”name”:”Brock Craft”,”slug”:”brock-craft”,”description”:” <p><b>Brock Craft</b> is a Lecturer in Physical Computing at Goldsmiths, University of London in the Department of Computing. He was a Partner at the design firm TinkerLondon, where he introduced the Arduino into the UK along with its creator, Massimo Banzi.</p>”,”hasArticle”:false,”_links”:{“self”:”https://dummies-api.dummies.com/v2/authors/9224″}}],”_links”:{“self”:”https://dummies-api.dummies.com/v2/books/292900″}},”collections”:[],”articleAds”:{“footerAd”:”<div class=\”du-ad-region row\” id=\”article_page_adhesion_ad\”><div class=\”du-ad-unit col-md-12\” data-slot-id=\”article_page_adhesion_ad\” data-refreshed=\”false\” \r\n data-target = \”[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;computers&quot;,&quot;hardware&quot;,&quot;arduino&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[null]}]\” id=\”du-slot-632217b487e1e\”></div></div>”,”rightAd”:”<div class=\”du-ad-region row\” id=\”article_page_right_ad\”><div class=\”du-ad-unit col-md-12\” data-slot-id=\”article_page_right_ad\” data-refreshed=\”false\” \r\n data-target = \”[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;computers&quot;,&quot;hardware&quot;,&quot;arduino&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[null]}]\” id=\”du-slot-632217b488834\”></div></div>”},”articleType”:{“articleType”:”Articles”,”articleList”:null,”content”:null,”videoInfo”:{“videoId”:null,”name”:null,”accountId”:null,”playerId”:null,”thumbnailUrl”:null,”description”:null,”uploadDate”:null}},”sponsorship”:{“sponsorshipPage”:false,”backgroundImage”:{“src”:null,”width”:0,”height”:0},”brandingLine”:””,”brandingLink”:””,”brandingLogo”:{“src”:null,”width”:0,”height”:0},”sponsorAd”:””,”sponsorEbookTitle”:””,”sponsorEbookLink”:””,”sponsorEbookImage”:{“src”:null,”width”:0,”height”:0}},”primaryLearningPath”:”Explore”,”lifeExpectancy”:null,”lifeExpectancySetFrom”:null,”dummiesForKids”:”no”,”sponsoredContent”:”no”,”adInfo”:””,”adPairKey”:[]},”status”:”publish”,”visibility”:”public”,”articleId”:164738},”articleLoadedStatus”:”success”},”listState”:{“list”:{},”objectTitle”:””,”status”:”initial”,”pageType”:null,”objectId”:null,”page”:1,”sortField”:”time”,”sortOrder”:1,”categoriesIds”:[],”articleTypes”:[],”filterData”:{},”filterDataLoadedStatus”:”initial”,”pageSize”:10},”adsState”:{“pageScripts”:{“headers”:{“timestamp”:”2023-02-01T15:50:01+00:00″},”adsId”:0,”data”:{“scripts”:[{“pages”:[“all”],”location”:”header”,”script”:”<!–Optimizely Script–>\r\n<script src=\”https://cdn.optimizely.com/js/10563184655.js\”></script>”,”enabled”:false},{“pages”:[“all”],”location”:”header”,”script”:”<!– comScore Tag –>\r\n<script>var _comscore = _comscore || [];_comscore.push({ c1: \”2\”, c2: \”15097263\” });(function() {var s = document.createElement(\”script\”), el = document.getElementsByTagName(\”script\”)[0]; s.async = true;s.src = (document.location.protocol == \”https:\” ? \”https://sb\” : \”http://b\”) + \”.scorecardresearch.com/beacon.js\”;el.parentNode.insertBefore(s, el);})();</script><noscript><img src=\”https://sb.scorecardresearch.com/p?c1=2&c2=15097263&cv=2.0&cj=1\” /></noscript>\r\n<!– / comScore Tag –>”,”enabled”:true},{“pages”:[“all”],”location”:”footer”,”script”:”<!–BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET–>\r\n<script type=’text/javascript’>\r\n(function(){var g=function(e,h,f,g){\r\nthis.get=function(a){for(var a=a+\”=\”,c=document.cookie.split(\”;\”),b=0,e=c.length;b<e;b++){for(var d=c[b];\” \”==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null};\r\nthis.set=function(a,c){var b=\”\”,b=new Date;b.setTime(b.getTime()+6048E5);b=\”; expires=\”+b.toGMTString();document.cookie=a+\”=\”+c+b+\”; path=/; \”};\r\nthis.check=function(){var a=this.get(f);if(a)a=a.split(\”:\”);else if(100!=e)\”v\”==h&&(e=Math.random()>=e/100?0:100),a=[h,e,0],this.set(f,a.join(\”:\”));else return!0;var c=a[1];if(100==c)return!0;switch(a[0]){case \”v\”:return!1;case \”r\”:return c=a[2]%Math.floor(100/c),a[2]++,this.set(f,a.join(\”:\”)),!c}return!0};\r\nthis.go=function(){if(this.check()){var a=document.createElement(\”script\”);a.type=\”text/javascript\”;a.src=g;document.body&&document.body.appendChild(a)}};\r\nthis.start=function(){var t=this;\”complete\”!==document.readyState?window.addEventListener?window.addEventListener(\”load\”,function(){t.go()},!1):window.attachEvent&&window.attachEvent(\”onload\”,function(){t.go()}):t.go()};};\r\ntry{(new g(100,\”r\”,\”QSI_S_ZN_5o5yqpvMVjgDOuN\”,\”https://zn5o5yqpvmvjgdoun-wiley.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_5o5yqpvMVjgDOuN\”)).start()}catch(i){}})();\r\n</script><div id=’ZN_5o5yqpvMVjgDOuN’><!–DO NOT REMOVE-CONTENTS PLACED HERE–></div>\r\n<!–END WEBSITE FEEDBACK SNIPPET–>”,”enabled”:false},{“pages”:[“all”],”location”:”header”,”script”:”<!– Hotjar Tracking Code for http://www.dummies.com –>\r\n<script>\r\n (function(h,o,t,j,a,r){\r\n h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};\r\n h._hjSettings={hjid:257151,hjsv:6};\r\n a=o.getElementsByTagName(‘head’)[0];\r\n r=o.createElement(‘script’);r.async=1;\r\n r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\r\n a.appendChild(r);\r\n })(window,document,’https://static.hotjar.com/c/hotjar-‘,’.js?sv=’);\r\n</script>”,”enabled”:false},{“pages”:[“article”],”location”:”header”,”script”:”<!– //Connect Container: dummies –> <script src=\”//get.s-onetag.com/bffe21a1-6bb8-4928-9449-7beadb468dae/tag.min.js\” async defer></script>”,”enabled”:true},{“pages”:[“homepage”],”location”:”header”,”script”:”<meta name=\”facebook-domain-verification\” content=\”irk8y0irxf718trg3uwwuexg6xpva0\” />”,”enabled”:true},{“pages”:[“homepage”,”article”,”category”,”search”],”location”:”footer”,”script”:”<!– Facebook Pixel Code –>\r\n<noscript>\r\n<img height=\”1\” width=\”1\” src=\”https://www.facebook.com/tr?id=256338321977984&ev=PageView&noscript=1\”/>\r\n</noscript>\r\n<!– End Facebook Pixel Code –>”,”enabled”:true}]}},”pageScriptsLoadedStatus”:”success”},”navigationState”:{“navigationCollections”:[{“collectionId”:287568,”title”:”BYOB (Be Your Own Boss)”,”hasSubCategories”:false,”url”:”/collection/for-the-entry-level-entrepreneur-287568″},{“collectionId”:293237,”title”:”Be a Rad Dad”,”hasSubCategories”:false,”url”:”/collection/be-the-best-dad-293237″},{“collectionId”:295890,”title”:”Career Shifting”,”hasSubCategories”:false,”url”:”/collection/career-shifting-295890″},{“collectionId”:294090,”title”:”Contemplating the Cosmos”,”hasSubCategories”:false,”url”:”/collection/theres-something-about-space-294090″},{“collectionId”:287563,”title”:”For Those Seeking Peace of Mind”,”hasSubCategories”:false,”url”:”/collection/for-those-seeking-peace-of-mind-287563″},{“collectionId”:287570,”title”:”For the Aspiring Aficionado”,”hasSubCategories”:false,”url”:”/collection/for-the-bougielicious-287570″},{“collectionId”:291903,”title”:”For the Budding Cannabis Enthusiast”,”hasSubCategories”:false,”url”:”/collection/for-the-budding-cannabis-enthusiast-291903″},{“collectionId”:291934,”title”:”For the Exam-Season Crammer”,”hasSubCategories”:false,”url”:”/collection/for-the-exam-season-crammer-291934″},{“collectionId”:287569,”title”:”For the Hopeless Romantic”,”hasSubCategories”:false,”url”:”/collection/for-the-hopeless-romantic-287569″},{“collectionId”:296450,”title”:”For the Spring Term Learner”,”hasSubCategories”:false,”url”:”/collection/for-the-spring-term-student-296450″}],”navigationCollectionsLoadedStatus”:”success”,”navigationCategories”:{“books”:{“0”:{“data”:[{“categoryId”:33512,”title”:”Technology”,”hasSubCategories”:true,”url”:”/category/books/technology-33512″},{“categoryId”:33662,”title”:”Academics & The Arts”,”hasSubCategories”:true,”url”:”/category/books/academics-the-arts-33662″},{“categoryId”:33809,”title”:”Home, Auto, & Hobbies”,”hasSubCategories”:true,”url”:”/category/books/home-auto-hobbies-33809″},{“categoryId”:34038,”title”:”Body, Mind, & Spirit”,”hasSubCategories”:true,”url”:”/category/books/body-mind-spirit-34038″},{“categoryId”:34224,”title”:”Business, Careers, & Money”,”hasSubCategories”:true,”url”:”/category/books/business-careers-money-34224″}],”breadcrumbs”:[],”categoryTitle”:”Level 0 Category”,”mainCategoryUrl”:”/category/books/level-0-category-0″}},”articles”:{“0”:{“data”:[{“categoryId”:33512,”title”:”Technology”,”hasSubCategories”:true,”url”:”/category/articles/technology-33512″},{“categoryId”:33662,”title”:”Academics & The Arts”,”hasSubCategories”:true,”url”:”/category/articles/academics-the-arts-33662″},{“categoryId”:33809,”title”:”Home, Auto, & Hobbies”,”hasSubCategories”:true,”url”:”/category/articles/home-auto-hobbies-33809″},{“categoryId”:34038,”title”:”Body, Mind, & Spirit”,”hasSubCategories”:true,”url”:”/category/articles/body-mind-spirit-34038″},{“categoryId”:34224,”title”:”Business, Careers, & Money”,”hasSubCategories”:true,”url”:”/category/articles/business-careers-money-34224″}],”breadcrumbs”:[],”categoryTitle”:”Level 0 Category”,”mainCategoryUrl”:”/category/articles/level-0-category-0″}}},”navigationCategoriesLoadedStatus”:”success”},”searchState”:{“searchList”:[],”searchStatus”:”initial”,”relatedArticlesList”:[],”relatedArticlesStatus”:”initial”},”routeState”:{“name”:”Article4″,”path”:”/article/technology/computers/hardware/arduino/how-to-upload-a-sketch-to-an-arduino-164738/”,”hash”:””,”query”:{},”params”:{“category1″:”technology”,”category2″:”computers”,”category3″:”hardware”,”category4″:”arduino”,”article”:”how-to-upload-a-sketch-to-an-arduino-164738″},”fullPath”:”/article/technology/computers/hardware/arduino/how-to-upload-a-sketch-to-an-arduino-164738/”,”meta”:{“routeType”:”article”,”breadcrumbInfo”:{“suffix”:”Articles”,”baseRoute”:”/category/articles”},”prerenderWithAsyncData”:true},”from”:{“name”:null,”path”:”/”,”hash”:””,”query”:{},”params”:{},”fullPath”:”/”,”meta”:{}}},”dropsState”:{“submitEmailResponse”:false,”status”:”initial”},”sfmcState”:{“status”:”initial”},”profileState”:{“auth”:{},”userOptions”:{},”status”:”success”}}