{"id":64,"date":"2015-07-04T14:44:57","date_gmt":"2015-07-04T12:44:57","guid":{"rendered":"http:\/\/wildlab.org\/?page_id=64"},"modified":"2021-06-22T08:45:00","modified_gmt":"2021-06-22T07:45:00","slug":"arduino","status":"publish","type":"page","link":"https:\/\/wildlab.org\/index.php\/arduino\/","title":{"rendered":"Arduino programming"},"content":{"rendered":"<h2>Arduino programming<\/h2>\n<p>Posts on arduino &#8211; sketches, schematics, tutorials, etc. So far, managed to successfully build ant test just one project. Other projects are in test phase. Personally, I stuck on Manchester code for telemetry. Just investigating weather &#8220;VirtualWire&#8221; may help in such situation when need some digital data transmit\/receive. More Arduino projects will be available here and on GitHub. I am new on GitHub, so please bear with me &#8211; I am bit slow due to headaches I have past days. Thank you for understanding.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-711 size-full\" src=\"https:\/\/wildlab.org\/wp-content\/uploads\/2015\/07\/Ardu_example.jpg\" alt=\"Arduino\" width=\"474\" height=\"267\" srcset=\"https:\/\/wildlab.org\/wp-content\/uploads\/2015\/07\/Ardu_example.jpg 474w, https:\/\/wildlab.org\/wp-content\/uploads\/2015\/07\/Ardu_example-300x169.jpg 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><\/p>\n<h2>Vertical speed indicator, or simply: Vario-meter<\/h2>\n<p><a href=\"https:\/\/wildlab.org\/index.php\/2015\/07\/07\/\">Origin<\/a><a href=\"https:\/\/wildlab.org\/index.php\/2015\/07\/07\/\">a<\/a><a href=\"https:\/\/wildlab.org\/index.php\/2015\/07\/07\/\">l <\/a><a href=\"https:\/\/wildlab.org\/index.php\/2015\/07\/07\/\">Variometer by Rolf R. Bakke<\/a><\/p>\n<p>Arduino programming is not hard. It is much easier than programming (for example) PIC micro-controller. Out there are &#8220;zillion&#8221; examples and free codes. Any code you found here, you may use as you wish, as long as it is not in commercial purpose. You are free to share this codes, but please respect author.<\/p>\n<h2>Copyright notice<\/h2>\n<p>Usually all codes are in public domain, but maybe out there exist some copyrighted codes, don&#8217;t know.\u00a0 Usually it is i form of text message as &#8220;\/\/this code is made by&#8230;&#8221; or similar. \u00a0If you change something, improve code and\/or functionality, then you can call it your code (it will be good to consult GitHub community to get right answer I currently haven&#8217;t).\u00a0I think some 30% of the code should be changed (by some convention, not sure where i did read it), so that you can call it your project. Even if you change just 1%, and code works better, it is fair idea to put name of original author name next to yours; for example of Arduino Variometer made by Rolf R. Bake (it is not my project, so please do not include my name in between him and your changes). And if you changed something, then you may put something like this: &#8220;Original code made by Rolf R. Bakke&#8230;, improved by _________&#8221;. \u00a0It is also good idea to include exact date of your last change on code; this way, anyone can track which code is better.<\/p>\n<h2>The most popular Arduino code<\/h2>\n<p>No, it is not fancy program for anything &#8211; the most popular, and most used code is &#8220;Blink LED&#8221;:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">\/*\r\n  Blink\r\n  Turns on an LED on for one second, then off for one second, repeatedly.\r\n\r\n  Most Arduinos have an on-board LED you can control. On the Uno and\r\n  Leonardo, it is attached to digital pin 13. If you're unsure what\r\n  pin the on-board LED is connected to on your Arduino model, check\r\n  the documentation at http:\/\/www.arduino.cc\r\n\r\n  This example code is in the public domain.\r\n\r\n  modified 8 May 2014\r\n  by Scott Fitzgerald\r\n *\/\r\n\r\n\r\n\/\/ the setup function runs once when you press reset or power the board\r\nvoid setup() {\r\n  \/\/ initialize digital pin 13 as an output.\r\n  pinMode(13, OUTPUT);\r\n}\r\n\r\n\/\/ the loop function runs over and over again forever\r\nvoid loop() {\r\n  digitalWrite(13, HIGH);   \/\/ turn the LED on (HIGH is the voltage level)\r\n  delay(1000);              \/\/ wait for a second\r\n  digitalWrite(13, LOW);    \/\/ turn the LED off by making the voltage LOW\r\n  delay(1000);              \/\/ wait for a second\r\n}<\/pre>\n<p>But, this code is part of Arduino IDE (Integrated Development Environment) as an example. \u00a0This is important code for everyone who just unpacked their version of Arduino board, and want to start program, but don&#8217;t know from where to start, and whether it will works.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arduino programming Posts on arduino &#8211; sketches, schematics, tutorials, etc. So far, managed to successfully build ant test just one project. Other projects are in test phase. Personally, I stuck on Manchester code for telemetry. Just investigating weather &#8220;VirtualWire&#8221; may help in such situation when need some digital data transmit\/receive. More Arduino projects will be &hellip; <a href=\"https:\/\/wildlab.org\/index.php\/arduino\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Arduino programming<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":891,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/wildlab.org\/index.php\/wp-json\/wp\/v2\/pages\/64"}],"collection":[{"href":"https:\/\/wildlab.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wildlab.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wildlab.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wildlab.org\/index.php\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":62,"href":"https:\/\/wildlab.org\/index.php\/wp-json\/wp\/v2\/pages\/64\/revisions"}],"predecessor-version":[{"id":69,"href":"https:\/\/wildlab.org\/index.php\/wp-json\/wp\/v2\/pages\/64\/revisions\/69"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wildlab.org\/index.php\/wp-json\/wp\/v2\/media\/891"}],"wp:attachment":[{"href":"https:\/\/wildlab.org\/index.php\/wp-json\/wp\/v2\/media?parent=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}