{"id":1015,"date":"2015-10-15T17:33:27","date_gmt":"2015-10-15T23:33:27","guid":{"rendered":"http:\/\/www.shscomputers.com\/wordpress\/?page_id=1015"},"modified":"2019-06-05T12:54:24","modified_gmt":"2019-06-05T18:54:24","slug":"arduino","status":"publish","type":"page","link":"https:\/\/www.shscomputers.com\/wordpress\/?page_id=1015","title":{"rendered":"Arduino &#8211; Beginners"},"content":{"rendered":"<h3>Arduino Tutorials<\/h3>\n<p>What is an Arduino? <a href=\"https:\/\/learn.sparkfun.com\/tutorials\/what-is-an-arduino\/all\">Click here to find out<\/a>.<\/p>\n<p>Official Tutorials: <a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/HomePage\">https:\/\/www.arduino.cc\/en\/Tutorial\/HomePage<\/a><\/p>\n<p>Absolute Beginner&#8217;s guide to Arduino:\u00a0<a href=\"http:\/\/forefront.io\/a\/beginners-guide-to-arduino\/\">http:\/\/forefront.io\/a\/beginners-guide-to-arduino\/<\/a><\/p>\n<p>We are going to start our journey into Arduino programming by doing the &#8220;Basics&#8221; tutorials and a few of the &#8220;Digital&#8221; tutorials:<\/p>\n<h5>1. Basics<\/h5>\n<ul class=\"secondary-list\">\n<li><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/BareMinimum\">Bare Minimum<\/a>: The bare minimum of code needed to start an Arduino sketch.<\/li>\n<li><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/Blink\">Blink<\/a>: Turn an LED on and off.<\/li>\n<li><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/DigitalReadSerial\">Digital Read Serial<\/a>: Read a switch, print the state out to the Arduino Serial Monitor.<\/li>\n<li><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/AnalogReadSerial\">Analog Read Serial<\/a>: Read a potentiometer, print its state out to the Arduino Serial Monitor.<\/li>\n<li><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/Fade\">Fade<\/a>: Demonstrates the use of analog output to fade an LED.<\/li>\n<li><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/ReadAnalogVoltage\">Read Analog Voltage<\/a>: Reads an analog input and prints the voltage to the Serial Monitor.<\/li>\n<\/ul>\n<h5>2. Digital<\/h5>\n<ul class=\"secondary-list\">\n<li><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/BlinkWithoutDelay\">Blink Without Delay<\/a>: Blink an LED without using the delay() function.<\/li>\n<li><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/Button\">Button<\/a>: Use a pushbutton to control an LED.<\/li>\n<li><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/Debounce\">Debounce<\/a>: Read a pushbutton, filtering noise.<\/li>\n<\/ul>\n<p>These tutorials will help you to learn to use the Arduino microcontroller board and to build \u00a0circuits using various common electronic components.<\/p>\n<h3>What is a breadboard?<br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/oiqNaSPTI7w?rel=0\" width=\"853\" height=\"480\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/h3>\n<p><strong>First Arduino Assignment<\/strong> &#8211; Show me what you can do.<\/p>\n<p>For the first assignment, we are going to hack together some code from a Built-in Example project. You are going to modify the <a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/Fade\">Fade tutorial<\/a> to light 3 LEDs instead of just the one. You will need to build a modified circuit that uses 3 output pins. Simply connecting 3 LEDs to the one pin will not do at all.<\/p>\n<p>Hint: Read the introduction to the <a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/Fade\">Fade tutorial<\/a>\u00a0carefully. Not all pins are created equal.<\/p>\n<p>That&#8217;s it. Go! Show your circuit and code to Mr. E when done.<\/p>\n<p><strong>Second Arduino Assignment<\/strong> &#8211; Show me what you can do too.<\/p>\n<p>For this assignment, you are going to need to look into the <a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/BlinkWithoutDelay\">Blink Without Delay<\/a>\u00a0example. We want to get rid of that pesky delay() in that fade code you created for the first assignment. So, combine the <a href=\"https:\/\/www.arduino.cc\/en\/Reference\/Millis\">millis()<\/a> counter function into your code and remove the delay().<\/p>\n<p>Show your circuit and code to Mr. E when done.<\/p>\n<p><strong>Third Arduino Assignment &#8211;<\/strong> Press the Button, don&#8217;t bounce.<\/p>\n<p>Now, add a button control that starts and stops your LEDs.\u00a0So, let&#8217;s make that a requirement too. To get this to really work properly, you should <a href=\"https:\/\/www.arduino.cc\/en\/tutorial\/switch\">check out this code example<\/a> that makes a button act like a switch to turn an LED on (HIGH) and off (LOW).<\/p>\n<p>Show your circuit and code to Mr. E when done.<\/p>\n<h4><strong>Arduino project<\/strong> &#8211; Make a traffic light. (Or something different? Ideas are welcome!)<\/h4>\n<p>Using what you know, build a circuit and program that:<\/p>\n<ol>\n<li>Has 3 LEDs (Green &#8211; Yellow &#8211; Red) on a &#8220;timer&#8221; that cycles each light.<\/li>\n<li>Red and Green must illuminate for 3 seconds, Yellow for one second. There should be no significant time between lights.<\/li>\n<li>There must also be a button that will activate the pedestrian crossing. We will discuss in class how this will affect the lights.<\/li>\n<\/ol>\n<h3>More Arduino Projects<\/h3>\n<p>Control a servo with a potentiometer:\u00a0<a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/Knob\">https:\/\/www.arduino.cc\/en\/Tutorial\/Knob<\/a><\/p>\n<p>Control Panel:\u00a0<a href=\"https:\/\/www.arduino.cc\/en\/ArduinoStarterKit\/Prj02\">https:\/\/www.arduino.cc\/en\/ArduinoStarterKit\/Prj02<\/a><\/p>\n<p>Arduino Project Hub:\u00a0<a href=\"https:\/\/create.arduino.cc\/projecthub\">https:\/\/create.arduino.cc\/projecthub<\/a><\/p>\n<p>Arduino Programming Course:\u00a0<a href=\"https:\/\/startingelectronics.org\/software\/arduino\/learn-to-program-course\/01-program-structure-flow\/\">https:\/\/startingelectronics.org\/software\/arduino\/learn-to-program-course\/01-program-structure-flow\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arduino Tutorials What is an Arduino? Click here to find out. Official Tutorials: https:\/\/www.arduino.cc\/en\/Tutorial\/HomePage Absolute Beginner&#8217;s guide to Arduino:\u00a0http:\/\/forefront.io\/a\/beginners-guide-to-arduino\/ We are going to start our journey into Arduino programming by doing the &#8220;Basics&#8221; tutorials and a few of the &#8220;Digital&#8221; tutorials: 1. Basics Bare Minimum: The bare minimum of code needed to start an Arduino [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":417,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1015","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/1015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1015"}],"version-history":[{"count":21,"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/1015\/revisions"}],"predecessor-version":[{"id":1470,"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/1015\/revisions\/1470"}],"up":[{"embeddable":true,"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/417"}],"wp:attachment":[{"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}