{"id":44,"date":"2015-01-02T18:40:48","date_gmt":"2015-01-02T09:40:48","guid":{"rendered":"https:\/\/arakoki70.com\/?p=44"},"modified":"2023-03-27T10:26:05","modified_gmt":"2023-03-27T01:26:05","slug":"raspberry-pi-%e3%82%ad%e3%83%a3%e3%83%a9%e3%82%af%e3%82%bflcd%e3%81%b8%e3%81%ae%e8%a1%a8%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/arakoki70.com\/?p=44","title":{"rendered":"Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a &#038; CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057"},"content":{"rendered":"<div style=\"background: #f5f5f5; padding: 10px; border: 2px solid #800000; text-align: center; box-shadow: 5px 5px 5px #aaa; font-size: 16px;\"><span style=\"font-size: 14pt;\"><strong><span style=\"font-size: 12pt;\">Raspberry Pi \u4f5c\u54c1\u96c6<\/span><br \/>\r\n\u6e29\u5ea6\u30fb\u6e7f\u5ea6\u30fb\u6c17\u5727\u3092<br \/>\r\n\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u8868\u793a\u00a0\u3068 CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u4fdd\u5b58<\/strong><\/span><\/div>\r\n<div>\u00a0<\/div>\r\n<div>Raspberry Pi \u306eLCD\u3092\u898b\u308c\u3070\u3001\u6e29\u5ea6\u30fb\u6e7f\u5ea6\u30fb\u6c17\u5727\u304c\u5224\u308b\u69d8\u306b\u3059\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div><a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2017\/09\/lcd121.jpg\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"\u30ad\u30e3\u30e9\u30af\u30bfLCD\u3078\u306e\u8868\u793a\" data-rl_caption=\"\" title=\"\u30ad\u30e3\u30e9\u30af\u30bfLCD\u3078\u306e\u8868\u793a\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2017\/09\/lcd121.jpg\" alt=\"\" width=\"800\" height=\"600\" \/><\/a><\/div>\r\n<div style=\"text-align: center;\"><span style=\"font-size: 10pt;\">\u6db2\u6676 16\u6587\u5b57x2\u884c \u3078 \u6708\u65e5\u30fb\u6642\u523b\u30fb\u6e29\u5ea6\u30fb\u6e7f\u5ea6\u30fb\u6c17\u5727 \u3092\u8868\u793a\u3002<\/span><\/div>\r\n<div><!--more--><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\t<p>&nbsp;<\/p>\n\t<div align=\"center\" style=\"font-size:8pt;\">\u30b9\u30dd\u30f3\u30b5\u30fc \u30ea\u30f3\u30af<br \/>\n<!-- \t<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script> -->\n\t<!-- \u8a18\u4e8b\u30fb\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6-7 -->\n\t<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-3816629014893825\"\n     data-ad-slot=\"1428770894\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n\t<script>\n\t(adsbygoogle = window.adsbygoogle || []).push({});\n\t<\/script>\n\t<amp-ad width=\"100vw\" height=\"320\"\n     type=\"adsense\"\n     data-ad-client=\"ca-pub-3816629014893825\"\n     data-ad-slot=\"1428770894\"\n     data-auto-format=\"rspv\"\n     data-full-width=\"\">\n\t <div overflow=\"\"><\/div>\n\t<\/amp-ad>\n\t<\/div>\n\t<p>&nbsp;<\/p>\n<\/div>\r\n<div style=\"border: 1px solid #c0c0c0; padding: 7px; background: #f5f5f5; border-radius: 8px; position: relative; top: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 16px;\">\r\n<div><strong><span style=\"font-size: 14pt;\">\u3000\u76ee\u3000\u6b21<\/span><\/strong><\/div>\r\n<div style=\"margin-left: 20pt; line-height: 200%;\"><span style=\"color: magenta;\">1.\u3000<\/span><a href=\"#title1\"><strong> Raspberry Pi \u30e2\u30c7\u30eb B+<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">2.\u3000<\/span><a href=\"#title2\"><strong>Raspberry Pi \u3067 I2C\u30c7\u30d0\u30a4\u30b9\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u6e96\u5099<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">3.\u3000<\/span><a href=\"#title3\"><strong>\u4f7f\u7528\u3057\u305f\u90e8\u54c1<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">4.\u3000<\/span><a href=\"#title4\"><strong>\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u8868\u793a\u5185\u5bb9\u3068\u8868\u793a\u4f4d\u7f6e<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">5.\u3000<\/span><a href=\"#title5\"><strong>\u6c17\u8c61\u60c5\u5831\u53d6\u5f97\u56de\u8def\u56f3<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">6.\u3000<\/span><a href=\"#title6\"><strong>LCD\u8868\u793a Python \u30d7\u30ed\u30b0\u30e9\u30e0<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">7.\u3000<\/span><a href=\"#title7\"><strong>Python\u304b\u3089CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u8fbc\u307f<\/strong><\/a><\/div>\r\n<\/div>\r\n<div>\u00a0<\/div>\r\n<div id=\"title1\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>1. Raspberry Pi \u30e2\u30c7\u30eb B+<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u4f7f\u7528\u4e2d\u306e\u300cRaspberry Pi\u300d\u306f\u3001\u521d\u671f\u306e\u30e2\u30c7\u30eb\u300cB+\u300d\u3067\u30ea\u30d3\u30b8\u30e7\u30f3\u306f\u300c<span style=\"color: #ff0000;\"><strong>0010<\/strong><\/span>\u300d\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u30e2\u30c7\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>cat \/proc\/cpuinfo<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div><a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0011.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0011\" data-rl_caption=\"\" title=\"hyakuyoubako_0011\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7484\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0011.png\" alt=\"cat \/proc\/cpuinfo\" width=\"600\" height=\"286\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div><a href=\"https:\/\/elinux.org\/RPi_HardwareHistory\" target=\"_blank\" rel=\"noopener\">Raspberry Pi \u306e\u3001\u30ea\u30d3\u30b8\u30e7\u30f3\u4e00\u89a7<\/a>\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0021.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0021\" data-rl_caption=\"\" title=\"hyakuyoubako_0021\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7485\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0021.png\" alt=\"Raspberry Pi \u306e\u3001\u30ea\u30d3\u30b8\u30e7\u30f3\u4e00\u89a7\" width=\"800\" height=\"509\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>Python\u306b\u3088\u308b \u57fa\u76e4\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>sudo python<br \/>\r\n<span style=\"color: #0000ff;\">&gt;&gt;&gt; import RPi.GPIO as GPIO<\/span><br \/>\r\n<span style=\"color: #0000ff;\">&gt;&gt;&gt; GPIO.RPI_REVISION<\/span><br \/>\r\n\u3000\u30fb\u30fb\u30fb\u3000Ctrl + D \u3067\u7d42\u4e86<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div><a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0061.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0061\" data-rl_caption=\"\" title=\"hyakuyoubako_0061\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7505\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0061.png\" alt=\"Python\u306b\u3088\u308b \u57fa\u76e4\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u78ba\u8a8d\u3059\u308b\" width=\"600\" height=\"153\" \/><\/a><br \/>\r\n\u30ea\u30d3\u30b8\u30e7\u30f3\u756a\u53f7\u306f\u300c3\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\r\nI2C\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u756a\u53f7\uff08I2C\u30d0\u30b9\u756a\u53f7\uff09\u306f\u300ci2c_channel = 1\u300d\u3068\u3059\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div><strong><span style=\"color: #ff0000;\">\u203b\uff1a<\/span><\/strong>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u306a\u3044\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>cat \/proc\/device-tree\/model<br \/>\r\n\u3000\u2192\u3000cat: \/proc\/device-tree\/model: No such file or directory<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 10px; background: #FFF0F5;\">\u521d\u671f\u306e\u30e2\u30c7\u30eb\u300cB+\u300d\u3092\u6700\u65b0\u306e\u300cRaspberry Pi OS\uff0832-bit\uff09\u300d\u3067\u7a3c\u50cd\u3055\u305b\u3066\u307f\u308b\u3000\u2192\u3000\u7acb\u3061\u4e0a\u304c\u308a\u306b\u76f8\u5f53\u306a\u6642\u9593\u3092\u8981\u3059\u308b\u304c\u3001\u7a3c\u50cdOK\uff01<br \/>\r\n<br \/>\r\n<div>\u300ccat \/proc\/device-tree\/model\u300d\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>Raspberry Pi Model B Plus Rev 1.2<\/strong><\/div>\r\n<div><br \/>\r\n\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001\u300c<strong><span style=\"color: #ff0000;\">Rev 1.2<\/span><\/strong>\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3002<\/div>\r\n<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>OS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>cat \/etc\/os-release<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div><a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0031.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0031\" data-rl_caption=\"\" title=\"hyakuyoubako_0031\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7496\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0031.png\" alt=\"OS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\" width=\"600\" height=\"276\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30ab\u30fc\u30cd\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>uname -a<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div><a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0041.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0041\" data-rl_caption=\"\" title=\"hyakuyoubako_0041\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7497\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0041.png\" alt=\"\u30ab\u30fc\u30cd\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\" width=\"800\" height=\"47\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>python --version<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div><a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0051.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0051\" data-rl_caption=\"\" title=\"hyakuyoubako_0051\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7504\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0051.png\" alt=\"Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\" width=\"400\" height=\"55\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div id=\"title2\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>2. Raspberry Pi \u3067 I2C\u30c7\u30d0\u30a4\u30b9\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u6e96\u5099<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>1. raspi-config \u3067 I2C \u3092\u6709\u52b9\u5316\u3059\u308b\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>sudo raspi-config<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u300c8 Advanced Options\u300d\u3092\u9078\u629e\u3059\u308b\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_1021.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"i2c-junbi_1021\" data-rl_caption=\"\" title=\"i2c-junbi_1021\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7544\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_1021.png\" alt=\"\u300c8 Advanced Options\u300d\u3092\u9078\u629e\u3059\u308b\" width=\"600\" height=\"324\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u300cA6 I2C\u300d\u3092\u9078\u629e\u3059\u308b\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_1031.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"i2c-junbi_1031\" data-rl_caption=\"\" title=\"i2c-junbi_1031\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7545\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_1031.png\" alt=\"\u300cA6 I2C\u300d\u3092\u9078\u629e\u3059\u308b\" width=\"600\" height=\"325\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u300cYes\u300d\u3092\u9078\u629e\u3059\u308b\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_1041.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"i2c-junbi_1041\" data-rl_caption=\"\" title=\"i2c-junbi_1041\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7546\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_1041.png\" alt=\"\u300cYes\u300d\u3092\u9078\u629e\u3059\u308b\" width=\"600\" height=\"381\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u300cOK\u300d\u3092\u9078\u629e\u3059\u308b\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_1051.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"i2c-junbi_1051\" data-rl_caption=\"\" title=\"i2c-junbi_1051\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7547\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_1051.png\" alt=\"\u300cOK\u300d\u3092\u9078\u629e\u3059\u308b\" width=\"600\" height=\"387\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>2. I2C\u306e\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u6709\u52b9\u5316\u3059\u308b\u3002<br \/>\r\n\/etc\/modules \u306e\u7de8\u96c6\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>sudo nano \/etc\/modules<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u8d77\u52d5\u6642\u306b\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u81ea\u52d5\u7684\u306b\u8aad\u307f\u8fbc\u3080\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b \/etc\/modules \u306b i2c-dev \u3092\u8ffd\u52a0\u3059\u308b\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_0011.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"i2c-junbi_0011\" data-rl_caption=\"\" title=\"i2c-junbi_0011\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7541\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_0011.png\" alt=\"\u8d77\u52d5\u6642\u306b\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u81ea\u52d5\u7684\u306b\u8aad\u307f\u8fbc\u3080\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b \/etc\/modules \u306b i2c-dev \u3092\u8ffd\u52a0\u3059\u308b\" width=\"600\" height=\"206\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>3. \u8aad\u307f\u8fbc\u307f\u62d2\u5426\u8a2d\u5b9a\u306e\u5909\u66f4\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>sudo nano \/etc\/modprobe.d\/raspi-blacklist.conf<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 I2C \u306e\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u30d6\u30e9\u30c3\u30af\u30ea\u30b9\u30c8\u306b\u5165\u3063\u3066\u3044\u3066\u3044\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3053\u308c\u3092\u5916\u3059\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_0021.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"i2c-junbi_0021\" data-rl_caption=\"\" title=\"i2c-junbi_0021\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7542\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_0021.png\" alt=\"\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 I2C \u306e\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u30d6\u30e9\u30c3\u30af\u30ea\u30b9\u30c8\u306b\u5165\u3063\u3066\u3044\u3066\u3044\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3053\u308c\u3092\u5916\u3059\" width=\"600\" height=\"166\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>4. I2C\u306e\u64cd\u4f5c\u306b\u5229\u7528\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u3084\u30b3\u30de\u30f3\u30c9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>sudo apt-get install i2c-tools<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>5. \u300cACM 1602NI\u300d\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\u7528\u306b\u52d5\u4f5c\u30af\u30ed\u30c3\u30af\u309250Khz\u306b\u8a2d\u5b9a\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>sudo nano \/etc\/modprobe.d\/i2c.conf<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u300coptions i2c_bcm2708 baudrate=50000\u300d\u3092\u8ffd\u8a18\u3059\u308b\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_0031.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"i2c-junbi_0031\" data-rl_caption=\"\" title=\"i2c-junbi_0031\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7543\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_0031.png\" alt=\"\u300coptions i2c_bcm2708 baudrate=50000\u300d\u3092\u8ffd\u8a18\u3059\u308b\" width=\"600\" height=\"56\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>6. smbus\uff08I2C\u5236\u5fa1\u7528\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u306epython\u7248\uff09\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>sudo apt-get install python-smbus<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>7. \u518d\u8d77\u52d5\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>sudo reboot<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>8. \u30b7\u30ea\u30a2\u30eb\u901a\u4fe1 baudrate \u8a2d\u5b9a\u306e\u78ba\u8a8d\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>dmesg | grep i2c<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u5b9f\u884c\u7d50\u679c\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_0051.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"i2c-junbi_0051\" data-rl_caption=\"\" title=\"i2c-junbi_0051\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7548\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/i2c-junbi_0051.png\" alt=\"\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1 baudrate \u8a2d\u5b9a\u306e\u78ba\u8a8d\" width=\"600\" height=\"86\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div id=\"title3\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>3. \u4f7f\u7528\u3057\u305f\u90e8\u54c1<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 10px; background: #FFF0F5;\">\r\n<p><strong>\u2460\uff0e\u6e7f\u5ea6\u30bb\u30f3\u30b5\u30fc\uff1a<\/strong><br \/>\r\nHIH6130\uff1a\u30b9\u30a4\u30c3\u30c1\u30b5\u30a4\u30a8\u30f3\u30b9\u30003,743 \u5186<\/p>\r\n<p><strong>\u2461\uff0e\u6c17\u5727\u30bb\u30f3\u30b5\u30fc\uff1a<\/strong><br \/>\r\nMPL115A2\uff1a\u79cb\u6708\u96fb\u5b50\u901a\u5546\u3000600 \u5186<\/p>\r\n<p><strong>\u2462\uff0e\u7167\u5ea6\u6e2c\u5b9a\u7528CdS\u30bb\u30eb(\u5149\u30bb\u30f3\u30b5\u30fc)\uff1a<\/strong><br \/>\r\nGL5528\u30001M\u03a9\uff1a\u79cb\u6708\u96fb\u5b50\u901a\u5546\u300040 \u5186<\/p>\r\n<div><strong>\u2463\uff0eAD\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc\uff1a<\/strong><br \/>\r\nADS1015\uff1a\u30b9\u30a4\u30c3\u30c1\u30b5\u30a4\u30a8\u30f3\u30b9\u30001,393 \u5186<\/div>\r\n<br \/>\r\n<div><strong>\u2464\uff0e\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\uff1a<\/strong><br \/>\r\nACM1602NI-FLW-FBW\uff1a\u79cb\u6708\u96fb\u5b50\u901a\u5546\u3000800\u5186\u3002\u00a0<\/div>\r\n<\/div>\r\n<div>\u00a0<\/div>\r\n<div><strong>\u2460\uff0eHIH-6130 \u30c7\u30b8\u30bf\u30eb\u6e7f\u5ea6\u30bb\u30f3\u30b5\u3002<\/strong>slave addresses (<strong><span style=\"color: #ff0000;\">0x27<\/span><\/strong>) \u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0121.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0121\" data-rl_caption=\"\" title=\"hyakuyoubako_0121\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7487\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0121.png\" alt=\"HIH-6130 \u30c7\u30b8\u30bf\u30eb\u6e7f\u5ea6\u30bb\u30f3\u30b5\r\n\" width=\"400\" height=\"400\" srcset=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0121.png 400w, https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0121-100x100.png 100w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/div>\r\n<div>\u30fb\u52d5\u4f5c\u96fb\u5727:2.3\uff5e5.5V <br \/>\r\n\u30fb\u88dc\u6b63\u3055\u308c\u305f\u6e7f\u5ea6\u306e\u7bc4\u56f2\uff1a10\uff5e90% RH <br \/>\r\n\u30fb\u88dc\u6b63\u3055\u308c\u305f\u6e29\u5ea6\u306e\u7bc4\u56f2\uff1a5\u2103\uff5e50\u2103\u3000\u2190\u30005\u2103\u4ee5\u4e0b\u304c\u4e0d\u53ef<br \/>\r\n\u30fbI2C\u901a\u4fe1\u306b\u3088\u308b\u51fa\u529b\u3000\u2192\u3000<span style=\"color: #ff00ff;\"><strong>4\u30d0\u30a4\u30c8<\/strong><\/span>\u51fa\u529b<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div><strong>\u2461\uff0eMPL115A2 \u6c17\u5727\u30bb\u30f3\u30b5\u30e2\u30b8\u30e5\u30fc\u30eb\u3002<\/strong>slave addresses (<strong><span style=\"color: #ff0000;\">0x60<\/span><\/strong>) \u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0131.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0131\" data-rl_caption=\"\" title=\"hyakuyoubako_0131\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7488\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0131.png\" alt=\"MPL115A2 \u6c17\u5727\u30bb\u30f3\u30b5\u30e2\u30b8\u30e5\u30fc\u30eb\r\n\" width=\"400\" height=\"300\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>MPL115A2\u306e\u5229\u7528\u306b\u5f53\u305f\u3063\u3066\u306f\u3001\u6025\u6fc0\u306a\u96fb\u5727\u5909\u5316\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306b\u30012\u756a\u7aef\u5b50\uff08CAP\uff09\u306b\u300c<strong><span style=\"color: #ff0000;\">1\u03bcF<\/span><\/strong>\u300d \u306e\u7a4d\u5c64\u30bb\u30e9\u30df\u30c3\u30af\u30b3\u30f3\u30c7\u30f3\u30b5\u30fc\u3092\u63a5\u7d9a\u3057\u3001\u30b3\u30f3\u30c7\u30f3\u30b5\u30fc\u3078\u306e\u5145\u96fb\u3084\u653e\u96fb\u3067\u96fb\u5727\u3092\u6ed1\u3089\u304b\u306b\u3059\u308b\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0133.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0133\" data-rl_caption=\"\" title=\"hyakuyoubako_0133\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7511\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0133.png\" alt=\"2\u756a\u7aef\u5b50\uff08CAP\uff09\u306b\u300c1\u03bcF\u300d \u306e\u7a4d\u5c64\u30bb\u30e9\u30df\u30c3\u30af\u30b3\u30f3\u30c7\u30f3\u30b5\u30fc\u3092\u63a5\u7d9a\u3057\u3001\u30b3\u30f3\u30c7\u30f3\u30b5\u30fc\u3078\u306e\u5145\u96fb\u3084\u653e\u96fb\u3067\u6ed1\u3089\u304b\u306a\u96fb\u5727\u306b\u3059\u308b\" width=\"400\" height=\"189\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div><strong>\u2462\uff0e\u7167\u5ea6\u6e2c\u5b9a\u7528 CdS\u30bb\u30eb(\u5149\u30bb\u30f3\u30b5\u30fc)<\/strong>\uff1aGL5528\u30001M\u03a9\u3002<br \/>\r\n\u30fb\u660e\u308b\u3044\u72b6\u614b\uff0810Lux\uff0910\uff5e20K\u03a9\u3002<br \/>\r\n\u30fb\u6697\u3044\u72b6\u614b 500K\u03a9\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0111.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0111\" data-rl_caption=\"\" title=\"hyakuyoubako_0111\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7486\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0111.png\" alt=\"\u7167\u5ea6\u6e2c\u5b9a\u7528CdS\u30bb\u30eb(\u5149\u30bb\u30f3\u30b5\u30fc)\uff1aGL5528\u30001M\u03a9\" width=\"400\" height=\"300\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>CdS\u30bb\u30eb\u306e\u62b5\u6297\u5024\u5909\u5316\u306b\u3088\u308b\u96fb\u5727\u3092\u53d6\u5f97\u3057\u3066\u3001\u30c7\u30b8\u30bf\u30eb\u306b\u5909\u63db\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0113.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0113\" data-rl_caption=\"\" title=\"hyakuyoubako_0113\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7513\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0113.png\" alt=\"CdS\u30bb\u30eb\u306e\u62b5\u6297\u5024\u5909\u5316\u306b\u3088\u308b\u96fb\u5727\u3092\u53d6\u5f97\u3057\u3066\u3001\u30c7\u30b8\u30bf\u30eb\u306b\u5909\u63db\" width=\"400\" height=\"298\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div><strong>\u2463\uff0eADS1015: 12 \u30d3\u30c3\u30c8\u30013.3kSPS\u30014 \u30c1\u30e3\u30cd\u30eb\u30fb\u30c7\u30eb\u30bf\u30fb\u30b7\u30b0\u30de ADC<\/strong>\u3002<br \/>\r\nCdS\u30bb\u30eb(\u5149\u30bb\u30f3\u30b5\u30fc)\u306e\u30a2\u30ca\u30ed\u30b0\u60c5\u5831\u3092\u5165\u529b\u3057\u3066\u3001\u30c7\u30b8\u30bf\u30eb\u60c5\u5831\u306b\u5909\u63db\u3059\u308b\u305f\u3081\u306b\u8cfc\u5165\u3002<br \/>\r\nADS1015\u306f\u300112 \u30d3\u30c3\u30c8\uff084096\uff09\u306e\u30c7\u30fc\u30bf\u306b\u5909\u63db\u3059\u308b\u306e\u3067\u7d044000\u6bb5\u968e\u306e\u5024\u304c\u53d6\u5f97\u3067\u304d\u308b\u3002<br \/>\r\n<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0141.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0141\" data-rl_caption=\"\" title=\"hyakuyoubako_0141\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7489\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0141.png\" alt=\"ADS1015: 12 \u30d3\u30c3\u30c8\u30013.3kSPS\u30014 \u30c1\u30e3\u30cd\u30eb\u30fb\u30c7\u30eb\u30bf\u30fb\u30b7\u30b0\u30de ADC\r\n\" width=\"800\" height=\"241\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>PGA (\u30d7\u30ed\u30b0\u30e9\u30de\u30d6\u30eb\u30fb\u30b2\u30a4\u30f3\u30fb\u30a2\u30f3\u30d7) \u3068\u767a\u632f\u5668\u3068 VREF \u3068\u30b3\u30f3\u30d1\u30ec\u30fc\u30bf\u3068 I2C \u642d\u8f09\u3002<a href=\"https:\/\/www.ti.com\/product\/ja-jp\/ADS1015\" target=\"_blank\" rel=\"noopener\">https:\/\/www.ti.com\/product\/ja-jp\/ADS1015<\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>slave addresses\uff08ADDR\u30d4\u30f3\u306e\u63a5\u7d9a\u5148\u3067\u30a2\u30c9\u30ec\u30b9\u304c\u9078\u629e\u3067\u304d\u308b\uff09\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0143.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0143\" data-rl_caption=\"\" title=\"hyakuyoubako_0143\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7506\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0143.png\" alt=\"ADS1015: slave addresses\" width=\"400\" height=\"203\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div><strong>\u2464\uff0e\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9<\/strong>\uff1aACM1602NI-FLW-FBW\u3002<\/div>\r\n<div>I2C\u63a5\u7d9a\u30ad\u30e3\u30e9LCD\u30e2\u30b8\u30e5\u30fc\u30eb 16\u00d72\u884c \u767d\u8272\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u4ed8\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0152.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0152\" data-rl_caption=\"\" title=\"hyakuyoubako_0152\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7514\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0152.png\" alt=\"\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\uff1aACM1602NI-FLW-FBW\" width=\"600\" height=\"416\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div><strong><span style=\"color: #ff00ff;\">\u203b\uff1a\u3053\u306e I2C \u30c7\u30d0\u30a4\u30b9\u306f\u300c <span style=\"color: #000080;\">i2cdetect<\/span> \u300d\u3067\u30a2\u30c9\u30ec\u30b9\u304c\u53d6\u5f97\u3067\u304d\u306a\u3044 \u203c\u3002<\/span><\/strong><br \/>\r\n<span style=\"color: #ff0000;\">Slaver address could only set to 1010000, no other slaver address could be set.<\/span><\/div>\r\n<div>\u00a0<\/div>\r\n<div><a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0153.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0153\" data-rl_caption=\"\" title=\"hyakuyoubako_0153\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7509\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0153.png\" alt=\"\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\uff1aACM1602NI-FLW-FBW\" width=\"600\" height=\"170\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u6db2\u6676\u306b\u8868\u793a\u3055\u308c\u308b\u6587\u5b57\u306e\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u306f\u30013\u756a\u7aef\u5b50\u306b\u304b\u3051\u308b\u96fb\u5727\u3067\u8abf\u6574\u3067\u304d\u308b\u3002\u3053\u306e\u70ba\u306b\u62b5\u6297\u3067\u96fb\u5727\u3092\u5909\u5316\u3055\u305b\u308b\u304c\u3001\u3069\u306e\u7a0b\u5ea6\u306e\u96fb\u5727\u306b\u3059\u308c\u3070\u9069\u5207\u306a\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u306b\u306a\u308b\u304b\u5206\u304b\u3089\u306a\u3044\u306e\u3067\u3001\u300c\u53ef\u5909\u62b5\u6297\u300d\u3092\u5229\u7528\u3059\u308b\u3002\u4f46\u3057\u3001\u4e00\u5ea6\u8abf\u6574\u3057\u305f\u3089\u5909\u3048\u308b\u3053\u3068\u306f\u7121\u3044\u306e\u3067\u300c<strong><span style=\"color: #ff0000;\">10k\u03a9\u306e\u534a\u56fa\u5b9a\u62b5\u6297<\/span><\/strong>\u300d\u3092\u4f7f\u7528\u3057\u305f\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u3055\u3089\u306b\u3001\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u306e\u70b9\u706f\u64cd\u4f5c\u3092\u884c\u3048\u308b\u69d8\u306b\u3001ACM1602NI\u306e6\u756a\u7aef\u5b50\u3092\u300cGPIO 4\uff08\u7aef\u5b50\u756a\u53f7\uff1a7\u756a\uff09\u300d\u306b\u63a5\u7d9a\u3057\u3001\u96fb\u5727\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u3089\u306a\u3044\u69d8\u306b\u300c1k\u03a9\u300d\u306e\u62b5\u6297\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\u3059\u308b\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0155.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0155\" data-rl_caption=\"\" title=\"hyakuyoubako_0155\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7512\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0155.png\" alt=\"ACM1602NI\u306e6\u756a\u7aef\u5b50\u3092\u300cGPIO 4\uff08\u7aef\u5b50\u756a\u53f7\uff1a7\u756a\uff09\u300d\u306b\u63a5\u7d9a\u3057\u3001\u96fb\u5727\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u3089\u306a\u3044\u69d8\u306b\u300c1k\u03a9\u300d\u306e\u62b5\u6297\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\u3059\u308b\" width=\"600\" height=\"540\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div><a href=\"https:\/\/voltechno.com\/blog\/pullup-pulldown\/\" target=\"_blank\" rel=\"noopener\">\u30d7\u30eb\u30c0\u30a6\u30f3\u306b\u3064\u3066\u306f\u3001\u3053\u3061\u3089\u3092\u53c2\u8003\u306b\u3002<\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div id=\"title4\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>4. \u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u8868\u793a\u5185\u5bb9\u3068\u8868\u793a\u4f4d\u7f6e<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u3053\u308c\u3089\u306e\u30bb\u30f3\u30b5\u30fc\u304b\u3089\u5024\u3092\u53d6\u5f97\u3059\u308b\u56de\u8def\u3068\u3001\u53d6\u5f97\u3057\u305f\u5024\u3092HDMI\u7aef\u5b50\u306b\u63a5\u7d9a\u3057\u3066\u3044\u308b\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306b\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u305f\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u3057\u304b\u3057\u3053\u308c\u3060\u3068\u3001\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u304c\u306a\u3051\u308c\u3070\u5f79\u306b\u7acb\u305f\u306a\u3044\u306e\u3067\u3001\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\u306b\u8868\u793a\u3057\u3001 Raspberry Pi \u5358\u72ec\u3067 \u300e\u767e\u8449\u7bb1\u300f \u306b\u306a\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u8868\u793a\u5185\u5bb9\u3002\u00a0<\/div>\r\n<div><a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/lcdscreen.jpg\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"LCD\u3078\u306e\u8868\u793a\u8a2d\u8a08\" data-rl_caption=\"\" title=\"LCD\u3078\u306e\u8868\u793a\u8a2d\u8a08\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-158\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/lcdscreen.jpg\" alt=\"LCD\u3078\u306e\u8868\u793a\u8a2d\u8a08\" width=\"1007\" height=\"121\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u8868\u793a\u4f4d\u7f6e\u306e\u6307\u5b9a\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div><a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/charlcdp12.jpg\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"LCD\u8868\u793a\u4f4d\u7f6e\" data-rl_caption=\"\" title=\"LCD\u8868\u793a\u4f4d\u7f6e\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-159\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/charlcdp12.jpg\" alt=\"LCD\u8868\u793a\u4f4d\u7f6e\" width=\"800\" height=\"234\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>Raspberry Pi \u306e\u30b3\u30de\u30f3\u30c9\u3084\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u300116\u9032\u6570\u3092\u8868\u8a18\u3059\u308b\u5834\u5408\u306f\u6570\u5b57\u306e\u524d\u306b\u300c<strong><span style=\"color: #ff00ff;\">0x<\/span><\/strong>\u300d\u3092\u4ed8\u3051\u308b\u3002<br \/>\r\n<br \/>\r\n\u8868\u793a\u4f4d\u7f6e\u3092\u30d8\u30ad\u30b5\u30c7\u30b7\u30de\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\u3067\u6307\u5b9a\u3059\u308b\u3068\u3044\u3046\u306e\u304c\u3001EBCDIC\uff08\u30a8\u30d3\u30b7\u30c7\u30a3\u30c3\u30af\uff09\u306e\u6c4e\u7528\u6a5f\u3067\u80b2\u3063\u305f\u4e16\u4ee3\u306b\u306f\u4f55\u3068\u3082\u61d0\u304b\u3057\u3044\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u8868\u793a\u7d50\u679c\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2017\/09\/lcd123.jpg\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\" data-rl_caption=\"\" title=\"\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-48\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2017\/09\/lcd123.jpg\" alt=\"\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\" width=\"800\" height=\"600\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div id=\"title5\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>5. \u6c17\u8c61\u60c5\u5831\u53d6\u5f97\u56de\u8def\u56f3<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0Raspberry Pi \u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308bGPIO\u306b\u96fb\u5b50\u56de\u8def\u3092\u63a5\u7d9a\u3059\u308b\u3068\u3001\u96fb\u5b50\u30c7\u30d0\u30a4\u30b9\u306e\u5236\u5fa1\u304c\u3067\u304d\u308b\u3002<br \/>\r\n\u53c8\u3001Python\u306b\u306fI2C\u30c7\u30d0\u30a4\u30b9\u5236\u5fa1\u7528\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u7c21\u5358\u306b\u30c7\u30d0\u30a4\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<blockquote>\r\n<p>\u3000<strong>I2C\uff08Inter-Integrated Circuit\uff09\u3068\u306f<\/strong><br \/>\r\n\u3000\u30d5\u30a3\u30ea\u30c3\u30d7\u30b9\u793e\uff08\u73feNXP\u793e\uff09\u304c\u63d0\u5531\u3059\u308b\u901a\u4fe1\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\uff0c \u30af\u30ed\u30c3\u30af\u306b\u540c\u671f\u3055\u305b\u3066\u30c7\u30fc\u30bf\u306e\u901a\u4fe1\u3092\u884c\u3046\u540c\u671f\u5f0f\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u306e\u3072\u3068\u3064\u3067\u3059\u3002<\/p>\r\n<p>\u3000I2C\u3067\u306f\uff0c\u30af\u30ed\u30c3\u30af\uff08<span style=\"color: #ff0000;\"><strong>SCL<\/strong><\/span>\uff09\uff0c\u30c7\u30fc\u30bf\u5165\u51fa\u529b\uff08<span style=\"color: #ff0000;\"><strong>SDA<\/strong><\/span>\uff09\u306e2\u672c\u306e\u4fe1\u53f7\u7dda\u3092\u7528\u3044\u3066\u901a\u4fe1\u3057\u307e\u3059\u3002<\/p>\r\n<\/blockquote>\r\n<div>\u00a0<\/div>\r\n<div>I2C\u306f\u3001\u5404\u7a2e\u30c7\u30d0\u30a4\u30b9\u3092\u5236\u5fa1\u3059\u308b\u30de\u30b9\u30bf\u30fc\uff08Raspberry Pi\uff09\u3068\u3001\u30de\u30b9\u30bf\u30fc\u304b\u3089\u306e\u547d\u4ee4\u306b\u3088\u3063\u3066\u5236\u5fa1\u3055\u308c\u308b\u30b9\u30ec\u30fc\u30d6\uff08I2C\u30c7\u30d0\u30a4\u30b9\uff09\u306b\u5206\u304b\u308c\u308b\u3002\u30b9\u30ec\u30fc\u30d6\u306f\u3001\u6570\u73e0\u3064\u306a\u304e\u306b\u4f55\u53f0\u3082\u63a5\u7d9a\u53ef\u80fd\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_0011.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"weather-csv_0011\" data-rl_caption=\"\" title=\"weather-csv_0011\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7503\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_0011.png\" alt=\"I2C\u306f\u3001\u5404\u7a2e\u30c7\u30d0\u30a4\u30b9\u3092\u5236\u5fa1\u3059\u308b\u30de\u30b9\u30bf\u30fc\uff08Raspberry Pi\uff09\u3068\u3001\u30de\u30b9\u30bf\u30fc\u304b\u3089\u306e\u547d\u4ee4\u306b\u3088\u3063\u3066\u5236\u5fa1\u3055\u308c\u308b\u30b9\u30ec\u30fc\u30d6\uff08I2C\u30c7\u30d0\u30a4\u30b9\uff09\u306b\u5206\u304b\u308c\u308b\" width=\"800\" height=\"247\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>I2C \u30c7\u30d0\u30a4\u30b9\u306b\u306f\u3001\u51fa\u8377\u6642\u306b\u300c\u00a00x03\u00a0-\u00a00x77 \u300d\u306e\u7bc4\u56f2\u3067\u30a2\u30c9\u30ec\u30b9\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u304a\u308a\u3001I2C\u30de\u30b9\u30bf\u30fc\u306f\u3053\u306e\u30a2\u30c9\u30ec\u30b9\u3067\u3001\u8907\u6570\u306e\u30b9\u30ec\u30fc\u30d6\u306e\u4e2d\u304b\u3089\u9069\u5207\u306a\u5bfe\u8c61\u3092\u8b58\u5225\u3059\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>Raspberry Pi\u306eGPIO\u7aef\u5b50\u3068\u4f7f\u7528\u3057\u305f\u30d4\u30f3\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_0111.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"weather-csv_0111\" data-rl_caption=\"\" title=\"weather-csv_0111\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7502\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_0111.png\" alt=\"Raspberry Pi\u306eGPIO\u7aef\u5b50\u3068\u4f7f\u7528\u3057\u305f\u30d4\u30f3\" width=\"800\" height=\"459\" srcset=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_0111.png 800w, https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_0111-100x57.png 100w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/div>\r\n<div>I2C\u30c7\u30d0\u30a4\u30b9\u3092 Raspberry Pi \u306b\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001GPIO\u3068\u540c\u3058\u7aef\u5b50\u3092\u5229\u7528\u3059\u308b\u3002<br \/>\r\n\u30c7\u30fc\u30bf\u306e\u9001\u53d7\u4fe1\u3092\u884c\u3046\u300cSDA\u300d\u306f\u7aef\u5b50\u756a\u53f7<strong><span style=\"color: #ff0000;\">3\u756a<\/span><\/strong>\u3001\u30af\u30ed\u30c3\u30af\u306e\u300cSCL\u300d\u306f\u7aef\u5b50\u756a\u53f7<strong><span style=\"color: #ff0000;\">5\u756a<\/span><\/strong>\u3068\u306a\u3063\u3066\u3044\u308b\u3002\u3053\u306eI2C\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u756a\u53f7\uff08I2C\u30d0\u30b9\u756a\u53f7\uff09\u306f\u300c<strong><span style=\"color: #ff00ff;\">1<\/span><\/strong>\u300d\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u6c17\u8c61\u60c5\u5831\u53d6\u5f97\u56de\u8def\u56f3\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0211.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0211\" data-rl_caption=\"\" title=\"hyakuyoubako_0211\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7507\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0211.png\" alt=\"I2C\u30c7\u30d0\u30a4\u30b9\u63a5\u7d9a\u56de\u8def\u56f3\" width=\"800\" height=\"390\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u914d\u7dda\u56f3\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2017\/09\/lcd122.jpg\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"\u30ad\u30e3\u30e9\u30af\u30bfLCD\u3078\u306e\u8868\u793a i2c\u56de\u8def\u56f3\" data-rl_caption=\"\" title=\"\u30ad\u30e3\u30e9\u30af\u30bfLCD\u3078\u306e\u8868\u793a i2c\u56de\u8def\u56f3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-52\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2017\/09\/lcd122.jpg\" alt=\"\u30ad\u30e3\u30e9\u30af\u30bfLCD\u3078\u306e\u8868\u793a i2c\u56de\u8def\u56f3\" width=\"800\" height=\"600\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>I2C\u3067\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u30c7\u30d0\u30a4\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>sudo i2cdetect -y 1<br \/>\r\n<\/strong>\u3000\u2190\u3000\u30d0\u30b9\u756a\u53f7\u306f\uff080 \u304b 1\uff09\u3067\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3044\u65b9\u3092\u4f7f\u3046<strong><br \/>\r\n<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>I2C\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u30c7\u30d0\u30a4\u30b9\u306e\u30a2\u30c9\u30ec\u30b9\u3002<br \/>\r\n\uff08\u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\u306eACM1602NI\u3092\u5916\u3057\u3066\u78ba\u8a8d\u3002\uff09<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_0121.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"weather-csv_0121\" data-rl_caption=\"\" title=\"weather-csv_0121\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7510\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_0121.png\" alt=\"I2C\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u30c7\u30d0\u30a4\u30b9\u306e\u30a2\u30c9\u30ec\u30b9\" width=\"600\" height=\"256\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div id=\"title6\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>6. LCD\u8868\u793a Python \u30d7\u30ed\u30b0\u30e9\u30e0<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u7167\u5ea6\u306f\u53d6\u5f97\u3059\u308b\u3082\u3001LCD\u306e\u30b9\u30da\u30fc\u30b9\u304c\u7121\u304f\u8868\u793a\u305b\u305a\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>Python PGM List\u3002<\/div>\r\n<pre><code class=\u201dhljs python\"><span class=\"hljs-comment\">#! \/usr\/bin\/env \/usr\/bin\/python<\/span>\r\n<span class=\"hljs-comment\"># -*- coding: utf-8 -*-<\/span>\r\n\r\n<span class=\"hljs-keyword\">import<\/span> datetime\r\n<span class=\"hljs-keyword\">import<\/span> time\r\n<span class=\"hljs-keyword\">from<\/span> Adafruit_ADS1x15 <span class=\"hljs-keyword\">import<\/span> ADS1x15 <span class=\"hljs-comment\"># ADS1015\u95a2\u9023\u306e\u95a2\u6570\u7b49\u306e\u8aad\u307f\u8fbc\u307f<\/span>\r\n<span class=\"hljs-keyword\">import<\/span> smbus <span class=\"hljs-comment\"># I2C \u901a\u4fe1\u306b\u306f smbus \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046<\/span>\r\n<span class=\"hljs-keyword\">import<\/span> mpl1152a2 <span class=\"hljs-comment\"># \u5727\u529b\u53d6\u5f97\u95a2\u6570\u306e\u30a4\u30f3\u30dd\u30fc\u30c8<\/span>\r\n<span class=\"hljs-keyword\">from<\/span> acm1602 <span class=\"hljs-keyword\">import<\/span> acm1602 <span class=\"hljs-comment\"># acm1602\u95a2\u9023\u306e\u95a2\u6570\u7b49\u306e\u8aad\u307f\u8fbc\u307f<\/span>\r\n\r\n<span class=\"hljs-comment\"># \u30a2\u30ca\u30ed\u30b0\u5909\u63db\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/span>\r\nADS1015 = <span class=\"hljs-number\">0x00<\/span> <span class=\"hljs-comment\"># ADS1015\u3092\u6307\u5b9a\u3059\u308b\u5024\u3092\u5b9a\u7fa9<\/span>\r\ngain = <span class=\"hljs-number\">4096<\/span> <span class=\"hljs-comment\"># 3.3V\u30924096\u306b\u5206\u5272<\/span>\r\nsps = <span class=\"hljs-number\">250<\/span> <span class=\"hljs-comment\"># \u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u6570\u306e\u8a2d\u5b9a<\/span>\r\nadc = ADS1x15( ic=ADS1015 ) <span class=\"hljs-comment\"># ADS1015\u304b\u3089\u5024\u3092\u53d6\u5f97<\/span>\r\n\r\n<span class=\"hljs-comment\"># LCD\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/span>\r\n<span class=\"hljs-comment\"># LCD\u306e\u521d\u671f\u8a2d\u5b9a<\/span>\r\nlcd = acm1602( <span class=\"hljs-number\">1<\/span>, <span class=\"hljs-number\">0x50<\/span>, <span class=\"hljs-number\">4<\/span> ) <span class=\"hljs-comment\"># \u30c1\u30e3\u30f3\u30cd\u30eb\u756a\u53f7\u3001\u30b9\u30ec\u30fc\u30d6\u30a2\u30c9\u30ec\u30b9\u3001GPIO\u756a\u53f7<\/span>\r\nlcd.move_home() <span class=\"hljs-comment\"># \u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u3092\u5de6\u4e0a\u306b\u79fb\u52d5<\/span>\r\nlcd.set_cursol( <span class=\"hljs-number\">0<\/span> ) <span class=\"hljs-comment\"># \u30ab\u30fc\u30bd\u30eb\u3092\u975e\u8868\u793a\u306b\u3059\u308b<\/span>\r\nlcd.set_blink( <span class=\"hljs-number\">0<\/span> ) <span class=\"hljs-comment\"># \u30ab\u30fc\u30bd\u30eb\u306e\u70b9\u6ec5\u3092\u6b62\u3081\u308b<\/span>\r\n\r\n<span class=\"hljs-comment\"># \u30eb\u30fc\u30d7<\/span>\r\nSLEEPTIME = <span class=\"hljs-number\">300<\/span> <span class=\"hljs-comment\"># 60\u79d2 x 5\u5206<\/span>\r\n<span class=\"hljs-keyword\">while<\/span> <span class=\"hljs-literal\">True<\/span>: <span class=\"hljs-comment\"># \u6761\u4ef6\u5f0f\u300cTrue\u300d\u306f\u6c38\u7d9a\u7684\u306b\u7e70\u308a\u8fd4\u3057\u3092\u7d9a\u3051\u308b<\/span>\r\n\r\n\t<span class=\"hljs-comment\"># \u65e5\u6642\u53d6\u5f97<\/span>\r\n\td1 = datetime.datetime.today()\r\n\td2 = datetime.datetime.strftime(d1,<span class=\"hljs-string\">\"%Y-%m-%d\/%H:%M:%S\"<\/span>)\r\n\r\n\t<span class=\"hljs-comment\"># \u7167\u5ea6\u53d6\u5f97<\/span>\r\n\t<span class=\"hljs-comment\"># \u30c1\u30e3\u30f3\u30cd\u30eb\u3001\u30b2\u30a4\u30f3\u3001\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u6570\u3092\u6307\u5b9a\u3057\u3066\u30a2\u30ca\u30ed\u30b0\u5165\u529b\u306e\u5024\u3092\u53d6\u5f97\u3057<\/span>\r\n\t<span class=\"hljs-comment\"># 1000\u3067\u5272\u3063\u3066\u304a\u304a\u3088\u305d\u306e\u96fb\u5727\u306b\u5909\u63db<\/span>\r\n\tvolts = adc.readADCSingleEnded( <span class=\"hljs-number\">0<\/span>, gain, sps ) \/ <span class=\"hljs-number\">1000<\/span>\r\n\r\n\t<span class=\"hljs-comment\"># \u6e7f\u5ea6\u30fb\u6c17\u6e29\u30fb\u6c17\u5727\u53d6\u5f97<\/span>\r\n\ti2c_channel = <span class=\"hljs-number\">1<\/span> <span class=\"hljs-comment\"># I2C\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\uff08\u30d0\u30b9\u756a\u53f7\uff09\u3092\u6307\u5b9a\u3059\u308b<\/span>\r\n\ti2c = smbus.SMBus( i2c_channel ) <span class=\"hljs-comment\"># \u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97<\/span>\r\n\t\r\n\t<span class=\"hljs-comment\"># \u30b9\u30ec\u30fc\u30d6\u30a2\u30c9\u30ec\u30b9\u300c0x27\u300dHIH-6130\u304b\u30894\u30d0\u30a4\u30c8\u5206\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<\/span>\r\n\tdac = i2c.read_i2c_block_data( <span class=\"hljs-number\">0x27<\/span>, <span class=\"hljs-number\">0<\/span>, <span class=\"hljs-number\">4<\/span> )\r\n\t<span class=\"hljs-comment\">#  1\u30d0\u30a4\u30c8\u76ee\u306fdac[0]\u30012\u30d0\u30a4\u30c8\u76ee\u306f dac[1] \u30013\u30d0\u30a4\u30c8\u76ee\u306fdac[2] \u30014\u30d0\u30a4\u30c8\u76ee\u306fdac[3]<\/span>\r\n\t\r\n\th = ( ( dac[<span class=\"hljs-number\">0<\/span>] &amp; <span class=\"hljs-number\">0x3f<\/span> ) &lt;&lt; <span class=\"hljs-number\">8<\/span> ) | dac[<span class=\"hljs-number\">1<\/span>] <span class=\"hljs-comment\"># \u6e7f\u5ea6\u30c7\u30fc\u30bf\u306e\u30af\u30ec\u30f3\u30b8\u30f3\u30b0<\/span>\r\n\thumi = (float)(h) \/ <span class=\"hljs-number\">16383<\/span> * <span class=\"hljs-number\">100<\/span> <span class=\"hljs-comment\"># \u6e7f\u5ea6\u306e\u8a08\u7b97<\/span>\r\n\tt = ( dac[<span class=\"hljs-number\">2<\/span>] &lt;&lt; <span class=\"hljs-number\">6<\/span> ) | (dac[<span class=\"hljs-number\">3<\/span>] &gt;&gt; <span class=\"hljs-number\">2<\/span>) <span class=\"hljs-comment\"># \u6e29\u5ea6\u30c7\u30fc\u30bf\u306e\u30af\u30ec\u30f3\u30b8\u30f3\u30b0<\/span>\r\n\ttemp = (float)(t) \/<span class=\"hljs-number\">16383<\/span> * <span class=\"hljs-number\">165<\/span> - <span class=\"hljs-number\">40<\/span> <span class=\"hljs-comment\"># \u6e29\u5ea6\u306e\u8a08\u7b97<\/span>\r\n\t\r\n\t<span class=\"hljs-comment\"># \u5727\u529b\u53d6\u5f97\u95a2\u6570 mpl1152a2 \u3092\u4f7f\u3063\u3066\u6c17\u5727\u3092\u53d6\u5f97<\/span>\r\n\tpres = mpl1152a2.getpressur( i2c_channel )\r\n\r\n\td1 = datetime.datetime.today()\r\n\td2 = datetime.datetime.strftime(d1,<span class=\"hljs-string\">\"%m%d\"<\/span>)\r\n\t\r\n\t<span class=\"hljs-keyword\">print<\/span> d1\r\n\tprint(<span class=\"hljs-string\">\"Illuminance : \"<\/span> + str(volts) + <span class=\"hljs-string\">\" V\"<\/span> )\r\n\t<span class=\"hljs-keyword\">print<\/span> <span class=\"hljs-string\">\"Temperature : %.2f C\"<\/span> % temp\r\n\t<span class=\"hljs-keyword\">print<\/span> <span class=\"hljs-string\">\"Humidity    : %.2f %%\"<\/span> % humi\r\n\t<span class=\"hljs-keyword\">print<\/span> <span class=\"hljs-string\">\"Pressure    : %.2f hPa\"<\/span> % pres\r\n\t\r\n\tlcd.backlight(<span class=\"hljs-number\">1<\/span>) <span class=\"hljs-comment\"># LCD\u306e\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u3092\u70b9\u706f\u3059\u308b<\/span>\r\n\t\r\n\t<span class=\"hljs-comment\"># LCD\u306e\u8868\u793a\u4f4d\u7f6e\u3092\u6307\u5b9a\u3057\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3080<\/span>\r\n\t\r\n\t<span class=\"hljs-comment\"># \u5e74\u6708\u65e5<\/span>\r\n\tlcd.move( <span class=\"hljs-number\">0x00<\/span>, <span class=\"hljs-number\">0x00<\/span> )\r\n\tlcd.write( d2 )\r\n\t<span class=\"hljs-comment\"># \u6642\u5206<\/span>\r\n\tlcd.move( <span class=\"hljs-number\">0x05<\/span>, <span class=\"hljs-number\">0x00<\/span> )\r\n\tlcd.write( time.strftime(<span class=\"hljs-string\">\"%H%M\"<\/span>) )\r\n\t<span class=\"hljs-comment\"># \u6e29\u5ea6<\/span>\r\n\tlcd.move( <span class=\"hljs-number\">0x0a<\/span>, <span class=\"hljs-number\">0x00<\/span> )\r\n\tlcd.write( <span class=\"hljs-string\">\"%.2fC\"<\/span> % temp )\r\n\t<span class=\"hljs-comment\"># \u6e7f\u5ea6<\/span>\r\n\tlcd.move( <span class=\"hljs-number\">0x00<\/span>, <span class=\"hljs-number\">0x01<\/span> )\r\n\tlcd.write( <span class=\"hljs-string\">\"%.2f%%\"<\/span> % humi)\r\n\t<span class=\"hljs-comment\"># \u6c17\u5727<\/span>\r\n\tlcd.move( <span class=\"hljs-number\">0x07<\/span>, <span class=\"hljs-number\">0x01<\/span> )\r\n\tlcd.write(<span class=\"hljs-string\">\"%.2fhP\"<\/span> % pres )\r\n\r\n\ttime.sleep( SLEEPTIME ) <span class=\"hljs-comment\"># SLEEPTIME \u306e\u5024\u307e\u3067\u5f85\u6a5f\u3059\u308b<\/span><\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #000000; padding: 3px 5px 3px 10px; ; color: #ffffff; background: #191970;\"><strong>HIH-6130 \u30c7\u30b8\u30bf\u30eb\u6e7f\u5ea6\u30bb\u30f3\u30b5\u306e\u51fa\u529b\u5185\u5bb9\uff084\u30d0\u30a4\u30c8\uff09\u3068\u30af\u30ec\u30f3\u30b8\u30f3\u30b0<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u51fa\u529b\u5185\u5bb9\uff084\u30d0\u30a4\u30c8\uff09\u306e\u8a73\u7d30\u3002<br \/>\r\n<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0125.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0125\" data-rl_caption=\"\" title=\"hyakuyoubako_0125\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7516\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0125.png\" alt=\"HIH-6130 \u30c7\u30b8\u30bf\u30eb\u6e7f\u5ea6\u30bb\u30f3\u30b5\u306e\u51fa\u529b\u5185\u5bb9\uff084\u30d0\u30a4\u30c8\uff09\u3068\u30af\u30ec\u30f3\u30b8\u30f3\u30b0\" width=\"800\" height=\"326\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #000000; padding: 3px 5px 3px 10px; ; color: #ffffff; background: #191970;\"><strong>\u6e7f\u5ea6\u30c7\u30fc\u30bf\u306e1\u30d0\u30a4\u30c8\u76ee\u306e\u524d2\u30d3\u30c3\u30c8\u3092\u53d6\u308a\u9664\u304f<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u2460\uff0edac[0] &amp; 0x3f\uff1a\u6e7f\u5ea6\u30c7\u30fc\u30bf\u306e1\u30d0\u30a4\u30c8\u76ee\u306e\u524d2\u30d3\u30c3\u30c8\uff08Status\u5206\uff09\u304c\u4e0d\u8981\u306a\u306e\u3067\u300c00111111=3f\u300d\u3067<strong><span style=\"color: #ff00ff;\">AND<\/span><\/strong>\u3057\u3066\u300c00\u300d\u306b\u3059\u308b\u3002<br \/>\r\n\u2461\uff0e ( dac[0] &amp; 0x3f ) &lt;&lt; 8 \uff1a1\u30d0\u30a4\u30c8\u76ee\u30928\u6841\u5206\u5de6\u306b\u30b7\u30d5\u30c8\u3059\u308b\uff08\u52d5\u304b\u3057\u3066\u7a7a\u3044\u305f\u6841\u306b\u306f\u300c0\u300d\u304c\u5165\u308b\uff09\u3002<br \/>\r\n\u2462\uff0e( ( dac[0] &amp; 0x3f ) &lt;&lt; 8 ) | dac[1] \uff1a\u30b7\u30d5\u30c8\u3057\u305f1\u30d0\u30a4\u30c8\u76ee\u3068\uff12\u30d0\u30a4\u30c8\u76ee\u3092<strong><span style=\"color: #ff00ff;\">OR<\/span><\/strong>\u3067\u3064\u306a\u3050\u3002<br \/>\r\n\u2192\u3000\u53d6\u308a\u51fa\u3057\u305f\u30c7\u30fc\u30bf\u306f\u524d2\u30d3\u30c3\u30c8\u304c\u300c00\u300d\u306a\u306e\u3067\u300c14\u30d3\u30c3\u30c8\u304c\u5024\u300d\u3002<br \/>\r\n<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0127.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0127\" data-rl_caption=\"\" title=\"hyakuyoubako_0127\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7518\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0127.png\" alt=\"\u6e7f\u5ea6\u30c7\u30fc\u30bf\u306e1\u30d0\u30a4\u30c8\u76ee\u306e\u524d2\u30d3\u30c3\u30c8\u3092\u53d6\u308a\u9664\u304f\" width=\"800\" height=\"342\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #000000; padding: 3px 5px 3px 10px; ; color: #ffffff; background: #191970;\"><strong>\u6e29\u5ea6\u30c7\u30fc\u30bf\u306e4\u30d0\u30a4\u30c8\u76ee\u306e\u5f8c\u308d2\u30d3\u30c3\u30c8\u3092\u53d6\u308a\u9664\u304f<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u2463\uff0e(dac[3] &gt;&gt; 2\uff1a\u6e29\u5ea6\u30c7\u30fc\u30bf\u306e\uff14\u30d0\u30a4\u30c8\u76ee\u3092\u53f3\u306b2\u6841\u5206\u30b7\u30d5\u30c8\u3059\u308b\uff08\u52d5\u304b\u3057\u3066\u7a7a\u3044\u305f\u6841\u306b\u306f\u300c0\u300d\u304c\u5165\u308b\uff09\u3002<br \/>\r\n\u2461\uff0edac[2] &lt;&lt; 6 ) \uff1a3\u30d0\u30a4\u30c8\u76ee\u3092\u5de6\u306b6\u6841\u5206\u30b7\u30d5\u30c8\u3059\u308b\uff08\u52d5\u304b\u3057\u3066\u7a7a\u3044\u305f\u6841\u306b\u306f\u300c0\u300d\u304c\u5165\u308b\uff09\u3002<br \/>\r\n\u2462\uff0e( dac[2] &lt;&lt; 6 ) | (dac[3] &gt;&gt; 2)\uff1a\u5909\u63db\u3057\u305f3\u30d0\u30a4\u30c8\u76ee\u30684\u30d0\u30a4\u30c8\u76ee\u3092<strong><span style=\"color: #ff00ff;\">OR<\/span><\/strong>\u3067\u3064\u306a\u3050\u3002<br \/>\r\n\u2192\u3000\u53d6\u308a\u51fa\u3057\u305f\u30c7\u30fc\u30bf\u306f8\u30d3\u30c3\u30c8\u306b6\u30d3\u30c3\u30c8\u304c\u7d50\u5408\u3055\u308c\u305f\u306e\u3067\u300c14\u30d3\u30c3\u30c8\u304c\u5024\u300d\u3002<br \/>\r\n<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0129.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"hyakuyoubako_0129\" data-rl_caption=\"\" title=\"hyakuyoubako_0129\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7517\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/hyakuyoubako_0129.png\" alt=\"\u6e29\u5ea6\u30c7\u30fc\u30bf\u306e4\u30d0\u30a4\u30c8\u76ee\u306e\u5f8c\u308d2\u30d3\u30c3\u30c8\u3092\u53d6\u308a\u9664\u304f\" width=\"800\" height=\"343\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>print()\u95a2\u6570\u3067\u306e\u8868\u793a\u7d50\u679c\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-print_0011.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"weather-print_0011\" data-rl_caption=\"\" title=\"weather-print_0011\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7515\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-print_0011.png\" alt=\"print()\u95a2\u6570\u3067\u306e\u8868\u793a\u7d50\u679c\" width=\"400\" height=\"501\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div id=\"title7\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>7. Python\u304b\u3089CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u8fbc\u307f<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u6db2\u6676\u30c7\u30d0\u30a4\u30b9\u3092\u898b\u3066\u3044\u308b\u3068\u3001\u6c17\u8c61\u60c5\u5831\u3092\u6642\u7cfb\u5217\u3067\u4fdd\u5b58\u3057\u3001\u5909\u5316\u3092\u30b0\u30e9\u30d5\u3067\u898b\u305f\u304f\u306a\u308b\u3002 \u305d\u3053\u3067\u3001\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u300cCSV\u300d\u3067\u4fdd\u5b58\u3057\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30d1\u30bd\u30b3\u30f3\u306b\u53d6\u308a\u8fbc\u3093\u3067\u3001 \u30a8\u30af\u30bb\u30eb\u3067\u30b0\u30e9\u30d5\u8868\u793a\u306b\u3057\u3066\u898b\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u624b\u9806\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>\u2460\uff0ePython\u3067CSV\u30d5\u30a1\u30a4\u30eb\u3092\u65b0\u898f\u306b\u4f5c\u6210\u3059\u308b\u3002<br \/>\r\n\u2461\uff0e\u4f5c\u6210\u3057\u305f csv\u30d5\u30a1\u30a4\u30eb \u306b\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u3092\u8ffd\u8a18\u3059\u308b\u3002<br \/>\r\n\u2462\uff0e\u30d1\u30bd\u30b3\u30f3\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a8\u30af\u30bb\u30eb\u3067\u30b0\u30e9\u30d5\u306b\u3059\u308b\u3002<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; color: #ffffff; background: #191970; border-radius: 5px; position: relative; top: 0px;\">\u2460\uff0e\u6c17\u8c61\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b csv\u30d5\u30a1\u30a4\u30eb \u3092\u4f5c\u308b<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0csv\u30d5\u30a1\u30a4\u30eb \u3092\u4fdd\u5b58\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3092\u4f5c\u308b\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>mkdir \/home\/pi\/data<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>csv\u30d5\u30a1\u30a4\u30eb \u3092\u4f5c\u308bpython\u30d7\u30ed\u30b0\u30e9\u30e0\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>sudo nano \/home\/pi\/Python_PGM\/makecsv_01.py<\/strong><\/div>\r\n<pre><code class=\u201dhljs python\"><span class=\"hljs-keyword\">import<\/span> csv\r\n\r\n<span class=\"hljs-keyword\">with<\/span> open(<span class=\"hljs-string\">'data\/weather-data_01.csv'<\/span>, <span class=\"hljs-string\">'w'<\/span>) <span class=\"hljs-keyword\">as<\/span> f:\r\n    writer = csv.writer(f)\r\n    writer.writerow([<span class=\"hljs-string\">'\u65e5\u4ed8'<\/span>,<span class=\"hljs-string\">'\u6642\u523b'<\/span>,<span class=\"hljs-string\">'\u6c17\u6e29'<\/span>,<span class=\"hljs-string\">'\u6e7f\u5ea6'<\/span>,<span class=\"hljs-string\">'\u6c17\u5727'<\/span>])\r\n    writer.writerow([<span class=\"hljs-string\">'2023-02-15'<\/span>,<span class=\"hljs-string\">'09:07:38'<\/span>,<span class=\"hljs-number\">18.54<\/span>,<span class=\"hljs-number\">53.46<\/span>,<span class=\"hljs-number\">1068.60<\/span>])<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div><span style=\"color: #0000ff;\"><strong>open()<\/strong><\/span>\u306e\u7b2c\u4e00\u5f15\u6570\u306b\u306f\u3001\u65b0\u305f\u306a\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3002<br \/>\r\ncsv\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092\u300c<span style=\"color: #ff0000;\"><strong>weather-data_01.csv<\/strong><\/span>\u300d\u3068\u3057\u305f\u3002<br \/>\r\n\u7b2c\u4e8c\u5f15\u6570\u306f\u300cmode\u300d\u3067\u3001\u66f8\u304d\u8fbc\u307f\u30e2\u30fc\u30c9\u3092'w'\u3068\u3059\u308b\u3068\u4e0a\u66f8\u304d\u3068\u306a\u308a\u3001\u5143\u306e\u5185\u5bb9\u306f\u524a\u9664\u3055\u308c\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div><strong><span style=\"color: #0000ff;\">writerow()<\/span><\/strong>\u30e1\u30bd\u30c3\u30c9\u30671\u884c\u305a\u3064\u66f8\u304d\u8fbc\u3080\u3002\u5f15\u6570\u306f\u30ea\u30b9\u30c8\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; color: #ffffff; background: #191970; border-radius: 5px; position: relative; top: 0px;\">\u2461\uff0e\u4f5c\u6210\u3057\u305f csv\u30d5\u30a1\u30a4\u30eb \u306b\u6c17\u8c61\u30c7\u30fc\u30bf\u3092\u8ffd\u8a18\u3059\u308b<\/div>\r\n<div>\u00a0<\/div>\r\n<div>csv\u30d5\u30a1\u30a4\u30eb \u306b\u300c30\u5206\u300d\u6bce\u306e\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u3092\u8ffd\u8a18\u3059\u308bpython\u30d7\u30ed\u30b0\u30e9\u30e0\u3002<\/div>\r\n<pre><code class=\u201dhljs python\"><span class=\"hljs-comment\">#! \/usr\/bin\/env \/usr\/bin\/python<\/span>\r\n<span class=\"hljs-comment\"># -*- coding: utf-8 -*-<\/span>\r\n\r\n<span class=\"hljs-keyword\">import<\/span> datetime\r\n<span class=\"hljs-keyword\">import<\/span> time\r\n<span class=\"hljs-keyword\">import<\/span> smbus\r\n<span class=\"hljs-keyword\">import<\/span> mpl1152a2\r\n<span class=\"hljs-keyword\">from<\/span> acm1602 <span class=\"hljs-keyword\">import<\/span> acm1602\r\n<span class=\"hljs-keyword\">import<\/span> csv\r\n\r\n<span class=\"hljs-comment\"># \u30eb\u30fc\u30d7<\/span>\r\ninterval = <span class=\"hljs-number\">1800<\/span> <span class=\"hljs-comment\"># 60\u79d2 x 30\u5206<\/span>\r\n<span class=\"hljs-keyword\">while<\/span> <span class=\"hljs-literal\">True<\/span>: <span class=\"hljs-comment\"># \u6761\u4ef6\u5f0f\u300cTrue\u300d\u306f\u6c38\u7d9a\u7684\u306b\u7e70\u308a\u8fd4\u3057\u3092\u7d9a\u3051\u308b<\/span>\r\n\r\n\ti2c_channel = <span class=\"hljs-number\">1<\/span>\r\n\ti2c = smbus.SMBus( i2c_channel )\r\n\tdac = i2c.read_i2c_block_data( <span class=\"hljs-number\">0x27<\/span>, <span class=\"hljs-number\">0<\/span>, <span class=\"hljs-number\">4<\/span> )\r\n\th = ( ( dac[<span class=\"hljs-number\">0<\/span>] &amp; <span class=\"hljs-number\">0x3f<\/span> ) &lt;&lt; <span class=\"hljs-number\">8<\/span> ) | dac[<span class=\"hljs-number\">1<\/span>]\r\n\thumi = (float)(h) \/ <span class=\"hljs-number\">16383<\/span> * <span class=\"hljs-number\">100<\/span>\r\n\tt = ( dac[<span class=\"hljs-number\">2<\/span>] &lt;&lt; <span class=\"hljs-number\">6<\/span> ) | (dac[<span class=\"hljs-number\">3<\/span>] &gt;&gt; <span class=\"hljs-number\">2<\/span>)\r\n\ttemp = (float)(t) \/<span class=\"hljs-number\">16383<\/span> * <span class=\"hljs-number\">165<\/span> - <span class=\"hljs-number\">40<\/span>\r\n\tpres = mpl1152a2.getpressur( i2c_channel )\r\n\t\r\n\td1 = datetime.datetime.today()\r\n\tdate = d1.strftime(<span class=\"hljs-string\">'%Y-%m-%d'<\/span>) <span class=\"hljs-comment\">#\u65e5\u4ed8\u306e\u6574\u5f62 yyyy-mm-dd<\/span>\r\n\tjkok = d1.strftime(<span class=\"hljs-string\">'%H:%M'<\/span>) <span class=\"hljs-comment\">#\u6642\u9593\u306e\u6574\u5f62 hh:mm<\/span>\r\n\r\n\ttemp = <span class=\"hljs-string\">\"{:.2f}\"<\/span> . format(temp) <span class=\"hljs-comment\">#\u6c17\u6e29\uff08\u5c0f\u6570\u70b9\u7b2c2\u4f4d\u307e\u3067\uff09<\/span>\r\n\thumi = <span class=\"hljs-string\">\"{:.2f}\"<\/span> . format(humi) <span class=\"hljs-comment\">#\u6e7f\u5ea6\uff08\u5c0f\u6570\u70b9\u7b2c2\u4f4d\u307e\u3067\uff09<\/span>\r\n\tpres = <span class=\"hljs-string\">\"{:.2f}\"<\/span> . format(pres) <span class=\"hljs-comment\">#\u6e7f\u5ea6\uff08\u5c0f\u6570\u70b9\u7b2c2\u4f4d\u307e\u3067\uff09<\/span>\r\n\t\r\n\t<span class=\"hljs-keyword\">print<\/span> date\r\n\t<span class=\"hljs-keyword\">print<\/span> jkok\r\n\t<span class=\"hljs-keyword\">print<\/span> temp\r\n\t<span class=\"hljs-keyword\">print<\/span> humi\r\n\t<span class=\"hljs-keyword\">print<\/span> pres\r\n\t\r\n\t<span class=\"hljs-comment\"># CSV\u66f8\u304d\u51fa\u3057<\/span>\r\n\t<span class=\"hljs-keyword\">with<\/span> open(<span class=\"hljs-string\">'\/home\/pi\/data\/weather-data_01.csv'<\/span>,<span class=\"hljs-string\">'a'<\/span>) <span class=\"hljs-keyword\">as<\/span> f:\r\n\t\twriter = csv.writer(f)\r\n\t\twriter.writerow([date,jkok,temp,humi,pres])\r\n\r\n\ttime.sleep(interval) <span class=\"hljs-comment\"># interval\u306e\u5024\u307e\u3067\u5f85\u6a5f\u3059\u308b<\/span>\r\n<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\u65e2\u5b58\u306eCSV\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3057\u305f\u3044\u5834\u5408\u306f\u3001<strong><span style=\"color: #0000ff;\"> open()\u306e\u8ffd\u8a18\u30e2\u30fc\u30c9\u2018a\u2019<\/span> <\/strong>\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3002<br \/>\r\n\u66f8\u304d\u8fbc\u307f\u81ea\u4f53\u306f\u65b0\u898f\u4f5c\u6210\u306e\u5834\u5408\u3068\u540c\u3058\u304f<strong><span style=\"color: #0000ff;\">writerow()\u3084writerows()<\/span><\/strong>\u3002<br \/>\r\n\u672b\u5c3e\u306b\u8ffd\u8a18\u3055\u308c\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div><strong><span style=\"color: #ff0000;\">\u203b\uff1a<\/span><\/strong>sleep\u3068\u3044\u3046\u95a2\u6570\u300c<strong><span style=\"color: #0000ff;\">time.sleep(interval)<\/span><\/strong>\u300d\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001 \u300c<strong><span style=\"color: #ff00ff;\">time<\/span><\/strong>\u300d\u3068\u8a00\u3046\u540d\u524d\u306e\u5909\u6570\u306f\u4f7f\u7528\u3067\u304d\u306a\u3044\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>csv\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u898b\u3066\u307f\u308b\u3002<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; background: #f0f8ff; border-radius: 5px; position: relative; top: 0px;\"><strong>sudo nano \/home\/pi\/data\/weather-data_01.csv<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u3001\u30c7\u30fc\u30bf\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_1011.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"weather-csv_1011\" data-rl_caption=\"\" title=\"weather-csv_1011\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7500\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_1011.png\" alt=\"\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u3001\u30c7\u30fc\u30bf\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\" width=\"600\" height=\"769\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #4169e1; padding: 5px 10px 3px 10px; color: #ffffff; background: #191970; border-radius: 5px; position: relative; top: 0px;\">\u2462\uff0e\u30d1\u30bd\u30b3\u30f3\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a8\u30af\u30bb\u30eb\u3067\u30b0\u30e9\u30d5\u306b\u3059\u308b<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0csv\u30d5\u30a1\u30a4\u30eb\u3092\u300cFileZilla\u300d\u3092\u4f7f\u3063\u3066\u3001\u30d1\u30bd\u30b3\u30f3\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30d1\u30bd\u30b3\u30f3\u5074\u3067csv\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u30a8\u30af\u30bb\u30eb\u3067\u30b0\u30e9\u30d5\u306b\u3059\u308b\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_1021.png\" data-rel=\"lightbox-gallery-TXAhaa48\" data-rl_title=\"weather-csv_1021\" data-rl_caption=\"\" title=\"weather-csv_1021\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7501\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/weather-csv_1021.png\" alt=\"\u30d1\u30bd\u30b3\u30f3\u5074\u3067csv\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u30a8\u30af\u30bb\u30eb\u3067\u30b0\u30e9\u30d5\u306b\u3059\u308b\" width=\"800\" height=\"519\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u53c2\u8003\uff1aRaspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30b9\u30de\u30db\u306b\u30e1\u30fc\u30eb\u3067\u9001\u4fe1\u3059\u308b<\/div>\r\n<div>\n <div class=\"blog-card\"><a href=\"https:\/\/arakoki70.com\/?p=599\">\n <div class=\"blog-card-thumbnail\"><img src='https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/imgp0033n-100x100.jpg' alt='Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092 \u30e1\u30fc\u30eb\u3067\u9001\u4fe1\u3059\u308b' width=90 height=90 \/><\/div>\n <div class=\"blog-card-content\">\n <div class=\"blog-card-title\">Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092 \u30e1\u30fc\u30eb\u3067\u9001\u4fe1\u3059\u308b <\/div>\n <div class=\"blog-card-excerpt\">Raspberry Pi \u4f5c\u54c1\u96c6\r\n\u6c17\u8c61\u60c5\u5831\u3092\u30b9\u30de\u30db\u306b\u30e1\u30fc\u30eb\u3067\u9001\u4fe1\u3059\u308b\r\n\u00a0\r\n2014\u5e74\u672b\u3001Raspberry Pi \u3068\u8a00\u3046\u8d85\u5c0f\u578b\u306e\u30b7\u30f3\u30b0\u30eb\u30dc\u30fc\u30c9\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b\u51fa\u4f1a\u3044\u3001\u96fb\u5b50\u5de5\u4f5c\u306e\u8da3\u5473\u304c\u7526\u308b\u3002\r\n\u00a0\r<\/div>\n <\/a>\n <div class=\"blog-card-date\">2015-01-05<\/div>\n <div class=\"blog-card-mdate\">2023-02-20<\/div>\n <\/div>\n <div class=\"clear\"><\/div>\n <div style=\"clear:both;\"> <\/div>\n <\/div><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u53c2\u8003\uff1aRaspberry Pi \u76e3\u8996\u30ab\u30e1\u30e9\u3092\u69cb\u7bc9\u3057\u9060\u9694\u76e3\u8996\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u3059\u308b<\/div>\r\n<div>\n <div class=\"blog-card\"><a href=\"https:\/\/arakoki70.com\/?p=811\">\n <div class=\"blog-card-thumbnail\"><img src='https:\/\/arakoki70.com\/wp-content\/uploads\/2014\/12\/20141231114718_b-450x253.jpg' alt='Raspberry Pi \u76e3\u8996\u30ab\u30e1\u30e9\u3092\u69cb\u7bc9\u3057\u9060\u9694\u76e3\u8996\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u3059\u308b' width=90 height=51 \/><\/div>\n <div class=\"blog-card-content\">\n <div class=\"blog-card-title\">Raspberry Pi \u76e3\u8996\u30ab\u30e1\u30e9\u3092\u69cb\u7bc9\u3057\u9060\u9694\u76e3\u8996\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u3059\u308b <\/div>\n <div class=\"blog-card-excerpt\">Raspberry Pi \u30ce\u30a6\u30cf\u30a6\u3068\u4f5c\u54c1\u96c6\r\n\u81ea\u5b85\u306e\u96fb\u5b50\u5de5\u4f5c\u30e9\u30dc\u3078\u306e\u5165\u5ba4\u8005\u3092\u8a18\u9332\u3057\u3001\r\n\u76e3\u8996\u7d50\u679c\u3092Web\u3067\u95b2\u89a7\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3002\r\n\u00a0\r\n\u4f7f\u7528\u3057\u305f\u90e8\u54c1\r\nRaspberry Pi \u30ab\u30e1\u30e9\u30e2\u30b8\u30e5\u30fc\u30eb\uff1a\u79cb<\/div>\n <\/a>\n <div class=\"blog-card-date\">2014-12-31<\/div>\n <div class=\"blog-card-mdate\">2023-10-08<\/div>\n <\/div>\n <div class=\"clear\"><\/div>\n <div style=\"clear:both;\"> <\/div>\n <\/div><\/div>\r\n<div>\u00a0<\/div>\r\n<p>&nbsp;<\/p>\r\n<p style=\"text-align: right;\">\u4ee5\u4e0a\u3002<br \/>\r\n(2015.01.02)<\/p>\r\n<div style=\"clear: both;\">\u00a0<\/div>\r\n<div>\t<p>&nbsp;<\/p>\n\t<div align=\"center\" style=\"font-size:8pt;\">\u30b9\u30dd\u30f3\u30b5\u30fc \u30ea\u30f3\u30af<br \/>\n<!-- \t<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script> -->\n\t<!-- \u8a18\u4e8b\u30fb\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6-7 -->\n\t<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-3816629014893825\"\n     data-ad-slot=\"1428770894\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n\t<script>\n\t(adsbygoogle = window.adsbygoogle || []).push({});\n\t<\/script>\n\t<amp-ad width=\"100vw\" height=\"320\"\n     type=\"adsense\"\n     data-ad-client=\"ca-pub-3816629014893825\"\n     data-ad-slot=\"1428770894\"\n     data-auto-format=\"rspv\"\n     data-full-width=\"\">\n\t <div overflow=\"\"><\/div>\n\t<\/amp-ad>\n\t<\/div>\n\n\t<p>&nbsp;<\/p>\n\n\t<p align=\"center\">\n\t<amp-social-share type=\"email\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"facebook\" data-param-app_id=\"131027923993169\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"linkedin\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"pinterest\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"tumblr\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"twitter\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"whatsapp\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"line\"><\/amp-social-share>\n\t<\/p>\n\n\t<p>&nbsp;<\/p>\n\t\n\t<!-- \u95a2\u9023\u30fb\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6 kanren-70 -->\n\t<div align=\"center\">\n\t\n\t<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-format=\"autorelaxed\"\n     data-ad-client=\"ca-pub-3816629014893825\"\n     data-ad-slot=\"8839675487\"><\/ins>\n\t<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n\t<\/script>\n\t\n\t<amp-ad width=\"100vw\" height=\"320\"\n\t\ttype=\"adsense\"\n\t\tdata-ad-client=\"ca-pub-3816629014893825\"\n\t\tdata-ad-slot=\"8839675487\"\n\t\tdata-auto-format=\"mcrspv\"\n\t\tdata-full-width=\"\">\n\t\t<div overflow=\"\"><\/div>\n\t<\/amp-ad>\n\t\n\t<\/div>\n\t\n\t<div> <\/div>\n\n\t<p>&nbsp;<\/p>\n<\/div>\r\n<div>\u00a0<\/div>","protected":false},"excerpt":{"rendered":"Raspberry Pi \u4f5c\u54c1\u96c6 \u6e29\u5ea6\u30fb\u6e7f\u5ea6\u30fb\u6c17\u5727\u3092 \u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u8868\u793a\u00a0\u3068 CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u4fdd\u5b58 \u00a0 Raspberry Pi \u306eLCD\u3092\u898b\u308c\u3070\u3001\u6e29\u5ea6\u30fb\u6e7f\u5ea6\u30fb\u6c17\u5727\u304c\u5224\u308b\u69d8\u306b\u3059\u308b\u3002 \u00a0 \u6db2\u6676 16\u6587\u5b57x2\u884c &hellip; <p class=\"link-more\"><a href=\"https:\/\/arakoki70.com\/?p=44\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a &#038; CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>","protected":false},"author":1,"featured_media":1901,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-03sakuhin"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a &amp; CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/arakoki70.com\/?p=44\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a &amp; CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c\" \/>\n<meta property=\"og:description\" content=\"Raspberry Pi \u4f5c\u54c1\u96c6 \u6e29\u5ea6\u30fb\u6e7f\u5ea6\u30fb\u6c17\u5727\u3092 \u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u8868\u793a\u00a0\u3068 CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u4fdd\u5b58 \u00a0 Raspberry Pi \u306eLCD\u3092\u898b\u308c\u3070\u3001\u6e29\u5ea6\u30fb\u6e7f\u5ea6\u30fb\u6c17\u5727\u304c\u5224\u308b\u69d8\u306b\u3059\u308b\u3002 \u00a0 \u6db2\u6676 16\u6587\u5b57x2\u884c &hellip; &quot;Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a &#038; CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057&quot; \u306e\u7d9a\u304d\u3092\u8aad\u3080\" \/>\n<meta property=\"og:url\" content=\"https:\/\/arakoki70.com\/?p=44\" \/>\n<meta property=\"og:site_name\" content=\"\u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c\" \/>\n<meta property=\"article:published_time\" content=\"2015-01-02T09:40:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-27T01:26:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/lcd123.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"tacsan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hermione2207\" \/>\n<meta name=\"twitter:site\" content=\"@hermione2207\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"tacsan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"29\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=44#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=44\"},\"author\":{\"name\":\"tacsan\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#\\\/schema\\\/person\\\/d5fdbdb63e731d3f2d43880ccade4451\"},\"headline\":\"Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a &#038; CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057\",\"datePublished\":\"2015-01-02T09:40:48+00:00\",\"dateModified\":\"2023-03-27T01:26:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=44\"},\"wordCount\":430,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#\\\/schema\\\/person\\\/d5fdbdb63e731d3f2d43880ccade4451\"},\"image\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=44#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2015\\\/01\\\/lcd123.jpg\",\"articleSection\":[\"03 \u4f5c\u54c1\u96c6\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/arakoki70.com\\\/?p=44#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=44\",\"url\":\"https:\\\/\\\/arakoki70.com\\\/?p=44\",\"name\":\"Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a & CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=44#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=44#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2015\\\/01\\\/lcd123.jpg\",\"datePublished\":\"2015-01-02T09:40:48+00:00\",\"dateModified\":\"2023-03-27T01:26:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=44#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/arakoki70.com\\\/?p=44\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=44#primaryimage\",\"url\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2015\\\/01\\\/lcd123.jpg\",\"contentUrl\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2015\\\/01\\\/lcd123.jpg\",\"width\":800,\"height\":600,\"caption\":\"\u30ad\u30e3\u30e9\u30af\u30bfLCD\u3078\u306e\u8868\u793a\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=44#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/arakoki70.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a &#038; CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#website\",\"url\":\"https:\\\/\\\/arakoki70.com\\\/\",\"name\":\"\u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c\",\"description\":\"Around 70&#039;s \u30d6\u30ed\u30b0\u3078\u306e\u8a18\u4e8b\u6295\u7a3f\u304c\u751f\u6d3b\u76ee\u6a19\u306b \u30fb\u30fb\u30fb \u307e\u3060\u307e\u3060\u8f1d\u304f\",\"publisher\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#\\\/schema\\\/person\\\/d5fdbdb63e731d3f2d43880ccade4451\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/arakoki70.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#\\\/schema\\\/person\\\/d5fdbdb63e731d3f2d43880ccade4451\",\"name\":\"tacsan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/raspberry-toumei_4.png\",\"url\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/raspberry-toumei_4.png\",\"contentUrl\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/raspberry-toumei_4.png\",\"width\":80,\"height\":102,\"caption\":\"tacsan\"},\"logo\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/raspberry-toumei_4.png\"},\"sameAs\":[\"https:\\\/\\\/arakoki70.com\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a & CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/arakoki70.com\/?p=44","og_locale":"ja_JP","og_type":"article","og_title":"Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a & CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c","og_description":"Raspberry Pi \u4f5c\u54c1\u96c6 \u6e29\u5ea6\u30fb\u6e7f\u5ea6\u30fb\u6c17\u5727\u3092 \u6db2\u6676\u30ad\u30e3\u30e9\u30af\u30bf\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u8868\u793a\u00a0\u3068 CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u4fdd\u5b58 \u00a0 Raspberry Pi \u306eLCD\u3092\u898b\u308c\u3070\u3001\u6e29\u5ea6\u30fb\u6e7f\u5ea6\u30fb\u6c17\u5727\u304c\u5224\u308b\u69d8\u306b\u3059\u308b\u3002 \u00a0 \u6db2\u6676 16\u6587\u5b57x2\u884c &hellip; \"Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a &#038; CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057\" \u306e\u7d9a\u304d\u3092\u8aad\u3080","og_url":"https:\/\/arakoki70.com\/?p=44","og_site_name":"\u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c","article_published_time":"2015-01-02T09:40:48+00:00","article_modified_time":"2023-03-27T01:26:05+00:00","og_image":[{"width":800,"height":600,"url":"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/lcd123.jpg","type":"image\/jpeg"}],"author":"tacsan","twitter_card":"summary_large_image","twitter_creator":"@hermione2207","twitter_site":"@hermione2207","twitter_misc":{"\u57f7\u7b46\u8005":"tacsan","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"29\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/arakoki70.com\/?p=44#article","isPartOf":{"@id":"https:\/\/arakoki70.com\/?p=44"},"author":{"name":"tacsan","@id":"https:\/\/arakoki70.com\/#\/schema\/person\/d5fdbdb63e731d3f2d43880ccade4451"},"headline":"Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a &#038; CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057","datePublished":"2015-01-02T09:40:48+00:00","dateModified":"2023-03-27T01:26:05+00:00","mainEntityOfPage":{"@id":"https:\/\/arakoki70.com\/?p=44"},"wordCount":430,"commentCount":0,"publisher":{"@id":"https:\/\/arakoki70.com\/#\/schema\/person\/d5fdbdb63e731d3f2d43880ccade4451"},"image":{"@id":"https:\/\/arakoki70.com\/?p=44#primaryimage"},"thumbnailUrl":"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/lcd123.jpg","articleSection":["03 \u4f5c\u54c1\u96c6"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/arakoki70.com\/?p=44#respond"]}]},{"@type":"WebPage","@id":"https:\/\/arakoki70.com\/?p=44","url":"https:\/\/arakoki70.com\/?p=44","name":"Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a & CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c","isPartOf":{"@id":"https:\/\/arakoki70.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/arakoki70.com\/?p=44#primaryimage"},"image":{"@id":"https:\/\/arakoki70.com\/?p=44#primaryimage"},"thumbnailUrl":"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/lcd123.jpg","datePublished":"2015-01-02T09:40:48+00:00","dateModified":"2023-03-27T01:26:05+00:00","breadcrumb":{"@id":"https:\/\/arakoki70.com\/?p=44#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/arakoki70.com\/?p=44"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/arakoki70.com\/?p=44#primaryimage","url":"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/lcd123.jpg","contentUrl":"https:\/\/arakoki70.com\/wp-content\/uploads\/2015\/01\/lcd123.jpg","width":800,"height":600,"caption":"\u30ad\u30e3\u30e9\u30af\u30bfLCD\u3078\u306e\u8868\u793a"},{"@type":"BreadcrumbList","@id":"https:\/\/arakoki70.com\/?p=44#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/arakoki70.com\/"},{"@type":"ListItem","position":2,"name":"Raspberry Pi \u6c17\u8c61\u60c5\u5831\u3092\u30ad\u30e3\u30e9\u30af\u30bfLCD\u306b\u8868\u793a &#038; CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057"}]},{"@type":"WebSite","@id":"https:\/\/arakoki70.com\/#website","url":"https:\/\/arakoki70.com\/","name":"\u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c","description":"Around 70&#039;s \u30d6\u30ed\u30b0\u3078\u306e\u8a18\u4e8b\u6295\u7a3f\u304c\u751f\u6d3b\u76ee\u6a19\u306b \u30fb\u30fb\u30fb \u307e\u3060\u307e\u3060\u8f1d\u304f","publisher":{"@id":"https:\/\/arakoki70.com\/#\/schema\/person\/d5fdbdb63e731d3f2d43880ccade4451"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/arakoki70.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":["Person","Organization"],"@id":"https:\/\/arakoki70.com\/#\/schema\/person\/d5fdbdb63e731d3f2d43880ccade4451","name":"tacsan","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/arakoki70.com\/wp-content\/uploads\/2019\/12\/raspberry-toumei_4.png","url":"https:\/\/arakoki70.com\/wp-content\/uploads\/2019\/12\/raspberry-toumei_4.png","contentUrl":"https:\/\/arakoki70.com\/wp-content\/uploads\/2019\/12\/raspberry-toumei_4.png","width":80,"height":102,"caption":"tacsan"},"logo":{"@id":"https:\/\/arakoki70.com\/wp-content\/uploads\/2019\/12\/raspberry-toumei_4.png"},"sameAs":["https:\/\/arakoki70.com\/"]}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arakoki70.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44"}],"version-history":[{"count":1,"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":7498,"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions\/7498"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/media\/1901"}],"wp:attachment":[{"href":"https:\/\/arakoki70.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arakoki70.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arakoki70.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}