{"id":78302,"date":"2026-02-26T23:43:17","date_gmt":"2026-02-26T15:43:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/78302.html"},"modified":"2026-02-26T23:43:17","modified_gmt":"2026-02-26T15:43:17","slug":"%e9%81%bf%e5%9d%91%e6%8c%87%e5%8d%97%ef%bc%9ahc-sr501%e4%ba%ba%e4%bd%93%e6%84%9f%e5%ba%94%e6%a8%a1%e5%9d%97%e7%9a%845%e4%b8%aa%e5%b8%b8%e8%a7%81%e8%af%af%e5%8c%ba%e5%92%8c%e8%b0%83%e8%af%95%e6%8a%80","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/78302.html","title":{"rendered":"\u907f\u5751\u6307\u5357\uff1aHC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u76845\u4e2a\u5e38\u89c1\u8bef\u533a\u548c\u8c03\u8bd5\u6280\u5de7"},"content":{"rendered":"<h2>HC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u5b9e\u6218\u907f\u5751\u6307\u5357&#xff1a;\u4ece\u539f\u7406\u5230\u8c03\u8bd5\u7684\u6df1\u5ea6\u89e3\u6790<\/h2>\n<p>\u5728\u667a\u80fd\u5bb6\u5c45\u548c\u7269\u8054\u7f51\u9879\u76ee\u4e2d&#xff0c;\u4eba\u4f53\u7ea2\u5916\u611f\u5e94\u6a21\u5757\u56e0\u5176\u975e\u63a5\u89e6\u5f0f\u68c0\u6d4b\u7279\u6027\u6210\u4e3a\u6838\u5fc3\u7ec4\u4ef6\u4e4b\u4e00\u3002HC-SR501\u4f5c\u4e3a\u7ecf\u5178\u578b\u53f7&#xff0c;\u5176\u5b9e\u9645\u5e94\u7528\u5374\u5e38\u56e0\u73af\u5883\u5e72\u6270\u3001\u5b89\u88c5\u4e0d\u5f53\u7b49\u95ee\u9898\u5bfc\u81f4\u8bef\u89e6\u53d1\u3002\u672c\u6587\u5c06\u76f4\u51fb\u4e94\u5927\u5178\u578b\u75db\u70b9&#xff0c;\u901a\u8fc7\u70ed\u91ca\u7535\u539f\u7406\u5256\u6790\u548c\u5b9e\u6218\u6848\u4f8b&#xff0c;\u63d0\u4f9b\u53ef\u843d\u5730\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<h3>1. \u70ed\u91ca\u7535\u539f\u7406\u4e0e\u6a21\u5757\u5de5\u4f5c\u673a\u5236\u6df1\u5ea6\u89e3\u6790<\/h3>\n<p>HC-SR501\u7684\u6838\u5fc3\u5728\u4e8e\u53cc\u5143\u70ed\u91ca\u7535\u4f20\u611f\u5668&#xff08;\u901a\u5e38\u91c7\u7528RE200B&#xff09;\u4e0e\u83f2\u6d85\u5c14\u900f\u955c\u7684\u7ec4\u5408\u3002\u5f53\u4eba\u4f53&#xff08;\u6e29\u5ea6\u7ea636-37\u2103&#xff09;\u53d1\u51fa\u76849-10\u03bcm\u7ea2\u5916\u7ebf\u901a\u8fc7\u900f\u955c\u805a\u7126\u540e&#xff0c;\u4f1a\u5728\u4f20\u611f\u5668\u4e0a\u4ea7\u751f\u4ea4\u66ff\u7684&#034;\u70ed\u6591&#034;\u3002\u8fd9\u79cd\u6e29\u5ea6\u53d8\u5316\u5bfc\u81f4\u4f20\u611f\u5668\u5185\u90e8\u6676\u4f53\u6781\u5316\u4ea7\u751f\u7535\u8377&#xff0c;\u7ecfBISS0001\u4fe1\u53f7\u5904\u7406\u82af\u7247\u653e\u5927\u6ee4\u6ce2\u540e\u8f93\u51fa\u4fe1\u53f7\u3002<\/p>\n<p>\u5173\u952e\u53c2\u6570\u89e3\u6790&#xff1a;<\/p>\n<table>\n<tr>\u53c2\u6570\u5178\u578b\u503c\u5f71\u54cd\u7ef4\u5ea6<\/tr>\n<tbody>\n<tr>\n<td>\u5de5\u4f5c\u7535\u538b<\/td>\n<td>4.5-20V DC<\/td>\n<td>\u7535\u538b\u8fc7\u4f4e\u5bfc\u81f4\u68c0\u6d4b\u8ddd\u79bb\u7f29\u77ed<\/td>\n<\/tr>\n<tr>\n<td>\u9759\u6001\u7535\u6d41<\/td>\n<td>&lt;50\u03bcA<\/td>\n<td>\u7535\u6c60\u4f9b\u7535\u9879\u76ee\u5173\u952e\u6307\u6807<\/td>\n<\/tr>\n<tr>\n<td>\u611f\u5e94\u89d2\u5ea6<\/td>\n<td>&lt;120\u00b0<\/td>\n<td>\u5b89\u88c5\u65b9\u4f4d\u51b3\u5b9a\u8986\u76d6\u8303\u56f4<\/td>\n<\/tr>\n<tr>\n<td>\u89e6\u53d1\u5ef6\u65f6<\/td>\n<td>5-200s\u53ef\u8c03<\/td>\n<td>\u9700\u914d\u5408\u5c01\u9501\u65f6\u95f4\u8bbe\u7f6e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8&#xff1a;\u6a21\u5757\u521d\u59cb\u5316\u65f6\u4f1a\u6709\u7ea660\u79d2\u7684\u6821\u51c6\u671f&#xff0c;\u671f\u95f4\u53ef\u80fd\u8bef\u89e6\u53d12-3\u6b21\u5c5e\u6b63\u5e38\u73b0\u8c61<\/p>\n<h3>2. \u4e94\u5927\u5178\u578b\u8bef\u89e6\u53d1\u573a\u666f\u53ca\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>2.1 \u73af\u5883\u6e29\u5ea6\u5e72\u6270<\/h4>\n<p>\u5f53\u73af\u5883\u6e29\u5ea6\u63a5\u8fd1\u4eba\u4f53\u4f53\u6e29&#xff08;\u5982\u590f\u5b63\u9ad8\u6e29\u73af\u5883&#xff09;&#xff0c;\u4f20\u611f\u5668\u7075\u654f\u5ea6\u4f1a\u663e\u8457\u4e0b\u964d\u3002\u89e3\u51b3\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u542f\u7528\u6e29\u5ea6\u8865\u507f\u529f\u80fd&#xff08;\u8fde\u63a510K NTC\u70ed\u654f\u7535\u963b&#xff09;<\/li>\n<li>\u5b89\u88c5\u4f4d\u7f6e\u907f\u5f00\u7a7a\u8c03\u51fa\u98ce\u53e3\u3001\u6696\u6c14\u7247\u7b49\u6e29\u53d8\u533a\u57df<\/li>\n<li>\u901a\u8fc7\u7535\u4f4d\u5668\u8c03\u6574\u7075\u654f\u5ea6&#xff08;\u987a\u65f6\u9488\u589e\u5927\u68c0\u6d4b\u8ddd\u79bb&#xff09;<\/li>\n<\/ul>\n<p>\/\/ Arduino\u73af\u5883\u4e0b\u7684\u6e29\u5ea6\u8865\u507f\u793a\u4f8b<br \/>\nconst int tempPin &#061; A0;<br \/>\nconst int pirPin &#061; 2;<\/p>\n<p>void setup() {<br \/>\n  pinMode(pirPin, INPUT);<br \/>\n  Serial.begin(9600);<br \/>\n}<\/p>\n<p>void loop() {<br \/>\n  int tempValue &#061; analogRead(tempPin);<br \/>\n  float voltage &#061; tempValue * 5.0 \/ 1024;<br \/>\n  float temperature &#061; (voltage &#8211; 0.5) * 100; \/\/ 10mV\/\u2103<\/p>\n<p>  if(temperature &gt; 30) {<br \/>\n    \/\/ \u9ad8\u6e29\u73af\u5883\u4e0b\u81ea\u52a8\u7f29\u77ed\u68c0\u6d4b\u8ddd\u79bb<br \/>\n    analogWrite(9, map(temperature, 30, 40, 255, 150));<br \/>\n  }<br \/>\n}<\/p>\n<h4>2.2 \u83f2\u6d85\u5c14\u900f\u955c\u6c61\u67d3<\/h4>\n<p>\u7070\u5c18\u3001\u6cb9\u6c61\u4f1a\u5bfc\u81f4\u7ea2\u5916\u7ebf\u6298\u5c04\u5f02\u5e38\u3002\u7ef4\u62a4\u8981\u70b9&#xff1a;<\/p>\n<li>\u6bcf\u6708\u7528\u9152\u7cbe\u68c9\u7247\u6e05\u6d01\u900f\u955c\u8868\u9762<\/li>\n<li>\u907f\u514d\u4f7f\u7528\u6709\u673a\u6eb6\u5242\u64e6\u62ed<\/li>\n<li>\u5de5\u4e1a\u73af\u5883\u5efa\u8bae\u52a0\u88c5\u9632\u5c18\u7f69&#xff08;\u900f\u5149\u7387&gt;85%&#xff09;<\/li>\n<h4>2.3 \u5b89\u88c5\u4f4d\u7f6e\u4e0d\u5f53<\/h4>\n<p>\u5e38\u89c1\u9519\u8bef\u5b89\u88c5\u65b9\u5f0f\u4e0e\u4fee\u6b63\u65b9\u6848&#xff1a;<\/p>\n<ul>\n<li>\u9519\u8bef1&#xff1a;\u6a21\u5757\u6b63\u5bf9\u7a97\u6237<br \/>\n\u4fee\u6b63&#xff1a;\u8c03\u6574\u89d2\u5ea6\u4f7f\u63a2\u6d4b\u65b9\u5411\u4e0e\u7a97\u6237\u544845\u00b0\u4ee5\u4e0a\u5939\u89d2<\/li>\n<li>\u9519\u8bef2&#xff1a;\u5b89\u88c5\u9ad8\u5ea6\u4f4e\u4e8e1.8\u7c73<br \/>\n\u4fee\u6b63&#xff1a;\u6700\u4f73\u9ad8\u5ea62-2.2\u7c73&#xff08;\u7b26\u5408\u4eba\u4f53\u884c\u8d70\u65f6\u7684\u7ea2\u5916\u8f90\u5c04\u89d2\u5ea6&#xff09;<\/li>\n<li>\u9519\u8bef3&#xff1a;\u53cc\u5143\u4f20\u611f\u5668\u65b9\u5411\u4e0e\u4eba\u4f53\u79fb\u52a8\u65b9\u5411\u5782\u76f4<br \/>\n\u4fee\u6b63&#xff1a;\u4f7f\u4f20\u611f\u5668\u957f\u8fb9\u5e73\u884c\u4e8e\u4e3b\u8981\u4eba\u6d41\u65b9\u5411<\/li>\n<\/ul>\n<h3>3. \u9ad8\u7ea7\u8c03\u8bd5\u6280\u5de7\u4e0e\u53c2\u6570\u4f18\u5316<\/h3>\n<h4>3.1 \u5ef6\u65f6\u4e0e\u5c01\u9501\u65f6\u95f4\u534f\u540c\u8bbe\u7f6e<\/h4>\n<p>\u4e24\u4e2a\u5173\u952e\u65f6\u95f4\u53c2\u6570\u7684\u914d\u5408\u76f4\u63a5\u5f71\u54cd\u4f7f\u7528\u4f53\u9a8c&#xff1a;<\/p>\n<table>\n<tr>\u53c2\u6570\u7ec4\u5408\u9002\u7528\u573a\u666f\u5178\u578b\u503c\u914d\u7f6e<\/tr>\n<tbody>\n<tr>\n<td>\u77ed\u5ef6\u65f6&#043;\u77ed\u5c01\u9501<\/td>\n<td>\u5b89\u9632\u62a5\u8b66\u7cfb\u7edf<\/td>\n<td>\u5ef6\u65f68s&#043;\u5c01\u95012.5s<\/td>\n<\/tr>\n<tr>\n<td>\u957f\u5ef6\u65f6&#043;\u957f\u5c01\u9501<\/td>\n<td>\u81ea\u52a8\u7167\u660e\u7cfb\u7edf<\/td>\n<td>\u5ef6\u65f660s&#043;\u5c01\u950110s<\/td>\n<\/tr>\n<tr>\n<td>\u53ef\u91cd\u590d\u89e6\u53d1<\/td>\n<td>\u4eba\u5458\u5bc6\u96c6\u533a\u57df<\/td>\n<td>H\u8df3\u7ebf\u6a21\u5f0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p># Raspberry Pi\u4e0b\u7684\u53c2\u6570\u52a8\u6001\u8c03\u6574\u793a\u4f8b<br \/>\nimport RPi.GPIO as GPIO<br \/>\nimport time<\/p>\n<p>GPIO.setmode(GPIO.BCM)<br \/>\nPIR_PIN &#061; 17<br \/>\nGPIO.setup(PIR_PIN, GPIO.IN)<\/p>\n<p>def adjust_parameters():<br \/>\n    while True:<br \/>\n        val &#061; GPIO.input(PIR_PIN)<br \/>\n        if val:<br \/>\n            # \u6839\u636e\u89e6\u53d1\u9891\u7387\u52a8\u6001\u8c03\u6574\u5c01\u9501\u65f6\u95f4<br \/>\n            active_count &#061; 0<br \/>\n            start_time &#061; time.time()<br \/>\n            while time.time() &#8211; start_time &lt; 10:  # 10\u79d2\u91c7\u6837\u7a97\u53e3<br \/>\n                if GPIO.input(PIR_PIN):<br \/>\n                    active_count &#043;&#061; 1<br \/>\n                    time.sleep(0.1)<\/p>\n<p>            if active_count &gt; 5:  # \u9ad8\u9891\u89e6\u53d1\u533a\u57df<br \/>\n                set_block_time(5)  # \u5ef6\u957f\u5c01\u9501\u65f6\u95f4<br \/>\n            else:<br \/>\n                set_block_time(2.5) # \u9ed8\u8ba4\u5c01\u9501\u65f6\u95f4<\/p>\n<h4>3.2 \u6297\u7535\u78c1\u5e72\u6270\u8bbe\u8ba1<\/h4>\n<p>\u5728\u5de5\u4e1a\u73af\u5883\u4e2d\u6613\u53d7\u5e72\u6270&#xff0c;\u53ef\u91c7\u53d6&#xff1a;<\/p>\n<ul>\n<li>\u7535\u6e90\u7aef\u5e76\u8054100\u03bcF\u7535\u89e3\u7535\u5bb9&#043;0.1\u03bcF\u9676\u74f7\u7535\u5bb9<\/li>\n<li>\u4fe1\u53f7\u7ebf\u4f7f\u7528\u53cc\u7ede\u7ebf\u6216\u5c4f\u853d\u7ebf<\/li>\n<li>\u6a21\u5757\u4e0e\u91d1\u5c5e\u5916\u58f3\u95f4\u52a0\u88c5\u7edd\u7f18\u57ab\u7247<\/li>\n<\/ul>\n<h3>4. \u5178\u578b\u5e94\u7528\u7535\u8def\u8bbe\u8ba1\u7cbe\u8981<\/h3>\n<h4>4.1 \u4f4e\u529f\u8017\u7535\u6c60\u4f9b\u7535\u65b9\u6848<\/h4>\n<p>\u91c7\u7528TP4056\u5145\u7535\u7ba1\u7406\u82af\u7247&#043;3.7V\u9502\u7535\u6c60\u7684\u4f9b\u7535\u7cfb\u7edf&#xff0c;\u914d\u5408MOSFET\u5b9e\u73b0\u81ea\u52a8\u5524\u9192&#xff1a;<\/p>\n<p>[\u9502\u7535\u6c603.7V] \u2192 [TP4056\u5145\u7535\u6a21\u5757] \u2192 [\u5347\u538b\u81f35V] \u2192 [HC-SR501]<br \/>\n                      \u2502<br \/>\n                 [ESP8266\u4f4e\u529f\u8017\u6a21\u5f0f]<br \/>\n                      \u2502<br \/>\n[\u4fe1\u53f7\u89e6\u53d1] \u2192 [MOSFET\u5f00\u5173] \u2192 [\u6267\u884c\u5668\u7535\u8def]<\/p>\n<p>\u6ce8\u610f&#xff1a;\u9700\u5c06\u6a21\u5757\u7684VCC\u4e0eOUT\u5f15\u811a\u901a\u8fc71N4148\u4e8c\u6781\u7ba1\u9694\u79bb&#xff0c;\u9632\u6b62\u53cd\u5411\u7535\u6d41<\/p>\n<h4>4.2 \u591a\u6a21\u5757\u7ec4\u7f51\u7b56\u7565<\/h4>\n<p>\u5927\u578b\u533a\u57df\u76d1\u63a7\u53ef\u91c7\u7528\u591a\u4e2aHC-SR501\u7ec4\u7f51&#xff1a;<\/p>\n<li>\u4e32\u8054\u6a21\u5f0f&#xff1a;\u5404\u6a21\u5757OUT\u4fe1\u53f7\u901a\u8fc7\u4e8c\u6781\u7ba1\u9694\u79bb\u540e\u5408\u5e76<\/li>\n<li>\u5e76\u8054\u6a21\u5f0f&#xff1a;\u914d\u5408\u903b\u8f91\u95e8\u7535\u8def\u5b9e\u73b0\u533a\u57df\u89e6\u53d1\u5224\u65ad<\/li>\n<li>\u667a\u80fd\u5206\u6790&#xff1a;\u901a\u8fc7MCU\u5bf9\u591a\u8def\u4fe1\u53f7\u8fdb\u884c\u65f6\u7a7a\u5173\u8054\u5206\u6790<\/li>\n<p>\/\/ STM32\u591a\u8def\u4fe1\u53f7\u5904\u7406\u793a\u4f8b<br \/>\nvoid HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {<br \/>\n  static uint32_t last_trigger[3] &#061; {0};<br \/>\n  uint8_t module_id;<\/p>\n<p>  switch(GPIO_Pin) {<br \/>\n    case PIR1_PIN: module_id&#061;0; break;<br \/>\n    case PIR2_PIN: module_id&#061;1; break;<br \/>\n    case PIR3_PIN: module_id&#061;2; break;<br \/>\n  }<\/p>\n<p>  uint32_t current &#061; HAL_GetTick();<br \/>\n  if(current &#8211; last_trigger[module_id] &gt; 200) { \/\/ \u6d88\u6296\u5904\u7406<br \/>\n    track_movement_pattern(module_id, current);<br \/>\n  }<br \/>\n  last_trigger[module_id] &#061; current;<br \/>\n}<\/p>\n<h3>5. \u521b\u65b0\u5e94\u7528\u573a\u666f\u62d3\u5c55<\/h3>\n<p>\u7a81\u7834\u4f20\u7edf\u5b89\u9632\/\u7167\u660e\u9886\u57df&#xff0c;\u5f00\u53d1\u65b0\u578b\u5e94\u7528\u6a21\u5f0f&#xff1a;<\/p>\n<ul>\n<li>\u884c\u4e3a\u5206\u6790&#xff1a;\u901a\u8fc7\u89e6\u53d1\u65f6\u5e8f\u5224\u65ad\u4eba\u5458\u884c\u8d70\u65b9\u5411<\/li>\n<li>\u8282\u80fd\u63a7\u5236&#xff1a;\u4e0e\u6e29\u6e7f\u5ea6\u4f20\u611f\u5668\u8054\u52a8\u4f18\u5316\u7a7a\u8c03\u542f\u505c<\/li>\n<li>\u975e\u63a5\u89e6\u4ea4\u4e92&#xff1a;\u7279\u5b9a\u52a8\u4f5c\u6a21\u5f0f\u8bc6\u522b&#xff08;\u5982\u6325\u624b\u63a7\u5236&#xff09;<\/li>\n<\/ul>\n<p>\u5b9e\u9645\u9879\u76ee\u4e2d&#xff0c;\u5c06HC-SR501\u4e0e\u6beb\u7c73\u6ce2\u96f7\u8fbe\u878d\u5408\u4f7f\u7528&#xff0c;\u53ef\u5b9e\u73b0\u5b58\u5728\u68c0\u6d4b\u4e0e\u79fb\u52a8\u68c0\u6d4b\u7684\u4f18\u52bf\u4e92\u8865\u3002\u67d0\u667a\u80fd\u697c\u5b87\u6848\u4f8b\u663e\u793a&#xff0c;\u8fd9\u79cd\u7ec4\u5408\u4f7f\u8bef\u62a5\u7387\u964d\u4f4e82%&#xff0c;\u540c\u65f6\u80fd\u8017\u51cf\u5c1137%\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u5b9e\u6218\u907f\u5751\u6307\u5357&#xff1a;\u4ece\u539f\u7406\u5230\u8c03\u8bd5\u7684\u6df1\u5ea6\u89e3\u6790<br \/>\n\u5728\u667a\u80fd\u5bb6\u5c45\u548c\u7269\u8054\u7f51\u9879\u76ee\u4e2d&#xff0c;\u4eba\u4f53\u7ea2\u5916\u611f\u5e94\u6a21\u5757\u56e0\u5176\u975e\u63a5\u89e6\u5f0f\u68c0\u6d4b\u7279\u6027\u6210\u4e3a\u6838\u5fc3\u7ec4\u4ef6\u4e4b\u4e00\u3002HC-SR501\u4f5c\u4e3a\u7ecf\u5178\u578b\u53f7&#xff0c;\u5176\u5b9e\u9645\u5e94\u7528\u5374\u5e38\u56e0\u73af\u5883\u5e72\u6270\u3001\u5b89\u88c5\u4e0d\u5f53\u7b49\u95ee\u9898\u5bfc\u81f4\u8bef\u89e6\u53d1\u3002\u672c\u6587\u5c06\u76f4\u51fb\u4e94\u5927\u5178\u578b\u75db\u70b9&#xff0c;\u901a\u8fc7\u70ed\u91ca\u7535\u539f\u7406\u5256\u6790\u548c\u5b9e\u6218\u6848\u4f8b&#xff0c;\u63d0\u4f9b\u53ef\u843d\u5730\u7684\u89e3\u51b3\u65b9\u6848\u3002<br \/>\n1. \u70ed\u91ca\u7535\u539f\u7406\u4e0e\u6a21\u5757\u5de5\u4f5c\u673a\u5236\u6df1\u5ea6\u89e3\u6790<br \/>\nHC-SR501\u7684\u6838\u5fc3\u5728\u4e8e\u53cc\u5143\u70ed\u91ca\u7535\u4f20\u611f\u5668&#xff08;\u901a\u5e38\u91c7<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8631,8630,2115,220],"topic":[],"class_list":["post-78302","post","type-post","status-publish","format-standard","hentry","category-server","tag-hc-sr501","tag-8630","tag-2115","tag-220"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u907f\u5751\u6307\u5357\uff1aHC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u76845\u4e2a\u5e38\u89c1\u8bef\u533a\u548c\u8c03\u8bd5\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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:\/\/www.wsisp.com\/helps\/78302.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u907f\u5751\u6307\u5357\uff1aHC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u76845\u4e2a\u5e38\u89c1\u8bef\u533a\u548c\u8c03\u8bd5\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"HC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u5b9e\u6218\u907f\u5751\u6307\u5357&#xff1a;\u4ece\u539f\u7406\u5230\u8c03\u8bd5\u7684\u6df1\u5ea6\u89e3\u6790 \u5728\u667a\u80fd\u5bb6\u5c45\u548c\u7269\u8054\u7f51\u9879\u76ee\u4e2d&#xff0c;\u4eba\u4f53\u7ea2\u5916\u611f\u5e94\u6a21\u5757\u56e0\u5176\u975e\u63a5\u89e6\u5f0f\u68c0\u6d4b\u7279\u6027\u6210\u4e3a\u6838\u5fc3\u7ec4\u4ef6\u4e4b\u4e00\u3002HC-SR501\u4f5c\u4e3a\u7ecf\u5178\u578b\u53f7&#xff0c;\u5176\u5b9e\u9645\u5e94\u7528\u5374\u5e38\u56e0\u73af\u5883\u5e72\u6270\u3001\u5b89\u88c5\u4e0d\u5f53\u7b49\u95ee\u9898\u5bfc\u81f4\u8bef\u89e6\u53d1\u3002\u672c\u6587\u5c06\u76f4\u51fb\u4e94\u5927\u5178\u578b\u75db\u70b9&#xff0c;\u901a\u8fc7\u70ed\u91ca\u7535\u539f\u7406\u5256\u6790\u548c\u5b9e\u6218\u6848\u4f8b&#xff0c;\u63d0\u4f9b\u53ef\u843d\u5730\u7684\u89e3\u51b3\u65b9\u6848\u3002 1. \u70ed\u91ca\u7535\u539f\u7406\u4e0e\u6a21\u5757\u5de5\u4f5c\u673a\u5236\u6df1\u5ea6\u89e3\u6790 HC-SR501\u7684\u6838\u5fc3\u5728\u4e8e\u53cc\u5143\u70ed\u91ca\u7535\u4f20\u611f\u5668&#xff08;\u901a\u5e38\u91c7\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/78302.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-26T15:43:17+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78302.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/78302.html\",\"name\":\"\u907f\u5751\u6307\u5357\uff1aHC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u76845\u4e2a\u5e38\u89c1\u8bef\u533a\u548c\u8c03\u8bd5\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-26T15:43:17+00:00\",\"dateModified\":\"2026-02-26T15:43:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/78302.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/78302.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78302.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u907f\u5751\u6307\u5357\uff1aHC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u76845\u4e2a\u5e38\u89c1\u8bef\u533a\u548c\u8c03\u8bd5\u6280\u5de7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u907f\u5751\u6307\u5357\uff1aHC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u76845\u4e2a\u5e38\u89c1\u8bef\u533a\u548c\u8c03\u8bd5\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/78302.html","og_locale":"zh_CN","og_type":"article","og_title":"\u907f\u5751\u6307\u5357\uff1aHC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u76845\u4e2a\u5e38\u89c1\u8bef\u533a\u548c\u8c03\u8bd5\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"HC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u5b9e\u6218\u907f\u5751\u6307\u5357&#xff1a;\u4ece\u539f\u7406\u5230\u8c03\u8bd5\u7684\u6df1\u5ea6\u89e3\u6790 \u5728\u667a\u80fd\u5bb6\u5c45\u548c\u7269\u8054\u7f51\u9879\u76ee\u4e2d&#xff0c;\u4eba\u4f53\u7ea2\u5916\u611f\u5e94\u6a21\u5757\u56e0\u5176\u975e\u63a5\u89e6\u5f0f\u68c0\u6d4b\u7279\u6027\u6210\u4e3a\u6838\u5fc3\u7ec4\u4ef6\u4e4b\u4e00\u3002HC-SR501\u4f5c\u4e3a\u7ecf\u5178\u578b\u53f7&#xff0c;\u5176\u5b9e\u9645\u5e94\u7528\u5374\u5e38\u56e0\u73af\u5883\u5e72\u6270\u3001\u5b89\u88c5\u4e0d\u5f53\u7b49\u95ee\u9898\u5bfc\u81f4\u8bef\u89e6\u53d1\u3002\u672c\u6587\u5c06\u76f4\u51fb\u4e94\u5927\u5178\u578b\u75db\u70b9&#xff0c;\u901a\u8fc7\u70ed\u91ca\u7535\u539f\u7406\u5256\u6790\u548c\u5b9e\u6218\u6848\u4f8b&#xff0c;\u63d0\u4f9b\u53ef\u843d\u5730\u7684\u89e3\u51b3\u65b9\u6848\u3002 1. \u70ed\u91ca\u7535\u539f\u7406\u4e0e\u6a21\u5757\u5de5\u4f5c\u673a\u5236\u6df1\u5ea6\u89e3\u6790 HC-SR501\u7684\u6838\u5fc3\u5728\u4e8e\u53cc\u5143\u70ed\u91ca\u7535\u4f20\u611f\u5668&#xff08;\u901a\u5e38\u91c7","og_url":"https:\/\/www.wsisp.com\/helps\/78302.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-26T15:43:17+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/78302.html","url":"https:\/\/www.wsisp.com\/helps\/78302.html","name":"\u907f\u5751\u6307\u5357\uff1aHC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u76845\u4e2a\u5e38\u89c1\u8bef\u533a\u548c\u8c03\u8bd5\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-26T15:43:17+00:00","dateModified":"2026-02-26T15:43:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/78302.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/78302.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/78302.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u907f\u5751\u6307\u5357\uff1aHC-SR501\u4eba\u4f53\u611f\u5e94\u6a21\u5757\u76845\u4e2a\u5e38\u89c1\u8bef\u533a\u548c\u8c03\u8bd5\u6280\u5de7"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=78302"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78302\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=78302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=78302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=78302"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=78302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}