{"id":5173,"date":"2020-09-16T12:00:00","date_gmt":"2020-09-16T03:00:00","guid":{"rendered":"http:\/\/www.nanghi.net\/?p=5173"},"modified":"2023-11-09T19:43:17","modified_gmt":"2023-11-09T10:43:17","slug":"post_4420","status":"publish","type":"post","link":"https:\/\/www.nanghi.net\/?p=5173","title":{"rendered":"\u6e29\u6e7f\u5ea6\u30bb\u30f3\u30b5\u30fc"},"content":{"rendered":"<p>\u3000\u3053\u308c\u307e\u305f\u6b7b\u8535\u54c1\u5fa9\u6d3b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19967\" src=\"https:\/\/www.nanghi.net\/wp-content\/uploads\/2020\/09\/2020083101.jpg\" alt=\"\u6e29\u6e7f\u5ea6\u30e2\u30cb\u30bf\u30fc\uff08AM2302\uff09\" width=\"400\" height=\"300\" srcset=\"https:\/\/www.nanghi.net\/wp-content\/uploads\/2020\/09\/2020083101.jpg 400w, https:\/\/www.nanghi.net\/wp-content\/uploads\/2020\/09\/2020083101-200x150.jpg 200w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><br \/>\n\u3000<strong>\u6e29\u6e7f\u5ea6\u30e2\u30cb\u30bf\u30fc\uff08AM2302\uff09<\/strong><\/p>\n<p>\u3000\u8cfc\u5165\u3057\u3066\u304a\u3044\u3066\u653e\u7f6e\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3092\u6398\u308a\u51fa\u3057\u3066\u304d\u3066\u4f7f\u3044\u7269\u306b\u3059\u308b\u3068\u3044\u3046\u4e8b\u3092\u6700\u8fd1\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002\u3053\u306e1-Wire\u3067\u6e2c\u5b9a\u30c7\u30fc\u30bf\u3092\u30c7\u30b8\u30bf\u30eb\u30c7\u30fc\u30bf\u3067\u53d6\u51fa\u305b\u308b\u6e29\u6e7f\u5ea6\u30bb\u30f3\u30b5\u30fcAM2302\u3082\u305d\u306e\u3046\u3061\u306e\uff11\u3064\u3067\u3059\u3002<br \/>\n\u3000\u30c7\u30b8\u30bf\u30eb\u30c7\u30fc\u30bf\u3067\u53d6\u51fa\u305b\u308b\u306e\u3067\u30a2\u30ca\u30ed\u30b0\u51fa\u529b\u304b\u3089A\/D\u5909\u63db\u3059\u308b\u5fc5\u8981\u3082\u7121\u304f\u3001\u30bb\u30f3\u30b5\u30fc\u306e\u7cbe\u5ea6\u304c\u826f\u3051\u308c\u3070\u5909\u63db\u8aa4\u5dee\u3082\u7121\u3044\u305f\u3081\u6e2c\u5b9a\u306b\u639b\u3051\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b3\u30b9\u30c8\u304c\u4f4e\u6e1b\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3000\u3053\u308c\u307e\u305fArduino\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u304c\u5148\u4eba\u306e\u65b9\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u6709\u96e3\u304f\u5229\u7528\u3055\u305b\u3066\u9802\u304d\u307e\u3057\u305f\uff08GitHub:<a href=\"https:\/\/github.com\/adafruit\/DHT-sensor-library\" target=\"_blank\" rel=\"noopener\">DHT-sensor-library<\/a>\uff09\u3002<br \/>\n\u3000\u4f7f\u3044\u65b9\u306f\u81f3\u6975\u7c21\u5358\u904e\u304e\u3066\u62cd\u5b50\u629c\u3051\u3059\u308b\u30ec\u30d9\u30eb\u3067\u3059\u3002<br \/>\n\u3000\u53d6\u5f97\u3057\u305f\u30c7\u30b8\u30bf\u30eb\u30c7\u30fc\u30bf\u3082\u3061\u3083\u3093\u3068\u6e29\u5ea6\u30fb\u6e7f\u5ea6\u306e\u6570\u5024\u306b\u5909\u63db\u3057\u305f\u5024\u3082\u5f97\u3089\u308c\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u3064\u304b\u3063\u3066\u30b5\u30f3\u30d7\u30eb\u30b9\u30b1\u30c3\u30c1\u3092\u53c2\u8003\u306b\u30b5\u30af\u30c3\u3068\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\uff08\u53c2\u8003\u30b9\u30b1\u30c3\u30c1\u306f<span class=\"mt-enclosure mt-enclosure-file\" style=\"display: inline;\"><a href=\"\/wp-content\/uploads\/2022\/01\/ic2-lcd.ino\" target=\"_blank\" rel=\"noopener\" download=\"\">\u3053\u3061\u3089<\/a><\/span>\uff09<br \/>\n\u3000float\u578b\u306e\u5909\u6570\u3092\u305d\u306e\u307e\u307eprint()\u3059\u308b\u3068\u5c0f\u6570\u70b9\u4ee5\u4e0b\u304c\uff12\u6841\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u30bb\u30f3\u30b5\u30fc\u306e\u89e3\u50cf\u5ea6\u306f0.1\u2103\/0.1%\u3067\u3059\u306e\u3067print(var,1)\u306e\u3088\u3046\u306b\u5c0f\u6570\u70b9\u4ee5\u4e0b\u6841\u6570\u3092\uff11\u6841\u306b\u6307\u5b9a\u3057\u3066\u8868\u793a\u51fa\u529b\u3057\u307e\u3059\u3002<br \/>\n\u3000\u6e7f\u5ea6\u306e0.1%\u304c\u5fc5\u8981\u304b\u3068\u8a00\u3046\u3068\u5fc5\u8981\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u6e29\u5ea6\u306e\u65b9\u304c0.1\u2103\u307e\u3067\u8868\u793a\u3057\u3066\u3044\u308b\u306e\u3067\u6574\u6570\u5024\u3067\u306f\u898b\u6620\u3048\u3057\u307e\u305b\u3093\u306e\u3067\u8868\u8a18\u3092\u7d71\u4e00\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3000\u6e29\u5ea6\u3068\u6e7f\u5ea6\u304c\u5224\u308c\u3070\u4e0d\u5feb\u6307\u6570\u3082\u7b97\u51fa\u3067\u304d\u307e\u3059\u306e\u3067\u3064\u3044\u3067\u3067\u8a08\u7b97\u3057\u3066\u8868\u793a\u3057\u307e\u3059\u3002<br \/>\n\u3000\u3044\u308d\u3044\u308d\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u6e29\u5ea6\u306f\u5909\u5316\u306e\u5bfe\u5fdc\u304c\u3084\u3084\u9045\u3044\u3088\u3046\u3067\u3059\u3002\u606f\u3092\u5439\u304d\u304b\u3051\u3066\u307f\u308b\u3068\u6e7f\u5ea6\u306f\u307b\u307c\uff12\u79d2\u9593\u9694\u306e\u6e2c\u5b9a\u3067\u3082\u3069\u3093\u3069\u3093\u6570\u5024\u304c\u5909\u308f\u308b\u306e\u3067\u3059\u304c\u3001\u6e29\u5ea6\u306e\u5909\u5316\u306f\u3084\u3084\u7de9\u6162\u3067\u3059\u3002\u305d\u308c\u307b\u3069\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u6027\u3092\u6c42\u3081\u308b\u7269\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u307e\u3042\u554f\u984c\u7121\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3053\u308c\u307e\u305f\u6b7b\u8535\u54c1\u5fa9\u6d3b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3002 \u3000\u6e29\u6e7f\u5ea6\u30e2\u30cb\u30bf\u30fc\uff08AM2302\uff09 \u3000\u8cfc\u5165\u3057\u3066\u304a\u3044\u3066\u653e\u7f6e\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3092\u6398\u308a\u51fa\u3057\u3066\u304d\u3066\u4f7f\u3044\u7269\u306b\u3059\u308b\u3068\u3044\u3046\u4e8b\u3092\u6700\u8fd1\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002\u3053\u306e1-Wire\u3067\u6e2c\u5b9a\u30c7\u30fc\u30bf\u3092\u30c7\u30b8\u30bf\u30eb\u30c7\u30fc\u30bf\u3067\u53d6\u51fa\u305b\u308b\u6e29\u6e7f\u5ea6<\/p>\n","protected":false},"author":1,"featured_media":19967,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5212,5213],"tags":[4425,1650,4427,4426],"class_list":["post-5173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-device","tag-am2302","tag-arduino","tag-github","tag-4426"],"_links":{"self":[{"href":"https:\/\/www.nanghi.net\/index.php?rest_route=\/wp\/v2\/posts\/5173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nanghi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nanghi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nanghi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nanghi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5173"}],"version-history":[{"count":4,"href":"https:\/\/www.nanghi.net\/index.php?rest_route=\/wp\/v2\/posts\/5173\/revisions"}],"predecessor-version":[{"id":23834,"href":"https:\/\/www.nanghi.net\/index.php?rest_route=\/wp\/v2\/posts\/5173\/revisions\/23834"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nanghi.net\/index.php?rest_route=\/wp\/v2\/media\/19967"}],"wp:attachment":[{"href":"https:\/\/www.nanghi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nanghi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nanghi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}