{"id":281,"date":"2012-12-23T19:35:03","date_gmt":"2012-12-24T00:35:03","guid":{"rendered":"http:\/\/sunapi386.ca\/wordpress\/?p=281"},"modified":"2013-01-04T20:47:58","modified_gmt":"2013-01-05T01:47:58","slug":"arduino","status":"publish","type":"post","link":"https:\/\/sunapi386.ca\/wordpress\/arduino\/","title":{"rendered":"Arduino"},"content":{"rendered":"<p>Playing around with an Arduino today, programmed it to count down. Very simple, I know, but it is just introduction to the usage.<br \/>\nThis article is not meant to be a tutorial. It is to remind myself of what I did.<\/p>\n<p>The arduino programming IDE basically just C++ with a different namespace. And a little deviation. You don&#8217;t need things like #include , and don&#8217;t need a int main(int argc, char** argv) program.<\/p>\n<p><a href=\"https:\/\/sunapi386.ca\/wordpress\/arduin\/sam_1656\/\" rel=\"attachment wp-att-283\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-283\" alt=\"Hardware\" src=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/SAM_1656-1024x768.jpg\" width=\"584\" height=\"438\" srcset=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/SAM_1656-1024x768.jpg 1024w, https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/SAM_1656-300x225.jpg 300w, https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/SAM_1656-400x300.jpg 400w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><!--more--><\/p>\n<p>A flashy video here:<\/p>\n<p><iframe loading=\"lazy\" src=\"http:\/\/www.youtube.com\/embed\/U110Ek21-CY\" height=\"315\" width=\"560\" allowfullscreen=\"\" frameborder=\"0\"><\/iframe><\/p>\n<p>Planning out the connections:<br \/>\n<a href=\"https:\/\/sunapi386.ca\/wordpress\/arduino\/drawing1\/\" rel=\"attachment wp-att-292\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-292\" alt=\"Drawing1\" src=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/Drawing1.png\" width=\"919\" height=\"652\" srcset=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/Drawing1.png 919w, https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/Drawing1-300x212.png 300w, https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/Drawing1-422x300.png 422w\" sizes=\"auto, (max-width: 919px) 100vw, 919px\" \/><\/a><\/p>\n<p>After a while I just gave up and did it by hand. This drawing thing is really annoying, too many wires!!!<\/p>\n<p>This is the PCB layout<br \/>\n<a href=\"https:\/\/sunapi386.ca\/wordpress\/arduino\/pcb2\/\" rel=\"attachment wp-att-296\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-296\" alt=\"pcb2\" src=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/pcb2.png\" width=\"944\" height=\"426\" srcset=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/pcb2.png 944w, https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/pcb2-300x135.png 300w, https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/pcb2-500x225.png 500w\" sizes=\"auto, (max-width: 944px) 100vw, 944px\" \/><\/a>The breadboard layout<br \/>\n<a href=\"https:\/\/sunapi386.ca\/wordpress\/arduino\/breadboard2\/\" rel=\"attachment wp-att-295\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-295\" alt=\"breadboard2\" src=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/breadboard2.png\" width=\"986\" height=\"844\" srcset=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/breadboard2.png 986w, https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/breadboard2-300x256.png 300w, https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/breadboard2-350x300.png 350w\" sizes=\"auto, (max-width: 986px) 100vw, 986px\" \/><\/a>The schematic layout<br \/>\n<a href=\"https:\/\/sunapi386.ca\/wordpress\/arduino\/schematic2\/\" rel=\"attachment wp-att-294\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-294\" alt=\"schematic2\" src=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/schematic2.png\" width=\"607\" height=\"654\" srcset=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/schematic2.png 607w, https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/schematic2-278x300.png 278w\" sizes=\"auto, (max-width: 607px) 100vw, 607px\" \/><\/a><\/p>\n<h1>Source Code<\/h1>\n<p>Initializing the pins to be the corresponding letter on the seven segment display. See earlier post for diagram.<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"LCP9V7hZah\"><p><a href=\"https:\/\/sunapi386.ca\/wordpress\/reducing-equations\/\">Circuit board that displays the digits of e<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Circuit board that displays the digits of e&#8221; &#8212; sunapi386&#039;s Blog\" src=\"https:\/\/sunapi386.ca\/wordpress\/reducing-equations\/embed\/#?secret=t4XWJmXNfL#?secret=LCP9V7hZah\" data-secret=\"LCP9V7hZah\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><br \/>\n<a href=\"https:\/\/sunapi386.ca\/wordpress\/arduino\/codedisplay\/\" rel=\"attachment wp-att-291\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-291\" alt=\"CodeDisplay\" src=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/CodeDisplay-399x1024.jpg\" width=\"399\" height=\"1024\" srcset=\"https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/CodeDisplay-399x1024.jpg 399w, https:\/\/sunapi386.ca\/wordpress\/wp-content\/uploads\/2012\/12\/CodeDisplay.jpg 719w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This stuff is quite fun, I will update this post later when I figure out more things to do with it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Playing around with an Arduino today, programmed it to count down. Very simple, I know, but it is just introduction to the usage. This article is not meant to be a tutorial. It is to remind myself of what I did. The arduino programming IDE basically just C++ with a different namespace. And a little &hellip; <a href=\"https:\/\/sunapi386.ca\/wordpress\/arduino\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Arduino<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-281","post","type-post","status-publish","format-standard","hentry","category-hack2600"],"_links":{"self":[{"href":"https:\/\/sunapi386.ca\/wordpress\/wp-json\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunapi386.ca\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunapi386.ca\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunapi386.ca\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunapi386.ca\/wordpress\/wp-json\/wp\/v2\/comments?post=281"}],"version-history":[{"count":12,"href":"https:\/\/sunapi386.ca\/wordpress\/wp-json\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/sunapi386.ca\/wordpress\/wp-json\/wp\/v2\/posts\/281\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/sunapi386.ca\/wordpress\/wp-json\/wp\/v2\/media?parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunapi386.ca\/wordpress\/wp-json\/wp\/v2\/categories?post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunapi386.ca\/wordpress\/wp-json\/wp\/v2\/tags?post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}