{"id":13830,"date":"2024-04-12T14:06:57","date_gmt":"2024-04-12T12:06:57","guid":{"rendered":"https:\/\/www.pilover.com\/negozio\/phototransistor-light-sensor\/"},"modified":"2026-11-18T15:41:04","modified_gmt":"2026-11-18T14:41:04","slug":"phototransistor-light-sensor","status":"publish","type":"product","link":"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/","title":{"rendered":"Phototransistor (light sensor)"},"content":{"rendered":"<h2>Phototransistor (light sensor)<\/h2>\n<p>This <strong>phototransistor light sensor<\/strong>, also known as a phototransistor, is a simple sensor capable of <strong>detecting ambient light<\/strong>. This type of sensor<strong> is, in a way, the opposite of an LED<\/strong>; in other words, when light strikes the small chip inside, it causes current to flow from the long pin to the short one. The optical filter built into the sensor simulates light levels in much the same way as a human eye.<\/p>\n<p>This phototransistor <strong>is very simple to use<\/strong>. You need to connect the sensor\u2019s longer, \u2018thicker\u2019 pin to approximately 3\u201315 VDC and connect the shorter, \u2018thinner\u2019 pin via a series resistor of ~1 k\u03a9\u201310 k\u03a9 to earth. In this way, when it is dark around the sensor, almost no current will flow through the sensor or the resistor, and the analogue voltage will be close to ground. When, on the other hand, there is light near the sensor, the current through the resistor will increase, which in turn will also increase the voltage. Using a <a href=\"https:\/\/www.pilover.com\/en\/category\/microcontroller\/\" target=\"_blank\" rel=\"noopener\">microcontroller<\/a> , you can adjust the series resistor to achieve the required voltage range and measure the analogue voltage.<\/p>\n<p><strong>Note:<\/strong> If you do not receive any reading from the sensor, try turning it round.<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/9d7kSD90Nyw?si=lpMzPgBRb__R0P68&#038;start=92\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/5HKvRrVWgYs?si=bAXEYlSgC5A2TSKu\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><strong>Technical details<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.pilover.com\/wp-content\/uploads\/2024\/01\/Datasheet-Ambient-light-detector-Photosensitive-sensor-HW5P-1.pdf\" target=\"_blank\" rel=\"noopener\">Ambient light detector \/ Photosensitive sensor HW5P-1 Datasheet<\/a><\/li>\n<li>Sensor dimensions: 5mm x 5.3mm \/ 0.20\u2033 x 0.21\u2033<\/li>\n<\/ul>\n<p><strong>Adafruit name:<\/strong> Photo Transistor Light Sensor [ADA2831]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Phototransistor (light sensor) This phototransistor light sensor, also known as a phototransistor, is a simple sensor capable of detecting ambient light. This type of sensor is, in a way, the opposite of an LED; in other words, when light strikes the small chip inside, it causes current to flow from the long pin to the [&hellip;]<\/p>\n","protected":false},"featured_media":12868,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[2216],"product_cat":[2018,2014,2029],"product_tag":[],"class_list":["post-13830","product","type-product","status-publish","has-post-thumbnail","product_brand-adafruit","product_cat-light-sensors","product_cat-sensors","product_cat-various-sensors","first","instock","shipping-taxable","purchasable","product-type-simple"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Phototransistor (light sensor) - PiLover<\/title>\n<meta name=\"description\" content=\"Phototransistor (light sensor) on PiLover. The best selection of prototyping components at competitive prices. Fast delivery in Italy and the EU.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Phototransistor (light sensor) - PiLover\" \/>\n<meta property=\"og:description\" content=\"Phototransistor (light sensor) on PiLover. The best selection of prototyping components at competitive prices. Fast delivery in Italy and the EU.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/\" \/>\n<meta property=\"og:site_name\" content=\"PiLover\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/OfficialPiLover\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-18T14:41:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pilover.com\/wp-content\/uploads\/2024\/01\/Fototransistor-sensore-di-luce.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/shop\\\/phototransistor-light-sensor\\\/\",\"url\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/shop\\\/phototransistor-light-sensor\\\/\",\"name\":\"Phototransistor (light sensor) - PiLover\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/shop\\\/phototransistor-light-sensor\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/shop\\\/phototransistor-light-sensor\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pilover.com\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Fototransistor-sensore-di-luce.jpg\",\"datePublished\":\"2024-04-12T12:06:57+00:00\",\"dateModified\":\"2026-11-18T14:41:04+00:00\",\"description\":\"Phototransistor (light sensor) on PiLover. The best selection of prototyping components at competitive prices. Fast delivery in Italy and the EU.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/shop\\\/phototransistor-light-sensor\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pilover.com\\\/en\\\/shop\\\/phototransistor-light-sensor\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/shop\\\/phototransistor-light-sensor\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.pilover.com\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Fototransistor-sensore-di-luce.jpg\",\"contentUrl\":\"https:\\\/\\\/www.pilover.com\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Fototransistor-sensore-di-luce.jpg\",\"width\":1024,\"height\":1024,\"caption\":\"Phototransistor, light sensor\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/shop\\\/phototransistor-light-sensor\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shop\",\"item\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/shop\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Phototransistor (light sensor)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/\",\"name\":\"PiLover\",\"description\":\"Make it a board\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"OnlineStore\",\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/#organization\",\"name\":\"PiLover\",\"url\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.pilover.com\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/logo_190x60.png\",\"contentUrl\":\"https:\\\/\\\/www.pilover.com\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/logo_190x60.png\",\"width\":190,\"height\":60,\"caption\":\"PiLover\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pilover.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/OfficialPiLover\",\"https:\\\/\\\/www.instagram.com\\\/officialpilover\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Phototransistor (light sensor) - PiLover","description":"Phototransistor (light sensor) on PiLover. The best selection of prototyping components at competitive prices. Fast delivery in Italy and the EU.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/","og_locale":"en_US","og_type":"article","og_title":"Phototransistor (light sensor) - PiLover","og_description":"Phototransistor (light sensor) on PiLover. The best selection of prototyping components at competitive prices. Fast delivery in Italy and the EU.","og_url":"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/","og_site_name":"PiLover","article_publisher":"https:\/\/www.facebook.com\/OfficialPiLover","article_modified_time":"2026-11-18T14:41:04+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/www.pilover.com\/wp-content\/uploads\/2024\/01\/Fototransistor-sensore-di-luce.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/","url":"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/","name":"Phototransistor (light sensor) - PiLover","isPartOf":{"@id":"https:\/\/www.pilover.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/#primaryimage"},"image":{"@id":"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pilover.com\/wp-content\/uploads\/2024\/01\/Fototransistor-sensore-di-luce.jpg","datePublished":"2024-04-12T12:06:57+00:00","dateModified":"2026-11-18T14:41:04+00:00","description":"Phototransistor (light sensor) on PiLover. The best selection of prototyping components at competitive prices. Fast delivery in Italy and the EU.","breadcrumb":{"@id":"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/#primaryimage","url":"https:\/\/www.pilover.com\/wp-content\/uploads\/2024\/01\/Fototransistor-sensore-di-luce.jpg","contentUrl":"https:\/\/www.pilover.com\/wp-content\/uploads\/2024\/01\/Fototransistor-sensore-di-luce.jpg","width":1024,"height":1024,"caption":"Phototransistor, light sensor"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pilover.com\/en\/shop\/phototransistor-light-sensor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pilover.com\/en\/home\/"},{"@type":"ListItem","position":2,"name":"Shop","item":"https:\/\/www.pilover.com\/en\/shop\/"},{"@type":"ListItem","position":3,"name":"Phototransistor (light sensor)"}]},{"@type":"WebSite","@id":"https:\/\/www.pilover.com\/en\/#website","url":"https:\/\/www.pilover.com\/en\/","name":"PiLover","description":"Make it a board","publisher":{"@id":"https:\/\/www.pilover.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pilover.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"OnlineStore","@id":"https:\/\/www.pilover.com\/en\/#organization","name":"PiLover","url":"https:\/\/www.pilover.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pilover.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.pilover.com\/wp-content\/uploads\/2019\/08\/logo_190x60.png","contentUrl":"https:\/\/www.pilover.com\/wp-content\/uploads\/2019\/08\/logo_190x60.png","width":190,"height":60,"caption":"PiLover"},"image":{"@id":"https:\/\/www.pilover.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/OfficialPiLover","https:\/\/www.instagram.com\/officialpilover\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.pilover.com\/en\/wp-json\/wp\/v2\/product\/13830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pilover.com\/en\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.pilover.com\/en\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pilover.com\/en\/wp-json\/wp\/v2\/comments?post=13830"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pilover.com\/en\/wp-json\/wp\/v2\/media\/12868"}],"wp:attachment":[{"href":"https:\/\/www.pilover.com\/en\/wp-json\/wp\/v2\/media?parent=13830"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.pilover.com\/en\/wp-json\/wp\/v2\/product_brand?post=13830"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.pilover.com\/en\/wp-json\/wp\/v2\/product_cat?post=13830"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.pilover.com\/en\/wp-json\/wp\/v2\/product_tag?post=13830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}