https:\/\/nodered.jp\/docs\/hardware\/raspberrypi<\/a>
\n\u3057\u3063\u304b\u308a\u89e3\u8aac\u3055\u308c\u3066\u308b\u306e\u3067\u3001\u7279\u306b\u8a00\u3046\u3053\u3068\u306f\u306a\u3044\u3067\u3059^^;<\/p>\n\u81ea\u5206\u306fAvahi\u3067\u30db\u30b9\u30c8\u540d\u3067\u306e\u30a2\u30af\u30bb\u30b9\u3092\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u30e9\u30ba\u30d1\u30a43\u3067Node-RED\u3092\u8d77\u52d5\u3057\u3001PC\u306e\u30d6\u30e9\u30a6\u30b6\u304b\u3089”http:\/\/raspberrypi.local:1880\/”(\u8a2d\u5b9a\u306b\u3088\u308b)\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u4f5c\u696d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n
2.Node-RED\u304b\u3089LED\u3092\u30aa\u30f3\u3057\u3066\u307f\u308b<\/h1>\n
\u30d7\u30ea\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3060\u3051\u3042\u3063\u3066\u3001\u30e9\u30ba\u30d1\u30a4\u3092\u52d5\u304b\u3059\u30ce\u30fc\u30c9\u304c\u521d\u3081\u304b\u3089\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002
\n\u3068\u308a\u3042\u3048\u305a\u7df4\u7fd2\u3068\u3057\u3066\u3001\u30e9\u30ba\u30d1\u30a4\u306e\u30de\u30a6\u30b9\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089LED\u3092\u70b9\u706f\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n
\u307e\u305a\u30e9\u30ba\u30d1\u30a4\u3068LED\u3092\u63a5\u7d9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u4f8b\u3067\u306f7\u756a\u30d4\u30f3(GPIO4)\u306b\u63a5\u7d9a\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002<\/p>\n
<\/p>\n
PC\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u30e9\u30ba\u30d1\u30a4\u4e0a\u306eNode-RED\u753b\u9762\u3092\u958b\u304d\u307e\u3059\u3002
\nRaspberry Pi\u7528\u30ce\u30fc\u30c9\u306e\u4e00\u89a7\u304b\u3089”rpi mouse”\u3068”rpi gpio”\u306e\u51fa\u529b(\u5de6\u5074\u306b\u7d50\u5408\u90e8\u304c\u3042\u308b\u307b\u3046)\u3092\u30d5\u30ed\u30fc\u306b\u914d\u7f6e\u3057\u3066\u3001\u9023\u7d50\u3057\u307e\u3059\u3002<\/p>\n
<\/p>\n
\u3064\u3065\u3044\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u52d5\u4f5c\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002
\n“rpi mouse”\u306f\u3001\u30dc\u30bf\u30f3=\u5de6\u3068\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u305d\u306e\u307e\u307e\u3002
\n“rpi gpio”\u306f\u3001\u3053\u3061\u3089\u306e\u3088\u3046\u306bLED\u3092\u63a5\u7d9a\u3057\u305f\u30d4\u30f3\u3092\u6307\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n
<\/p>\n
\u3042\u3068\u306f”\u30c7\u30d7\u30ed\u30a4”\u30dc\u30bf\u30f3\u3092\u62bc\u305b\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n
\u3053\u308c\u3067\u30e9\u30ba\u30d1\u30a4\u306b\u3064\u306a\u3044\u3060\u30de\u30a6\u30b9\u3092\u5de6\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001LED\u304c\u70b9\u706f\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n
3.\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u3092\u898b\u3066\u307f\u308b<\/h1>\n
\u6d41\u77f3\u306b\u7c21\u5358\u3059\u304e\u3066\u610f\u5473\u4e0d\u660e\u306a\u306e\u3067\u3001\u4f55\u304c\u8d77\u304d\u3066\u3044\u308b\u306e\u304b\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n
“rpi mouse”\u3092\u9078\u629e\u3057\u3066information\u3092\u898b\u308b\u3068\u3001\u30de\u30a6\u30b9\u30aa\u30f3\u30fb\u30aa\u30d5\u306b\u5fdc\u3058\u3066\u3001payload\u306b1, 0\u3092\u51fa\u529b\u3059\u308b\u3088\u3046\u306a\u3053\u3068\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n
\u4e00\u65b9\u3001”rpi gpio”\u306e\u307b\u3046\u306f\u3001\u5165\u529b\u3055\u308c\u305fpayload\u304c1\u304b0\u304b\u306b\u3088\u3063\u3066\u3001\u30d4\u30f3\u306bHigh, Low\u3092\u51fa\u529b\u3059\u308b\u3068\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n
\u3064\u307e\u308a\u3001\u30de\u30a6\u30b9\u3092\u5de6\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001”rpi mouse”\u304b\u3089”payload=1″(\u30ea\u30ea\u30fc\u30b9\u6642\u306f”0”)\u304c\u51fa\u529b\u3055\u308c\u3001\u305d\u308c\u306b\u5fdc\u3058\u3066”rpi gpio”\u304c\u6307\u5b9a\u3057\u305fGPIO\u30d4\u30f3\u306e\u51fa\u529b\u306eHigh\/Low\u3092\u5207\u308a\u66ff\u3048\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n
\u5148\u7a0b\u306e\u30d5\u30ed\u30fc\u306b\u30c7\u30d0\u30c3\u30b0\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u8997\u3044\u3066\u307f\u308b\u3068\u3001\u305f\u3057\u304b\u306bmsg.payload\u306a\u308b\u5024\u304c\u30af\u30ea\u30c3\u30af\u306b\u5408\u308f\u305b\u30661,0\u306b\u5909\u5316\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n
<\/p>\n
4.inject\u30ce\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u307f\u308b<\/h1>\n
\u30de\u30a6\u30b9\u3088\u308a\u624b\u8efd\u306a\u5165\u529b\u65b9\u6cd5\u3068\u3057\u3066\u3001inject\u3068\u3044\u3046\u30ce\u30fc\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n
\u3053\u308c\u306f\u5358\u7d14\u306b\u30d5\u30ed\u30fc\u753b\u9762\u4e0a\u3067\u30ce\u30fc\u30c9\u3092\u30bf\u30c3\u30d7\u3057\u305f\u3068\u304d\u3084\u3001\u6642\u9593\u3092\u6307\u5b9a\u3057\u3066\u4efb\u610f\u306e\u51fa\u529b\u3092\u767a\u884c\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n
\u4f8b\u3048\u3070\u3001\u51fa\u529b\u30da\u30a4\u30ed\u30fc\u30c9\u30921\u304a\u3088\u30730\u3068\u3057\u305finject\u3092\u7e4b\u3050\u3068\u3001\u5404\u30ce\u30fc\u30c9\u3092\u30bf\u30c3\u30d7\u3059\u308b\u3060\u3051\u3067LED\u3092\u30aa\u30f3\u30fb\u30aa\u30d5\u3067\u304d\u307e\u3059\u3002<\/p>\n
<\/p>\n
<\/p>\n
5.LED\u3092\u30c1\u30ab\u30c1\u30ab\u3055\u305b\u308b<\/h1>\n
\u6700\u5f8c\u306b\u3001”L\u30c1\u30ab”\u3059\u308b\u3068\u8a00\u3063\u305f\u306e\u3067\u3001LED\u306e\u30aa\u30f3\u30fb\u30aa\u30d5\u3092\u7e70\u308a\u8fd4\u3057\u3066\u30c1\u30ab\u30c1\u30ab\u3055\u305b\u3066\u307f\u307e\u3059\u3002<\/p>\n
\u30d5\u30ed\u30fc\u306f\u3053\u3061\u3089\u3002<\/p>\n
<\/p>\n
\u5148\u7a0b\u306e”inject”\u30ce\u30fc\u30c9\u3067\u3001\u4eca\u5ea6\u306f\uff11\u79d2\u3054\u3068\u306b\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n
<\/p>\n
\u305d\u3057\u3066\u3001”rpi gpio”\u3068”injet”\u306e\u9593\u306b”trigger”\u3092\u8a2d\u7f6e\u3057\u307e\u3057\u305f\u3002
\n\u3053\u3061\u3089\u306f\u3001\u6307\u5b9a\u3057\u305f\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u5f8c\u3001\u4e00\u5b9a\u6642\u9593\u3067\u30aa\u30d5\u306b\u306a\u308b\u30ce\u30fc\u30c9\u3067\u3059\u3002<\/p>\n
<\/p>\n
“trigger”\u304c1\u79d2\u3054\u3068\u306b\u30aa\u30f3\u3057\u305f\u5f8c\u3001500\u30df\u30ea\u79d2\u3067\u30aa\u30d5\u306b\u306a\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3001\u30c1\u30ab\u30c1\u30ab\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n
\u304a\u308f\u308a\u306b<\/h1>\n
Node-RED\u3092\u4f7f\u3063\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7121\u3057\u3067L\u30c1\u30ab\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n
\u4eca\u56de\u306f\u7df4\u7fd2\u306e\u305f\u3081\u306b\u30de\u30a6\u30b9\u3084inject\u3092\u5165\u529b\u3068\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u3092Web\u30b5\u30fc\u30d3\u30b9\u306a\u3069\u306b\u7f6e\u304d\u63db\u3048\u308b\u3060\u3051\u3067\u3001\u5916\u90e8\u304b\u3089\u30e9\u30ba\u30d1\u30a4\u3092\u64cd\u4f5c\u3067\u304d\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n
\u6b21\u56de\u306f\u3053\u308c\u3092Alexa\u304b\u3089\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002
\n\u305d\u308c\u3067\u306f\u3002<\/p>\n
\u6b21\u306e\u8a18\u4e8b
\n\u300c\u30a2\u30ec\u30af\u30b5\u3001LED\u3064\u3051\u3066\u300d\u3067LED\u3092\u70b9\u706f\u3059\u308b<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Amazon Echo\u304b\u3089Raspberry Pi(\u4ee5\u4e0b\u30e9\u30ba\u30d1\u30a4)\u3092\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u306a\u3041\u3068\u601d\u3063\u3066\u3044\u308d\u3044\u308d\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308d\u3001”Node-RED”\u306a\u308b\u3082\u306e\u304c\u7c21\u5358\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e<\/p>\n","protected":false},"author":4,"featured_media":449,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[11],"tags":[13,12],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"http:\/\/www.ohmaker.net\/wp-content\/uploads\/2018\/02\/node-red_debug.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9v1Q5-77","_links":{"self":[{"href":"http:\/\/www.ohmaker.net\/wp-json\/wp\/v2\/posts\/441"}],"collection":[{"href":"http:\/\/www.ohmaker.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ohmaker.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ohmaker.net\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ohmaker.net\/wp-json\/wp\/v2\/comments?post=441"}],"version-history":[{"count":11,"href":"http:\/\/www.ohmaker.net\/wp-json\/wp\/v2\/posts\/441\/revisions"}],"predecessor-version":[{"id":513,"href":"http:\/\/www.ohmaker.net\/wp-json\/wp\/v2\/posts\/441\/revisions\/513"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.ohmaker.net\/wp-json\/wp\/v2\/media\/449"}],"wp:attachment":[{"href":"http:\/\/www.ohmaker.net\/wp-json\/wp\/v2\/media?parent=441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ohmaker.net\/wp-json\/wp\/v2\/categories?post=441"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ohmaker.net\/wp-json\/wp\/v2\/tags?post=441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}