{"id":292,"date":"2010-10-08T18:26:08","date_gmt":"2010-10-08T18:26:08","guid":{"rendered":"http:\/\/labrigger.com\/blog\/?p=292"},"modified":"2010-10-08T18:26:34","modified_gmt":"2010-10-08T18:26:34","slug":"arduino-a-simple-microcontroller","status":"publish","type":"post","link":"http:\/\/labrigger.com\/blog\/2010\/10\/08\/arduino-a-simple-microcontroller\/","title":{"rendered":"Arduino &#8211; a simple microcontroller"},"content":{"rendered":"<p align=\"center\"><a href=\"hhttp:\/\/www.arduino.cc\/\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2010\/10\/arduino.jpg\" alt=\"\" title=\"arduino\" width=\"600\" height=\"433\" class=\"aligncenter size-full wp-image-777\" srcset=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2010\/10\/arduino.jpg 600w, http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2010\/10\/arduino-300x216.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.arduino.cc\/\">Arduino<\/a> is a popular, cheap (around 25 USD), and open source microcontroller platform. We use them all over the lab. Students can learn to program them very quickly, they&#8217;re versatile, and there is a large user base with tutorials that make implementations easy. The programming environment is quite simple and is almost identical to Processing. In fact, there&#8217;s an <a href=\"http:\/\/www.arduino.cc\/playground\/Interfacing\/Processing\">Arduino plug-in for Processing<\/a>. There are certainly more powerful options available, but in order to get things done without much learning or development time, these simple tools are great. For example, I have one of these cards wired up to 8 configurable BNC jacks, and it acts a general purpose logic box and timer. Sometime I have it delivering trains of stimuli at the onset of a trigger pulse, other times it manages behavioral rigs. The USB connector is exposed in the back, and I just upload a new program whenever I need to change settings.<\/p>\n<p>Here&#8217;s what the programming interface (IDE) looks like:<\/p>\n<p align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2010\/10\/arduino1.png\" alt=\"\" title=\"arduino\" width=\"500\" height=\"575\" class=\"aligncenter size-full wp-image-783\" srcset=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2010\/10\/arduino1.png 500w, http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2010\/10\/arduino1-260x300.png 260w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>As you can see, the syntax is pretty C-like and simple. The program above simply reads the input from a push button switch and lights an LED while the switch is pressed. It can be <a href=\"http:\/\/www.arduino.cc\/playground\/Main\/InterfacingWithSoftware\">interfaced<\/a> with many different programming languages\/environments (e.g., MATLAB, Python, C++, etc.), usually using the serial port to exchange data.<\/p>\n<p>The hardware comes in <a href=\"http:\/\/arduino.cc\/en\/Main\/Hardware\">a variety of official versions<\/a>, with different form factors, wireless capabilities, and so forth. Other manufacturers have released their own compatible variations referred to as &#8220;Freeduinos&#8221;, or other &#8220;-duino&#8221;-suffixed words to distinguish them from the official versions of Arduino hardware. There are also a large number of <a href=\"http:\/\/arduino.cc\/en\/Main\/Buy\">plug-in shields<\/a> for ethernet connectivity, driving motors, and other applications. There are many, many tutorials to get new people started interfacing with other <a href=\"http:\/\/www.arduino.cc\/playground\/Main\/InterfacingWithHardware\">hardware<\/a>, including sensors, motors, displays, and flash memory.<\/p>\n<p>The best place to get started is on <a href=\"http:\/\/www.arduino.cc\/\">Arduino&#8217;s own website<\/a>. <a href=\"http:\/\/nootropicdesign.com\/toolduino\/\">Toolduino<\/a> is a fun app for a beginner to start with. It&#8217;s handy for setting up circuits, prior to programming. <\/p>\n<p align=\"center\"><a href=\"http:\/\/nootropicdesign.com\/toolduino\/\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2010\/10\/toolduino.png\" alt=\"\" title=\"Toolduino\" width=\"546\" height=\"497\" class=\"aligncenter size-full wp-image-773\" srcset=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2010\/10\/toolduino.png 546w, http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2010\/10\/toolduino-300x273.png 300w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p align=\"center\"><a href=\"hhttp:\/\/www.arduino.cc\/\"><\/a><\/p>\n<p><a href=\"http:\/\/www.arduino.cc\/\">Arduino<\/a> is a popular, cheap (around 25 USD), and open source microcontroller platform. We use them all over the lab. Students can learn to program them very quickly, they&#8217;re versatile, and there&#8230;<\/p>\n<div class=\"read-more\"><a href=\"http:\/\/labrigger.com\/blog\/2010\/10\/08\/arduino-a-simple-microcontroller\/\">Read More<\/a><\/div><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[22,13,10],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-hardware","tag-electronics","tag-gadgets","tag-processing"],"_links":{"self":[{"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":15,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":790,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/posts\/292\/revisions\/790"}],"wp:attachment":[{"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}