{"id":17,"date":"2011-01-31T21:05:27","date_gmt":"2011-01-31T21:05:27","guid":{"rendered":"https:\/\/gamadiyo.com\/blog\/?p=17"},"modified":"2011-01-31T21:05:27","modified_gmt":"2011-01-31T21:05:27","slug":"arduino-controlling-a-3-wire-servo-with-potentiometer","status":"publish","type":"post","link":"https:\/\/gamadiyo.com\/blog\/?p=17","title":{"rendered":"Arduino: Controlling a 3 wire Servo with Potentiometer"},"content":{"rendered":"<p>Used a 10k POT to control the 3 wire Vex servo. The two end pins of the POT went to 5V and ground. The middle connection of the POT was connected to the analog in 0 (A0). The servo was connected to the 5V (red), ground (black) and digital pin 9 (D9, white). Used the <a title=\"Knob\" href=\"http:\/\/arduino.cc\/en\/Tutorial\/Knob\" target=\"_blank\">knob<\/a> example from the <a title=\"Arduino Website\" href=\"http:\/\/arduino.cc\/\" target=\"_blank\">Arduino.cc<\/a> website to program the board. I was also able to print the Analog value of the POT by using the code from the <a title=\"Analog Read Serial\" href=\"http:\/\/arduino.cc\/en\/Tutorial\/AnalogReadSerial\" target=\"_blank\">AnalogReadSerial<\/a> example.<\/p>\n<p>This can be used for steering\u00c2\u00a0mechanism.<\/p>\n\n\t\t<style type=\"text\/css\">\n\t\t\t#gallery-1 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 33%;\n\t\t\t}\n\t\t\t#gallery-1 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-1' class='gallery galleryid-17 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/gamadiyo.com\/blog\/?attachment_id=18'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/gamadiyo.com\/blog\/wp-content\/uploads\/2011\/01\/IMG_0330-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/gamadiyo.com\/blog\/?attachment_id=19'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/gamadiyo.com\/blog\/wp-content\/uploads\/2011\/01\/IMG_0331-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt><\/dl>\n\t\t\t<br style='clear: both' \/>\n\t\t<\/div>\n\n<p><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"425\" height=\"350\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/1cPWX7vsbjo\" \/><embed type=\"application\/x-shockwave-flash\" width=\"425\" height=\"350\" src=\"http:\/\/www.youtube.com\/v\/1cPWX7vsbjo\"><\/embed><\/object><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Used a 10k POT to control the 3 wire Vex servo. The two end pins of the POT went to 5V and ground. The middle connection of the POT was connected to the analog in 0 (A0). The servo was connected to the 5V (red), ground (black) and digital pin 9 (D9, white). Used the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[9,28,26,25,18,27],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-arduino-2","tag-arduino","tag-knob","tag-pot","tag-potentiometer","tag-servo","tag-steering"],"_links":{"self":[{"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":0,"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions"}],"wp:attachment":[{"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}