{"id":3430,"date":"2016-10-28T17:55:44","date_gmt":"2016-10-29T00:55:44","guid":{"rendered":""},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T07:00:00","slug":"3430","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/3430","title":{"rendered":"How come my Arduino sketch to control a servo motor with the DCU is not working?"},"content":{"rendered":"<p>The DCU has a 3-pin connector to connect a servo motor. The DCU line used to control the servo is line 4. The DCU has internal electronics to only allow its 4th line to be turned on when the first three lines are off. You will need to add code to your project to turn off the first three lines when using the 4th line to control your servo motor.<\/p>\n<p>Please reference the servo sketch posted on the Vernier web site:<br \/>\n<a href=\"https:\/\/www.vernier.com\/engineering\/arduino\/servo-motors\/\">https:\/\/www.vernier.com\/engineering\/arduino\/servo-motors\/<\/a><\/p>\n<p><a href=\"\/til\/3483\/\">Arduino and SparkFun RedBoard Troubleshooting and FAQs<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>The DCU has a 3-pin connector to connect a servo motor. The DCU line used to control the servo is line 4. The DCU has&#8230;<\/p>\n","protected":false},"author":8983,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[5461,3084,5800,505,5805,5804],"class_list":["post-3430","post","type-post","status-publish","format-standard","hentry","tag-ard-red","tag-arduino","tag-bt-ard","tag-dcu","tag-servo","tag-servo-motor"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/3430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/users\/8983"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/comments?post=3430"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/3430\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=3430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=3430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=3430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}