{"id":29694,"date":"2017-09-16T23:22:49","date_gmt":"2017-09-16T14:22:49","guid":{"rendered":"http:\/\/kako.com\/blog\/?p=29694"},"modified":"2017-10-20T01:18:46","modified_gmt":"2017-10-19T16:18:46","slug":"arduino%e3%81%ab%e6%b0%b4%e4%bd%8d%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bcwater-detect-sensor%e3%82%92%e7%b9%8b%e3%81%84%e3%81%a7%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"http:\/\/kako.com\/blog\/?p=29694","title":{"rendered":"Arduino\u306b\u6c34\u4f4d\u30bb\u30f3\u30b5\u30fc(water detect sensor)\u3092\u7e4b\u3044\u3067\u307f\u305f"},"content":{"rendered":"<p>Arduino\u306b\u6c34\u4f4d\u30bb\u30f3\u30b5\u30fc(water detect sensor)\u3092\u7e4b\u3044\u3067\u307f\u305f\u3002<\/p>\n<p><a href=\"http:\/\/kako.com\/blog\/?p=29680\">\u8d85\u97f3\u6ce2\u6d17\u6d44\u6a5f\u306e\u81ea\u52d5\u9023\u7d9a\u99c6\u52d5\u3092\u3055\u305b\u308b<\/a>\u969b\u306e<a href=\"http:\/\/kako.com\/blog\/?p=29689\">\u300c\u7a7a\u711a\u304d\u300d<\/a>\u3092\u9632\u6b62\u3059\u308b\u305f\u3081\u306b\u3001\u6c34\u4f4d\u3092\u76e3\u8996\u3057\u3066\u3001\u6c34\u304c\u7121\u304f\u306a\u3063\u3066\u304d\u305f\u3089\u505c\u6b62\u3055\u305b\u305f\u3044\u3002<br \/>\n\u305d\u3053\u3067\u3001\u6c34\u4f4d\u30bb\u30f3\u30b5\u30fc\u3092\u4f7f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002<br \/>\n<a href=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/09\/Rimg0005-4.jpg\"><img loading=\"lazy\" src=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/09\/Rimg0005-4.jpg\" alt=\"\" width=\"640\" height=\"480\" class=\"alignnone size-full wp-image-29695\" srcset=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/09\/Rimg0005-4.jpg 640w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/09\/Rimg0005-4-300x225.jpg 300w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/09\/Rimg0005-4-624x468.jpg 624w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Arduino\u7528\u306e\u6c34\u4f4d\u30bb\u30f3\u30b5\u30fc\u304cAmazon\u3067\u7570\u5e38\u306b\u5b89\u304f\u58f2\u3063\u3066\u3044\u308b\u306e\u3067\u8cfc\u5165\u3057\u305f\u3002<br \/>\n<a href=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/09\/Rimg0008-2.jpg\"><img loading=\"lazy\" src=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/09\/Rimg0008-2.jpg\" alt=\"\" width=\"640\" height=\"480\" class=\"alignnone size-full wp-image-29696\" srcset=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/09\/Rimg0008-2.jpg 640w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/09\/Rimg0008-2-300x225.jpg 300w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2017\/09\/Rimg0008-2-624x468.jpg 624w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\n<a target=\"_blank\" href=\"https:\/\/www.amazon.co.jp\/gp\/product\/B01JKQ3W0Y\/ref=as_li_tl?ie=UTF8&#038;camp=247&#038;creative=1211&#038;creativeASIN=B01JKQ3W0Y&#038;linkCode=as2&#038;tag=gid023014-22&#038;linkId=b178645539671fae1b0a8e5c545d7d19\">Rasbee \u691c\u51fa\u306e\u6c34\u30bb\u30f3\u30b5\u30fc \u6c34\u4f4d \u30bb\u30f3\u30b5\u30fc \u6df1\u3055 \u6c34\u611f\u77e5\u30bb\u30f3\u30b5 Arduino 1\u500b [\u4e26\u884c\u8f38\u5165\u54c1]<\/a><img loading=\"lazy\" src=\"\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=gid023014-22&#038;l=am2&#038;o=9&#038;a=B01JKQ3W0Y\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/>(Amazon)<br \/>\n<!--more--><\/p>\n<p>2\u7a2e\u985e\u8cfc\u5165\u3057\u305f\u3002<br \/>\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&#038;t=gid023014-22&#038;m=amazon&#038;o=9&#038;p=8&#038;l=as1&#038;IS2=1&#038;detail=1&#038;asins=B01JKQ3W0Y&#038;linkId=33008acab6030bfa8b356f53f4822f5c&#038;bc1=000000&#038;lt1=_blank&#038;fc1=333333&#038;lc1=0066c0&#038;bg1=ffffff&#038;f=ifr\"><br \/>\n    <\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&#038;t=gid023014-22&#038;m=amazon&#038;o=9&#038;p=8&#038;l=as1&#038;IS2=1&#038;detail=1&#038;asins=B010GX91C8&#038;linkId=03647da14a3aa4441882d7753165dc65&#038;bc1=000000&#038;lt1=_blank&#038;fc1=333333&#038;lc1=0066c0&#038;bg1=ffffff&#038;f=ifr\"><br \/>\n    <\/iframe><br \/>\n\u7247\u65b9\u306f\u30c1\u30c3\u30d7\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\u306e\u3088\u3046\u306a\u90e8\u54c1\u304c\u8f09\u3063\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u3082\u3046\u7247\u65b9\u306f\u30c1\u30c3\u30d7\u62b5\u6297\u3057\u304b\u57fa\u677f\u306b\u8f09\u3063\u3066\u3044\u306a\u3044\u3002\u62b5\u6297\u5206\u5727\u3057\u3066\u3044\u308b\u3060\u3051\u306e\u3088\u3046\u3060\u3002<\/p>\n<p>\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf(\u3042\u308b\u3044\u306f\u30a2\u30f3\u30d7?)\u304c\u8f09\u3063\u3066\u3044\u308b\u65b9\u3092\u8a66\u3057\u306b\u4f7f\u3063\u3066\u307f\u308b\u3002<br \/>\n\u4f8b\u306b\u3088\u3063\u3066\u3001\u3053\u306e\u57fa\u677f\u306e\u8a73\u7d30\u304c\u4e0d\u660e\u3067\u3061\u3087\u3063\u3068\u56f0\u3063\u305f\u3002<\/p>\n<p>\u691c\u7d22\u3057\u3066\u63a2\u3059\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u30b5\u30a4\u30c8\u306e\u8a18\u4e8b\u304c\u898b\u3064\u304b\u308b\u3002<br \/>\n\u2192 <a href=\"https:\/\/www.tutorialspoint.com\/arduino\/arduino_water_detector_sensor.htm\">Arduino Water Detector \/ Sensor<\/a><\/p>\n<p>\u3053\u308c\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u305f\u306e\u3060\u304c\u3001\u6b63\u3057\u304f\u306a\u3044\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u65b9\u6cd5\u3060\u3068Arduino\u306e\u30c7\u30b8\u30bf\u30eb\u306e\u30d4\u30f3\u3067High\/Low\u3092\u5165\u529b\u3057\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u3053\u308c\u3060\u3068\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3002<br \/>\n\u306a\u305c\u306a\u3089\u3001\u3053\u306ewater sensor\u306f\u5b9f\u969b\u306b\u306f\u30a2\u30ca\u30ed\u30b0\u96fb\u5727\u3092\u51fa\u529b\u3057\u3066\u3044\u308b\u304b\u3089\u3060\u3002<br \/>\n\u81ea\u5206\u306f\u3001\u30c6\u30b9\u30bf\u30fc\u3067\u73fe\u7269\u306e\u96fb\u5727\u3092\u8abf\u3079\u3066\u78ba\u8a8d\u3057\u305f\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001\u4e0a\u8a18\u306e\u8a18\u4e8b\u306e\u914d\u7dda\u56f3\u306e\u300cS\u300d\u3068\u3044\u3046\u30bb\u30f3\u30b5\u30fc\u5074\u306e\u7aef\u5b50\u306f\u3001Arduino\u306eA0\u3068\u3044\u3046\u30a2\u30ca\u30ed\u30b0\u5165\u529b\u7528\u306e\u30d4\u30f3\u306b\u63a5\u7d9a\u3057\u305f\u3002<br \/>\n\u300c+\u300d\u3001\u300c-\u300d\u3068\u3044\u3046\u7aef\u5b50\u306f\u3001Arduino\u306e\u57fa\u677f\u306e+5V\u3068GND\u306b\u63a5\u7d9a\u3057\u305f\u3002<br \/>\n(\u3042\u3068\u3001\u4e0a\u8a18\u306e\u8a18\u4e8b\u306e\u6587\u7ae0\u3060\u3068\u7aef\u5b50\u540d\u306bVs\u3068\u304b\u7d1b\u3089\u308f\u3057\u3044\u540d\u524d\u304c\u66f8\u3044\u3066\u3042\u308b\u304c\u3001\u4f55\u304b\u306e\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u6642\u306e\u30df\u30b9\u306a\u306e\u3060\u308d\u3046\u3002)<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u30bb\u30f3\u30b5\u30fc\u306e\u30a2\u30ca\u30ed\u30b0\u5024\u3092\u53d6\u308a\u8fbc\u3080\u305f\u3081\u306e\u30b3\u30fc\u30c9\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nvoid setup() {\r\n  Serial.begin(9600);\r\n}\r\n\r\nvoid loop() {\r\n  int sensorValue;\r\n  sensorValue = analogRead(A0);\r\n  Serial.print(&quot;sensor = &quot;);\r\n  Serial.println(sensorValue);\r\n  delay(10);\r\n}\r\n<\/pre>\n<p>\u3042\u3068\u306f\u3001\u30ea\u30ec\u30fc\u30dc\u30fc\u30c9\u306e\u5236\u5fa1\u7528\u306e\u30b3\u30fc\u30c9\u3068\u5408\u4f53\u3055\u305b\u3066\u3001sensorValue\u304c\u95be\u5024\u3088\u308a\u4e0a\u304b\u4e0b\u304b\u3092\u5224\u5b9a\u3057\u3066\u3001\u52d5\u4f5c\u3092\u30b9\u30c8\u30c3\u30d7\u3055\u305b\u308c\u3070\u3088\u3044\u3002<\/p>\n<p>\u3064\u3044\u3067\u3001\u30b9\u30c8\u30c3\u30d7\u6642\u306b\u306f\u3001\u8b66\u544a\u97f3\u3092tone()\u3092\u4f7f\u3063\u3066\u51fa\u3059\u3088\u3046\u306b\u3057\u305f\u3089\u3088\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arduino\u306b\u6c34\u4f4d\u30bb\u30f3\u30b5\u30fc(water detect sensor)\u3092\u7e4b\u3044\u3067\u307f\u305f\u3002 \u8d85\u97f3\u6ce2\u6d17\u6d44\u6a5f\u306e\u81ea\u52d5\u9023\u7d9a\u99c6\u52d5\u3092\u3055\u305b\u308b\u969b\u306e\u300c\u7a7a\u711a\u304d\u300d\u3092\u9632\u6b62\u3059\u308b\u305f\u3081\u306b\u3001\u6c34\u4f4d\u3092\u76e3\u8996\u3057\u3066\u3001\u6c34\u304c\u7121\u304f\u306a\u3063\u3066\u304d\u305f\u3089\u505c\u6b62\u3055\u305b\u305f\u3044\u3002 \u305d\u3053\u3067\u3001\u6c34\u4f4d\u30bb\u30f3 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/29694"}],"collection":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29694"}],"version-history":[{"count":6,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/29694\/revisions"}],"predecessor-version":[{"id":30376,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/29694\/revisions\/30376"}],"wp:attachment":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29694"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}