{"id":10064,"date":"2022-09-22T16:17:39","date_gmt":"2022-09-22T08:17:39","guid":{"rendered":"http:\/\/www.szryc.com\/?p=10064"},"modified":"2022-09-22T16:17:39","modified_gmt":"2022-09-22T08:17:39","slug":"%e5%85%89%e4%bc%a0%e6%84%9f%e5%99%a8%e7%9a%84%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5%e5%8f%8a%e5%b7%a5%e4%bd%9c%e5%8e%9f%e7%90%86","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=10064","title":{"rendered":"\u5149\u4f20\u611f\u5668\u7684\u57fa\u672c\u6982\u5ff5\u53ca\u5de5\u4f5c\u539f\u7406"},"content":{"rendered":"
\u7528\u4e8e\u68c0\u6d4b\u6570\u91cf\u6216\u4e8b\u4ef6\u7684\u53d8\u5316\u5e76\u9002\u5f53\u5730\u4ea7\u751f\u8f93\u51fa\u7684\u8bbe\u5907\u53ef\u4ee5\u79f0\u4e3a\u4f20\u611f\u5668<\/u>\uff0c\u4f20\u611f\u5668\u6709\u591a\u79cd\u7c7b\u578b\uff0c\u4f8b\u5982\u538b\u529b\u4f20\u611f\u5668<\/u>\u3001\u8d85\u58f0\u6ce2\u4f20\u611f\u5668\u3001\u5149\u4f20\u611f\u5668\u3001\u6e29\u5ea6\u4f20\u611f\u5668<\/u>\u3001\u7ea2\u5916<\/u>\u4f20\u611f\u5668\u3001\u89e6\u6478\u4f20\u611f\u5668\u3001\u6e7f\u5ea6\u4f20\u611f\u5668<\/u>\u3001\u70df\u96fe\u548c\u6c14\u4f53\u4f20\u611f\u5668\u7b49\u3002<\/p>\n
\u5728\u672c\u6587\u4e2d\uff0c\u5c0f\u7f16\u4ecb\u7ecd\u4e00\u79cd\u666e\u904d\u4e14\u5e38\u7528\u7684\u4f20\u611f\u5668\u2014\u2014\u5149\u4f20\u611f\u5668\uff0c\u4e0b\u9762\u4e00\u8d77\u6765\u770b\u770b\u5149\u4f20\u611f\u5668\u7684\u4f5c\u7528\u548c\u539f\u7406!<\/p>\n
\u57fa\u672c\u6982\u5ff5<\/p>\n
\u57fa\u4e8e\u65e5\u5149\u5f3a\u5ea6(\u4e5f\u5305\u62ec\u4eba\u9020\u5149)\u5de5\u4f5c\u7684\u7279\u6b8a\u7c7b\u578b\u7684\u4f20\u611f\u5668\u79f0\u4e3a\u5149\u4f20\u611f\u5668(Light Sensor)\uff0c\u5b83\u662f\u91cd\u8981\u7684\u4f20\u611f\u5668\u4e4b\u4e00\u3002\u5149\u4f20\u611f\u5668\u6709\u591a\u79cd\u7c7b\u578b\uff0c\u5305\u62ec\u5149\u4f0f\u7535\u6c60\u3001\u5149\u7535\u6676\u4f53\u7ba1<\/u>\u3001\u5149\u654f\u7535\u963b\u3001\u5149\u7535\u7ba1\u3001\u5149\u7535\u500d\u589e\u7ba1\u3001\u5149\u7535\u4e8c\u6781\u7ba1<\/u>\u3001\u7535\u8377\u8026\u5408<\/u>\u5668\u4ef6\u7b49\uff0c\u6240\u6709\u8fd9\u4e9b\u90fd\u662f\u6a21\u62df\u4f20\u611f\u5668\u3002<\/p>\n
\u5f53\u4eca\u53ef\u7528\u7684\u7b80\u5355\u5149\u4f20\u611f\u5668\u662f\u5149\u654f\u7535\u963b\u5668<\/u>( LDR)\uff0c\u5176\u7279\u6027\u662f\u5b83\u7684\u7535\u963b\u4e0e\u73af\u5883\u5149\u7684\u5f3a\u5ea6\u6210\u53cd\u6bd4\uff0c\u5373\u5f53\u5149\u7684\u5f3a\u5ea6\u589e\u52a0\u65f6\uff0c\u5b83\u7684\u7535\u963b\u51cf\u5c0f\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002\u5149\u654f\u7535\u963b\u5668\u662f\u65e0\u6e90\u7684\uff0c\u4e0d\u4f1a\u4ea7\u751f\u4efb\u4f55\u7535\u80fd\u3002<\/p>\n
\u5149\u654f\u7535\u963b\u7684\u7535\u963b\u4f1a\u968f\u7740\u65e5\u5149\u5f3a\u5ea6\u7684\u53d8\u5316\u800c\u53d8\u5316(\u57fa\u4e8e\u5149\u654f\u7535\u963b\u4e0a\u7167\u5c04\u7684\u5149)\uff0c\u800c\u4e14\u5149\u654f\u7535\u963b\u4e5f\u53ef\u4ee5\u5728\u80ae\u810f\u548c\u6076\u52a3\u7684\u5916\u90e8\u73af\u5883\u4e2d\u4f7f\u7528\uff0c\u56e0\u4e3a\u5b83\u672c\u8d28\u4e0a\u662f\u575a\u56fa\u7684\u3002\u56e0\u6b64\uff0c\u4e0e\u5176\u4ed6\u5149\u4f20\u611f\u5668\u76f8\u6bd4\uff0c\u5bf9\u4e8e\u6237\u5916\u7167\u660e\u548c\u81ea\u52a8\u8857\u9053\u7167\u660e\u7535\u8def\uff0c\u5149\u654f\u7535\u963b\u662f\u9996\u9009\u3002<\/p>\n
<\/p>\n
\u6b64\u5916\uff0c\u5149\u654f\u7535\u963b\u662f\u4e00\u4e2a\u53ef\u53d8\u7535\u963b\u5668\uff0c\u5176\u963b\u503c\u7531\u5149\u5f3a\u63a7\u5236\u3002\u9ad8\u7535\u963b\u534a\u5bfc\u4f53\u6750\u6599\u548c\u786b\u5316\u9549(\u8868\u73b0\u51fa\u5149\u7535\u5bfc\u6027)\u7528\u4e8e\u8bbe\u8ba1\u5149\u654f\u7535\u963b\u3002<\/p>\n
<\/p>\n
\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u5728\u591c\u95f4\uff0c\u5982\u679c\u5149\u654f\u7535\u963b\u4f20\u611f\u5668\u4e0a\u7684\u5149\u7167\u51cf\u5c11\uff0c\u5219\u5149\u654f\u7535\u963b\u7535\u963b\u4f1a\u53d8\u5f97\u975e\u5e38\u9ad8(\u5927\u7ea6\u51e0\u5146\u6b27\u59c6)\u3002\u5728\u767d\u5929\uff0c\u5982\u679c\u5149\u654f\u7535\u963b\u4e0a\u7684\u706f\u88ab\u7167\u4eae\uff0c\u90a3\u4e48\u5149\u654f\u7535\u963b\u7684\u7535\u963b\u5c31\u4f1a\u53d8\u4f4e(\u5927\u7ea6\u51e0\u767e\u6b27\u59c6)\u3002\u56e0\u6b64\uff0c\u5149\u654f\u7535\u963b\u7684\u7535\u963b\u548c\u5149\u654f\u7535\u963b\u4e0a\u7167\u5c04\u7684\u5149\u76f8\u4e92\u6210\u53cd\u6bd4\uff0c\u4e0a\u56fe\u8868\u793a\u5b83\u4eec\u7684\u53cd\u6bd4\u5173\u7cfb\u3002<\/p>\n
\u9664\u4e86\u4e0a\u8ff0\u5149\u4f20\u611f\u5668\u4e4b\u5916\uff0c\u8fd8\u6709BH1750\u3001TSL2561\u7b49\u6570\u5b57\u5149\u4f20\u611f\u5668\uff0c\u53ef\u4ee5\u8ba1\u7b97\u5149\u7684\u5f3a\u5ea6\u5e76\u63d0\u4f9b\u6570\u5b57\u7b49\u6548\u503c\u3002<\/p>\n
\u5149\u4f20\u611f\u5668\u7535\u8def<\/p>\n
\u81ea\u52a8\u5149\u611f\u6d4b\u7535\u8def\u53ef\u7528\u4e8e\u81ea\u52a8\u63a7\u5236\u7535\u706f\u3001\u98ce\u6247\u3001\u51b7\u5374\u5668\u3001\u7a7a\u8c03\u3001\u8def\u706f\u7b49\u7535\u5668\u3002\u4f7f\u7528\u8fd9\u79cd\u81ea\u52a8\u5149\u4f20\u611f\u5668\u7535\u8def\u6839\u636e\u843d\u5728\u5149\u4f20\u611f\u5668\u4e0a\u7684\u65e5\u5149\u5f3a\u5ea6\u5de5\u4f5c\uff0c\u53ef\u4ee5\u6d88\u9664\u63a7\u5236\u6216\u5207\u6362\u8d1f\u8f7d\u64cd\u4f5c\u7684\u4eba\u529b\u3002\u56e0\u6b64\uff0c\u53ef\u4ee5\u5c06\u5176\u79f0\u4e3a\u81ea\u52a8\u5149\u4f20\u611f\u5668\u7535\u8def\u3002<\/p>\n
\u4f8b\u5982\uff0c\u4f7f\u7528\u4f20\u7edf\u65b9\u6cd5\u5728\u9ad8\u901f\u516c\u8def\u4e0a\u63a7\u5236\u8def\u706f\u662f\u6bd4\u8f83\u5371\u9669\u7684\uff0c\u800c\u4e14\u4e5f\u4f1a\u9020\u6210\u7535\u529b\u6d6a\u8d39\u3002\u73b0\u5728\uff0c\u7b80\u5355\u4ecb\u7ecd\u4e0b\u5982\u4f55\u5236\u4f5c\u5149\u4f20\u611f\u5668\u7535\u8def\u6765\u8fdb\u884c\u63a7\u5236\u3002<\/p>\n
\u5176\u5b9e\uff0c\u53ef\u4ee5\u4f7f\u7528\u5404\u79cd\u7535\u6c14\u548c\u7535\u5b50\u5143\u5668\u4ef6<\/u>\u8bbe\u8ba1\u81ea\u52a8\u5149\u4f20\u611f\u5668\u7535\u8def\u3002\u8be5\u7535\u8def\u4e2d\u4f7f\u7528\u7684\u4e3b\u8981\u7ec4\u4ef6\u662f\u5149\u4f20\u611f\u5668\u3001\u8fbe\u6797\u987f\u5bf9\u6676\u4f53\u7ba1\u548c\u7ee7\u7535\u5668\u3002\u4e0d\u8fc7\uff0c\u5728\u8ba8\u8bba\u5149\u4f20\u611f\u5668\u7535\u8def\u7684\u5de5\u4f5c\u539f\u7406\u4e4b\u524d\uff0c\u5fc5\u987b\u4e86\u89e3\u7528\u4e8e\u8bbe\u8ba1\u81ea\u52a8\u5149\u4f20\u611f\u5668\u7535\u8def\u7684\u5404\u79cd\u5143\u4ef6\u7684\u5b9e\u9645\u7528\u5904\u3002<\/p>\n
1\u3001\u8fbe\u6797\u987f\u5bf9\u6676\u4f53\u7ba1<\/p>\n
\u80cc\u9760\u80cc\u8fde\u63a5\u7684\u4e24\u4e2a\u6676\u4f53\u7ba1\u79f0\u4e3a\u8fbe\u6797\u987f\u5bf9\uff0c\u8fd9\u79cd\u8fbe\u6797\u987f\u5bf9\u6676\u4f53\u7ba1\u53ef\u4ee5\u88ab\u8ba4\u4e3a\u662f\u5177\u6709\u975e\u5e38\u9ad8\u7535\u6d41<\/u>\u589e\u76ca\u7684\u5355\u4e2a\u6676\u4f53\u7ba1\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u5982\u679c\u57fa\u6781\u7535\u538b\u5927\u4e8e0.7v\uff0c\u5219\u6676\u4f53\u7ba1\u5bfc\u901a\u3002\u4f46\u662f\uff0c\u5982\u679c\u8003\u8651\u4e00\u4e2a\u8fbe\u6797\u987f\u5bf9\uff0c\u7531\u4e8e\u9700\u8981\u6253\u5f00\u4e24\u4e2a\u6676\u4f53\u7ba1\uff0c\u56e0\u6b64\u57fa\u6781\u7535\u538b\u5fc5\u987b\u4e3a1.4v\u3002<\/p>\n
<\/p>\n
2\u3001\u4e2d\u7ee7\u5668<\/p>\n
\u7ee7\u7535\u5668\u5728\u81ea\u52a8\u5149\u4f20\u611f\u5668\u7535\u8def\u4e2d\u8d77\u4e3b\u8981\u4f5c\u7528\uff0c\u7528\u4e8e\u6fc0\u6d3b\u7535\u5668\u6216\u5c06\u8d1f\u8f7d\u4e0e\u4ea4\u6d41\u7535\u6e90<\/u>\u4e00\u8d77\u8fde\u63a5\u5230\u81ea\u52a8\u5149\u4f20\u611f\u5668\u7535\u8def\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u7ee7\u7535\u5668\u7531\u4e00\u4e2a\u7ebf\u5708\u7ec4\u6210\uff0c\u5f53\u5b83\u83b7\u5f97\u8db3\u591f\u7684\u7535\u6e90\u65f6\u4f1a\u901a\u7535\u3002<\/p>\n
\u5e94\u7528\u7535\u8def\u8bbe\u8ba1<\/u>\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5982\u679c\u65e5\u5149\u843d\u5728\u5149\u654f\u7535\u963b(\u767d\u5929)\u4e0a\uff0c\u90a3\u4e48\u5149\u654f\u7535\u963b\u7684\u7535\u963b\u5c06\u975e\u5e38\u4f4e(\u53ea\u6709100\u6b27\u59c6)\u3002\u7535\u6e90\u901a\u8fc7\u5149\u654f\u7535\u963b\u548c\u7535\u963b\u5668\u63a5\u5730\u3002\u8fd9\u662f\u7531\u4e8e\u7535\u6d41\u539f\u7406\uff0c\u4f4e\u7535\u963b\u8def\u5f84\u3002\u56e0\u6b64\uff0c\u7ee7\u7535\u5668\u7ebf\u5708\u6ca1\u6709\u8db3\u591f\u7684\u7535\u6e90\u6765\u83b7\u5f97\u8db3\u591f\u7684\u7535\u6e90\u6765\u901a\u7535\uff0c\u8fd9\u5bfc\u81f4\u8d1f\u8f7d\u4fdd\u6301\u5173\u95ed\u72b6\u6001\u3002<\/p>\n
\u540c\u6837\uff0c\u5982\u679c\u9ed1\u6697\u843d\u5728\u4f4e\u7535\u963b\u8def\u5f84\u4e0a\uff0c\u5219\u4f4e\u7535\u963b\u8def\u5f84\u5c06\u5177\u6709\u9ad8\u7535\u963b(\u51e0\u5146\u6b27\u59c6)\u3002\u56e0\u6b64\uff0c\u7531\u4e8e\u4f4e\u7535\u963b\u8def\u5f84\u7684\u7535\u963b\u975e\u5e38\u9ad8\uff0c\u6ca1\u6709(\u6216\u975e\u5e38\u5c11)\u7535\u6d41\u6d41\u8fc7\u3002\u73b0\u5728\uff0c\u6d41\u8fc7\u4f4e\u7535\u963b\u8def\u5f84\u7684\u7535\u6d41\u5bfc\u81f4\u8fbe\u6797\u987f\u5bf9\u6676\u4f53\u7ba1\u57fa\u6781\u7535\u538b\u589e\u52a0\u5230\u8d85\u8fc71.4v\u3002\u56e0\u6b64\uff0c\u7ee7\u7535\u5668\u7ebf\u5708\u901a\u7535\uff0c\u8d1f\u8f7d\u5728\u591c\u95f4\u5f00\u542f\u3002<\/p>\n
<\/p>\n
\u6ce8\u610f\uff1a\u4e0a\u8ff0\u7535\u8def\u56fe\u4e5f\u53ef\u4ee5\u4f7f\u7528\u8fd0\u7b97\u653e\u5927\u5668<\/u>\u6765\u4ee3\u66ff\u8fbe\u6797\u987f\u5bf9\u6676\u4f53\u7ba1\u8fdb\u884c\u8bbe\u8ba1\u3002<\/p>\n
\u4e3b\u8981\u5e94\u7528<\/p>\n
\u81ea\u52a8\u5149\u4f20\u611f\u5668\u7535\u8def\u53ef\u7528\u4e8e\u8bbe\u8ba1\u8bb8\u591a\u57fa\u4e8e\u5d4c\u5165\u5f0f<\/u>\u7cfb\u7edf\u7684\u5b9e\u7528\u9879\u76ee\uff0c\u4e00\u4e9b\u57fa\u4e8e\u5149\u4f20\u611f\u5668\u7535\u8def\u7684\u9879\u76ee\u5305\u62ec\uff1a<\/p>\n
\u767d\u5929\u81ea\u52a8\u5173\u95ed\u7684\u592a\u9633\u80fd\u9ad8\u901f\u516c\u8def\u7167\u660e\u7cfb\u7edf<\/p>\n
\u5149\u4f20\u611f\u5668\u7684\u5b89\u5168\u8b66\u62a5\u7cfb\u7edf<\/p>\n
\u65e5\u843d\u5230\u65e5\u51fa\u7167\u660e\u5f00\u5173<\/p>\n
Arduino<\/u>\u7ba1\u7406\u7684\u57fa\u4e8e\u5149\u654f\u7535\u963b\u7684\u9ad8\u7075\u654f\u5ea6\u8def\u706f\u63a7\u5236\u7cfb\u7edf\u8282\u7535\u5668<\/p>\n
\u4f8b\u5982\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u81ea\u52a8\u665a\u4e0a\u5f00\u5230\u65e9\u4e0a\u5173\u706f\u7684\u7535\u8def\u8bbe\u8ba1\uff0c\u539f\u7406\u662f\u81ea\u52a8\u4ece\u9ec4\u660f\u5230\u9ece\u660e\u7684\u706f\u5149\u57fa\u4e8e\u5149\u654f\u7535\u963b\u7684\u5149\u4f20\u611f\u5668\u5de5\u4f5c\uff0c\u9ec4\u660f\u5230\u9ece\u660e\u5149\u65f6\u6bb5\u4f20\u611f\u5668\u7535\u8def\u4f1a\u5728\u65e9\u6668\u81ea\u52a8\u5173\u95ed\u8d1f\u8f7d(\u5f53\u65e5\u5149\u843d\u5728\u5149\u654f\u7535\u963b\u4e0a\u65f6)\u3002\u540c\u6837\uff0c\u5728\u665a\u4e0a\u65f6\u95f4(\u5149\u654f\u7535\u963b\u4e0a\u65e0\u5149\u7167\u65f6)\u8d1f\u8f7d\u4f1a\u81ea\u52a8\u6253\u5f00\u3002<\/p>\n
\u603b\u7ed3<\/p>\n
\u5149\u4f20\u611f\u5668\u662f\u4e00\u79cd\u4f20\u611f\u88c5\u7f6e\uff0c\u4e3b\u8981\u7531\u5149\u654f\u5143\u4ef6\u7ec4\u6210\uff0c\u5b83\u80fd\u654f\u9510\u611f\u5e94\u7d2b\u5916\u5149\u5230\u7ea2\u5916\u5149\u7684\u5149\u80fd\u91cf\uff0c\u5e76\u5c06\u5149\u80fd\u91cf\u8f6c\u6362\u6210\u7535\u4fe1\u53f7\u7684\u5668\u4ef6\u3002\u76ee\u524d\u5149\u4f20\u611f\u5668\u53ef\u4ee5\u5206\u4e3a\u6a21\u62df\u548c\u6570\u5b57\u7b49\u591a\u4e2a\u7c7b\u578b\uff0c\u4f46\u662f\u6bd4\u8f83\u5e38\u7528\u7684\u8fd8\u662f\u5149\u654f\u7535\u963b\u5668(LDR)\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u7528\u4e8e\u68c0\u6d4b\u6570\u91cf\u6216\u4e8b\u4ef6\u7684\u53d8\u5316\u5e76\u9002\u5f53\u5730\u4ea7\u751f\u8f93\u51fa\u7684\u8bbe\u5907\u53ef\u4ee5\u79f0\u4e3a\u4f20\u611f\u5668\uff0c\u4f20\u611f\u5668\u6709\u591a\u79cd\u7c7b\u578b\uff0c\u4f8b\u5982\u538b\u529b\u4f20\u611f\u5668\u3001\u8d85\u58f0\u6ce2\u4f20\u611f\u5668\u3001 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/10064"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10064"}],"version-history":[{"count":1,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/10064\/revisions"}],"predecessor-version":[{"id":10070,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/10064\/revisions\/10070"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10064"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}