{"id":1624,"date":"2021-11-18T13:40:27","date_gmt":"2021-11-18T12:40:27","guid":{"rendered":"https:\/\/www.onetimenexttime.sk\/arduino\/?post_type=product&#038;p=1624"},"modified":"2023-04-20T16:57:37","modified_gmt":"2023-04-20T14:57:37","slug":"ky-018-photo-resistor-module","status":"publish","type":"product","link":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/","title":{"rendered":"KY-018  Photo resistor module"},"content":{"rendered":"<h2>KY-018 Modul fotorezistoru<\/h2>\n<p>pod\u013ea spektr\u00e1lnych charakterist\u00edk troch fotorezistorov\u00fdch fotorezistorov: rezistory citliv\u00e9 na UV svetlo, rezistory citliv\u00e9 na infra\u010derven\u00e9 svetlo,<\/p>\n<p><strong>parametre\u00a0<\/strong><\/p>\n<p>tmav\u00fd pr\u00fad, tmav\u00fd odpor: fotorezistor pri ur\u010ditom aplikovanom nap\u00e4t\u00ed, bez sveteln\u00e9ho \u017eiarenia, pri pr\u00faden\u00ed<\/p>\n<p>Pr\u00fad sa naz\u00fdva temn\u00fd pr\u00fad. Aplikovan\u00e9 nap\u00e4tie a pomer temn\u00e9ho pr\u00fadu sa naz\u00fdva temn\u00fd odpor;<\/p>\n<p>Citlivos\u0165: Citlivos\u0165 sa t\u00fdka hodnoty odporu fotorezistora vo\u010di o\u017eiareniu svetlom (odpor vo\u010di tme), ke\u010f je o\u017eiaren\u00fd svetlom a<\/p>\n<p>Odpor (svetlovzdornos\u0165) hodnoty relat\u00edvnej zmeny.<\/p>\n<p>charakteristika nap\u00e4tia. Volt-amp\u00e9rov\u00e1 charakteristick\u00e1 krivka pou\u017e\u00edvan\u00e1 na opis vz\u0165ahu medzi pou\u017eit\u00fdm nap\u00e4t\u00edm a fotopr\u00fadom fotorezistora<\/p>\n<p>Fotosenzit\u00edvne zariadenie, jeho fotopr\u00fad sa zvy\u0161uje s aplikovan\u00fdm nap\u00e4t\u00edm.<\/p>\n<p>teplotn\u00fd koeficient. Fotorezistor s fotoelektrick\u00fdm efektom ovplyvnen\u00fd teplotou, \u010diasto\u010dn\u00fd fotorezistor optoelektronick\u00fd pri n\u00edzkych teplot\u00e1ch<\/p>\n<p>Vy\u0161\u0161ia citlivos\u0165, zatia\u013e \u010do citlivos\u0165 pri vysok\u00fdch teplot\u00e1ch je ni\u017e\u0161ia.<\/p>\n<p>menovit\u00fd v\u00fdkon. Vz\u0165ahuje sa na menovit\u00fd v\u00fdkon pre ur\u010dit\u00fd riadkov\u00fd fotorezistor povolen\u00fd spotrebovan\u00fd v\u00fdkon, ke\u010f teplota st\u00fapa<\/p>\n<p>Vysok\u00e1, jej spotreba energie je zn\u00ed\u017een\u00e1.<\/p>\n<p>&nbsp;<\/p>\n<p><span>Obsahuje rezistor LDR, ktor\u00e9ho hodnota odporu kles\u00e1 s jasnej\u0161\u00edm prostred\u00edm.\u00a0<\/span><span>Tento odpor je mo\u017en\u00e9 ur\u010di\u0165 pomocou deli\u010da nap\u00e4tia, kde sa zn\u00e1me nap\u00e4tie rozdel\u00ed na zn\u00e1my (10K\u03a9) a nezn\u00e1my (premenliv\u00fd) odpor.\u00a0<\/span><span>Pomocou tohto nameran\u00e9ho nap\u00e4tia je mo\u017en\u00e9 potom vypo\u010d\u00edta\u0165 odpor &#8211; presn\u00fd v\u00fdpo\u010det je zahrnut\u00fd v pr\u00edkladoch k\u00f3du ni\u017e\u0161ie.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/sensorkit.joy-it.net\/files\/files\/sensors\/KY-013\/KY-013-VoltDivide-EN.svg\" width=\"376\" height=\"414\" \/>\u00a0 \u00a0 <img decoding=\"async\" src=\"https:\/\/sensorkit.joy-it.net\/files\/files\/sensors\/KY-018\/KY-018.svg\" width=\"200\" \/>\u00a0 \u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/sensorkit.joy-it.net\/files\/files\/sensors\/KY-018\/018-ARD.svg\" width=\"391\" height=\"412\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"language-cpp line-numbers\" tabindex=\"0\"><code class=\"language-cpp\"><span class=\"token keyword\">int<\/span> sensorPin <span class=\"token operator\">=<\/span> A5<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ Declare the input pin here<\/span>\r\n \r\n<span class=\"token comment\">\/\/ Serial output in 9600 baud<\/span>\r\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">setup<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token punctuation\">{<\/span>\r\n    Serial<span class=\"token punctuation\">.<\/span><span class=\"token function\">begin<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">9600<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token punctuation\">}<\/span>\r\n \r\n<span class=\"token comment\">\/\/ The program measures the current voltage value at the sensor,<\/span>\r\n<span class=\"token comment\">\/\/ calculates from this and the known series resistance the current<\/span>\r\n<span class=\"token comment\">\/\/ resistance value of the sensor and outputs the results to the serial output<\/span>\r\n \r\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">loop<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token punctuation\">{<\/span>      \r\n        <span class=\"token comment\">\/\/ Current voltage value is measured...<\/span>\r\n    <span class=\"token keyword\">int<\/span> rawValue <span class=\"token operator\">=<\/span> <span class=\"token function\">analogRead<\/span><span class=\"token punctuation\">(<\/span>sensorPin<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n        <span class=\"token keyword\">float<\/span> voltage <span class=\"token operator\">=<\/span> rawValue <span class=\"token operator\">*<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token number\">5.0<\/span><span class=\"token operator\">\/<\/span><span class=\"token number\">1023<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">1000<\/span><span class=\"token punctuation\">;<\/span>\r\n         \r\n        <span class=\"token keyword\">float<\/span> resitance <span class=\"token operator\">=<\/span> <span class=\"token number\">10000<\/span> <span class=\"token operator\">*<\/span> <span class=\"token punctuation\">(<\/span> voltage <span class=\"token operator\">\/<\/span> <span class=\"token punctuation\">(<\/span> <span class=\"token number\">5000.0<\/span> <span class=\"token operator\">-<\/span> voltage<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n         \r\n    <span class=\"token comment\">\/\/ ... and here output to the serial interface<\/span>\r\n    Serial<span class=\"token punctuation\">.<\/span><span class=\"token function\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"Voltage value:\"<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> Serial<span class=\"token punctuation\">.<\/span><span class=\"token function\">print<\/span><span class=\"token punctuation\">(<\/span>voltage<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> Serial<span class=\"token punctuation\">.<\/span><span class=\"token function\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"mV\"<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n    Serial<span class=\"token punctuation\">.<\/span><span class=\"token function\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\", resistance value:\"<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> Serial<span class=\"token punctuation\">.<\/span><span class=\"token function\">print<\/span><span class=\"token punctuation\">(<\/span>resitance<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> Serial<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"Ohm\"<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n    Serial<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"---------------------------------------\"<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n \r\n    <span class=\"token function\">delay<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">500<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token punctuation\">}<\/span><\/code><\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>KY-018 Modul fotorezistoru pod\u013ea spektr\u00e1lnych charakterist\u00edk troch fotorezistorov\u00fdch fotorezistorov: rezistory citliv\u00e9 na UV svetlo, rezistory citliv\u00e9 na infra\u010derven\u00e9 svetlo, parametre\u00a0&hellip;<\/p>\n","protected":false},"featured_media":1625,"template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"product_cat":[15,16,68,17,44],"product_tag":[],"class_list":{"0":"post-1624","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-nd","7":"product_cat-ard","8":"product_cat-light","9":"product_cat-modul","10":"product_cat-svetlo","12":"first","13":"instock","14":"shipping-taxable","15":"purchasable","16":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>KY-018 Photo resistor module - Arduino e-shop<\/title>\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.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/\" \/>\n<meta property=\"og:locale\" content=\"sk_SK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KY-018 Photo resistor module - Arduino e-shop\" \/>\n<meta property=\"og:description\" content=\"KY-018 Modul fotorezistoru pod\u013ea spektr\u00e1lnych charakterist\u00edk troch fotorezistorov\u00fdch fotorezistorov: rezistory citliv\u00e9 na UV svetlo, rezistory citliv\u00e9 na infra\u010derven\u00e9 svetlo, parametre\u00a0&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/\" \/>\n<meta property=\"og:site_name\" content=\"Arduino e-shop\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-20T14:57:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/421.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"550\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\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=\"Predpokladan\u00fd \u010das \u010d\u00edtania\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 min\u00faty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/\",\"url\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/\",\"name\":\"KY-018 Photo resistor module - Arduino e-shop\",\"isPartOf\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/421.jpg\",\"datePublished\":\"2021-11-18T12:40:27+00:00\",\"dateModified\":\"2023-04-20T14:57:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/#breadcrumb\"},\"inLanguage\":\"sk-SK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"sk-SK\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/#primaryimage\",\"url\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/421.jpg\",\"contentUrl\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/421.jpg\",\"width\":550,\"height\":550},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Domov\",\"item\":\"https:\/\/www.onetimenexttime.sk\/arduino\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Obchod\",\"item\":\"https:\/\/www.onetimenexttime.sk\/arduino\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"KY-018 Photo resistor module\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/#website\",\"url\":\"https:\/\/www.onetimenexttime.sk\/arduino\/\",\"name\":\"Arduino e-shop\",\"description\":\"Home Assistant\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.onetimenexttime.sk\/arduino\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"sk-SK\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"KY-018 Photo resistor module - Arduino e-shop","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.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/","og_locale":"sk_SK","og_type":"article","og_title":"KY-018 Photo resistor module - Arduino e-shop","og_description":"KY-018 Modul fotorezistoru pod\u013ea spektr\u00e1lnych charakterist\u00edk troch fotorezistorov\u00fdch fotorezistorov: rezistory citliv\u00e9 na UV svetlo, rezistory citliv\u00e9 na infra\u010derven\u00e9 svetlo, parametre\u00a0&hellip;","og_url":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/","og_site_name":"Arduino e-shop","article_modified_time":"2023-04-20T14:57:37+00:00","og_image":[{"width":550,"height":550,"url":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/421.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Predpokladan\u00fd \u010das \u010d\u00edtania":"2 min\u00faty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/","url":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/","name":"KY-018 Photo resistor module - Arduino e-shop","isPartOf":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/#primaryimage"},"image":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/#primaryimage"},"thumbnailUrl":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/421.jpg","datePublished":"2021-11-18T12:40:27+00:00","dateModified":"2023-04-20T14:57:37+00:00","breadcrumb":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/#breadcrumb"},"inLanguage":"sk-SK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/"]}]},{"@type":"ImageObject","inLanguage":"sk-SK","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/#primaryimage","url":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/421.jpg","contentUrl":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/421.jpg","width":550,"height":550},{"@type":"BreadcrumbList","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-018-photo-resistor-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Domov","item":"https:\/\/www.onetimenexttime.sk\/arduino\/"},{"@type":"ListItem","position":2,"name":"Obchod","item":"https:\/\/www.onetimenexttime.sk\/arduino\/"},{"@type":"ListItem","position":3,"name":"KY-018 Photo resistor module"}]},{"@type":"WebSite","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/#website","url":"https:\/\/www.onetimenexttime.sk\/arduino\/","name":"Arduino e-shop","description":"Home Assistant","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.onetimenexttime.sk\/arduino\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"sk-SK"}]}},"_links":{"self":[{"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product\/1624"}],"collection":[{"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/media\/1625"}],"wp:attachment":[{"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/media?parent=1624"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product_cat?post=1624"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product_tag?post=1624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}