{"id":4844,"date":"2013-11-05T14:11:18","date_gmt":"2013-11-05T19:11:18","guid":{"rendered":"http:\/\/lemasney.com\/consulting\/?p=4844"},"modified":"2025-11-14T22:37:55","modified_gmt":"2025-11-15T03:37:55","slug":"introduction-to-arduino-7-things-know","status":"publish","type":"post","link":"https:\/\/lemasney.com\/consulting\/2013\/11\/05\/introduction-to-arduino-7-things-know\/","title":{"rendered":"Introduction to Arduino: 7 things you should know"},"content":{"rendered":"<div class=\"tiled-gallery type-rectangular tiled-gallery-unresized\" data-original-width=\"1170\" data-carousel-extra='{&quot;blog_id&quot;:1,&quot;permalink&quot;:&quot;https:\\\/\\\/lemasney.com\\\/consulting\\\/2013\\\/11\\\/05\\\/introduction-to-arduino-7-things-know\\\/&quot;,&quot;likes_blog_id&quot;:48405758}' itemscope itemtype=\"http:\/\/schema.org\/ImageGallery\" > <div class=\"gallery-row\" style=\"width: 1170px; height: 594px;\" data-original-width=\"1170\" data-original-height=\"594\" > <div class=\"gallery-group images-1\" style=\"width: 791px; height: 594px;\" data-original-width=\"791\" data-original-height=\"594\" > <div class=\"tiled-gallery-item tiled-gallery-item-large\" itemprop=\"associatedMedia\" itemscope itemtype=\"http:\/\/schema.org\/ImageObject\"> <a href=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino1-1000x750.jpg?ssl=1\" border=\"0\" itemprop=\"url\"> <meta itemprop=\"width\" content=\"787\"> <meta itemprop=\"height\" content=\"590\"> <img decoding=\"async\" class=\"\" data-attachment-id=\"4589\" data-orig-file=\"https:\/\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino1-1000x750.jpg\" data-orig-size=\"1000,750\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.8&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 3GS&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1294428986&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;3.85&quot;,&quot;iso&quot;:&quot;250&quot;,&quot;shutter_speed&quot;:&quot;0.0666666666667&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Hello_Arduino1-1000&amp;#215;750\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino1-1000x750.jpg?fit=500%2C375&#038;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino1-1000x750.jpg?fit=1000%2C750&#038;ssl=1\" src=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino1-1000x750.jpg?w=787&#038;h=590&#038;ssl=1\" srcset=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino1-1000x750.jpg?resize=1000%2C750&amp;ssl=1 1000w, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino1-1000x750.jpg?resize=500%2C375&amp;ssl=1 500w\" width=\"787\" height=\"590\" loading=\"lazy\" data-original-width=\"787\" data-original-height=\"590\" itemprop=\"http:\/\/schema.org\/image\" title=\"Hello_Arduino1-1000x750\" alt=\"Hello_Arduino1-1000x750\" style=\"width: 787px; height: 590px;\" \/> <\/a> <\/div> <\/div> <!-- close group --> <div class=\"gallery-group images-2\" style=\"width: 379px; height: 594px;\" data-original-width=\"379\" data-original-height=\"594\" > <div class=\"tiled-gallery-item tiled-gallery-item-large\" itemprop=\"associatedMedia\" itemscope itemtype=\"http:\/\/schema.org\/ImageObject\"> <a href=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?ssl=1\" border=\"0\" itemprop=\"url\"> <meta itemprop=\"width\" content=\"375\"> <meta itemprop=\"height\" content=\"211\"> <img decoding=\"async\" class=\"\" data-attachment-id=\"41162\" data-orig-file=\"https:\/\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg\" data-orig-size=\"3264,1836\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.4&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;Nexus 5&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1407965808&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;3.97&quot;,&quot;iso&quot;:&quot;841&quot;,&quot;shutter_speed&quot;:&quot;0.0333333333333&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Arduino Five Ten Egg Timer circuit &amp;#8211; John LeMasney\" data-image-description=\"&lt;p&gt;Arduino Five Ten Egg Timer circuit &amp;#8211; John LeMasney&lt;\/p&gt; \" data-medium-file=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?fit=500%2C281&#038;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?fit=1000%2C562&#038;ssl=1\" src=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?w=375&#038;h=211&#038;ssl=1\" srcset=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?w=3264&amp;ssl=1 3264w, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?resize=500%2C281&amp;ssl=1 500w, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?resize=1000%2C562&amp;ssl=1 1000w, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?w=2340&amp;ssl=1 2340w\" width=\"375\" height=\"211\" loading=\"lazy\" data-original-width=\"375\" data-original-height=\"211\" itemprop=\"http:\/\/schema.org\/image\" title=\"Arduino Five Ten Egg Timer circuit - John LeMasney\" alt=\"Arduino Five Ten Egg Timer circuit - John LeMasney\" style=\"width: 375px; height: 211px;\" \/> <\/a> <div class=\"tiled-gallery-caption\" itemprop=\"caption description\"> Arduino Five Ten Egg Timer circuit &#8211; John LeMasney <\/div> <\/div> <div class=\"tiled-gallery-item tiled-gallery-item-large\" itemprop=\"associatedMedia\" itemscope itemtype=\"http:\/\/schema.org\/ImageObject\"> <a href=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10731708_871893942828561_1881576603_n.jpg?ssl=1\" border=\"0\" itemprop=\"url\"> <meta itemprop=\"width\" content=\"375\"> <meta itemprop=\"height\" content=\"375\"> <img decoding=\"async\" class=\"\" data-attachment-id=\"41403\" data-orig-file=\"https:\/\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10731708_871893942828561_1881576603_n.jpg\" data-orig-size=\"640,640\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Arduino simple circuit by lemasney\" data-image-description=\"&lt;p&gt;Arduino simple circuit by lemasney&lt;\/p&gt; \" data-medium-file=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10731708_871893942828561_1881576603_n.jpg?fit=500%2C500&#038;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10731708_871893942828561_1881576603_n.jpg?fit=640%2C640&#038;ssl=1\" src=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10731708_871893942828561_1881576603_n.jpg?w=375&#038;h=375&#038;crop=1&#038;ssl=1\" srcset=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10731708_871893942828561_1881576603_n.jpg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10731708_871893942828561_1881576603_n.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10731708_871893942828561_1881576603_n.jpg?resize=500%2C500&amp;ssl=1 500w\" width=\"375\" height=\"375\" loading=\"lazy\" data-original-width=\"375\" data-original-height=\"375\" itemprop=\"http:\/\/schema.org\/image\" title=\"Arduino simple circuit by lemasney\" alt=\"Arduino simple circuit by lemasney\" style=\"width: 375px; height: 375px;\" \/> <\/a> <div class=\"tiled-gallery-caption\" itemprop=\"caption description\"> Arduino simple circuit by lemasney <\/div> <\/div> <\/div> <!-- close group --> <\/div> <!-- close row --> <div class=\"gallery-row\" style=\"width: 1170px; height: 503px;\" data-original-width=\"1170\" data-original-height=\"503\" > <div class=\"gallery-group images-1\" style=\"width: 667px; height: 503px;\" data-original-width=\"667\" data-original-height=\"503\" > <div class=\"tiled-gallery-item tiled-gallery-item-large\" itemprop=\"associatedMedia\" itemscope itemtype=\"http:\/\/schema.org\/ImageObject\"> <a href=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/350px-arduino_duemilanove_2009b.jpg?ssl=1\" border=\"0\" itemprop=\"url\"> <meta itemprop=\"width\" content=\"663\"> <meta itemprop=\"height\" content=\"499\"> <img decoding=\"async\" class=\"\" data-attachment-id=\"41178\" data-orig-file=\"https:\/\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/350px-arduino_duemilanove_2009b.jpg\" data-orig-size=\"350,263\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Arduino Duemilanove\" data-image-description=\"&lt;p&gt;Arduino Duemilanove&lt;\/p&gt; \" data-medium-file=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/350px-arduino_duemilanove_2009b.jpg?fit=350%2C263&#038;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/350px-arduino_duemilanove_2009b.jpg?fit=350%2C263&#038;ssl=1\" src=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/350px-arduino_duemilanove_2009b.jpg?w=663&#038;h=499&#038;ssl=1\" width=\"663\" height=\"499\" loading=\"lazy\" data-original-width=\"663\" data-original-height=\"499\" itemprop=\"http:\/\/schema.org\/image\" title=\"Arduino Duemilanove\" alt=\"Arduino Duemilanove\" style=\"width: 663px; height: 499px;\" \/> <\/a> <div class=\"tiled-gallery-caption\" itemprop=\"caption description\"> Arduino Duemilanove <\/div> <\/div> <\/div> <!-- close group --> <div class=\"gallery-group images-1\" style=\"width: 503px; height: 503px;\" data-original-width=\"503\" data-original-height=\"503\" > <div class=\"tiled-gallery-item tiled-gallery-item-large\" itemprop=\"associatedMedia\" itemscope itemtype=\"http:\/\/schema.org\/ImageObject\"> <a href=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10727744_1480336052227664_1345496050_n.jpg?ssl=1\" border=\"0\" itemprop=\"url\"> <meta itemprop=\"width\" content=\"499\"> <meta itemprop=\"height\" content=\"499\"> <img decoding=\"async\" class=\"\" data-attachment-id=\"41393\" data-orig-file=\"https:\/\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10727744_1480336052227664_1345496050_n.jpg\" data-orig-size=\"640,640\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Arduino starter project 09: Motorized pinwheel\" data-image-description=\"&lt;p&gt;Arduino starter project 09: Motorized pinwheel&lt;\/p&gt; \" data-medium-file=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10727744_1480336052227664_1345496050_n.jpg?fit=500%2C500&#038;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10727744_1480336052227664_1345496050_n.jpg?fit=640%2C640&#038;ssl=1\" src=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10727744_1480336052227664_1345496050_n.jpg?w=499&#038;h=499&#038;crop=1&#038;ssl=1\" srcset=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10727744_1480336052227664_1345496050_n.jpg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10727744_1480336052227664_1345496050_n.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/10727744_1480336052227664_1345496050_n.jpg?resize=500%2C500&amp;ssl=1 500w\" width=\"499\" height=\"499\" loading=\"lazy\" data-original-width=\"499\" data-original-height=\"499\" itemprop=\"http:\/\/schema.org\/image\" title=\"Arduino starter project 09: Motorized pinwheel\" alt=\"Arduino starter project 09: Motorized pinwheel\" style=\"width: 499px; height: 499px;\" \/> <\/a> <div class=\"tiled-gallery-caption\" itemprop=\"caption description\"> Arduino starter project 09: Motorized pinwheel <\/div> <\/div> <\/div> <!-- close group --> <\/div> <!-- close row --> <\/div>\n<h3>Introduction to Arduino<\/h3>\n<p>Last night I gave a talk on Introduction to Arduino at Princeton Public Library as part of their technology class offerings. I thought I might recap the talk here and invite you to come and visit the next time we offer it. For more information about their free and public classes, please click here:<\/p>\n<p>Getting started with Arduino\u00a0is the presentation I gave, complete with links, videos, photos, and other information.<\/p>\n<h3>What is Arduino?<\/h3>\n<div style=\"width: 250px\" class=\"wp-caption alignright zemanta-img\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"zemanta-img-inserted zemanta-img-configured\" title=\"Arduino microcontroller \/ Arduino Uno microcon...\" src=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2015\/02\/8077218145_94169de8bb_m.jpg?resize=240%2C160&#038;ssl=1\" alt=\"Arduino microcontroller \/ Arduino Uno microcon...\" width=\"240\" height=\"160\" \/><p class=\"wp-caption-text\">Arduino microcontroller \/ Arduino Uno microcontroller ATmega328 \/ Arduino Mega 2560 \/ Arduino Nano ATmega328 \/ Arduino Pro Mini ver.3.3V ATmega328 \/ Photo by Arkadiusz Sikorski https:\/\/www.arq.pl\/ (Photo credit: Arkadiusz Sikorski vel ArakuS)<\/p><\/div>\n<p>Arduino is an open source hardware platform for learning and prototyping electronics projects. It&#8217;s open source in that the design of the board itself is shared so that you can build your own if you are so inclined. The software and scripts used to program it are also open source. It benefits from a strong worldwide community of developers, programs, and resources, including books, videos, and classes. It is an Italian project, co-founded by <a class=\"zem_slink\" title=\"Arduino\" href=\"https:\/\/www.arduino.cc\/\" target=\"_blank\" rel=\"homepage noopener noreferrer\">Massimo Banzi<\/a> and others, and is designed to help people learn easily, even from a very young age. http:\/\/www.<b>arduino<\/b>.cc is the homepage for the project. You can get an Arduino Uno, one version of many good for getting started, for around $30.<\/p>\n<h3>Where can you get an Arduino and Learn more?<\/h3>\n<p>You can buy Arduino products in many places, including online on Amazon.com,\u00a0element14.com, and in brick and mortar stores like <a title=\"http:\/\/www.radioshack.com\/product\/index.jsp?productId=12268262\" href=\"https:\/\/www.radioshack.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Radio Shack<\/a>.<\/p>\n<p dir=\"ltr\"><a href=\"https:\/\/www.youtube.com\/\">http:\/\/youtube.com<\/a>\u00a0has thousands of videos on Arduino projects<\/p>\n<p dir=\"ltr\"><a href=\"https:\/\/www.element14.com\/\">http:\/\/element14.com<\/a>\u00a0is a learning community about projects like Arduino.<\/p>\n<p dir=\"ltr\"><a href=\"https:\/\/learn.adafruit.com\/\">http:\/\/learn.adafruit.com\/<\/a>\u00a0is a learning community and store about projects like Arduino.<\/p>\n<p dir=\"ltr\"><a href=\"https:\/\/makezine.com\/\">http:\/\/makezine.com<\/a>\u00a0is a champion of projects using Arduinos and other open platforms.<\/p>\n<h3>What are inputs and Outputs?<\/h3>\n<p>Inputs are ways for the Arduino to get information. These include sensors like motion detectors, cameras, compasses, GPS, touchscreens, buttons, and many of the same kinds of sensors typically found on a contemporary phone. You use pins on the Arduino to connect them, and use scripts, called sketches, to tell the Arduino what to do with the signals.<\/p>\n<p>Outputs are ways for the Arduino to send back information or do actions. Examples include Light Emitting Diodes (LEDs), speakers, motors, and fans.<\/p>\n<p>You can use inputs, outputs and sketches to scratch your own itches, often for a very low price. If you want a station that feeds your cat once every twelve hours but only if it hears a meow or when the cat comes near, you might use an arduino, an RFID (proximity) sensor, and a motor or latch to make it so that if the cat&#8217;s collar with an RFID chip in it comes close enough to the station, once in 12 hours time, the container of food has a door that opens for 3 seconds and closes again.<\/p>\n<h3>How do I get started with Arduino?<\/h3>\n<div style=\"width: 204px\" class=\"wp-caption alignnone zemanta-img\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"zemanta-img-inserted zemanta-img-configured\" title=\"Cover of &quot;Getting Started with Arduino (M...\" src=\"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2015\/02\/51oibms59el-_sl300_.jpg?resize=194%2C300&#038;ssl=1\" alt=\"Cover of &quot;Getting Started with Arduino (M...\" width=\"194\" height=\"300\" \/><p class=\"wp-caption-text\">Cover via Amazon<\/p><\/div>\n<p>There are many fantastic books, websites, videos, and communities of practice that focus on Arduino. Here&#8217;s one video that tells you how to get started with an Arduino. If you search for &#8216;Arduino tutorial&#8217; on Google, YouTube, Element 14, or Adafruit.net, you&#8217;ll find many more.<\/p>\n<h3>How do I work with an Arduino?<\/h3>\n<p>The key to working with Arduino is writing sketches. You can use the Arduino program (an IDE or integrated development environment) based on an open source application called Processing to write sketches. Get it from\u00a0<a title=\"http:\/\/arduino.cc\/en\/Main\/Software\" href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/arduino.cc\/en\/Main\/Software<\/a><\/p>\n<p>The most common starting example, with very simple capabilities is the Blink example. You can open the Blink example from file\/examples\/basics in the application.<\/p>\n<a href=\"https:\/\/lemasney.com\/consulting\/2013\/11\/05\/introduction-to-arduino-7-things-know\/\">https:\/\/lemasney.com\/consulting\/2013\/11\/05\/introduction-to-arduino-7-things-know\/<\/a> Arduino setup for the Blink sketch (Arduino.cc)\n<blockquote><p>&#8220;\/* \u00a0 Blink<br \/>\nTurns on an LED on for one second, then off for one second, repeatedly.<br \/>\nThis example code is in the public domain. \u00a0*\/<\/p>\n<p>\/\/ Pin 13 has an LED connected on most Arduino boards.<br \/>\n\/\/ give it a name:<br \/>\nint led = 13;<br \/>\n\/\/ the setup routine runs once when you press reset:<br \/>\nvoid setup() {<br \/>\n\/\/ initialize the digital pin as an output.<br \/>\npinMode(led, OUTPUT);<br \/>\n}<br \/>\n\/\/ the loop routine runs over and over again forever:<br \/>\nvoid loop() {<br \/>\ndigitalWrite(led, HIGH);<br \/>\n\/\/ turn the LED on (HIGH is the voltage level)<br \/>\ndelay(1000);<br \/>\n\/\/ wait for a second<br \/>\ndigitalWrite(led, LOW);<br \/>\n\/\/ turn the LED off by making the voltage LOW<br \/>\ndelay(1000);<br \/>\n\/\/ wait for a second<br \/>\n}&#8221;<br \/>\n~ Arduino &#8211; Blink &#8211; <\/p><\/blockquote>\n<h3>What kinds of things can you do with an Arduino?<\/h3>\n<p>Here is a fun example that shows what you can do with the Arduino, with others in the presentation linked above:<\/p>\n<h3>Is Arduino related to Raspberry Pi?<\/h3>\n<p>Arduino and the Raspberry Pi are often talked about together, but they are very different devices. The Raspberry Pi and Arduino are both open source hardware, but aside from that they have very little to do with one another. While the Raspberry Pi has pins that you can use to manage electronics, the main purpose of the Pi is to have a $35 computer that you can use to connect to a TV or monitor via HDMI or composite jack and to a keyboard and mouse with USB. The Arduino would need to be very heavily modded to allow for anything like that. The Arduino is primarily an electronics prototyping platform.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"zemanta-pixie\" style=\"margin-top: 10px; height: 15px;\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>An Introduction to Arduino at Princeton Public Library by John LeMasney<\/p>\n","protected":false},"author":1,"featured_media":4589,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[22,19,7,18,16,21,23,29,31,32,5,36],"tags":[3875,346,670,953,938],"class_list":{"0":"post-4844","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-professional-affiliations","8":"category-classes-presentations","9":"category-consulting","10":"category-cv","11":"category-libraries","12":"category-professional-activities","13":"category-professional-experience","14":"category-research-interests","15":"category-teaching","16":"category-teaching-experience","17":"category-technology","18":"category-workshops","19":"tag-arduino","20":"tag-google","21":"tag-princeton-public-library","22":"tag-raspberry-pi","23":"tag-youtube","24":"czr-hentry"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino1-1000x750.jpg?fit=1000%2C750&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3h6y2-1g8","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":41172,"url":"https:\/\/lemasney.com\/consulting\/2014\/08\/17\/john-lemasney-hands-arduino\/","url_meta":{"origin":4844,"position":0},"title":"John LeMasney on Hands-On Arduino","author":"lemsy","date":"2014-08-17","format":false,"excerpt":"The next Princeton PC Users Group meeting is\u00a0August\u00a026, 2014 at 7:00 pm\u00a0at the Lawrence Branch of the Mercer County Library, New Jersey. John LeMasney\u00a0on \"Hands-On Arduino\" Arduino is an electronics prototyping platform that allows you to scratch your own itch. It exemplifies the making movement, in which we are moving\u2026","rel":"","context":"In &quot;affiliations&quot;","block_context":{"text":"affiliations","link":"https:\/\/lemasney.com\/consulting\/category\/cv\/professional-affiliations\/"},"img":{"alt_text":"Arduino Five Ten Egg Timer circuit - John LeMasney","src":"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/08\/Arduino-Five-Ten-Egg-Timer.jpg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1561,"url":"https:\/\/lemasney.com\/consulting\/2013\/08\/05\/an-introduction-to-arduino-raspberry-pi-and-open-source-hardware\/","url_meta":{"origin":4844,"position":1},"title":"An introduction to Arduino, Raspberry Pi, and open source hardware.","author":"lemsy","date":"2013-08-05","format":false,"excerpt":"At 7 pm, on Monday August 5th, 2013, I'll be at Princeton Public Library, I'm going to be giving an introductory overview of open source hardware, the Make movement, and the ideology of openness. In particular, I'll be talking about Arduino, Raspberry Pi, and related hardware projects. (post event note:\u2026","rel":"","context":"In &quot;affiliations&quot;","block_context":{"text":"affiliations","link":"https:\/\/lemasney.com\/consulting\/category\/cv\/professional-affiliations\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino.jpg?fit=1200%2C900&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino.jpg?fit=1200%2C900&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino.jpg?fit=1200%2C900&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino.jpg?fit=1200%2C900&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/08\/Hello_Arduino.jpg?fit=1200%2C900&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":41558,"url":"https:\/\/lemasney.com\/consulting\/2014\/11\/26\/ncompass-live-tech-talk-using-arduino-develop-coding-literacy-libraries\/","url_meta":{"origin":4844,"position":2},"title":"NCompass Live Tech Talk: Using the Arduino to Develop Coding Literacy in Libraries","author":"lemsy","date":"2014-11-26","format":false,"excerpt":"\"In this talk, John LeMasney will discuss the trials, tribulations, and successes of creating and teaching classes on Arduino as programming at several New Jersey libraries across the state. Arduino is an open source hardware platform for learning about and making electronics prototypes to scratch your own itch. It is\u2026","rel":"","context":"In &quot;affiliations&quot;","block_context":{"text":"affiliations","link":"https:\/\/lemasney.com\/consulting\/category\/cv\/professional-affiliations\/"},"img":{"alt_text":"simple circuit with LED and momentary switch by lemasney","src":"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/simple-circuit_bb.png?fit=909%2C1200&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/simple-circuit_bb.png?fit=909%2C1200&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/simple-circuit_bb.png?fit=909%2C1200&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/simple-circuit_bb.png?fit=909%2C1200&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":762,"url":"https:\/\/lemasney.com\/consulting\/2013\/02\/21\/john-lemasney-making-infographics-february-2013-at-princeton-public-library\/","url_meta":{"origin":4844,"position":3},"title":"John LeMasney: Making Infographics (February 2013) at Princeton Public Library","author":"lemsy","date":"2013-02-21","format":false,"excerpt":"In this session, we looked at the reasons why infographics are becoming an important, highly popular way of presenting information. We showed how to find data, how to build your message, and how to put together your infographic using great, free tools. Below is the presentation for this two-hour session.\u2026","rel":"","context":"In &quot;affiliations&quot;","block_context":{"text":"affiliations","link":"https:\/\/lemasney.com\/consulting\/category\/cv\/professional-affiliations\/"},"img":{"alt_text":"7 out of ten dogs infographic by lemasney","src":"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2013\/02\/20100618infographic1.png?fit=499%2C499&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":4838,"url":"https:\/\/lemasney.com\/consulting\/2013\/10\/18\/tonight-raspberrypi-arduino-make-movement-bcug\/","url_meta":{"origin":4844,"position":4},"title":"Tonight: #RaspberryPi, #Arduino and the #Make movement at BCUG","author":"lemsy","date":"2013-10-18","format":false,"excerpt":"\"Once again, we are happy to announce a visit from our friend and active open source and social networking guru, John LeMasney, who has again offered a totally unique, new and innovative line of thought for our users group. It was no surprise when we contacted John for an idea\u2026","rel":"","context":"In &quot;affiliations&quot;","block_context":{"text":"affiliations","link":"https:\/\/lemasney.com\/consulting\/category\/cv\/professional-affiliations\/"},"img":{"alt_text":"John LeMasney","src":"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2009\/04\/picture-020-500x375-500x288.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":41387,"url":"https:\/\/lemasney.com\/consulting\/2014\/10\/12\/arduino-starter-kit-project-09-motorized-pinwheel\/","url_meta":{"origin":4844,"position":5},"title":"Arduino Starter Kit Project 09: Motorized Pinwheel","author":"lemsy","date":"2014-10-12","format":false,"excerpt":"The Arduino starter kit via Instagram Here is the finished project 09 from the Arduino starter kit. For some reason the Fritzing image for Project 09 (The Motorized Pinwheel) from the Arduino Starter kit is not available online, so I recreated it (below). This project allows you to learn to\u2026","rel":"","context":"In &quot;classes and presentations&quot;","block_context":{"text":"classes and presentations","link":"https:\/\/lemasney.com\/consulting\/category\/portfolio\/classes-presentations\/"},"img":{"alt_text":"Project 09 - Motorized Pinwheel in Fritzing by lemasney","src":"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/Project-09-Motorized-Pinwheel_bb.png?fit=1200%2C1018&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/Project-09-Motorized-Pinwheel_bb.png?fit=1200%2C1018&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/Project-09-Motorized-Pinwheel_bb.png?fit=1200%2C1018&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/Project-09-Motorized-Pinwheel_bb.png?fit=1200%2C1018&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/lemasney.com\/consulting\/wp-content\/uploads\/2014\/10\/Project-09-Motorized-Pinwheel_bb.png?fit=1200%2C1018&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/lemasney.com\/consulting\/wp-json\/wp\/v2\/posts\/4844","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lemasney.com\/consulting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lemasney.com\/consulting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lemasney.com\/consulting\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lemasney.com\/consulting\/wp-json\/wp\/v2\/comments?post=4844"}],"version-history":[{"count":31,"href":"https:\/\/lemasney.com\/consulting\/wp-json\/wp\/v2\/posts\/4844\/revisions"}],"predecessor-version":[{"id":48725,"href":"https:\/\/lemasney.com\/consulting\/wp-json\/wp\/v2\/posts\/4844\/revisions\/48725"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lemasney.com\/consulting\/wp-json\/wp\/v2\/media\/4589"}],"wp:attachment":[{"href":"https:\/\/lemasney.com\/consulting\/wp-json\/wp\/v2\/media?parent=4844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lemasney.com\/consulting\/wp-json\/wp\/v2\/categories?post=4844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lemasney.com\/consulting\/wp-json\/wp\/v2\/tags?post=4844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}