{"id":24219,"date":"2021-04-26T12:31:36","date_gmt":"2021-04-26T08:01:36","guid":{"rendered":"https:\/\/thecaferobot.com\/learn\/?p=24219"},"modified":"2021-06-19T17:41:02","modified_gmt":"2021-06-19T13:11:02","slug":"interfacing-ml8511-uv-sensor-module-with-arduino","status":"publish","type":"post","link":"https:\/\/thecaferobot.com\/learn\/interfacing-ml8511-uv-sensor-module-with-arduino\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u0627\u0698\u0648\u0644 \u0633\u0646\u0633\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 ML8511 \u0628\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"24219\" class=\"elementor elementor-24219\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f64086d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f64086d\" data-element_type=\"section\">\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\r\n\t\t\t\t\t\t\t\t<div class=\"elementor-row\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ab01801\" data-id=\"ab01801\" data-element_type=\"column\">\r\n\r\n\t\t\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\r\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-77387303 elementor-widget elementor-widget-heading\" data-id=\"77387303\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0645\u0627\u0698\u0648\u0644 \u0633\u0646\u0633\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 ML8511<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2cb7209f elementor-widget elementor-widget-text-editor\" data-id=\"2cb7209f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0644\u0648\u0627\u0632\u0645 \u0627\u0644\u06a9\u062a\u0631\u06cc\u06a9\u06cc\u060c \u0647\u0645\u0686\u0648\u0646 \u0646\u0645\u0627\u06cc\u0634\u06af\u0631\u0647\u0627\u06cc \u0631\u0627\u06cc\u0627\u0646\u0647\u060c \u0646\u0645\u0627\u06cc\u0634\u06af\u0631\u0647\u0627\u06cc \u06af\u0648\u0634\u06cc \u0647\u0645\u0631\u0627\u0647\u060c \u062a\u0644\u0648\u06cc\u0632\u06cc\u0648\u0646 \u0648 &#8230; \u0627\u0632 \u0645\u0646\u0627\u0628\u0639 \u062a\u0648\u0644\u06cc\u062f \u06a9\u0646\u0646\u062f\u0647 \u0627\u0634\u0639\u0647 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 \u0647\u0633\u062a\u0646\u062f. \u062a\u0627\u0628\u0634 \u0627\u0634\u0639\u0647 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 \u0628\u0647 \u0627\u0646\u0633\u0627\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0628\u0627\u0639\u062b \u0628\u0631\u0648\u0632 \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0628\u06cc\u0645\u0627\u0631\u06cc\u200c\u0647\u0627 \u0648 \u0633\u0648\u062e\u062a\u06af\u06cc\u200c\u0647\u0627\u06cc \u067e\u0648\u0633\u062a\u06cc \u0634\u0648\u062f. \u0628\u0647 \u0647\u0645\u06cc\u0646 \u062c\u0647\u062a\u060c \u0627\u0637\u0644\u0627\u0639 \u0627\u0632 \u0645\u06cc\u0632\u0627\u0646 \u0646\u0648\u0631 UV \u0645\u062d\u06cc\u0637 \u062d\u0627\u0626\u0632 \u0627\u0647\u0645\u06cc\u062a \u0627\u0633\u062a. \u0627\u0632 \u0645\u0627\u0698\u0648\u0644 \u0633\u0646\u0633\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 ML8511 \u0645\u06cc\u200c\u00ad\u062a\u0648\u0627\u0646 \u0628\u0631\u0627\u06cc \u0645\u062d\u0627\u0633\u0628\u0647\u200c \u0634\u062f\u062a \u0646\u0648\u0631 UV \u0645\u0648\u062c\u0648\u062f \u062f\u0631 \u0645\u062d\u06cc\u0637 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f. \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0628\u0633\u06cc\u0627\u0631 \u0633\u0627\u062f\u0647 \u0627\u06cc\u0646 \u0633\u0646\u0633\u0648\u0631 \u0627\u0632 \u062f\u0644\u0627\u06cc\u0644 \u0645\u062d\u0628\u0648\u0628\u06cc\u062a \u0622\u0646 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u0633\u0646\u0633\u0648\u0631 \u06cc\u06a9 \u062e\u0631\u0648\u062c\u06cc \u0622\u0646\u0627\u0644\u0648\u06af \u062f\u0627\u0631\u062f \u06a9\u0647 \u0648\u0644\u062a\u0627\u0698 \u0622\u0646 \u0628\u0647 \u0635\u0648\u0631\u062a \u062e\u0637\u06cc \u0628\u0627 \u0645\u06cc\u0632\u0627\u0646 \u0634\u062f\u062a \u0646\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 \u0645\u0648\u062c\u0648\u062f \u062f\u0631 \u0645\u062d\u06cc\u0637 \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-438f7c5f elementor-widget elementor-widget-image\" data-id=\"438f7c5f\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-1.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"UV-Detection-Module-Sensor-ML8511-1.jpg\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQyMjIsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDRcL1VWLURldGVjdGlvbi1Nb2R1bGUtU2Vuc29yLU1MODUxMS0xLmpwZyJ9\">\n\t\t\t\t\t\t\t<img width=\"481\" height=\"460\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-1.jpg\" class=\"attachment-large size-large\" alt=\"\u0645\u0627\u0698\u0648\u0644 \u0633\u0646\u0633\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 ML8511\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1c010796 elementor-widget elementor-widget-heading\" data-id=\"1c010796\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0645\u0639\u0631\u0641\u06cc \u067e\u0627\u06cc\u0647 \u0647\u0627\u06cc (Pinout) \u0645\u0627\u0698\u0648\u0644 \u0633\u0646\u0633\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 ML8511<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-29c43da8 elementor-widget elementor-widget-text-editor\" data-id=\"29c43da8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0645\u0627\u0698\u0648\u0644 \u0633\u0646\u0633\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 ML8511 \u062f\u0627\u0631\u0627\u06cc 4 \u067e\u0627\u06cc\u0647 \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p><ul><li><strong>EN<\/strong><strong>:<\/strong> \u0641\u0639\u0627\u0644\u200c\u0633\u0627\u0632\u06cc \u0633\u0646\u0633\u0648\u0631 (\u0627\u0635\u0637\u0644\u0627\u062d\u0627 Active High \u0627\u0633\u062a \u0648 \u0628\u0631\u0627\u06cc \u0641\u0639\u0627\u0644 \u0628\u0648\u062f\u0646 \u0633\u0646\u0633\u0648\u0631\u060c \u0628\u0627\u06cc\u062f \u0628\u0647 VCC \u0648\u0635\u0644 \u0628\u0627\u0634\u062f.)<\/li><li><strong>OUT<\/strong><strong>:<\/strong> \u062e\u0631\u0648\u062c\u06cc \u0622\u0646\u0627\u0644\u0648\u06af<\/li><li><strong>GND<\/strong><strong>:<\/strong> \u0632\u0645\u06cc\u0646<\/li><li><strong>VCC<\/strong><strong>:<\/strong> \u062a\u063a\u0630\u06cc\u0647 \u0645\u0627\u0698\u0648\u0644 \u2013 3.3 \u0648\u0644\u062a<\/li><\/ul><p>\u067e\u06cc\u0646 \u0627\u0648\u062a (Pinout) \u0627\u06cc\u0646 \u0645\u0627\u0698\u0648\u0644 \u0631\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0631 \u062a\u0635\u0648\u06cc\u0631 \u0632\u06cc\u0631 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-62178170 elementor-widget elementor-widget-image\" data-id=\"62178170\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-Pinout.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"UV-Detection-Module-Sensor-ML8511-Pinout.jpg\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQyMjMsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDRcL1VWLURldGVjdGlvbi1Nb2R1bGUtU2Vuc29yLU1MODUxMS1QaW5vdXQuanBnIn0%3D\">\n\t\t\t\t\t\t\t<img width=\"800\" height=\"600\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-Pinout.jpg\" class=\"attachment-large size-large\" alt=\"\u067e\u06cc\u0646 \u0627\u0648\u062a Pinout \u0645\u0627\u0698\u0648\u0644 \u0633\u0646\u0633\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 ML8511\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-614cb7a4 elementor-widget elementor-widget-heading\" data-id=\"614cb7a4\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0644\u0648\u0627\u0632\u0645\u06cc \u06a9\u0647 \u0628\u0647 \u0622\u0646 \u0627\u062d\u062a\u06cc\u0627\u062c \u062f\u0627\u0631\u06cc\u062f<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-33bd27e5 elementor-widget elementor-widget-image\" data-id=\"33bd27e5\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-Required-Materials.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"UV-Detection-Module-Sensor-ML8511-Required-Materials.jpg\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQyMjQsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDRcL1VWLURldGVjdGlvbi1Nb2R1bGUtU2Vuc29yLU1MODUxMS1SZXF1aXJlZC1NYXRlcmlhbHMuanBnIn0%3D\">\n\t\t\t\t\t\t\t<img width=\"600\" height=\"500\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-Required-Materials.jpg\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3ce4bcdd elementor-widget elementor-widget-heading\" data-id=\"3ce4bcdd\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u0642\u0637\u0639\u0627\u062a \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 <\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7240bb74 elementor-widget elementor-widget-html\" data-id=\"7240bb74\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div class=\"table-2\">\r\n<table width=\"100%\" class=\"zebra\">\r\n<tbody>\r\n\r\n<tr>\r\n\t<td width=\"70%\">\u0628\u0631\u062f \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 UNO R3 \r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/thecaferobot.com\/store\/arduino-uno-r3\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n\t<td width=\"70%\">\u0645\u0627\u0698\u0648\u0644 \u0633\u0646\u0633\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 ML8511 \r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/thecaferobot.com\/store\/uv-detection-module-sensor-ml8511\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n\t<td width=\"70%\">\u0633\u06cc\u0645 \u062c\u0627\u0645\u067e\u0631 \u0646\u0631\u06cc \u0628\u0647 \u0645\u0627\u062f\u06af\u06cc  \r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/thecaferobot.com\/store\/40p-male-female-10cm-jumper-wire\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5a250b0d elementor-widget elementor-widget-heading\" data-id=\"5a250b0d\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-76bc5049 elementor-widget elementor-widget-html\" data-id=\"76bc5049\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div class=\"table-2\">\r\n<table width=\"100%\" class=\"zebra\">\r\n<tbody>\r\n\r\n<tr>\r\n\t<td width=\"90%\">\u0622\u0631\u062f\u0648\u06cc\u0646\u0648 IDE<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" target=\"_blank\"><i class=\"fa fa-info\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n\r\n\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-11e83ee5 elementor-widget elementor-widget-heading\" data-id=\"11e83ee5\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u0627\u0698\u0648\u0644 \u0633\u0646\u0633\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 ML8511 \u0628\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6b98249 elementor-widget elementor-widget-heading\" data-id=\"6b98249\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u06af\u0627\u0645 \u0627\u0648\u0644: \u0633\u06cc\u0645 \u0628\u0646\u062f\u06cc<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-536fe898 elementor-widget elementor-widget-text-editor\" data-id=\"536fe898\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0645\u0637\u0627\u0628\u0642 \u0645\u062f\u0627\u0631 \u0632\u06cc\u0631 \u0645\u0627\u0698\u0648\u0644 \u0631\u0627 \u0628\u0647 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0648\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-11fcb1ce elementor-widget elementor-widget-image\" data-id=\"11fcb1ce\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-circuit.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"UV-Detection-Module-Sensor-ML8511-circuit.jpg\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQyMjUsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDRcL1VWLURldGVjdGlvbi1Nb2R1bGUtU2Vuc29yLU1MODUxMS1jaXJjdWl0LmpwZyJ9\">\n\t\t\t\t\t\t\t<img width=\"800\" height=\"600\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-circuit.jpg\" class=\"attachment-large size-large\" alt=\"\u0633\u06cc\u0645 \u0628\u0646\u062f\u06cc \u0645\u062f\u0627\u0631 \u0627\u062a\u0635\u0627\u0644 ML8511 \u0628\u0647 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5e8a5d57 elementor-widget elementor-widget-heading\" data-id=\"5e8a5d57\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u06af\u0627\u0645 \u062f\u0648\u0645: \u06a9\u062f <\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a840ab2 elementor-widget elementor-widget-text-editor\" data-id=\"a840ab2\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0631\u0648\u06cc \u0622\u0631\u062f\u0648\u06cc\u0646\u0648\u06cc \u062e\u0648\u062f \u0622\u067e\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f. \u067e\u0633 \u0627\u0632 \u0622\u067e\u0644\u0648\u062f \u06a9\u062f\u060c \u067e\u0646\u062c\u0631\u0647 Serial Monitor \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-715a0986 elementor-widget elementor-widget-html\" data-id=\"715a0986\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<pre class=\"line-numbers lang-arduino\"><code>\/*\r\n  Made on Mar 15, 2021\r\n  By MehranMaleki @ Electropeak\r\n  https:\/\/electropeak.com\/learn\/\r\n*\/\r\n\r\n\/\/pin definitions\r\nint UV_OUT = A0;    \/\/Sensor Output\r\nint REF_3V3 = A1;   \/\/3.3V power on the Arduino board\r\n\r\nvoid setup()\r\n{\r\n  Serial.begin(9600);\r\n  Serial.println(&quot;ML8511 example&quot;);\r\n}\r\n\r\nvoid loop()\r\n{\r\n  int uv_Level = analogRead_average(UV_OUT);\r\n  int ref_Level = analogRead_average(REF_3V3);\r\n\r\n  \/\/Use the 3.3V power pin as a reference to get a very accurate output value from sensor\r\n  float output_Voltage = 3.3 \/ ref_Level * uv_Level;\r\n\r\n  float uvIntensity = mapfloat(output_Voltage, 0.99, 2.8, 0.0, 15.0); \/\/Convert the voltage to a UV intensity level -numbers from datasheet-\r\n\r\n  Serial.print(&quot;ML8511 output: &quot;);\r\n  Serial.print(uv_Level);\r\n\r\n  Serial.print(&quot; \/ ML8511 voltage: &quot;);\r\n  Serial.print(output_Voltage);\r\n\r\n  Serial.print(&quot; \/ UV Intensity (mW\/cm^2): &quot;);\r\n  Serial.print(uvIntensity);\r\n\r\n  Serial.println();\r\n\r\n  delay(500);\r\n}\r\n\r\n\/\/Takes an average of readings on a given pin\r\n\/\/Returns the average\r\nint analogRead_average(int pinToRead)\r\n{\r\n  int NumberOfSamples = 8;\r\n  int runningValue = 0; \r\n\r\n  for(int x = 0; x &lt; NumberOfSamples; x++)\r\n    runningValue += analogRead(pinToRead);\r\n  runningValue \/= NumberOfSamples;\r\n\r\n  return(runningValue);\r\n}\r\n\r\n\/\/The Arduino Map function but for floats\r\n\/\/From: http:\/\/forum.arduino.cc\/index.php?topic=3922.0\r\nfloat mapfloat(float x, float in_min, float in_max, float out_min, float out_max)\r\n{\r\n  return (x - in_min) * (out_max - out_min) \/ (in_max - in_min) + out_min;\r\n}\r\n<\/code><\/pre>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5741d701 elementor-widget elementor-widget-text-editor\" data-id=\"5741d701\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u062f\u0631 \u06a9\u062f \u0628\u0627\u0644\u0627 \u0627\u0632 \u067e\u0627\u06cc\u0647 A0 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0628\u0631\u0627\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062e\u0631\u0648\u062c\u06cc \u0622\u0646\u0627\u0644\u0648\u06af \u0633\u0646\u0633\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647\u00ad\u200c\u0627\u06cc\u0645. \u0647\u0645\u0686\u0646\u06cc\u0646 \u067e\u0627\u06cc\u0647 A1 \u0631\u0627 \u0646\u06cc\u0632 \u0628\u0647 \u062a\u063a\u0630\u06cc\u0647 3.3 \u0648\u0644\u062a \u0648\u0635\u0644 \u06a9\u0631\u062f\u0647\u200c \u0648 \u0627\u0632 \u0622\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0631\u0641\u0631\u0646\u0633 \u0628\u0631\u0627\u06cc \u0627\u0646\u062f\u0627\u0632\u0647\u200c\u06af\u06cc\u0631\u06cc \u062f\u0642\u06cc\u0642 \u0648\u0644\u062a\u0627\u0698 \u062e\u0631\u0648\u062c\u06cc \u0633\u0646\u0633\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645. \u062f\u0631 \u0627\u06cc\u0646 \u06a9\u062f \u0628\u0627 \u0627\u0646\u062f\u0627\u0632\u0647\u200c\u06af\u06cc\u0631\u06cc \u0648\u0644\u062a\u0627\u0698 \u062e\u0631\u0648\u062c\u06cc \u0633\u0646\u0633\u0648\u0631\u060c \u0645\u06cc\u0632\u0627\u0646 \u0634\u062f\u062a \u0646\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 \u0631\u0627 \u0628\u0631 \u062d\u0633\u0628 \u0645\u06cc\u0644\u06cc\u200c\u0648\u0627\u062a \u0628\u0631 \u0633\u0627\u0646\u062a\u06cc\u200c\u0645\u062a\u0631 \u0645\u0631\u0628\u0639 (mW\/cm<sup>2<\/sup>) \u0645\u062d\u0627\u0633\u0628\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645.<\/p><p>\u062f\u0631 \u0627\u062f\u0627\u0645\u0647\u060c \u0628\u0627 \u0631\u0648\u0634\u0646 \u06a9\u0631\u062f\u0646 \u0686\u0631\u0627\u063a\u200c\u0642\u0648\u0647 \u06af\u0648\u0634\u06cc \u0648 \u0646\u0632\u062f\u06cc\u06a9 \u06a9\u0631\u062f\u0646 \u0646\u0648\u0631 \u0622\u0646 \u0628\u0647 \u0633\u0646\u0633\u0648\u0631\u060c \u0639\u0645\u0644\u06a9\u0631\u062f \u0622\u0646 \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645.<\/p><p>\u062e\u0631\u0648\u062c\u06cc \u06a9\u062f \u0628\u0647 \u0634\u06a9\u0644 \u0632\u06cc\u0631 \u0627\u0633\u062a.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-77f84a6e elementor-widget elementor-widget-image\" data-id=\"77f84a6e\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-Serial.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"UV-Detection-Module-Sensor-ML8511-Serial.jpg\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQyMjYsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDRcL1VWLURldGVjdGlvbi1Nb2R1bGUtU2Vuc29yLU1MODUxMS1TZXJpYWwuanBnIn0%3D\">\n\t\t\t\t\t\t\t<img width=\"800\" height=\"559\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-Serial.jpg\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/section>\r\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0645\u0627\u0698\u0648\u0644 \u0633\u0646\u0633\u0648\u0631 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 ML8511 \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0644\u0648\u0627\u0632\u0645 \u0627\u0644\u06a9\u062a\u0631\u06cc\u06a9\u06cc\u060c \u0647\u0645\u0686\u0648\u0646 \u0646\u0645\u0627\u06cc\u0634\u06af\u0631\u0647\u0627\u06cc \u0631\u0627\u06cc\u0627\u0646\u0647\u060c \u0646\u0645\u0627\u06cc\u0634\u06af\u0631\u0647\u0627\u06cc \u06af\u0648\u0634\u06cc \u0647\u0645\u0631\u0627\u0647\u060c \u062a\u0644\u0648\u06cc\u0632\u06cc\u0648\u0646 \u0648 &#8230; \u0627\u0632 \u0645\u0646\u0627\u0628\u0639 \u062a\u0648\u0644\u06cc\u062f \u06a9\u0646\u0646\u062f\u0647 \u0627\u0634\u0639\u0647 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 \u0647\u0633\u062a\u0646\u062f. \u062a\u0627\u0628\u0634 \u0627\u0634\u0639\u0647 \u0645\u0627\u0648\u0631\u0627\u06cc \u0628\u0646\u0641\u0634 \u0628\u0647 \u0627\u0646\u0633\u0627\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0628\u0627\u0639\u062b \u0628\u0631\u0648\u0632 \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0628\u06cc\u0645\u0627\u0631\u06cc\u200c\u0647\u0627 \u0648 \u0633\u0648\u062e\u062a\u06af\u06cc\u200c\u0647\u0627\u06cc \u067e\u0648\u0633\u062a\u06cc \u0634\u0648\u062f. \u0628\u0647 \u0647\u0645\u06cc\u0646 \u062c\u0647\u062a\u060c \u0627\u0637\u0644\u0627\u0639 \u0627\u0632 \u0645\u06cc\u0632\u0627\u0646 \u0646\u0648\u0631 UV \u0645\u062d\u06cc\u0637 \u062d\u0627\u0626\u0632 \u0627\u0647\u0645\u06cc\u062a [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":24220,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[932,942],"tags":[4619],"platform":[1071],"bytype":[1075],"difficulty":[1077],"related_products":[4514],"featured_image_src":{"landsacpe":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-Teaser.jpg",1200,900,false],"list":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-Teaser.jpg",1200,900,false],"medium":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-Teaser.jpg",533,400,false],"full":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/04\/UV-Detection-Module-Sensor-ML8511-Teaser.jpg",1200,900,false]},"_links":{"self":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts\/24219"}],"collection":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/comments?post=24219"}],"version-history":[{"count":8,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts\/24219\/revisions"}],"predecessor-version":[{"id":24886,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts\/24219\/revisions\/24886"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/media\/24220"}],"wp:attachment":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/media?parent=24219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/categories?post=24219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/tags?post=24219"},{"taxonomy":"platform","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/platform?post=24219"},{"taxonomy":"bytype","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/bytype?post=24219"},{"taxonomy":"difficulty","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/difficulty?post=24219"},{"taxonomy":"related_products","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/related_products?post=24219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}