{"id":106,"date":"2012-02-06T22:35:35","date_gmt":"2012-02-06T22:35:35","guid":{"rendered":"https:\/\/teach.alimomeni.net\/2012spring2\/?p=106"},"modified":"2012-02-06T22:35:35","modified_gmt":"2012-02-06T22:35:35","slug":"connecting-simple-analog-sensors-photoresistor-to-microcontroller","status":"publish","type":"post","link":"https:\/\/teach.alimomeni.net\/2012spring2\/?p=106","title":{"rendered":"Connecting simple analog sensors: Photoresistor to Microcontroller"},"content":{"rendered":"<p>Simple circuit for connecting a variable resistance sensor to a micro-controller (with details regarding our favorite microcontroller the Arduino-compatible Teensy):<\/p>\n<p><a href=\"https:\/\/teach.alimomeni.net\/2012spring2\/wp-content\/uploads\/2012\/02\/analogin_variableresistor.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-107\" title=\"analogin_variableresistor\" src=\"https:\/\/teach.alimomeni.net\/2012spring2\/wp-content\/uploads\/2012\/02\/analogin_variableresistor-300x186.jpg\" alt=\"\" width=\"300\" height=\"186\" srcset=\"https:\/\/teach.alimomeni.net\/2012spring2\/wp-content\/uploads\/2012\/02\/analogin_variableresistor-300x186.jpg 300w, https:\/\/teach.alimomeni.net\/2012spring2\/wp-content\/uploads\/2012\/02\/analogin_variableresistor.jpeg 907w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<ul>\n<li>&#8220;Analog input pin&#8221;: connection to one of the analog sensing pins (<a href=\"http:\/\/www.pjrc.com\/teensy\/card2b.pdf\">pins 11-21 of a for a Teensy 2.0<\/a>)<\/li>\n<li>&#8220;photoresistor, flex sensor, force sensor, etc&#8221;: any variable resistance component<\/li>\n<li>&#8220;fixed resistor&#8221;: the value of this resistor should be selected based on the resistance range of the sensor<\/li>\n<li>&#8220;+5V&#8221;: connection to the microcontrollers +5V pin (<a href=\"http:\/\/www.pjrc.com\/teensy\/card2b.pdf\">labeled &#8220;VCC&#8221; on the Teensy 2.0<\/a>)<\/li>\n<li>Ground: connection to the microcontrollers Ground (<a href=\"http:\/\/www.pjrc.com\/teensy\/card2b.pdf\">labeled &#8220;GND&#8221; on the Teensy 2.0<\/a>)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Simple circuit for connecting a variable resistance sensor to a micro-controller (with details regarding our favorite microcontroller the Arduino-compatible Teensy): &#8220;Analog input pin&#8221;: connection to one of the analog sensing pins (pins 11-21 of a for a Teensy 2.0) &#8220;photoresistor, flex sensor, force sensor, etc&#8221;: any variable resistance component &#8220;fixed resistor&#8221;: the value of this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,5],"tags":[],"class_list":["post-106","post","type-post","status-publish","format-standard","hentry","category-electronics","category-reference"],"_links":{"self":[{"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/posts\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=106"}],"version-history":[{"count":1,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/posts\/106\/revisions"}],"predecessor-version":[{"id":108,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/posts\/106\/revisions\/108"}],"wp:attachment":[{"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}