{"id":17093,"date":"2015-01-28T21:00:36","date_gmt":"2015-01-28T12:00:36","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/?p=17093"},"modified":"2015-02-24T06:41:46","modified_gmt":"2015-02-23T21:41:46","slug":"raspbian%e3%81%a7i2c%e3%82%92%e4%bd%bf%e3%81%86%e3%81%9f%e3%82%81%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/17093.html","title":{"rendered":"Raspbian\u3067I2C\u3092\u4f7f\u3046\u305f\u3081\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p>Raspberry Pi \u3067 Raspbian \u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u3001I<sup>2<\/sup>C\uff08I2C\uff09\u3092\u4f7f\u3046\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u624b\u52d5\u3067\u3059\u308b\u306b\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n<!--more--><br \/>\n\u6700\u521d\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ sudo apt-get install -y i2c-tools\r\n<\/pre>\n<p>\/etc\/modprobe.d\/raspi-blacklist.conf \u3092\u7de8\u96c6\u3057\u3066i2c-bcm2708\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n#blacklist i2c-bcm2708\r\n<\/pre>\n<p>\/etc\/modules \u3092\u7de8\u96c6\u3057\u3066\u6700\u5f8c\u306b i2c-dev \u3092\u8ffd\u52a0<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\ni2c-dev\r\n<\/pre>\n<p>\/boot\/cmdline.txt \u3092\u7de8\u96c6\u3057\u3066\u6700\u5f8c\u306b bcm2708.vc_i2c_override=1 \u3092\u8ffd\u52a0<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nbcm2708.vc_i2c_override=1\r\n<\/pre>\n<p>I<sup>2<\/sup>C\u30c7\u30d0\u30a4\u30b9\u3078pi\u30e6\u30fc\u30b6\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nsudo adduser pi i2c\r\n<\/pre>\n<p>\u6700\u5f8c\u306b\u8a2d\u5b9a\u3092\u53cd\u6620\u3059\u308b\u305f\u3081\u306b\u518d\u8d77\u52d5<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nsudo reboot\r\n<\/pre>\n<div>\n<iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=B00T356SFO&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=B00ESA34GA&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=B003NSAMW2&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=B00E1GGE40&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=B008UR8TS0&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=B008UR8TS0&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=B00S10U07E&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=B009AME9R4&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=B00A6H0KR0&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div>\n<ul>\n<li><a type=\"amzn\" asin=\"B00T356SFO\">Raspberry Pi 2 Model B <\/a><\/li>\n<li><a type=\"amzn\" asin=\"B00ESA34GA\">PLANEX \u7121\u7ddaLAN\u5b50\u6a5f (USB\u30a2\u30c0\u30d7\u30bf\u30fc\u578b) 11n\/g\/b 150Mbps GW-USNANO2A (FFP)<\/a><\/li>\n<li><a type=\"amzn\" asin=\"B003NSAMW2\">BUFFALO \u7121\u7ddaLAN\u5b50\u6a5f \u30b3\u30f3\u30d1\u30af\u30c8\u30e2\u30c7\u30eb 11n\u6280\u8853\u30fb11g\/b\u5bfe\u5fdc WLI-UC-GNM<\/a><\/li>\n<li><a type=\"amzn\" asin=\"B00E1GGE40\">\u30e9\u30ba\u30d9\u30ea\u30fc\u30d1\u30a4 \u30ab\u30e1\u30e9\u30e2\u30b8\u30e5\u30fc\u30eb Camera Module for Raspberry Pi<\/a><\/li>\n<li><a type=\"amzn\" asin=\"B008UR8TS0\">\u3010Amazon.co.jp\u9650\u5b9a\u3011Transcend microSDHC\u30ab\u30fc\u30c9 32GB Class10 (\u7121\u671f\u9650\u4fdd\u8a3c) New\u30cb\u30f3\u30c6\u30f3\u30c9\u30fc3DS \u52d5\u4f5c\u78ba\u8a8d\u6e08\u307f TS32GUSDHC10E (FFP)<\/a><\/li>\n<li><a type=\"amzn\" asin=\"B008UR8TS0\">\u3010Amazon.co.jp\u9650\u5b9a\u3011Transcend microSDHC\u30ab\u30fc\u30c9 16GB Class10 (\u7121\u671f\u9650\u4fdd\u8a3c) New\u30cb\u30f3\u30c6\u30f3\u30c9\u30fc3DS \u52d5\u4f5c\u78ba\u8a8d\u6e08\u307f TS16GUSDHC10E (FFP)<\/a><\/li>\n<li><a type=\"amzn\" asin=\"B00S10U07E\">\u30de\u30a4\u30af\u30edUSB\u30a2\u30c0\u30d7\u30bf\u30fc\u3000AC100-240V\u3000DC\u3000\uff15V\u3000\uff12A\u3000\u30b1\u30fc\u30d6\u30eb\u30bb\u30c3\u30c8<\/a><\/li>\n<li><a type=\"amzn\" asin=\"B009AME9R4\">FTDI USB\u30b7\u30ea\u30a2\u30eb\u5909\u63db\u30a2\u30c0\u30d7\u30bf\u30fc(5V\/3.3V\u5207\u308a\u66ff\u3048\u6a5f\u80fd\u4ed8\u304d)<\/a><\/li>\n<li><a type=\"amzn\" asin=\"B00A6H0KR0\">Panasonic HDMI\u30b1\u30fc\u30d6\u30eb \u30d6\u30e9\u30c3\u30af 1.5m RP-CHE15-K <\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi \u3067 Raspbian \u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u3001I2C\uff08I2C\uff09\u3092\u4f7f\u3046\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u624b\u52d5\u3067\u3059\u308b\u306b\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1209,994],"class_list":["post-17093","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux","tag-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/17093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=17093"}],"version-history":[{"count":3,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/17093\/revisions"}],"predecessor-version":[{"id":17146,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/17093\/revisions\/17146"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=17093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=17093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=17093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}