{"id":690,"date":"2015-04-16T23:08:29","date_gmt":"2015-04-16T21:08:29","guid":{"rendered":"https:\/\/eugene.dullaard.nl\/?p=690"},"modified":"2015-05-10T19:25:49","modified_gmt":"2015-05-10T17:25:49","slug":"testing-fc28-hygrometer-with-arduino","status":"publish","type":"post","link":"https:\/\/eugene.dullaard.nl\/?p=690","title":{"rendered":"Testing FC-28 Hygrometer with Arduino"},"content":{"rendered":"<p>A simple sketch to check what the values are that are recorded on the analog pins of one or more FC-28 Hygrometer(s), it might work with any other sensor that delivers analog output as well. In respect to the Hygrometer you might record the values it gives when dry and when soaked\/wet. Then you can use those to calculate the trigger values for your own sketch. These units tend to corrode which does affect the values produced so this sketch can be used to recalculate them.<\/p>\n<p><a href=\"https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/fc28.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-692 size-large\" src=\"https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/fc28-1024x597.jpg\" alt=\"fc28\" width=\"474\" height=\"276\" srcset=\"https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/fc28.jpg 1024w, https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/fc28-150x87.jpg 150w, https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/fc28-300x175.jpg 300w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/a><a href=\"https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/fc28sketch.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-702\" src=\"https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/fc28sketch.jpg\" alt=\"fc28sketch\" width=\"711\" height=\"373\" srcset=\"https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/fc28sketch.jpg 711w, https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/fc28sketch-150x79.jpg 150w, https:\/\/eugene.dullaard.nl\/wp-content\/uploads\/fc28sketch-300x157.jpg 300w\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" \/><\/a><\/p>\n<pre class=\"brush: cpp; collapse: false; title: ; notranslate\" title=\"\">\r\n\/\/Sketch to test for analog hygrometer values with FC28 Hygrometer\r\n\/\/for one or more FC28 units. Output is visible through serial monitor.\r\n\r\n\/\/This code is free to use.\r\n\/\/Author : Eugene Dullaard\r\n\/\/https:\/\/eugene.dullaard.nl\/?p=690\r\n\r\n\/\/Setting variables\r\nint analogStartPin = 0;  \/\/Analog Start Pin, usually 0 for A0.\r\nint units = 3;           \/\/Amount of FC28 units to test,\r\n                         \/\/these units need to be connected on\r\n                         \/\/the analog ports following StartPin.\r\n\/\/temp variables\r\nint x;\r\nint y;\r\n\r\nvoid setup (){\r\n  Serial.begin(9600);\r\n  Serial.println(&quot;Soil moisture sensor input&quot;);\r\n}\r\n\r\nvoid loop ()\r\n{\r\n  Serial.println();\r\n\r\n  for (x = analogStartPin; x &lt; analogStartPin + units; x++) {\r\n    y=analogRead(x);\r\n    Serial.print(&quot;Analog &quot;); Serial.print(x); Serial.print(&quot;:&quot;);\r\n    Serial.println(y);\r\n  }\r\n\r\n  delay (1000);\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A simple sketch to check what the values are that are recorded on the analog pins of one or more FC-28 Hygrometer(s), it might work with any other sensor that delivers analog output as well. In respect to the Hygrometer you might record the values it gives when dry and when soaked\/wet. Then you can &hellip; <a href=\"https:\/\/eugene.dullaard.nl\/?p=690\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Testing FC-28 Hygrometer with Arduino<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92],"tags":[95,94,93],"class_list":["post-690","post","type-post","status-publish","format-standard","hentry","category-arduino","tag-arduino","tag-sensor","tag-sketch"],"_links":{"self":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts\/690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=690"}],"version-history":[{"count":8,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts\/690\/revisions"}],"predecessor-version":[{"id":706,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=\/wp\/v2\/posts\/690\/revisions\/706"}],"wp:attachment":[{"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eugene.dullaard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}