{"id":3884,"date":"2023-03-15T22:35:39","date_gmt":"2023-03-15T14:35:39","guid":{"rendered":"https:\/\/resource.webduino.io\/?p=3884"},"modified":"2023-03-30T17:26:10","modified_gmt":"2023-03-30T09:26:10","slug":"ir-remote","status":"publish","type":"docs","link":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote","title":{"rendered":"\u96fb\u8996\u6a5f\u9059\u63a7\u5668"},"content":{"rendered":"<p>\u5728\u4e00\u4e9b\u88ab\u52d5\u7684\u5075\u6e2c\u61c9\u7528\u4e4b\u5f8c\uff0c\u8981\u4f86\u5617\u8a66\u4e3b\u52d5\u7684\u5075\u6e2c\uff1a\u300c\u62ff\u8d77\u96fb\u8996\u6a5f\u7684\u9059\u63a7\u5668\uff0c\u6309\u4e0b\u67d0\u500b\u6309\u9375\uff0c\u71c8\u6ce1\u5c31\u6703\u4eae\u8d77\u300d\uff0c\u9019\u7bc7\u6700\u4e3b\u8981\u662f\u7528\u5230\u300c\u7d05\u5916\u7dda\u767c\u5c04\u8207\u63a5\u6536\u300d\uff0c\u4e5f\u5c31\u662f\u5e38\u898b\u7684\u96fb\u8996\u6a5f\u9059\u63a7\u5668\u3002<\/p>\n<h2>\u7d05\u5916\u7dda\u767c\u5c04<\/h2>\n<p>\u7d05\u5916\u7dda\u56e0\u70ba\u6ce2\u9577 ( 8XX ~ 940nm ) \u8207\u53ef\u898b\u5149\u4e0d\u540c\uff0c\u6240\u4ee5\u8089\u773c\u7121\u6cd5\u770b\u898b\u3002\u800c\u7d2b\u5916\u7dda\u5247\u662f\u53e6\u5916\u4e00\u500b\u6ce2\u9577\u3002<\/p>\n<blockquote><p>\u66f4\u591a\u8cc7\u8a0a\uff1a<a href=\"https:\/\/goo.gl\/IYmEqS\" target=\"_blank\" rel=\"noopener\">\u7dad\u57fa\u767e\u79d1\u7d05\u5916\u7dda<\/a><br \/>\n\u5716\u7247\u4f86\u6e90\uff1a<a href=\"https:\/\/www.tiri.narl.org.tw\/Publication\/Newsletter\" target=\"_blank\" rel=\"noopener\">\u53f0\u7063\u79d1\u6280\u5100\u5668\u7814\u7a76\u4e2d\u5fc3<\/a><\/p><\/blockquote>\n<p><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/ir-remote-01.webp?w=1200&#038;ssl=1\" alt=\"\u7d05\u5916\u7dda\u4ecb\u7d39\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u7d05\u5916\u7dda\u767c\u5c04\u5668\u7684\u5916\u578b\u548c\u4e00\u822c\u7684 LED \u5f88\u50cf\uff0c\u4f46\u662f\u5728\u767c\u5c04\u7684\u6642\u5019\u773c\u775b\u4e0d\u6703\u770b\u5230\u5149\u7dda\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/ir-remote-02.webp?w=1200&#038;ssl=1\" alt=\"\u7d05\u5916\u7dda\u767c\u5c04\u5668\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u65e5\u5e38\u751f\u6d3b\u4e2d\u5e38\u898b\u7684\u7d05\u5916\u7dda\u767c\u5c04\u5668\uff0c\u5927\u90e8\u4efd\u90fd\u662f\u5728\u9059\u63a7\u5668\u4e0a\u982d\uff0c\u628a\u96fb\u8996\u6a5f\u9059\u63a7\u5668\u62ff\u8d77\u4f86\u770b\u4e00\u4e0b\u5c31\u6703\u770b\u5230\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/ir-remote-03.webp?w=1200&#038;ssl=1\" alt=\"\u96fb\u8996\u9059\u63a7\u5668\u4e0a\u7684\u7d05\u5916\u7dda\u767c\u5c04\u5668\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u9664\u4e86\u767c\u5c04\u5668\uff0c\u5c31\u662f\u63a5\u6536\u5668\uff0c\u7d05\u5916\u7dda\u63a5\u6536\u5668\u662f\u7528\u96fb\u8996\u6a5f\u9059\u63a7\u5668\u63a7\u5236\u96fb\u71c8\u7684\u95dc\u9375\uff0c\u63a5\u6536\u5668\u6709\u4e09\u96bb\u8173\uff0c\u4e00\u652f 3.3V\u3001\u4e00\u652f GND\u3001\u53e6\u5916\u4e00\u652f\u5c31\u662f\u8a0a\u865f\u8173\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/ir-remote-04.webp?w=1200&#038;ssl=1\" alt=\"\u7d05\u5916\u7dda\u63a5\u6536\u5668\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u8981\u958b\u59cb\u63a5\u7dda\u4e4b\u524d\u8981\u7279\u5225\u6ce8\u610f\u4e00\u9ede\uff0c\u5728 Arduino \u4e0a\u9762\uff0c\u7d05\u5916\u7dda\u7684\u767c\u5c04\u8207\u63a5\u6536\u662f\u300c<strong>\u7121\u6cd5\u540c\u6642\u4f7f\u7528<\/strong>\u300d\u7684\uff0c\u70ba\u4ec0\u9ebc\u5462\uff1f\u7531\u65bc Arduino \u672c\u8eab\u5c0d\u65bc\u7d05\u5916\u7dda\u8a0a\u865f\u7684\u8655\u7406<strong>\u53ea\u6709\u300c\u4e00\u500b\u300d\u632f\u76ea\u5668<\/strong>\uff0c\u6240\u4ee5\u767c\u5c04\u8207\u63a5\u6536\u7d05\u5916\u7dda\u7684\u4e8b\u4ef6\u6703\u540c\u6642\u767c\u751f\uff0c\u5982\u679c\u8981\u540c\u6642\u64cd\u4f5c\u5c31\u5f97\u7528\u5169\u584a\u958b\u767c\u677f\uff0c\u6216\u662f\u5148\u628a\u8a0a\u865f\u8a18\u9304\u8d77\u4f86\uff0c\u518d\u63db\u767c\u5c04\u5668\u767c\u5c04\u3002<\/p>\n<p>\u5728\u63a5\u6536\u5668\u7684 S \u90a3\u4e00\u5074\u662f\u8a0a\u865f\u8173\uff0c\u53e6\u5916\u4e00\u5074\u5916\u9762\u6709 &#8211; \u865f\u7684\u662f GND\uff0c\u4e2d\u9593\u662f 3.3V\uff0c\u76f4\u63a5\u7528\u675c\u90a6\u7dda\u9023\u63a5\u5373\u53ef\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/ir-remote-05.webp?w=1200&#038;ssl=1\" alt=\"\u99ac\u514b\u4e00\u865f\u8207\u7d05\u5916\u7dda\u63a5\u6536\u5668\u63a5\u7dda\u5716\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u63a5\u7dda\u5b8c\u6210\u5f8c\uff0c\u5148\u900f\u904e Webduino Blockly ( <a href=\"https:\/\/blockly.webduino.io\">https:\/\/blockly.webduino.io<\/a> ) \u4f86\u6e2c\u8a66\u4e00\u4e0b\uff0c\u9996\u5148\u6253\u958b\u5167\u5d4c\u7684\u7db2\u9801\uff0c\u9078\u64c7\u300c\u986f\u793a\u6587\u5b57\u300d\uff0c\u653e\u5165\u958b\u767c\u677f\u7684\u7a4d\u6728\uff0c\u8f38\u5165\u88dd\u7f6e\u7684 device ID\uff0c\u63a5\u8457\u653e\u5165\u7d05\u5916\u7dda\u63a5\u6536\u7684\u7a4d\u6728\uff0c\u8173\u4f4d\u8a2d\u5b9a\u70ba 10 \u865f\u8173\uff0c\u518d\u653e\u5165\u300c\u958b\u59cb\u5075\u6e2c\u300d\uff0c\u5982\u679c\u5075\u6e2c\u5230\u8a0a\u865f\uff0c\u5c31\u900f\u904e\u300c\u986f\u793a\u6587\u5b57\u300d\u986f\u793a\u51fa\u4ee3\u78bc\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/ir-remote-06.webp?w=1200&#038;ssl=1\" alt=\"\u8a2d\u5b9a\u7d05\u5916\u7dda\u7a4d\u6728\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u9ede\u9078\u300c\u57f7\u884c\u300d\uff0c\u7528\u96fb\u8996\u6a5f\u9059\u63a7\u5668\u5c0d\u8457\u63a5\u6536\u5668\u9ede\u6309\uff0c\u5c31\u6703\u770b\u5230\u6309\u9375\u7684\u8a0a\u865f\u986f\u793a\u51fa\u4f86\u4e86\uff0c\u5148\u8a18\u4e0b\u5e7e\u7d44\u8a0a\u865f\uff0c\u4f5c\u70ba\u5f85\u6703\u8981\u63a7\u5236\u71c8\u6ce1\u4f7f\u7528\uff0c\u4f8b\u5982\u9019\u908a\u8a18\u4e0b\u4f86\u7684\u865f\u78bc\u662f\u6309\u9375 1\u300c20df8877\u300d\u3001\u6309\u9375 2 \u300c20df48b7\u300d\u3001\u6309\u9375 3\u300c20dfc837\u300d\u3002( \u6709\u6642\u5019\u7d05\u5916\u7dda\u6703\u56e0\u70ba\u8ddd\u96e2\u88ab\u5e72\u64fe\uff0c\u5efa\u8b70\u5c0d\u8457\u63a5\u6536\u5668\u591a\u9ede\u5e7e\u6b21\uff0c\u624d\u80fd\u78ba\u5b9a\u662f\u771f\u6b63\u7684\u8a0a\u865f )<\/p>\n<blockquote><p>\u76f8\u95dc\u6559\u5b78\uff1a<a href=\"https:\/\/resource.webduino.io\/docs\/cloud-component\/component-io\/ir\">\u7d05\u5916\u7dda\u767c\u5c04\u63a5\u6536<\/a><\/p>\n<hr \/>\n<p>\u7bc4\u4f8b\u89e3\u7b54 ( \u9ad4\u9a57\u7248 )\uff1a<a href=\"https:\/\/goo.gl\/pcb7Vb\">https:\/\/goo.gl\/pcb7Vb<\/a><\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/ir-remote-07.webp?w=1200&#038;ssl=1\" alt=\"\u986f\u793a\u7d05\u5916\u7dda\u5075\u6e2c\u8a0a\u865f\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u5176\u5be6\u9084\u6eff\u591a\u61c9\u7528\u53ef\u4ee5\u73a9\u7684\uff0c\u4f8b\u5982\u7528\u96fb\u8996\u6a5f\u9059\u63a7\u5668\u64cd\u63a7 Youtube\u3001\u7528\u96fb\u8996\u6a5f\u9059\u63a7\u5668\u5207\u63db\u7db2\u9801\u3001\u7528\u96fb\u8996\u6a5f\u9059\u63a7\u5668\u73a9 Facebook&#8230;&#8230;\u7e3d\u800c\u8a00\u4e4b\uff0c\u7576\u6211\u5011\u53ef\u4ee5\u63a5\u6536\u8a0a\u865f\u4e4b\u5f8c\uff0c\u5c31\u53ef\u4ee5\u5728\u7db2\u9801\u88e1\u982d\u76e1\u60c5\u7684\u61c9\u7528\u9019\u4e9b\u8a0a\u865f\u5594\uff01<\/p>\n<h2>Webduino \u7a0b\u5f0f\u7528\u6cd5<\/h2>\n<p>\u7d05\u5916\u7dda\u63a5\u6536\u7684\u5ba3\u544a\u4f7f\u7528 <code>getIRRecv(board, pin)<\/code>\uff0cpin \u662f\u6578\u4f4d\u8173\uff0c\u4f8b\u5982\u63a5\u5728 11 \u865f\u8173\u5c31\u6539\u70ba 11\u3002<\/p>\n<pre><code>irrecv = getIRRecv(board, 11);\n<\/code><\/pre>\n<p>\u63a5\u6536\u8a0a\u865f\u548c\u300c\u5149\u654f\u96fb\u963b\u300d\u7684\u7528\u6cd5\u5f88\u50cf\uff0c\u4f7f\u7528 <code>.on<\/code> \u4ee5\u53ca <code>callback<\/code> \u5be6\u4f5c\uff0c<code>callback<\/code> \u5e36\u4e00\u500b\u53c3\u6578\uff0c\u9019\u500b\u53c3\u6578\u5c31\u662f\u63a5\u6536\u5230\u7684\u7d05\u5916\u7dda\u8a0a\u865f\u3002<\/p>\n<pre><code>irrecv.on(function(val){\n});\n<\/code><\/pre>\n<p>\u540c\u6a23\u7684\u4e5f\u53ef\u4ee5\u900f\u904e <code>.off()<\/code> \u4f86\u95dc\u9589\u3002<\/p>\n<pre><code>irrecv.off();\n<\/code><\/pre>\n<p>\u5982\u679c\u662f\u7d05\u5916\u7dda\u767c\u5c04\uff0c\u5c31\u662f <code>irled = getIRLed(board);<\/code>\uff0c\u70ba\u4ec0\u9ebc\u6c92\u6709 pin \u8173\u5462\uff1f\u56e0\u70ba<strong>\u6bcf\u584a Arduino \u7684\u767c\u5c04\u632f\u76ea\u5668\u53ea\u6709 9 \u865f\u8173\u4f4d\uff0c\u56e0\u6b64\u53ea\u80fd\u63a5\u5728\u9019\u652f\u8173\u624d\u80fd\u767c\u5c04\u7d05\u5916\u7dda\u8a0a\u865f<\/strong>\u3002<\/p>\n<pre><code>irled = getIRLed(board);\n<\/code><\/pre>\n<p>\u767c\u5c04\u8a0a\u865f\u7684\u65b9\u5f0f\uff1a<\/p>\n<pre><code>irled.send(\"\u7d05\u5916\u7dda\u4ee3\u78bc\");\n<\/code><\/pre>\n<h2>\u7db2\u9801\u63a7\u5236<\/h2>\n<p>\u8981\u7528\u7db2\u9801\u63a7\u5236\u524d\uff0c\u5148\u628a\u63a5\u7dda\u6309\u7167\u4e0b\u5716\u63a5\u597d\uff0c\u5982\u679c GND \u53ea\u6709\u4e00\u500b\uff0c\u5c31\u5fc5\u9808\u8981\u7528\u9eb5\u5305\u677f\u5916\u63a5\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/ir-remote-08.webp?w=1200&#038;ssl=1\" alt=\"\u667a\u6167\u63d2\u5ea7\u8207\u7d05\u5916\u7dda\u63a5\u6536\u5668\u63a5\u7dda\u5716\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u63a5\u7dda\u5b8c\u6210\u5f8c\u770b\u5230\u7db2\u9801\u7684\u7a0b\u5f0f\uff0cHTML \u7684\u90e8\u5206\u5148\u5728\u81ea\u5df1\u7684\u7db2\u9801\u5167\u5f15\u5165\u300c webduino-min.js \u300d\u9084\u6709\u300c webduino-blockly.js \u300d\u9019\u5169\u500b JavaScript\uff0c\u9019\u6a23\u6211\u5011\u624d\u6709\u64cd\u63a7\u958b\u767c\u677f\u4ee5\u53ca\u7d05\u5916\u7dda\u767c\u5c04\u6216\u63a5\u6536\u7684 API \u53ef\u4ee5\u4f7f\u7528\uff0c\u5728 <code>body<\/code> \u7684\u5340\u57df\u653e\u5165\u4e00\u500b <code>h2<\/code> \u4f86\u986f\u793a\u4e00\u4e9b\u6587\u5b57\u8a0a\u606f\uff0c\u7136\u5f8c\u653e\u5165\u5169\u5f35\u71c8\u6ce1\u4e00\u660e\u4e00\u6697\u7684\u5716\u7247\uff0c\u8b93\u5075\u6e2c\u5230\u8a0a\u865f\u7684\u6642\u5019\uff0c\u7db2\u9801\u4e0a\u7684\u71c8\u6ce1\u4e5f\u6703\u767c\u751f\u53cd\u61c9\u3002<\/p>\n<pre><code>&lt;html&gt;\n&lt;head&gt;\n  &lt;meta charset=\"utf-8\"&gt;\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"&gt;\n  &lt;title&gt;Webduino&lt;\/title&gt;\n  &lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.9.1\/jquery.min.js\"&gt;&lt;\/script&gt;\n  &lt;script src=\"https:\/\/webduino.io\/components\/webduino-js\/dist\/webduino-all.min.js\"&gt;&lt;\/script&gt;\n  &lt;script src=\"https:\/\/blockly.webduino.io\/webduino-blockly.js\"&gt;&lt;\/script&gt;\n&lt;\/head&gt;\n\n&lt;body&gt;\n  &lt;h2 id=\"show\"&gt;&lt;\/h2&gt;\n  &lt;img src=\"http:\/\/example.oxxostudio.tw\/it2016\/it2016-day05-on.webp\" id=\"on\"&gt;\n  &lt;img src=\"http:\/\/example.oxxostudio.tw\/it2016\/it2016-day05-off.webp\" class=\"show\" id=\"off\"&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<p>CSS \u7684\u90e8\u5206\u5c31\u53ea\u662f\u5beb\u500b\u7c21\u55ae\u7684\u63a7\u5236\u71c8\u6ce1\u5716\u7247\u6709\u6c92\u6709\u51fa\u73fe\u800c\u5df2\u3002<\/p>\n<pre><code>img{\n  display:none;\n}\n.show{\n  display:block;\n}\n<\/code><\/pre>\n<p>JavaScript \u7684\u8aaa\u660e\u5c31\u76f4\u63a5\u5beb\u5728\u7a0b\u5f0f\u78bc\u88e1\u982d\uff0c\u591a\u8a2d\u5b9a\u4e00\u500b\u8b8a\u6578\u521d\u59cb\u503c\u662f -1\uff0c\u5728 LED \u9032\u884c\u9583\u720d <code>blink<\/code> \u7684\u6642\u5019\u5982\u679c\u6709 callback\uff0c\u6bcf\u4e00\u6b21\u5c31\u4e58 -1\uff0c\u9019\u6a23\u5c31\u53ef\u4ee5\u5c0d\u61c9\u5230\u7db2\u9801\u4e0a\u7684\u71c8\u6ce1\u5716\u7247\u4e5f\u6703\u8ddf\u8457\u4e00\u9583\u4e00\u9583\uff0c\u7136\u5f8c\u4e2d\u9593\u7684\u5224\u65b7\u6307\u4ee4\u5247\u662f\u900f\u904e <code>switch<\/code> \u4f86\u5224\u65b7\uff0c\u53ea\u8981\u662f\u525b\u525b\u6211\u5011\u8a18\u4e0b\u4f86\u7684\u90a3\u4e09\u7d44\u767c\u5c04\u4ee3\u78bc\uff0c\u5c31\u6703\u9032\u884c\u5c0d\u61c9\u7684\u52d5\u4f5c\u3002<\/p>\n<pre><code>$(function(){\n\n  var irrecv,\n      led,\n      $show=$('#show'),\n      $on = $('#on'),\n      $off = $('#off'),\n      a = -1;\n\n  boardReady('\u4f60\u7684\u88dd\u7f6e ID', function (board) {\n    board.systemReset();\n    board.samplingInterval = 250;\n    irrecv = getIRRecv(board, 11);  \/\/\u8a2d\u5b9a\u7d05\u5916\u7dda\u63a5\u6536\u5668\u70ba 11 \u865f\u8173\n    led = getLed(board, 10); \/\/\u8a2d\u5b9a LED \u70ba 10 \u865f\u8173\n    $show.text('\u5075\u6e2c\u4e2d...');\n    irrecv.on(function(val){\n      irrecv.onVal = val;\n      switch(val){\n        case '20df8877':\n          a = 1;\n          $show.text('\u958b\u71c8\u5566\uff01');\n          led.on();\n          $on.addClass('show');\n          $off.removeClass('show');\n          break;\n        case '20df48b7':\n          a = -1;\n          $show.text('\u95dc\u8d77\u4f86\u4e86');\n          led.off();\n          $on.removeClass('show');\n          $off.addClass('show');\n          break;\n        case '20dfc837':\n          $show.text('\u9583\u9583\u9583');\n          led.blink(500, function(){\n             a = a * -1;\n              if(a&gt;0){\n                $on.addClass('show');\n                $off.removeClass('show');\n              }else{\n                $on.removeClass('show');\n                $off.addClass('show');\n              }\n          });\n          break;\n      }\n    },function(){});\n  });\n\n});\n<\/code><\/pre>\n<p>\u6253\u958b\u505a\u597d\u7684\u7db2\u9801\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u9ede\u9078\u9059\u63a7\u5668\u6309\u9215\uff0c\u5c31\u6703\u89f8\u767c\u71c8\u6ce1\u5c0d\u61c9\u7684\u52d5\u4f5c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/ir-remote-09.gif?w=1200&#038;ssl=1\" alt=\"\u7528\u96fb\u8996\u9059\u63a7\u5668\u9ede\u4eae\u667a\u6167\u63d2\u5ea7\u71c8\u6ce1\" data-recalc-dims=\"1\" \/><\/p>\n<h2>\u5c0f\u7d50<\/h2>\n<p>\u5176\u5be6\u9664\u4e86\u628a\u96fb\u8996\u6a5f\u9059\u63a7\u5668\u6539\u6210\u5176\u4ed6\u7684\u63a7\u5236\u5668\u5916\uff0c\u4e5f\u53ef\u4ee5\u628a\u5132\u5b58\u7684\u4ee3\u78bc\u505a\u6210\u7db2\u9801\uff0c\u5c31\u80fd\u7528\u7db2\u9801\u64cd\u63a7\u96fb\u8996\u3001\u6216\u662f\u4f7f\u7528\u5176\u4ed6\u7d05\u5916\u7dda\u9059\u63a7\u5668\u4f86\u9059\u63a7\u7db2\u9801\u4e86\uff01<\/p>\n<blockquote><p>\u53c3\u8003\u8cc7\u6599<\/p>\n<ul>\n<li><a href=\"http:\/\/coopermaa2nd.blogspot.tw\/2010\/01\/nec-ir-protocol.html\">\u7d05\u5916\u7dda\u9059\u63a7\u539f\u7406\u8207 NEC IR Protocol<\/a><\/li>\n<li><a href=\"https:\/\/goo.gl\/zJ3SXx\">\u7d05\u5916\u7dda IR \u9059\u63a7\u5668\u539f\u7406<\/a><\/li>\n<li>Webduino \u57fa\u790e\u6559\u5b78\uff1a<a href=\"https:\/\/resource.webduino.io\/docs\/cloud-component\/component-io\/ir\">\u7d05\u5916\u7dda\u767c\u5c04\u63a5\u6536<\/a><\/li>\n<li>Github \u9023\u7d50\uff1a<a href=\"https:\/\/github.com\/webduinoio\/webduino-js\/blob\/master\/src\/module\/IRRecv.js\">https:\/\/github.com\/webduinoio\/webduino-js\/blob\/master\/src\/module\/IRRecv.js<\/a><\/li>\n<li>Github \u9023\u7d50\uff1a<a href=\"https:\/\/github.com\/webduinoio\/webduino-js\/blob\/master\/src\/module\/IRLed.js\">https:\/\/github.com\/webduinoio\/webduino-js\/blob\/master\/src\/module\/IRLed.js<\/a><\/li>\n<\/ul>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e00\u4e9b\u88ab\u52d5\u7684\u5075\u6e2c\u61c9\u7528\u4e4b\u5f8c\uff0c\u8981\u4f86\u5617\u8a66\u4e3b\u52d5\u7684\u5075\u6e2c\uff1a\u300c\u62ff\u8d77\u96fb\u8996\u6a5f\u7684\u9059\u63a7\u5668\uff0c\u6309\u4e0b\u67d0\u500b\u6309\u9375\uff0c\u71c8\u6ce1\u5c31\u6703\u4eae\u8d77\u300d\uff0c\u9019\u7bc7\u6700\u4e3b\u8981\u662f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3866,"menu_order":4,"comment_status":"open","ping_status":"open","template":"","meta":{"inline_featured_image":false,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"doc_tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u96fb\u8996\u6a5f\u9059\u63a7\u5668 | Webduino \u6559\u5b78\u8cc7\u6e90<\/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:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u96fb\u8996\u6a5f\u9059\u63a7\u5668 | Webduino \u6559\u5b78\u8cc7\u6e90\" \/>\n<meta property=\"og:description\" content=\"\u5728\u4e00\u4e9b\u88ab\u52d5\u7684\u5075\u6e2c\u61c9\u7528\u4e4b\u5f8c\uff0c\u8981\u4f86\u5617\u8a66\u4e3b\u52d5\u7684\u5075\u6e2c\uff1a\u300c\u62ff\u8d77\u96fb\u8996\u6a5f\u7684\u9059\u63a7\u5668\uff0c\u6309\u4e0b\u67d0\u500b\u6309\u9375\uff0c\u71c8\u6ce1\u5c31\u6703\u4eae\u8d77\u300d\uff0c\u9019\u7bc7\u6700\u4e3b\u8981\u662f...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote\" \/>\n<meta property=\"og:site_name\" content=\"Webduino \u6559\u5b78\u8cc7\u6e90\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-30T09:26:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/photo.webduino.io\/resource\/socket\/sensor\/ir-remote-01.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote\",\"url\":\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote\",\"name\":\"\u96fb\u8996\u6a5f\u9059\u63a7\u5668 | Webduino \u6559\u5b78\u8cc7\u6e90\",\"isPartOf\":{\"@id\":\"https:\/\/resource.webduino.io\/#website\"},\"datePublished\":\"2023-03-15T14:35:39+00:00\",\"dateModified\":\"2023-03-30T09:26:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\/\/resource.webduino.io\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u667a\u6167\u63d2\u5ea7\",\"item\":\"https:\/\/resource.webduino.io\/docs\/socket\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u611f\u6e2c\u5668\u61c9\u7528\",\"item\":\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u96fb\u8996\u6a5f\u9059\u63a7\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/resource.webduino.io\/#website\",\"url\":\"https:\/\/resource.webduino.io\/\",\"name\":\"Webduino \u5b78\u7fd2\u8cc7\u6e90\u5eab\",\"description\":\"\u672c\u7db2\u7ad9\u63d0\u4f9b\u5b8c\u6574\u7684 Webduino STEAM \u6559\u80b2\u5b78\u7fd2\u8cc7\u6e90\uff0c\u5305\u542b\u958b\u767c\u677f\u3001\u7a0b\u5f0f\u7a4d\u6728\u3001\u96fb\u5b50\u96f6\u4ef6\u8207\u50b3\u611f\u5668\u7b49\u57fa\u790e\u64cd\u4f5c\uff0c\u8b93\u8001\u5e2b\u3001\u540c\u5b78\u3001maker \u80fd\u5920\u5feb\u901f\u4e0a\u624b Webduino\uff0c\u4e26\u4e0d\u5b9a\u671f\u66f4\u65b0\u8cc7\u8a0a\u6559\u80b2\u8da8\u52e2\u76f8\u95dc\u6587\u7ae0\u3002\",\"publisher\":{\"@id\":\"https:\/\/resource.webduino.io\/#organization\"},\"alternateName\":\"Webduino \u5b78\u7fd2\u8cc7\u6e90\u5eab\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/resource.webduino.io\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/resource.webduino.io\/#organization\",\"name\":\"Webduino\",\"url\":\"https:\/\/resource.webduino.io\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/resource.webduino.io\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/resource.webduino.io\/wp-content\/uploads\/2022\/07\/logo\u900f\u660e\u5e95.png\",\"contentUrl\":\"https:\/\/resource.webduino.io\/wp-content\/uploads\/2022\/07\/logo\u900f\u660e\u5e95.png\",\"width\":1061,\"height\":1060,\"caption\":\"Webduino\"},\"image\":{\"@id\":\"https:\/\/resource.webduino.io\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u96fb\u8996\u6a5f\u9059\u63a7\u5668 | Webduino \u6559\u5b78\u8cc7\u6e90","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:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote","og_locale":"zh_TW","og_type":"article","og_title":"\u96fb\u8996\u6a5f\u9059\u63a7\u5668 | Webduino \u6559\u5b78\u8cc7\u6e90","og_description":"\u5728\u4e00\u4e9b\u88ab\u52d5\u7684\u5075\u6e2c\u61c9\u7528\u4e4b\u5f8c\uff0c\u8981\u4f86\u5617\u8a66\u4e3b\u52d5\u7684\u5075\u6e2c\uff1a\u300c\u62ff\u8d77\u96fb\u8996\u6a5f\u7684\u9059\u63a7\u5668\uff0c\u6309\u4e0b\u67d0\u500b\u6309\u9375\uff0c\u71c8\u6ce1\u5c31\u6703\u4eae\u8d77\u300d\uff0c\u9019\u7bc7\u6700\u4e3b\u8981\u662f...","og_url":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote","og_site_name":"Webduino \u6559\u5b78\u8cc7\u6e90","article_modified_time":"2023-03-30T09:26:10+00:00","og_image":[{"url":"https:\/\/photo.webduino.io\/resource\/socket\/sensor\/ir-remote-01.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"\u9810\u4f30\u95b1\u8b80\u6642\u9593":"4 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote","url":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote","name":"\u96fb\u8996\u6a5f\u9059\u63a7\u5668 | Webduino \u6559\u5b78\u8cc7\u6e90","isPartOf":{"@id":"https:\/\/resource.webduino.io\/#website"},"datePublished":"2023-03-15T14:35:39+00:00","dateModified":"2023-03-30T09:26:10+00:00","breadcrumb":{"@id":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/ir-remote#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/resource.webduino.io\/"},{"@type":"ListItem","position":2,"name":"\u667a\u6167\u63d2\u5ea7","item":"https:\/\/resource.webduino.io\/docs\/socket"},{"@type":"ListItem","position":3,"name":"\u611f\u6e2c\u5668\u61c9\u7528","item":"https:\/\/resource.webduino.io\/docs\/socket\/sensor"},{"@type":"ListItem","position":4,"name":"\u96fb\u8996\u6a5f\u9059\u63a7\u5668"}]},{"@type":"WebSite","@id":"https:\/\/resource.webduino.io\/#website","url":"https:\/\/resource.webduino.io\/","name":"Webduino \u5b78\u7fd2\u8cc7\u6e90\u5eab","description":"\u672c\u7db2\u7ad9\u63d0\u4f9b\u5b8c\u6574\u7684 Webduino STEAM \u6559\u80b2\u5b78\u7fd2\u8cc7\u6e90\uff0c\u5305\u542b\u958b\u767c\u677f\u3001\u7a0b\u5f0f\u7a4d\u6728\u3001\u96fb\u5b50\u96f6\u4ef6\u8207\u50b3\u611f\u5668\u7b49\u57fa\u790e\u64cd\u4f5c\uff0c\u8b93\u8001\u5e2b\u3001\u540c\u5b78\u3001maker \u80fd\u5920\u5feb\u901f\u4e0a\u624b Webduino\uff0c\u4e26\u4e0d\u5b9a\u671f\u66f4\u65b0\u8cc7\u8a0a\u6559\u80b2\u8da8\u52e2\u76f8\u95dc\u6587\u7ae0\u3002","publisher":{"@id":"https:\/\/resource.webduino.io\/#organization"},"alternateName":"Webduino \u5b78\u7fd2\u8cc7\u6e90\u5eab","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/resource.webduino.io\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-TW"},{"@type":"Organization","@id":"https:\/\/resource.webduino.io\/#organization","name":"Webduino","url":"https:\/\/resource.webduino.io\/","logo":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/resource.webduino.io\/#\/schema\/logo\/image\/","url":"https:\/\/resource.webduino.io\/wp-content\/uploads\/2022\/07\/logo\u900f\u660e\u5e95.png","contentUrl":"https:\/\/resource.webduino.io\/wp-content\/uploads\/2022\/07\/logo\u900f\u660e\u5e95.png","width":1061,"height":1060,"caption":"Webduino"},"image":{"@id":"https:\/\/resource.webduino.io\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/docs\/3884"}],"collection":[{"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/comments?post=3884"}],"version-history":[{"count":3,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/docs\/3884\/revisions"}],"predecessor-version":[{"id":4861,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/docs\/3884\/revisions\/4861"}],"up":[{"embeddable":true,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/docs\/3866"}],"wp:attachment":[{"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/media?parent=3884"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/doc_tag?post=3884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}