{"id":175,"date":"2009-11-21T14:04:30","date_gmt":"2009-11-21T19:04:30","guid":{"rendered":"http:\/\/elegans.uky.edu\/blog\/?p=175"},"modified":"2009-11-21T14:04:30","modified_gmt":"2009-11-21T19:04:30","slug":"pic-servo-pot-controlled","status":"publish","type":"post","link":"http:\/\/jimlund.org\/blog\/?p=175","title":{"rendered":"PIC servo pot controlled"},"content":{"rendered":"<p>Third PIC program, this one moves a hobby servo motor using a 10k&#8486; pot.  The pot is read using the A\/D converter function on the PIC.  The four high bits of the value are used to control the servo to sixteen positions over its range.  Two more bits could easily be added to give finer control.<\/p>\n<p>It has a light that flips on\/off with each jump of the servo, another light that is always on and a third that switches the servo on\/off.<\/p>\n<p>PIC12F683 servo motor movie:<\/p>\n<p> <object width='480' height='360' id='flvPlayer'><param name='allowFullScreen' value='true'><\/param><param name='movie' value='player.swf?movie=pics\/PIC12F683_servo2.flv&#038;bgcolor=0x051615&#038;fgcolor=0x13ABEC&#038;volume=80&#038;autoload=on&#038;autorewind=on&#038;clickurl=&#038;clicktarget=_self&#038;postimage='><embed src='player.swf?movie=pics\/PIC12F683_servo2.flv&#038;bgcolor=0x051615&#038;fgcolor=0x13ABEC&#038;volume=80&#038;autoload=on&#038;autorewind=on&#038;clickurl=&#038;clicktarget=_self&#038;postimage=' width='480' height='360' allowFullScreen='true' type='application\/x-shockwave-flash'><\/embed><\/param><\/object><\/p>\n<p>Here are the code files: <a href=\"pics\/p12_servo2.asm\">p12_servo2.asm<\/a> and <a href=\"pics\/p12_servo2.hex\">p12_servo2.hex<\/a>.<\/p>\n<p>It is wired as shown in the video.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Third PIC program, this one moves a hobby servo motor using a 10k&#8486; pot. The pot is read using the A\/D converter function on the PIC. The four high bits of the value are used to control the servo to sixteen positions over its range. Two more bits could easily be added to give finer [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-175","post","type-post","status-publish","format-standard","hentry","category-hobbies"],"_links":{"self":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=175"}],"version-history":[{"count":0,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/175\/revisions"}],"wp:attachment":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}