{"id":2269,"date":"2019-10-25T00:58:36","date_gmt":"2019-10-24T15:58:36","guid":{"rendered":"http:\/\/androiphone.uvs.jp\/?p=2269"},"modified":"2020-05-14T13:00:20","modified_gmt":"2020-05-14T04:00:20","slug":"%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a4-%e6%b0%97%e5%9c%a7%e3%83%bb%e6%b0%97%e6%b8%a9%e3%83%bb%e6%b9%bf%e5%ba%a6%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bcbme280%e3%82%92%e3%81%a4%e3%81%aa%e3%81%92%e3%81%a6","status":"publish","type":"post","link":"https:\/\/androiphone.uvs.jp\/?p=2269","title":{"rendered":"[\u30e9\u30ba\u30d1\u30a4] \u6c17\u5727\u30fb\u6c17\u6e29\u30fb\u6e7f\u5ea6\u30bb\u30f3\u30b5\u30fc(BME280)\u3092\u3064\u306a\u3052\u3066Python3\u3067\u8868\u793a\u3055\u305b\u308b"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">\u3000\u6700\u8fd1\u30bb\u30f3\u30b5\u30fc\u3092\u8cb7\u3044\u3042\u3055\u3063\u3066\u3044\u307e\u3059\u3002\u3067\u3082\u3001\u56fd\u5185\u306e\u306f\u304a\u9ad8\u3044\u306e\u3067\u3001<strong><span style=\"font-size: 18pt; color: #ff6600;\">\u4e2d\u56fd\u767a\u9001\u3084\u53f0\u6e7e\u767a\u9001\u306e\u6fc0\u5b89\u30bb\u30f3\u30b5\u30fc<\/span><\/strong>\u3092\u8cb7\u3063\u3066\u8a66\u3059\u904a\u3073\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3053\u306e\u65b9\u6cd5\u306b\u306f\u96e3\u70b9\u304c\u3042\u3063\u3066\u3001\u3044\u3064\u5c4a\u304f\u304b\u308f\u304b\u3089\u306a\u3044<strong><span style=\"font-size: 18pt; color: #ff0000;\">\u300e\u6c38\u9060\u306b\u304a\u5f85\u3061\u304f\u3060\u3055\u3044\u300f\u653e\u7f6e\u30d7\u30ec\u30fc<\/span><\/strong>\u5f8c\u3001\u5fd8\u308c\u305f\u9803\u306b\u5c4a\u3044\u3066\u3001\u306a\u3093\u3060\u3053\u308c\uff1f\u7684\u306a\u96f0\u56f2\u6c17\u306e\u4e2d\u3001\u958b\u5c01\u3059\u308b\u3068\u601d\u3044\u51fa\u3057\u3066\u3001\u30b2\u30fc\u30e0\u518d\u958b\u3068\u306a\u308a\u307e\u3059w<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3053\u306e\u30bb\u30f3\u30b5\u30fc\u3082\u305d\u306e\u4e00\u3064\u3067<strong><span style=\"font-size: 18pt; color: #0000ff;\">20\u65e5<\/span><\/strong>\u304b\u304b\u3063\u3066\u3001\u306f\u308b\u3070\u308b\u53f0\u6e7e\u304b\u3089\u3084\u3063\u3066\u304d\u305f\u3002\u3082\u3063\u3068\u65e9\u304f\u3057\u305f\u3044\u4eba\u306f\u3001\u30b9\u30a4\u30c3\u30c1\u30b5\u30a4\u30a8\u30f3\u30b9\u3055\u3093\u304b\u3089\u3082\u767a\u58f2\u3055\u308c\u3066\u304a\u308a\u3001Amazon\u3067\u691c\u7d22\u3057\u3066\u3082\u56fd\u5185\u767a\u9001\u306e\u304c\u3044\u3063\u3071\u3044\u51fa\u3066\u304f\u308b\u304b\u3089\u305d\u3053\u304b\u3089\u8cb7\u3063\u3066\u306d\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">I2C\u63a5\u7d9a\u3067\u3001\u6c17\u6e29\u3001\u6e7f\u5ea6\u3001\u6c17\u5727\u304c\u6e2c\u308c\u308b\u3002\u30b9\u30a4\u30c3\u30c1\u30b5\u30a4\u30a8\u30f3\u30b9\u3055\u3093\u304c\u3001Python\u7528\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u308b\u307f\u305f\u3044\u3067\u3001\u3044\u308d\u3093\u306a\u3068\u3053\u308d\u3067\u7d39\u4ecb\u3055\u308c\u3066\u308b\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/qiita.com\/na59ri\/items\/6dadb1c9293eb41c1e5d\" data-lkc-id=\"842\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=qiita.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">Qiita<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">1 User<\/div> <div class=\"lkc-sns-po\">2 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fqiita.com%2Fna59ri%2Fitems%2F6dadb1c9293eb41c1e5d?w=100\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Raspberry pi 3 \u4e0a\u3067\u3001SWITCH SCIENCE BME280 \u3092\u52d5\u304b\u3057\u3066\u307f\u305f - Qiita<\/div><div class=\"lkc-url\" title=\"https:\/\/qiita.com\/na59ri\/items\/6dadb1c9293eb41c1e5d\">https:\/\/qiita.com\/na59ri\/items\/6dadb1c9293eb41c1e5d<\/div><div class=\"lkc-excerpt\">\u306f\u3058\u3081\u306bRaspberry pi 3\u306e\u96fb\u5b50\u5de5\u4f5c\u306b\u30cf\u30de\u308a\u3001\u90e8\u5c4b\u306e\u6e29\u5ea6\u3001\u6e7f\u5ea6\u3001\u6c17\u5727\u3092\u53d6\u3063\u3066\u904a\u3093\u3067\u307f\u3088\u3046\u3068\u8a00\u3046\u3053\u3068\u3067\u3001\u300cSWITCH SCIENCE BME280\u300d\u3092\u8cfc\u5165\u3057\u3066\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u52d5\u304b\u3059\u3053\u3068\u30e1\u30a4\u30f3\u3067\uff01\uff01\uff01\u69cb\u6210...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div><\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/deviceplus.jp\/hobby\/raspberrypi_entry_039\/\" data-lkc-id=\"843\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=deviceplus.jp\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">Device Plus - \u30c7\u30d0\u30d7\u30e9<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">36 Users<\/div> <div class=\"lkc-sns-po\">175 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/androiphone.uvs.jp\/wp-content\/uploads\/pz-linkcard\/cache\/134c1be2f686694b29ea6d113312e7404038dfa4d8a3a2aeba282ea86b46c7ce.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">\u30e9\u30ba\u30d9\u30ea\u30fc\u30d1\u30a4\u3067\u6e29\u5ea6\u30fb\u6e7f\u5ea6\u30fb\u6c17\u5727\u3092\u307e\u3068\u3081\u3066\u53d6\u5f97\uff01AE-BME280\u3067IC2\u901a\u4fe1 | Device P...<\/div><div class=\"lkc-url\" title=\"https:\/\/deviceplus.jp\/hobby\/raspberrypi_entry_039\/\">https:\/\/deviceplus.jp\/hobby\/raspberrypi_entry_039\/<\/div><div class=\"lkc-excerpt\">\u4eca\u56de\u306f\u65b0\u3057\u3044\u90e8\u54c1\u3092\u4f7f\u3063\u3066\u306e\u96fb\u5b50\u5de5\u4f5c\uff01\u30e9\u30ba\u30d9\u30ea\u30fc\u30d1\u30a4\u3067\u6e29\u5ea6\u30fb\u6e7f\u5ea6\u30fb\u6c17\u5727\u3092\u4e00\u6c17\u306b\u53d6\u5f97\u3067\u304d\u308b\u3001\u3068\u3066\u3082\u4fbf\u5229\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u30ad\u30c3\u30c8\u306e\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3000\u30b9\u30a4\u30c3\u30c1\u30b5\u30a4\u30a8\u30f3\u30b9\u3055\u3093\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u3082\u3088\u304b\u3063\u305f\u3093\u3067\u3059\u304c\u3001\u305d\u308c\u3058\u3083\u3001\u4ed6\u306e\u30d6\u30ed\u30b0\u306e\u307b\u3046\u304c\u61c7\u5207\u4e01\u5be7\u306b\u8aac\u660e\u3055\u308c\u3066\u3044\u3066\u3001\u3053\u3053\u306e\u30a2\u30c9\u30d0\u30f3\u30c6\u30fc\u30b8\u304c\u306a\u3044\u306e\u3067\u3001\u4eca\u56de\u306f\u4e0b\u306egithub\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u76ee\u6a19\u306fRaspbian\u306e\u6a19\u6e96\u3067\u5165\u3063\u3066\u3044\u308bPython\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u30a8\u30c7\u30a3\u30bf\u300cMu\u300d(Python3)\u3067\u6c17\u6e29\u30fb\u6e7f\u5ea6\u30fb\u5927\u6c17\u5727\u3092BME280\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u308f\u305b\u3066\u3044\u305f\u3060\u304d<span style=\"font-size: 18pt;\"><del>\u624b\u629c\u304d\u3057\u3066<\/del><\/span>\u8868\u793a\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/github.com\/rm-hull\/bme280\" data-lkc-id=\"844\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=github.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">GitHub<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-po\">5 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/androiphone.uvs.jp\/wp-content\/uploads\/pz-linkcard\/cache\/4fe13a9d156a8da5c3fbbb494e32d08acbe236381a5c10237b59c1864c4e19c2.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">GitHub - rm-hull\/bme280: Raspberry PI schematics &amp; python module to drive a B...<\/div><div class=\"lkc-url\" title=\"https:\/\/github.com\/rm-hull\/bme280\">https:\/\/github.com\/rm-hull\/bme280<\/div><div class=\"lkc-excerpt\">Raspberry PI schematics &amp; python module to drive a Bosch BME280 digital sensor module - GitHub - rm-hull\/bme280: Raspberry PI schematics &amp; python module to drive a Bosch BME280 digital sens...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div><\/span><\/p>\n<p><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/img_0597-e1571990085627.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2272\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/img_0597-e1571990085627-203x300.jpg\" alt=\"\" width=\"203\" height=\"300\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/img_0597-e1571990085627-203x300.jpg 203w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/img_0597-e1571990085627-768x1136.jpg 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/img_0597-e1571990085627-692x1024.jpg 692w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/img_0597-e1571990085627.jpg 1370w\" sizes=\"auto, (max-width: 203px) 100vw, 203px\" \/><\/a><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/img_0593-e1571990143793.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2276\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/img_0593-e1571990143793-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/img_0593-e1571990143793-225x300.jpg 225w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/img_0593-e1571990143793-768x1024.jpg 768w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/8cf0341f4c73b6de28d6ba50633938df.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2344\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/8cf0341f4c73b6de28d6ba50633938df-250x300.jpg\" alt=\"\" width=\"250\" height=\"300\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/8cf0341f4c73b6de28d6ba50633938df-250x300.jpg 250w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/8cf0341f4c73b6de28d6ba50633938df.jpg 690w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p><span style=\"font-size: 14pt;\">\u3000\u30bb\u30f3\u30b5\u30fc\u306e\u88cf\u306bVCC\u3001SCL\u3001SDA\u3001GND\u3063\u3066\u66f8\u3044\u3066\u3042\u308b\u304b\u3089\u3001\u30d4\u30f3\u3092\u898b\u3066\u3061\u3083\u3093\u3068\u63a5\u7d9a\u3002\u30e9\u30ba\u30d1\u30a4\u306b\u3064\u306a\u3050BME280\u306e\u96fb\u5727\u306f3.3V\u306a\u306e\u3067VCC\u306f3.3V\u306b\u63a5\u7d9a(\u5199\u771f\u306fGND-SDO\u3092\u30b7\u30e7\u30fc\u30c8\u3057\u30660x76\u306b\u3057\u3066\u3044\u308b\u304c\u4e0d\u8981\u304b\u3082)<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3000\u3068\u308a\u3042\u3048\u305a\u3001\u30a2\u30c9\u30ec\u30b9\u304c\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3002\u30a2\u30c9\u30ec\u30b9\u306fSDO\u306b\u4f55\u3082\u3064\u306a\u304c\u306a\u3051\u308c\u3070(GND\u30ec\u30d9\u30eb)0x76\u3001SDO\u3092VCC\u306b\u30b7\u30e7\u30fc\u30c8\u3055\u305b\u308b\u30680x77\u3068\u306a\u308b\u3002SPI\u63a5\u7d9a\u3082\u3067\u304d\u308b\u3068\u306e\u3053\u3068\u3001\u4eca\u56de\u306fI2C\u63a5\u7d9a\u3067\u884c\u3046\u3002I2C\u63a5\u7d9a\u3092\u3059\u308b\u524d\u6e96\u5099\u306f\u3053\u3053\u3092\u53c2\u8003\u306b\u3057\u3066\u3001i2cdetect\u3092\u52d5\u304b\u305b\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u3051\u3070OK\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u306a\u308b\u3079\u304fGUI\u306a\u81ea\u5206\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u4f7f\u3044\u305f\u304f\u306a\u3044\u3093\u3060\u3051\u3069(MSDOS\u6642\u4ee3\u306f\u5927\u597d\u304d\u3060\u3063\u305f\u3093\u3060\u3088)\u3001i2c\u3092\u3064\u306a\u3044\u3060\u3089terminal\u3067<\/span><\/p>\n<pre class=\"lang:default decode:true \">i2cdetect -y 1<\/pre>\n<p><span style=\"font-size: 14pt;\">\u3053\u308c\u3092\u546a\u6587\u306e\u3088\u3046\u306b\u5165\u308c\u308b\u3002\u30a2\u30c9\u30ec\u30b9\u304c\u3061\u3083\u3093\u3068\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u898b\u308b\u30b3\u30de\u30f3\u30c9\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\"><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_14-56-3_No-00.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2278\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_14-56-3_No-00.png\" alt=\"\" width=\"416\" height=\"161\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_14-56-3_No-00.png 517w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_14-56-3_No-00-300x116.png 300w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3068\u308a\u3042\u3048\u305a\u30010x76\u3068\u3057\u3066\u8a8d\u8b58\u3057\u3066\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u3002\u3053\u308c\u3067\u30bb\u30f3\u30b5\u30fc\u3092\u4f7f\u3046\u6e96\u5099\u306f\u5b8c\u4e86\uff5e\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u6b21\u306b\u3001github\u304b\u3089\u30e9\u30a4\u30d6\u30e9\u30ea\u3092DL\u3057\u3066\u3044\u304f\u624b\u9806\u3002Windows\u30e9\u30a4\u30af\u306b\u8aac\u660e\u3057\u3066\u3044\u304f\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_15-38-44_No-00.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2284\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_15-38-44_No-00.png\" alt=\"\" width=\"339\" height=\"293\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_15-38-44_No-00.png 522w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_15-38-44_No-00-300x259.png 300w\" sizes=\"auto, (max-width: 339px) 100vw, 339px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u65b0\u3057\u3044\u30d5\u30a9\u30eb\u30c0(bme280_test\u3068\u3057\u305f)\u3092\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u4f5c\u308b\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-29_No-00-e1571987103713.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2286\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-29_No-00-e1571987103713-1024x567.png\" alt=\"\" width=\"371\" height=\"205\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-29_No-00-e1571987103713-1024x567.png 1024w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-29_No-00-e1571987103713-300x166.png 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-29_No-00-e1571987103713-768x425.png 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-29_No-00-e1571987103713.png 1248w\" sizes=\"auto, (max-width: 371px) 100vw, 371px\" \/><\/a><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-56_No-00.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2285\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-56_No-00-1024x570.png\" alt=\"\" width=\"365\" height=\"203\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-56_No-00-1024x570.png 1024w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-56_No-00-300x167.png 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-56_No-00-768x428.png 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-3-56_No-00.png 1262w\" sizes=\"auto, (max-width: 365px) 100vw, 365px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">.\u30d5\u30a9\u30eb\u30c0\u3092\u958b\u3044\u3066\u3001[\u30c4\u30fc\u30eb] &#8211; [\u73fe\u5728\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u7aef\u672b\u3067\u958b\u304f]\u3092\u3059\u308b\u3068\u30bf\u30fc\u30df\u30ca\u30eb\u304c\u958b\u304f\u3001\u305d\u3053\u3067<\/span><\/p>\n<pre class=\"lang:default decode:true\">sudo git clone https:\/\/github.com\/rm-hull\/bme280<\/pre>\n<p><span style=\"font-size: 14pt;\">\u3092\u5b9f\u884c\u3002\u3053\u308c\u306fgtihub\u304b\u3089\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u4e00\u5f0f\u3092\u30af\u30ed\u30fc\u30f3(\u30b3\u30d4\u30fc)\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3002bme280_test\u306e\u4e2d\u306bbm280\u3063\u3066\u30d5\u30a9\u30eb\u30c0\u304c\u3067\u304d\u308c\u3070ok\u3002<\/span><\/p>\n<p>\u4f59\u8ac7\u3060\u3051\u3069\u3001\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u98a8\u306b\u4f7f\u3048\u308b\u306e\u306f\u3044\u3044\u3093\u3060\u3051\u3069\u3001OS\u306e\u6027\u8cea\u4e0a\u3001\u6a29\u9650\u304c\u306a\u3044\u3068sudo\u3067\u4f5c\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u3084\u3089\u3092\u79fb\u52d5\u3057\u305f\u308a\u6d88\u3057\u305f\u308a\u3067\u304d\u306a\u3044\u3002\u6a29\u9650\u304c\u306a\u3044\u305f\u3081\uff5e\u307f\u305f\u3044\u306b\u6012\u3089\u308c\u308b\u3002Windows\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3069\u3046\u3057\u3066\u3082\u3001\u3053\u306e\u8fba\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u306e\u3067\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089<\/p>\n<pre class=\"lang:default decode:true \">sudo pcmanfm<\/pre>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/mylinuxnoteblog.wordpress.com\/2017\/04\/27\/%E7%AE%A1%E7%90%86%E8%80%85%E6%A8%A9%E9%99%90%E3%81%A7%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%83%9E%E3%83%8D%E3%83%BC%E3%82%B8%E3%83%A3%E3%83%BC%E8%B5%B7%E5%8B%95\/\" data-lkc-id=\"845\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=mylinuxnoteblog.wordpress.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">\u521d\u5fc3\u8005\u306eLinux<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">1 User<\/div> <div class=\"lkc-sns-po\">5 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/androiphone.uvs.jp\/wp-content\/uploads\/pz-linkcard\/cache\/d99715d1c86ca0a9397f2584a69accdfb83d2f61b8541d9ca2c78585ccca84fd.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">\u7ba1\u7406\u8005\u6a29\u9650\u3067\u30d5\u30a1\u30a4\u30eb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u8d77\u52d5<\/div><div class=\"lkc-url\" title=\"https:\/\/mylinuxnoteblog.wordpress.com\/2017\/04\/27\/%E7%AE%A1%E7%90%86%E8%80%85%E6%A8%A9%E9%99%90%E3%81%A7%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%83%9E%E3%83%8D%E3%83%BC%E3%82%B8%E3%83%A3%E3%83%BC%E8%B5%B7%E5%8B%95\/\">https:\/\/mylinuxnoteblog.wordpress.com\/2017\/04\/27\/\u7ba1\u7406\u8005\u6a29\u9650\u3067\u30d5\u30a1\u30a4\u30eb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u8d77\u52d5\/<\/div><div class=\"lkc-excerpt\">\u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u3001\u3053\u3046\u601d\u3063\u305fLinux\u521d\u5fc3\u8005\u306f\u79c1\u3060\u3051\u3067\u306f\u306a\u3044\u306f\u305a\u3002<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p><span style=\"font-size: 12pt;\">\u3067\u958b\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u30de\u30cd\u30fc\u30b8\u30e3\u3092\u4f7f\u3048\u3070\u81ea\u7531\u306b\u6d88\u3057\u305f\u308a\u79fb\u52d5\u3067\u304d\u305f\u308a\u3067\u304d\u308b\u3002\u81ea\u5206\u306f\u3081\u3093\u3069\u3044\u304b\u3089\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3067\u7f6e\u3044\u3066\u3042\u308b\u3002\u4e0a\u306e\u53c2\u8003\u30b5\u30a4\u30c8\u3001\u3061\u3087\u3063\u3068\u30b3\u30de\u30f3\u30c9\u30b9\u30da\u30eb\u30df\u30b9\u3057\u3066\u308b\u304b\u3089\u3001\u30b3\u30d4\u30da\u3059\u308b\u3068\u304d\u306f\u4e0a\u306e\u3084\u3064\u3092\u3057\u3066\u306d(\u30b3\u30de\u30f3\u30c9\u901a\u3089\u306a\u304f\u3066\u3057\u3070\u3089\u304f\u60a9\u3093\u3060w)<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u8a71\u3057\u306e\u7d9a\u304d\u30fb\u30fb\u30fb<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-10-50_No-00.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2287\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-10-50_No-00.png\" alt=\"\" width=\"390\" height=\"238\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-10-50_No-00.png 887w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-10-50_No-00-300x183.png 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-10-50_No-00-768x468.png 768w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/a><\/span><\/p>\n<pre class=\"lang:default decode:true\">cd bme280<\/pre>\n<p><span style=\"font-size: 14pt;\">\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5909\u66f4\u3057\u3066\u3082\u3044\u3044\u3057\u3001bm280\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u3055\u3063\u304d\u306e[\u30c4\u30fc\u30eb] &#8211; [\u73fe\u5728\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u7aef\u672b\u3067\u958b\u304f]\u3067\u3082\u3044\u3044\u306e\u3067\u3001\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea(\u73fe\u5728\u306e\u5834\u6240)\u3092\u5909\u3048\u308b\u3002\u305d\u3053\u3067<\/span><\/p>\n<pre class=\"lang:default decode:true\">sudo python3 setup.py install<\/pre>\n<p><span style=\"font-size: 14pt;\">\u3067python3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u5c11\u3057\u6642\u9593\u304c\u304b\u304b\u308a\u3001\u30b3\u30de\u30f3\u30c9\u5f85\u3061\u53d7\u3051\u72b6\u614b\u306b\u306a\u308b\u306e\u3067\u5f85\u3061\u307e\u3057\u3087\u3046\u3002\u7d42\u308f\u3063\u305f\u3089Mu\u3092\u8d77\u52d5\u3057\u3066\u3001<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-23-3_No-00-e1571988328225.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2289\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-23-3_No-00-e1571988328225-278x300.png\" alt=\"\" width=\"278\" height=\"300\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-23-3_No-00-e1571988328225-278x300.png 278w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-23-3_No-00-e1571988328225.png 742w\" sizes=\"auto, (max-width: 278px) 100vw, 278px\" \/><\/a><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-23-15_No-00.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2288\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-23-15_No-00-300x177.png\" alt=\"\" width=\"505\" height=\"298\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-23-15_No-00-300x177.png 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-23-15_No-00-768x452.png 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-23-15_No-00-1024x603.png 1024w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-23-15_No-00.png 1513w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3053\u3053\u306eExample Usage\u306e\u30b3\u30fc\u30c9\u3092\u3079\u305f\u4ed8\u3051([bme280]-[example]\u306e\u4e2d\u306b\u3082\u5165\u3063\u3066\u308b\u3051\u3069w)<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/github.com\/rm-hull\/bme280\" data-lkc-id=\"844\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=github.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">GitHub<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-po\">5 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/androiphone.uvs.jp\/wp-content\/uploads\/pz-linkcard\/cache\/4fe13a9d156a8da5c3fbbb494e32d08acbe236381a5c10237b59c1864c4e19c2.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">GitHub - rm-hull\/bme280: Raspberry PI schematics &amp; python module to drive a B...<\/div><div class=\"lkc-url\" title=\"https:\/\/github.com\/rm-hull\/bme280\">https:\/\/github.com\/rm-hull\/bme280<\/div><div class=\"lkc-excerpt\">Raspberry PI schematics &amp; python module to drive a Bosch BME280 digital sensor module - GitHub - rm-hull\/bme280: Raspberry PI schematics &amp; python module to drive a Bosch BME280 digital sens...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div><\/span><\/p>\n<pre class=\"lang:python decode:true\">import smbus2\r\nimport bme280\r\n\r\nport = 1\r\naddress = 0x76\r\nbus = smbus2.SMBus(port)\r\n\r\ncalibration_params = bme280.load_calibration_params(bus, address)\r\n\r\n# the sample method will take a single reading and return a\r\n# compensated_reading object\r\ndata = bme280.sample(bus, address, calibration_params)\r\n\r\n# the compensated_reading class has the following attributes\r\nprint(data.id)\r\nprint(data.timestamp)\r\nprint(data.temperature)\r\nprint(data.pressure)\r\nprint(data.humidity)\r\n\r\n# there is a handy string representation too\r\nprint(data)<\/pre>\n<p><span style=\"font-size: 14pt;\">\u3067\u3001bm280_sample.py\u3068\u3067\u3082\u540d\u524d\u3092\u4ed8\u3051\u3066\u4fdd\u5b58\u3057\u3066\u3001\u5b9f\u884c\u30dc\u30bf\u30f3\u3092\u62bc\u3059<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-36-33_No-00.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2295\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-36-33_No-00-300x177.png\" alt=\"\" width=\"300\" height=\"177\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-36-33_No-00-300x177.png 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-36-33_No-00-768x452.png 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-36-33_No-00-1024x603.png 1024w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/10\/SnapCrab_NoName_2019-10-25_16-36-33_No-00.png 1028w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3059\u308b\u3068\u3001\u4e0b\u306e\u30a6\u30a4\u30f3\u30c9\u30a6\u306b\u6c17\u6e29(18.945\u5ea6)\u3001\u6c17\u5727(1016.16hPa)\u3001\u6e7f\u5ea6(59.29%)\u304c\u3067\u308b\u3002calibration_params\u3092\u53d6\u5f97\u3057\u3066bme280.sample\u3067\u5024(data)\u3092\u53d6\u5f97\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u3044\u3002<\/span><\/p>\n<blockquote><p><span style=\"font-size: 14pt;\">For a data-logger like application, periodically call bme2.sample(bus, address, calibration_params) to get time-based readings.<\/span><\/p><\/blockquote>\n<p><span style=\"font-size: 14pt;\">\u3063\u3066\u66f8\u3044\u3066\u3042\u308b\u3088\u3046\u306b\u3001\u30c7\u30fc\u30bf\u30ed\u30ac\u30fc\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u969b\u306b\u306f\u3001bme280.sample\u3092\u5b9a\u671f\u7684\u306b\u547c\u3079\u3070\u3044\u3044\u3063\u3066\u3053\u3068\u304b\u3089\u3001calibration_params\u53d6\u5f97\u306f\u6700\u521d\u4e00\u56de\u3067\u3044\u3044\u307f\u305f\u3044\u3060\u306d\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u6700\u8fd1\u30bb\u30f3\u30b5\u30fc\u3092\u8cb7\u3044\u3042\u3055\u3063\u3066\u3044\u307e\u3059\u3002\u3067\u3082\u3001\u56fd\u5185\u306e\u306f\u304a\u9ad8\u3044\u306e\u3067\u3001\u4e2d\u56fd\u767a\u9001\u3084\u53f0\u6e7e\u767a\u9001\u306e\u6fc0\u5b89\u30bb\u30f3\u30b5\u30fc\u3092\u8cb7\u3063\u3066\u8a66\u3059\u904a\u3073\u3092\u3057\u3066\u3044\u307e\u3059\u3002 \u3053\u306e\u65b9\u6cd5\u306b\u306f\u96e3\u70b9\u304c\u3042\u3063\u3066\u3001\u3044\u3064\u5c4a\u304f\u304b\u308f\u304b\u3089\u306a\u3044\u300e\u6c38\u9060\u306b\u304a\u5f85\u3061\u304f\u3060\u3055\u3044\u300f\u653e\u7f6e\u30d7\u30ec\u30fc\u5f8c\u3001\u5fd8\u308c\u305f\u9803\u306b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2272,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[58,56,60],"tags":[],"class_list":["post-2269","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-raspberry-pi","category-bme280","ja"],"_links":{"self":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/2269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2269"}],"version-history":[{"count":28,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/2269\/revisions"}],"predecessor-version":[{"id":3158,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/2269\/revisions\/3158"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/media\/2272"}],"wp:attachment":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}