{"id":2108,"date":"2018-08-09T18:45:46","date_gmt":"2018-08-09T22:45:46","guid":{"rendered":"http:\/\/ninecrows.com\/career\/?p=2108"},"modified":"2018-08-09T09:18:03","modified_gmt":"2018-08-09T13:18:03","slug":"looking-at-controller-options-for-hardware-sandbox-projects","status":"publish","type":"post","link":"https:\/\/ninecrows.com\/career\/2018\/08\/09\/looking-at-controller-options-for-hardware-sandbox-projects\/","title":{"rendered":"Looking at controller options for hardware sandbox projects"},"content":{"rendered":"<p>I&#8217;ve had several small boards with physical pin access sitting around at home for some time. I&#8217;m now looking more closely at what I&#8217;ve got and where I can go to start some hardware based work.<!--more--><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/770A5842-462x322.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2112\" data-permalink=\"https:\/\/ninecrows.com\/career\/2018\/08\/09\/looking-at-controller-options-for-hardware-sandbox-projects\/770a5842-462x322\/\" data-orig-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/770A5842-462x322.jpg?fit=462%2C322&amp;ssl=1\" data-orig-size=\"462,322\" 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=\"770A5842-462&#215;322\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/770A5842-462x322.jpg?fit=300%2C209&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/770A5842-462x322.jpg?fit=462%2C322&amp;ssl=1\" class=\"wp-image-2112 alignright\" src=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/770A5842-462x322.jpg?resize=75%2C52\" alt=\"\" width=\"75\" height=\"52\" srcset=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/770A5842-462x322.jpg?resize=300%2C209&amp;ssl=1 300w, https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/770A5842-462x322.jpg?resize=462%2C322&amp;ssl=1 462w\" sizes=\"(max-width: 75px) 100vw, 75px\" \/><\/a> I have <a href=\"https:\/\/www.raspberrypi.org\/\">Raspberry PI<\/a> <a href=\"https:\/\/www.raspberrypi.org\/documentation\/hardware\/\">boards<\/a> (a couple <a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-3-model-b-plus\/\">RPi 3 B+<\/a> and a couple of <a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-2-model-b\/\">RPi 2 B<\/a>). I also have a couple of <a href=\"https:\/\/www.arduino.cc\/\">Arduino<\/a> <a href=\"https:\/\/www.microchip.com\/wwwproducts\/en\/ATmega32\">AVR controller<\/a> based boards hanging somewhere.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/product_detail_black_sm.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2113\" data-permalink=\"https:\/\/ninecrows.com\/career\/2018\/08\/09\/looking-at-controller-options-for-hardware-sandbox-projects\/product_detail_black_sm\/\" data-orig-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/product_detail_black_sm.jpg?fit=247%2C306&amp;ssl=1\" data-orig-size=\"247,306\" 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=\"product_detail_black_sm\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/product_detail_black_sm.jpg?fit=242%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/product_detail_black_sm.jpg?fit=247%2C306&amp;ssl=1\" class=\"alignleft wp-image-2113\" src=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/product_detail_black_sm.jpg?resize=75%2C93\" alt=\"\" width=\"75\" height=\"93\" srcset=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/product_detail_black_sm.jpg?resize=242%2C300&amp;ssl=1 242w, https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/product_detail_black_sm.jpg?w=247&amp;ssl=1 247w\" sizes=\"(max-width: 75px) 100vw, 75px\" \/><\/a>Looking out at the general market for these things, the <a href=\"https:\/\/www.raspberrypi.org\/products\/\">RPi<\/a>, <a href=\"https:\/\/www.arduino.cc\/en\/Main\/Products\">Arduino<\/a> and <a href=\"https:\/\/beagleboard.org\/\">BeagleBoard<\/a> seem to be the readily available options (and pretty affordable for toy projects and prototypes).<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/a000066_featured_4.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2114\" data-permalink=\"https:\/\/ninecrows.com\/career\/2018\/08\/09\/looking-at-controller-options-for-hardware-sandbox-projects\/a000066_featured_4\/\" data-orig-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/a000066_featured_4.jpg?fit=560%2C420&amp;ssl=1\" data-orig-size=\"560,420\" 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=\"a000066_featured_4\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/a000066_featured_4.jpg?fit=300%2C225&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/a000066_featured_4.jpg?fit=474%2C356&amp;ssl=1\" class=\"wp-image-2114 alignright\" src=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/a000066_featured_4.jpg?resize=75%2C56\" alt=\"\" width=\"75\" height=\"56\" srcset=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/a000066_featured_4.jpg?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/a000066_featured_4.jpg?w=560&amp;ssl=1 560w\" sizes=\"(max-width: 75px) 100vw, 75px\" \/><\/a>The Arduino line gets the closest to the metal and is more self-contained (no sd cards, all on chip flash) than the ARM based options (RPi and BeagleBoard). The ARM chips are more capable.<\/p>\n<p>The prices split out rather strangely as <a href=\"https:\/\/www.canakit.com\/raspberry-pi-zero.html?src=raspberrypi\">RPi zero boards<\/a> come in around $5.00 in unit quantities while the lower end Arduno boards (the <a href=\"https:\/\/store.arduino.cc\/usa\/arduino-mini-05\">mini<\/a> seems most interesting) with prices at <a href=\"https:\/\/www.amazon.com\/Longruner-ATmega328P-Controller-Module-Arduino\/dp\/B01MSYWE6B\/ref=sr_1_5?ie=UTF8&amp;qid=1533819733&amp;sr=8-5&amp;keywords=arduino+mini\">ten pieces<\/a> of under $4.00 each for clone boards. This leaves the powerful ARM based boards at nearly the same price point as the much simpler AVR boards (at least for the bare board).<\/p>\n<p>I expect that ARM based controllers will be programmed in C or C++ using provided libraries\/drivers for access to the lower level functions. For the AVR controllers, I&#8217;m looking at either C or assembler language as their local resources are extremely limited by modern standards.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/medium-ATmega328P-SPDIP-28.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2115\" data-permalink=\"https:\/\/ninecrows.com\/career\/2018\/08\/09\/looking-at-controller-options-for-hardware-sandbox-projects\/medium-atmega328p-spdip-28\/\" data-orig-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/medium-ATmega328P-SPDIP-28.png?fit=312%2C152&amp;ssl=1\" data-orig-size=\"312,152\" 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=\"medium-ATmega328P-SPDIP-28\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/medium-ATmega328P-SPDIP-28.png?fit=300%2C146&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/medium-ATmega328P-SPDIP-28.png?fit=312%2C152&amp;ssl=1\" class=\"alignleft wp-image-2115\" src=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/medium-ATmega328P-SPDIP-28.png?resize=76%2C37\" alt=\"\" width=\"76\" height=\"37\" srcset=\"https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/medium-ATmega328P-SPDIP-28.png?resize=300%2C146&amp;ssl=1 300w, https:\/\/i0.wp.com\/ninecrows.com\/career\/wp-content\/uploads\/2018\/08\/medium-ATmega328P-SPDIP-28.png?w=312&amp;ssl=1 312w\" sizes=\"(max-width: 76px) 100vw, 76px\" \/><\/a>The Arduino cards seem to contain <a href=\"https:\/\/www.microchip.com\/wwwproducts\/en\/ATmega328P\">ATmega328P<\/a>, <a href=\"https:\/\/www.microchip.com\/wwwproducts\/en\/ATmega2560\">ATmega2560<\/a> and <a href=\"https:\/\/www.microchip.com\/wwwproducts\/en\/ATmega32U4\">ATmega32U4<\/a> controllers (and older ones with <a href=\"https:\/\/www.microchip.com\/wwwproducts\/en\/ATmega168P\">ATmega168s<\/a>. All have the same <a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/Atmel-0856-AVR-Instruction-Set-Manual.pdf\">instruction set<\/a> but different sets of I\/O pins and on-chip peripherals. The 328 parts seem to be the most common (and are available in 28 pin DIP packages making them suitable for very compact and low cost final implementations.<\/p>\n<p>I&#8217;ve grabbed the data sheets and instruction set reference. Over the next few weeks I&#8217;ll take a closer look at development tools and likely begin playing with a few things. It has been a while since I&#8217;ve gotten my hands dirty this close to the metal&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve had several small boards with physical pin access sitting around at home for some time. I&#8217;m now looking more closely at what I&#8217;ve got and where I can go to start some hardware based work.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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","enabled":false},"version":2}},"categories":[2,22],"tags":[],"class_list":["post-2108","post","type-post","status-publish","format-standard","hentry","category-projects","category-sandbox"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7F2Qc-y0","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2108"}],"collection":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/comments?post=2108"}],"version-history":[{"count":4,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2108\/revisions"}],"predecessor-version":[{"id":2116,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/2108\/revisions\/2116"}],"wp:attachment":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/media?parent=2108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/categories?post=2108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/tags?post=2108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}