{"id":96,"date":"2015-04-09T20:49:02","date_gmt":"2015-04-09T20:49:02","guid":{"rendered":"https:\/\/drakesoe.wordpress.com\/?p=96"},"modified":"2015-04-09T20:49:02","modified_gmt":"2015-04-09T20:49:02","slug":"milsteads-group-4-7-15","status":"publish","type":"post","link":"https:\/\/rodmilstead.com\/pt\/2015\/04\/09\/milsteads-group-4-7-15\/","title":{"rendered":"Milstead&#8217;s group 4-7-15"},"content":{"rendered":"<p>today:<\/p>\n<p>1. review your work from yesterday &#8211; get caught up, including uploading video<\/p>\n<p>2. the Stoplight Field Trip<\/p>\n<p>3. Next up &#8211; incorporating a switch and taking control.<\/p>\n<p>Your mission is to setup the board and Arduino to match the photos below. \u00a0Then copy\/paste the code into Arduino. \u00a0Compile and upload. \u00a0Troubleshoot.<\/p>\n<p>Then take the the code and comment each line to tell us what is happening. Comment like this:<\/p>\n<p>\/\/this tells the yellow light to turn on<\/p>\n<p>The breadboard\/Arduino controller setup<\/p>\n<p><a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/arduinoswitch1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-98\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/arduinoswitch1.jpg?w=225\" alt=\"arduinoswitch1\" width=\"225\" height=\"300\" srcset=\"https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/arduinoswitch1.jpg 1224w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/arduinoswitch1-225x300.jpg 225w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/arduinoswitch1-768x1024.jpg 768w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a> <a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/arduinoswitch2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-99\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/arduinoswitch2.jpg?w=225\" alt=\"arduinoswitch2\" width=\"225\" height=\"300\" srcset=\"https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/arduinoswitch2.jpg 1224w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/arduinoswitch2-225x300.jpg 225w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2015\/04\/arduinoswitch2-768x1024.jpg 768w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<p>and the code:<\/p>\n<p>void setup() {<br \/>\npinMode(13, OUTPUT);<br \/>\npinMode(12, OUTPUT);<br \/>\npinMode(11, OUTPUT);<br \/>\npinMode(2, INPUT);<\/p>\n<p>}<\/p>\n<p>void loop() {<br \/>\nif(digitalRead(2) == HIGH){<\/p>\n<p>digitalWrite(11, LOW);<br \/>\ndigitalWrite(12, HIGH);<br \/>\ndelay(1000);<br \/>\ndigitalWrite(12, LOW);<br \/>\ndigitalWrite(13, HIGH);<br \/>\ndelay(3000);<br \/>\ndigitalWrite(13,LOW);<br \/>\ndigitalWrite(11,HIGH);<br \/>\n} else{<br \/>\ndigitalWrite(11, HIGH);<br \/>\ndelay(100);<br \/>\n}<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>today: 1. review your work from yesterday &#8211; get caught up, including uploading video 2. the Stoplight Field Trip 3. Next up &#8211; incorporating a switch and taking control. Your mission is to setup the board and Arduino to match the photos below. \u00a0Then copy\/paste the code into Arduino. \u00a0Compile and upload. \u00a0Troubleshoot. Then take &hellip; <a href=\"https:\/\/rodmilstead.com\/pt\/2015\/04\/09\/milsteads-group-4-7-15\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Milstead&#8217;s group 4-7-15<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":0,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"wp:attachment":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}