{"id":3584,"date":"2020-03-23T18:35:41","date_gmt":"2020-03-23T18:35:41","guid":{"rendered":"http:\/\/rodmilstead.com\/pt\/?page_id=3584"},"modified":"2024-03-06T22:47:27","modified_gmt":"2024-03-06T22:47:27","slug":"arduino-basic-functions","status":"publish","type":"page","link":"https:\/\/rodmilstead.com\/pt\/arduino-basic-functions\/","title":{"rendered":"Arduino: Basic Functions"},"content":{"rendered":"<p>Functions are a core component of any programming language and are incredibly useful.\u00a0 They save you time, make your programming more efficient, speed up error correction an can be recycled in the same or other programs.<\/p>\n<p>You will create the circuit and program in Tinkercad and turn in the share link on Canvas.\u00a0 \u00a0<a href=\"https:\/\/rodmilstead.com\/pt\/subtcad\/\" target=\"_blank\" rel=\"noopener\">Click here to learn how to create a share link in Tinkercad.\u00a0<\/a><\/p>\n<p>Before you go any further, <a href=\"https:\/\/youtu.be\/m3uIqXp5_u0\" target=\"_blank\" rel=\"noopener noreferrer\">please watch my video tutorial on Arduino Functions.<\/a><\/p>\n<p>Click here for my <a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2020\/03\/2020-Arduino-functions-handout.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino Functions Handout<\/a><\/p>\n<p><a href=\"https:\/\/youtu.be\/gd6AHpoYcO0\" target=\"_blank\" rel=\"noopener noreferrer\">Video description of the assignment.<\/a><\/p>\n<p><a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2020\/03\/2020-arduino-functions-sample-code.png\" target=\"_blank\" rel=\"noopener noreferrer\">Click here for a sample program with functions.<\/a><\/p>\n<p><a href=\"https:\/\/rodmilstead.com\/pt\/arduino-servo-resources\/\">Click here for sample servo code.<\/a><\/p>\n<p><a href=\"https:\/\/rodmilstead.com\/pt\/arduino-piezo-buzzer-and-code\/\" target=\"_blank\" rel=\"noopener\">Click here for sample buzzer code<\/a><\/p>\n<p>Your assignment is to write an Arduino program in Tinkercad that includes functions.<\/p>\n<p><strong>Here are the details &#8211; you will write an original program of your own.\u00a0 Do not use someone else&#8217;s program and\/or anything AI generated:<\/strong><\/p>\n<ol>\n<li>Put your name at the top of the program as a comment.<\/li>\n<li>Use variables in your code.<\/li>\n<li>Include Serial monitor in your program.<\/li>\n<li>Use at least <strong>two of these three output options<\/strong> in your code: multiple LEDs, multiple buzzer sounds and servos.<\/li>\n<li>Create at least two functions for each output.\u00a0 Example: two different buzzer sequences and two different LED sequences.<\/li>\n<li>Each function should have Serial monitor to tell when that function is running.<\/li>\n<li>Call each of your functions in your program at least two times.<\/li>\n<li>Add at least four comments that describe your understanding of what that line of code does.<\/li>\n<\/ol>\n<p><span style=\"color: #ff0000;\"><strong>You will create the circuit and program in Tinkercad and turn in the share link on Canvas.\u00a0 \u00a0<a style=\"color: #ff0000;\" href=\"https:\/\/rodmilstead.com\/pt\/subtcad\/\" target=\"_blank\" rel=\"noopener\">Click here to learn how to create a share link in Tinkercad.\u00a0<\/a><\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Functions are a core component of any programming language and are incredibly useful.\u00a0 They save you time, make your programming more efficient, speed up error correction an can be recycled in the same or other programs. You will create the circuit and program in Tinkercad and turn in the share link on Canvas.\u00a0 \u00a0Click here &hellip; <a href=\"https:\/\/rodmilstead.com\/pt\/arduino-basic-functions\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Arduino: Basic Functions<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3584","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/comments?post=3584"}],"version-history":[{"count":13,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3584\/revisions"}],"predecessor-version":[{"id":3586,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3584\/revisions\/3586"}],"wp:attachment":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/media?parent=3584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}