{"id":628,"date":"2008-10-06T21:02:00","date_gmt":"2008-10-07T02:02:00","guid":{"rendered":"http:\/\/www.teknevision.com\/extant2\/2008\/10\/pcomp-week-4-analog-out.html"},"modified":"2008-10-06T21:02:00","modified_gmt":"2008-10-07T02:02:00","slug":"physical-computing-week-3-electricty","status":"publish","type":"post","link":"https:\/\/www.teknevision.com\/extant\/2008\/10\/physical-computing-week-3-electricty.html","title":{"rendered":"PComp: Week 4: Analog Out"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/www.teknevision.com\/IMAGES\/PCOMP\/pcomp_servo_photocell_01.jpg\"><\/p>\n<p>Servo motor: Used photoresistor: when hand was very close &#8211; it shook more.<br \/>int pulse: 350 &#8211; small resistor<br \/>int pulse: 0: large photoresistor &#8211; less control<br \/>Running my hand over made servo go left and right<br \/>Serial 220-390<br \/>Near: right. Far: left.<br \/>analogValue = 200<\/p>\n<p>I didn&#8217;t know it was directional. The flex sensor didn&#8217;t really work, but I think I just need to make adjustments to the code. I used my hands and touched the exposed wire and that seemed to generate a better response. <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.teknevision.com\/IMAGES\/PCOMP\/pcomp_servo_fsr_03.jpg\"><\/p>\n<p>Pressure Sensor (FSR): press &#8211; right, let go &#8211; left: most responsive<\/p>\n<p>Also used pot with one 10k resistor, but when turned all the way up &#8211; started burning. When turned all the way down, it shut off.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Servo motor: Used photoresistor: when hand was very close &#8211; it shook more.int pulse: 350 &#8211; small resistorint pulse: 0: large photoresistor &#8211; less controlRunning my hand over made servo go left and rightSerial 220-390Near: right. Far: left.analogValue = 200 I didn&#8217;t know it was directional. The flex sensor didn&#8217;t really work, but I think [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8],"tags":[],"class_list":["post-628","post","type-post","status-publish","format-standard","hentry","category-itp","category-pcomp"],"_links":{"self":[{"href":"https:\/\/www.teknevision.com\/extant\/wp-json\/wp\/v2\/posts\/628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.teknevision.com\/extant\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.teknevision.com\/extant\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.teknevision.com\/extant\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.teknevision.com\/extant\/wp-json\/wp\/v2\/comments?post=628"}],"version-history":[{"count":0,"href":"https:\/\/www.teknevision.com\/extant\/wp-json\/wp\/v2\/posts\/628\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.teknevision.com\/extant\/wp-json\/wp\/v2\/media?parent=628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.teknevision.com\/extant\/wp-json\/wp\/v2\/categories?post=628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.teknevision.com\/extant\/wp-json\/wp\/v2\/tags?post=628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}