{"id":147,"date":"2015-05-07T21:01:54","date_gmt":"2015-05-07T21:01:54","guid":{"rendered":"https:\/\/drakesoe.wordpress.com\/?p=147"},"modified":"2015-05-07T21:01:54","modified_gmt":"2015-05-07T21:01:54","slug":"5-7-15","status":"publish","type":"post","link":"https:\/\/rodmilstead.com\/pt\/2015\/05\/07\/5-7-15\/","title":{"rendered":"5-7-15"},"content":{"rendered":"<p>working with servos<\/p>\n<p>1. take a serve &#8211; share as i have a limited number<\/p>\n<p>2. copy paste this code into a new sketch:<\/p>\n<p>#include &lt;Servo.h&gt;<\/p>\n<p>Servo myServo;<br \/>\nint servoPin = 2;<\/p>\n<p>void setup()<br \/>\n{<br \/>\nmyServo.attach(servoPin);<br \/>\n}<\/p>\n<p>void loop()<br \/>\n{<br \/>\nmyServo.write(90);<br \/>\ndelay(20);<br \/>\n}<\/p>\n<p>3. connect the servo to your Arduino like this<br \/>\nred to 5v<br \/>\nblack to GND<br \/>\nwhite to pin 2<\/p>\n<p>run it. \u00a0What happens? \u00a0What happens if you change the number in this line:\u00a0myServo.write(90);?<\/p>\n<p><strong>project wrap up &#8211; respond to these questions in a blog post<\/strong><\/p>\n<p><b>Written response to<\/b>:<\/p>\n<p>What is the goal of this project?<\/p>\n<p>What is the learning goal of this project?<\/p>\n<p>What tools were used in the making of your stoplight?<\/p>\n<p>What did you learn while doing this project?<\/p>\n<p>How do you feel about your project? Did you enjoy it? Was it difficult?<\/p>\n<p><strong> What would you like to learn more about?<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>working with servos 1. take a serve &#8211; share as i have a limited number 2. copy paste this code into a new sketch: #include &lt;Servo.h&gt; Servo myServo; int servoPin = 2; void setup() { myServo.attach(servoPin); } void loop() { myServo.write(90); delay(20); } 3. connect the servo to your Arduino like this red to 5v &hellip; <a href=\"https:\/\/rodmilstead.com\/pt\/2015\/05\/07\/5-7-15\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">5-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-147","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/posts\/147","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=147"}],"version-history":[{"count":0,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"wp:attachment":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}