{"id":4627,"date":"2012-12-22T17:04:46","date_gmt":"2012-12-22T08:04:46","guid":{"rendered":"https:\/\/xe.bz\/blog\/4627.html"},"modified":"2018-12-06T15:47:44","modified_gmt":"2018-12-06T06:47:44","slug":"51737214","status":"publish","type":"post","link":"https:\/\/akibabara.com\/blog\/4627.html","title":{"rendered":"Raspberry Pi\u3067RC\u30b5\u30fc\u30dc\u3092\u52d5\u304b\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p><a href=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/imgs\/fa5aa82e.jpg\" title=\"IMG_0640\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/imgs\/fa5aa82e-s.jpg\" width=\"160\" height=\"120\" border=\"0\" alt=\"IMG_0640\" hspace=\"5\" class=\"pict\" align=\"left\"  \/><\/a>RC\u30b5\u30fc\u30dc\u306f\u30ed\u30dc\u30c3\u30c8\u3084\u30e9\u30b8\u30b3\u30f3\u306a\u3069\u306b\u4f7f\u308f\u308c\u308b\u3001\u6b63\u78ba\u306b\u89d2\u5ea6\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u304d\u308b\u30e2\u30fc\u30bf\u30fc\u3067\u3059\u304c\u3001\u79c1\u306f\u4eca\u307e\u3067\u89e6\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u305b\u3093\u3002Raspberry Pi\u3067\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308c\u3070\u3001Raspberry Pi\u3092\u6b69\u304b\u305b\u305f\u308a\u3067\u304d\u308b\u3093\u3058\u3083\u306a\u3044\u304b\uff01\uff1f\u304b\u3064\u3066\u6687\u3060\u3063\u305f\u9803\u306b\u4f5c\u3063\u305f\u300c<a href=\"http:\/\/xe.bz\/aho\/15\/\" target=\"_blank\">\u6b69\u304f\u7384\u7bb1<\/a>\u300d\u3084\u300c<a href=\"http:\/\/xe.bz\/aho\/07\/\" target=\"_blank\">\u8d70\u308b\uff01\u30de\u30b6\u30fc\u30dc\u30fc\u30c9\u30fb\u30ed\u30dc<\/a>\u300d\u304cRaspberry Pi\u3067\u4f5c\u308c\u308b\u3093\u3058\u3083\u306a\u3044\u304b\uff01\uff1f\u3068\u3044\u3046\u3057\u3087\u3046\u3082\u306a\u3044\u767a\u60f3\u304b\u3089\u3001RC\u30b5\u30fc\u30dc\u3092\u3092\u52d5\u304b\u3059\u5b9f\u9a13\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br clear=all><br \/>\nRC\u30b5\u30fc\u30dc\u3092\u52d5\u304b\u3059\u524d\u306b\u3001\u307e\u305a\u306f\u4ed5\u7d44\u307f\u3092\u77e5\u308b\u3053\u3068\u304b\u3089\u3002\u8abf\u3079\u3066\u307f\u308b\u3068\u4e00\u5b9a\u306e\u5468\u671f\u3067\u30d1\u30eb\u30b9\u4fe1\u53f7\u3092\u4e0e\u3048\u3001\u30d1\u30eb\u30b9\u306e\u5e45\u3092\u5909\u3048\u3066\u3044\u304f\u3068\u89d2\u5ea6\u304c\u5909\u308f\u308b\u4ed5\u7d44\u307f\u3060\u305d\u3046\u3067\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u5236\u5fa1\u65b9\u6cd5\u3092PWM\u5236\u5fa1\u3068\u8a00\u3046\u3089\u3057\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/imgs\/5e16f3b8.jpg\" width=\"100\" height=\"55\" border=\"0\" alt=\"\u30d0\u30eb\u30b9\" hspace=\"5\" class=\"pict\" align=\"right\"  \/>\u3064\u307e\u308aRaspberry Pi\u3067\u30d1\u30eb\u30b9\u3092\u4fe1\u53f7\u3092\u4f5c\u3063\u3066\u3042\u3052\u308c\u3070\u3044\u3044\u308f\u3051\u3067\u3059\u306d\u3002Raspberry Pi\u306b\u306fGPIO\u7aef\u5b50\u304c\u3042\u308b\u306e\u3067\u3001<a href=\"http:\/\/blog.xe.bz\/archives\/51736276.html\" target=\"_blank\" title=\"\">\u524d\u56de<\/a>LED\u3092\u5149\u3089\u305b\u305f\u8981\u9818\u3067\u3001GPIO\u3092\u5236\u5fa1\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br clear=all><br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u307e\u305a\u306f<a href=\"http:\/\/www.sengoku.co.jp\/mod\/sgk_cart\/detail.php?code=2A4A-JAJP\" target=\"_blank\">\u5343\u77f3\u96fb\u5546\u3067<\/a>MiniS RB90\u3068\u3044\u3046RC\u30b5\u30fc\u30dc\u3092\u5165\u624b\u3002\u3053\u306e\u8fba\u5168\u7136\u77e5\u8b58\u304c\u306a\u3044\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u5b89\u3044\u304b\u3089\u3068\u3044\u3046\u7406\u7531\u3067\u9078\u3073\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u5b9f\u9a13\u306a\u306e\u3067\u52d5\u3051\u3070OK\u3067\u3059\u3002\u30e2\u30fc\u30bf\u30fc\u306f\u5927\u304d\u306a\u96fb\u6d41\u3092\u5fc5\u8981\u3068\u3059\u308b\u306e\u3067\u3001\u30e2\u30fc\u30bf\u30fc\u7528\u306e\u96fb\u6e90\u3092\u5225\u306b\u53d6\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3002\u79c1\u306f\u30dd\u30a4\u30f3\u30bf\u3067\u632b\u6298\u3057\u305f\u306e\u3067C\u8a00\u8a9e\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002\u306a\u306e\u3067PHP\u3067\u4f5c\u308a\u307e\u3059\u3002(\u7b11) \u57fa\u672c\u306a\u3093\u3067\u3082\u304b\u3093\u3067\u3082PHP\u3067\u4f5c\u308b\u6d3e\u3067\u3059\u3002\u7d30\u304b\u3044\u90e8\u5206\u306f\u5272\u611b\u3057\u307e\u3059\u304c\u3001\u4f5c\u308a\u65b9\u3068\u3057\u3066\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<blockquote><p>usleep($sw);<br \/>\ngpio_out(1);<br \/>\nusleep($swn);<br \/>\ngpio_out(0);<\/p><\/blockquote>\n<blockquote><p>function gpio_out($data) {<br \/>\nsecho($data,&#8221;\/sys\/class\/gpio\/gpio&#8221;.PORT.&#8221;\/value&#8221;);<br \/>\n}<br \/>\nfunction secho($data,$dev) {<br \/>\n$fp = fopen($dev,&#8221;w&#8221;);<br \/>\nfputs($fp,$data);<br \/>\nfclose($fp);<br \/>\n}<\/p><\/blockquote>\n<p>usleep()\u3067\u30d1\u30eb\u30b9\u306e\u5e45\u3092\u4f5c\u3063\u3066\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u305f\u3068\u304d\u306e\u52d5\u753b\u304c\u3053\u3061\u3089\u3002<iframe loading=\"lazy\" width=\"480\" height=\"270\" src=\"http:\/\/www.youtube.com\/embed\/m8OegJ2hOuk\" frameborder=\"0\" allowfullscreen><\/iframe><br \/>\n\u52d5\u753b\u3067\u306f\u308f\u304b\u308a\u306b\u304f\u3044\u3067\u3059\u304c\u3001\u8ef8\u304c\u52d5\u3044\u3066\u306a\u3044\u3068\u304d\u3067\u3082\u30b8\u30fc\u30c3\u3068\u3044\u3046\u97f3\u3092\u7acb\u3066\u3066\u5fae\u52d5\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306fPHP\u3067\u4f5c\u3063\u305f\u30d1\u30eb\u30b9\u306e\u5e45\u304c\u4e00\u5b9a\u3067\u306f\u306a\u3044\u305f\u3081\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306bRaspberry Pi\u306fPWM\u3092\u51fa\u529b\u3067\u304d\u308b\u3089\u3057\u3044\u306e\u3067\u3001\u3053\u3093\u306a\u3053\u3068\u3092\u3057\u306a\u304f\u3066\u3082\u6b63\u78ba\u306a\u4fe1\u53f7\u3092\u5b89\u5b9a\u3057\u3066\u51fa\u529b\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002\u79c1\u306e\u3084\u308a\u305f\u3044\u306e\u306fRaspberry Pi\u3092\u6b69\u304b\u305b\u308b\u3053\u3068\u306a\u306e\u3067\u3001\u305d\u3046\u3059\u308b\u30684\u672c\u8db3\u306a\u30894\u500b\u3082\u3057\u304f\u306f8\u500b\u306e\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u304c\u5fc5\u8981\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u3055\u3059\u304c\u306bGPIO\u306e\u5404\u30d4\u30f3\u305a\u3064\u306b\u63a5\u7d9a\u3057\u3066\u3044\u305f\u306e\u3067\u306f\u30c1\u30e3\u30f3\u30cd\u30eb\u304c\u8db3\u3089\u306a\u3044\u306a\u2026\u3002<\/p>\n<p>\u3068\u601d\u3063\u3066\u305f\u3089\u3001\u3053\u3093\u306a\u4fbf\u5229\u306a\u3082\u306e\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002<br \/>\n<a href=\"http:\/\/www.switch-science.com\/products\/detail.php?product_id=961\" target=\"_blank\">\u30b9\u30a4\u30c3\u30c1\u30b5\u30a4\u30a8\u30f3\u30b9\u3000PCA9685\u642d\u8f0916\u30c1\u30e3\u30cd\u30eb PWM\/\u30b5\u30fc\u30dc \u30c9\u30e9\u30a4\u30d0\u30fc (I2C\u63a5\u7d9a)<\/a><br \/>\n\u306a\u3093\u30681\u3064\u306eI2C\u306e\u30dd\u30fc\u30c8\u304b\u308916\u30c1\u30e3\u30f3\u30cd\u30eb\u3082\u5236\u5fa1\u3067\u304d\u308b\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff01\u3053\u308c\u3092\u4f7f\u3048\u3070\u52d5\u304b\u3057\u305f\u3044\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u306b\u5bfe\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u9001\u4fe1\u3059\u308b\u3060\u3051\u3067\u3001\u6307\u5b9a\u3057\u305f\u3088\u3046\u306b\u52d5\u304f\u3001\u306f\u305a\u3002<\/p>\n<p>\u3082\u3046\u5c11\u3057\u3061\u3083\u3093\u3068\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u306e\u4f7f\u3044\u65b9\u3092\u52c9\u5f37\u3057\u3066\u3001<a href=\"http:\/\/kondo-robot.com\/sys\/kmr-m6_detail2\" target=\"_blank\">\u3053\u3093\u306a<\/a>\u30ed\u30dc\u30c3\u30c8\u3092\u4f5c\u3063\u3066\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u203bDIY\u52d5\u753b\u3092\u96c6\u3081\u3066\u307f\u307e\u3057\u305f <a href=\"http:\/\/matome.naver.jp\/odai\/2135553917385512501\" target=\"_blank\">Raspberry Pi\u306eDIY\u52d5\u753b\u307e\u3068\u3081<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>RC\u30b5\u30fc\u30dc\u306f\u30ed\u30dc\u30c3\u30c8\u3084\u30e9\u30b8\u30b3\u30f3\u306a\u3069\u306b\u4f7f\u308f\u308c\u308b\u3001\u6b63\u78ba\u306b\u89d2\u5ea6\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u304d\u308b\u30e2\u30fc\u30bf\u30fc\u3067\u3059\u304c\u3001\u2026<\/p>\n","protected":false},"author":1,"featured_media":1289,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[50],"tags":[87,99],"class_list":["post-4627","post","type-post","status-publish","format-standard","has-post-thumbnail","category-raspberry-pi","tag-raspberry-pi","tag-99","three-column","ar-three-column","au-three-column"],"jetpack_featured_media_url":"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/imgs\/fa5aa82e-s.jpg","jetpack_shortlink":"https:\/\/wp.me\/savCgQ-51737214","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/posts\/4627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/comments?post=4627"}],"version-history":[{"count":1,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/posts\/4627\/revisions"}],"predecessor-version":[{"id":4869,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/posts\/4627\/revisions\/4869"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/media\/1289"}],"wp:attachment":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/media?parent=4627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/categories?post=4627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/tags?post=4627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}