{"id":1563,"date":"2020-10-21T14:59:25","date_gmt":"2020-10-21T05:59:25","guid":{"rendered":"https:\/\/www.rocher.kyoto.jp\/arbr\/?p=1563"},"modified":"2020-10-21T14:59:25","modified_gmt":"2020-10-21T05:59:25","slug":"co2%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bcccs811%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc","status":"publish","type":"post","link":"https:\/\/www.rocher.kyoto.jp\/arbr\/?p=1563","title":{"rendered":"CO2\u30bb\u30f3\u30b5\u30fcCCS811\u306e\u30a8\u30e9\u30fc"},"content":{"rendered":"\n<p>\u5148\u65e5\u304b\u3089\u7a3c\u52d5\u3057\u59cb\u3081\u305f\u5e97\u306eCO2\u30bb\u30f3\u30b5\u30fc\u3067\u4f7f\u3063\u3066\u3044\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u306eCCS811\u3060\u3051\u3069\u3001\u30a8\u30e9\u30fc\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u96fb\u6e90\u5165\u308c\u76f4\u305b\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u5171\u306b\u843d\u3061\u3066\u3044\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pi@raspberrypi:~\/ccs811 $ sudo systemctl status ccs811.service\n\u25cf ccs811.service - ccs811 moniter Daemon\nLoaded: loaded (\/home\/pi\/ccs811\/ccs811.service; enabled; vendor preset: enabled)\nActive: active (running) since Wed 2020-10-21 13:12:40 JST; 4s ago\nMain PID: 22651 (python3)\nCGroup: \/system.slice\/ccs811.service\n\u2514\u250022651 \/home\/pi\/ccs811\/.env\/bin\/python3 \/home\/pi\/ccs811\/ccs811.py\nOct 21 13:12:45 raspberrypi python3[22651]: Traceback (most recent call last):\nOct 21 13:12:45 raspberrypi python3[22651]: File \"\/home\/pi\/ccs811\/ccs811.py\", line 79, in\nOct 21 13:12:45 raspberrypi python3[22651]: main()\nOct 21 13:12:45 raspberrypi python3[22651]: File \"\/home\/pi\/ccs811\/ccs811.py\", line 60, in main\nOct 21 13:12:45 raspberrypi python3[22651]: wrapper = CCSWrapper()\nOct 21 13:12:45 raspberrypi python3[22651]: File \"\/home\/pi\/ccs811\/ccs811.py\", line 18, in <strong>init<\/strong>\nOct 21 13:12:45 raspberrypi python3[22651]: self.ccs811 = adafruit_ccs811.CCS811(self.i2c)\nOct 21 13:12:45 raspberrypi python3[22651]: File \"\/home\/pi\/ccs811\/.env\/lib\/python3.7\/site-packages\/adafruit_ccs811.py\", line 121, in <strong>init<\/strong>\nOct 21 13:12:45 raspberrypi python3[22651]: \"Device returned a error! Try removing and reapplying power to \"\nOct 21 13:12:45 raspberrypi python3[22651]: RuntimeError: <strong>Device returned a error! Try removing and reapplying power to the device and running the code agai<\/strong><\/pre>\n\n\n\n<p>\u81ea\u52d5\u3067onn\/off\u3057\u3088\u3046\u3068\u8003\u3048\u308b\u3068\u3001<a href=\"https:\/\/cdn.sparkfun.com\/assets\/2\/4\/2\/9\/6\/CCS811_Datasheet.pdf\">\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8<\/a>\u307f\u308b\u3068\u6700\u5927\u306754 mA(\u5e38\u6642\u89b3\u6e2c\u306e\u30e2\u30fc\u30c91\u3060\u306830 mA\u306a\u306e\u3067\u5927\u62b5\u306f\u3053\u3063\u3061\u3067\u8003\u3048\u3066\u3082OK\u304b\u3082)\u306a\u306e\u3067GPIO\u306eoutput\u76f4\u3067on\/off\u304d\u308a\u304b\u3048\u306f\u7121\u7406\u3002<\/p>\n\n\n\n<p> \u7121\u4eba\u3067\u518d\u8d77\u52d5\u304b\u3051\u3088\u3046\u3068\u3059\u308b\u3068\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\u3082\u5fc5\u8981\u304b\u306a\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u304b\u3089\u7a3c\u52d5\u3057\u59cb\u3081\u305f\u5e97\u306eCO2\u30bb\u30f3\u30b5\u30fc\u3067\u4f7f\u3063\u3066\u3044\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u306eCCS811\u3060\u3051\u3069\u3001\u30a8\u30e9\u30fc\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u96fb\u6e90\u5165\u308c\u76f4\u305b\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u5171\u306b\u843d\u3061\u3066\u3044\u305f\u3002 pi@raspberrypi:~\/ccs811 $ sudo syst [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118,117],"tags":[],"class_list":["post-1563","post","type-post","status-publish","format-standard","hentry","category-118","category-117"],"_links":{"self":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1563"}],"version-history":[{"count":1,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1563\/revisions"}],"predecessor-version":[{"id":1564,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1563\/revisions\/1564"}],"wp:attachment":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}