{"id":8195,"date":"2020-12-10T00:00:45","date_gmt":"2020-12-09T15:00:45","guid":{"rendered":"https:\/\/techclass.wfjydl.com\/?p=8195"},"modified":"2022-03-08T15:18:50","modified_gmt":"2022-03-08T07:18:50","slug":"%e8%87%aa%e5%88%b6arduino-rfid%e9%97%a8%e9%94%81","status":"publish","type":"post","link":"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/how-tos\/arduino\/make-your-own-arduino-rfid-door-lock","title":{"rendered":"\u81ea\u5236Arduino RFID\u95e8\u9501"},"content":{"rendered":"<p><script type=\"text\/javascript\" src=\"https:\/\/ssl-cache.stream.ne.jp\/www50\/eqa194obdo\/jmc_pub\/jmc_swf\/player\/t3\/if.js\" charset=\"UTF-8\"><\/script><\/p>\n<div class=\"\u201cthe_content_wrapper\u201d\">\n<p>\u8fd9\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e<a href=\"https:\/\/www.deviceplus.com\/\">DevicePlus.com<\/a>\u82f1\u8bed\u7f51\u7ad9\u7684\u7ffb\u8bd1\u7a3f\u3002<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4097\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-title.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-title.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-title-300x208.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-title-211x146.jpg 211w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-title-50x35.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-title-108x75.jpg 108w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"485\"><\/p>\n<p><script type=\"text\/javascript\"><br \/>\n\tjstream_t3.PlayerFactoryIF.create({<br \/>\n\tb:\"eqa194obdo.eq.webcdn.stream.ne.jp\/www50\/eqa194obdo\/jmc_pub\/jmc_swf\/player\/\",<br \/>\n\tc:\"NDc3\",<br \/>\n\tm:\"NjA3\",<br \/>\n\ts:{<br \/>\n\t\thp:360,<br \/>\n\t\til:\"off\",<br \/>\n\t\trb:\"off\",<br \/>\n\t\tsn:\"f,t,g\",<br \/>\n\t\twp:640<br \/>\n\t}});<br \/>\n<\/script><\/p>\n<p><span style=\"font-weight: 400;\">\u5df2\u7ecf\u70e6\u900f\u4e86\u4e22\u5931\u94a5\u5319\u6216\u8005\u5fd8\u8bb0\u5e26\u94a5\u5319\u800c\u88ab\u9501\u5728\u95e8\u5916\u5417\uff1f\u597d\u5427\uff0c\u8ba9\u6211\u6765\u4e3a\u60a8\u63d0\u4f9b\u4e00\u4e2a\u5b8c\u7f8e\u7684\u89e3\u51b3\u65b9\u6848\uff01\u4eca\u5929\uff0c\u6211\u4eec\u5c06\u5236\u4f5c\u4e00\u6b3eArduino RFID\u95e8\u9501\u3002\u6211\u60f3\u8981\u627e\u5230\u4e00\u79cd\u7b80\u5355\u5e76\u4e14\u5b89\u5168\u7684\u65b9\u6cd5\u6765\u9501\u95e8\uff0c\u800c\u4e0d\u5fc5\u8d2d\u4e70\u4e00\u4e2a\u6602\u8d35\u7684\u88c5\u7f6e\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8981\u5b66\u4e60\u5c04\u9891\u8bc6\u522b\uff08RFID\uff09\u6280\u672f\u5e76\u5c06\u5176\u5e94\u7528\u5230\u65e0\u7ebf\u901a\u4fe1\u4e2d\u3002<\/span><\/p>\n<h2>\u4ec0\u4e48\u662fRFID\uff1f<\/h2>\n<p><i><span style=\"font-weight: 400;\">\u201cRFID\u8868\u793a\u5c04\u9891\u8bc6\u522b\uff0c[\u2026]RFID\u7684\u4f5c\u7528\u4e0e\u4fe1\u7528\u5361\u6216\u8005ATM\u5361\u80cc\u9762\u7684\u6761\u5f62\u7801\u6216\u78c1\u6761\u76f8\u540c\uff1b\u5b83\u4e3a\u7269\u4f53\u63d0\u4f9b\u4e86\u552f\u4e00\u7684\u6807\u8bc6\u7b26\u3002\u800c\u4e14\uff0c\u5c31\u50cf\u5fc5\u987b\u626b\u63cf\u6761\u5f62\u7801\u6216\u8bcd\u6761\u624d\u80fd\u83b7\u53d6\u4fe1\u606f\u4e00\u6837\uff0cRFID\u8bbe\u5907\u5fc5\u987b\u7ecf\u8fc7\u626b\u63cf\u624d\u80fd\u83b7\u53d6\u76f8\u5173\u7684\u8bc6\u522b\u4fe1\u606f\u3002\u201d\u2013 <\/span><\/i><span style=\"font-weight: 400;\">\u6458\u81ea\u00a9Technovelgy\uff0c\u4e00\u4e2a\u8bb0\u5f55\u79d1\u5b66\u6280\u672f\u4e0e\u79d1\u5e7b\u521b\u610f\u7684\u7f51\u7ad9\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u5728\u672c\u9879\u76ee\u4e2d\u901a\u8fc7\u4f7f\u7528RFID\u6280\u672f\u6765\u4eceRFID\u6807\u7b7e\u4e2d\u8bfb\u53d6\u6570\u636e\uff0c\u5e76\u5c06\u4fe1\u606f\u53d1\u9001\u5230MCU\u7684\u975e\u6613\u5931\u6027\u5b58\u50a8\u5668\u3002\u4ece\u6807\u7b7e\u8bfb\u53d6\u7684ID\u4e0e\u5b58\u50a8\u7684\u4fe1\u606f\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u679c\u5339\u914d\uff0c\u5219\u95e8\u5c06\u88ab\u89e3\u9501\/\u6253\u5f00\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><b>\u786c\u4ef6<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Arduino Nano<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">RFID RC522<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u538b\u7535\u8702\u9e23\u5668<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">2x LED<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">2x 330 \u7535\u963b<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">4\u00d74 \u952e\u76d8<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">LCD\u9002\u914d\u5668I2C<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">LCD16X2BL<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><b>\u8f6f\u4ef6<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Arduino IDE<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">SketchUp<\/span><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/github.com\/todeilatiberia\/SmartDoor\"><span style=\"font-weight: 400;\">Github<\/span><\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><b>\u5c06LCD \u8fde\u63a5\u5230Arduino<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">LCD\u670916\u4e2a\u5f15\u811a\uff0c\u5bf9\u4e8eArduino Nano\u6765\u8bf4\u5f15\u811a\u6570\u91cf\u8fc7\u591a\uff0c\u56e0\u6b64\u4e00\u5b9a\u8981\u4f7f\u7528I2C\u9002\u914d\u5668\uff0c\u5982\u6b64\u4e00\u6765\u53ef\u4ee5\u4ec5\u901a\u8fc7Arduino\u7684\u4e24\u4e2a\u4fe1\u53f7\u5f15\u811a\u6765\u5b9e\u73b0\u663e\u793a\u529f\u80fd\u3002\u8fd9\u5f88\u6709\u5e2e\u52a9\uff0c\u56e0\u4e3a\u8fd9\u79cd\u60c5\u51b5\u4e0b\u9700\u8981\u901a\u8fc7MCU\u63a7\u5236\u7684\u5f15\u811a\u6570\u91cf\u5c31\u4f1a\u5f88\u5c11\u3002<\/span><\/p>\n<div id=\"attachment_4082\" class=\"wp-caption alignnone\" style=\"width: 478px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4082\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig1.jpg\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig1.jpg 468w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig1-300x135.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig1-260x117.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig1-50x23.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig1-150x68.jpg 150w\" alt=\"arduino rfid door lock\" width=\"468\" height=\"211\" aria-describedby=\"caption-attachment-4082\"><\/p>\n<p id=\"caption-attachment-4082\" class=\"wp-caption-text\">\u56fe1\uff1aLCD\u5f15\u811a<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">LCD\u5177\u6709\u5e76\u884c\u63a5\u53e3\uff0c\u8fd9\u610f\u5473\u7740MCU\u5fc5\u987b\u540c\u65f6\u64cd\u63a7\u591a\u4e2a\u63a5\u53e3\u5f15\u811a\u6765\u5bf9\u663e\u793a\u8fdb\u884c\u63a7\u5236\u3002\u4e0b\u8868\u63d0\u4f9b\u4e86\u6bcf\u4e2a\u5f15\u811a\u7684\u8bf4\u660e\uff1a<\/span><\/p>\n<div id=\"attachment_4099\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4099\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig2.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig2.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig2-300x175.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig2-250x146.jpg 250w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig2-50x29.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig2-128x75.jpg 128w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"409\" aria-describedby=\"caption-attachment-4099\"><\/p>\n<p id=\"caption-attachment-4099\" class=\"wp-caption-text\">\u56fe2\uff1a\u5f15\u811a\u89c4\u683c<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u9996\u5148\uff0c\u6211\u4eec\u5c06\u5728LCD\u548cI2C\u4e4b\u95f4\u5efa\u7acb\u8fde\u63a5\u3002\u4e3a\u6b64\uff0c\u6211\u4eec\u9700\u8981\u4e00\u4e2aI2C LCD\u663e\u793a\u9002\u914d\u5668\uff08LCD1602\uff09\u3002\u8be5\u9002\u914d\u5668\u5c0616 x 2\u5b57\u7b26LCD\u663e\u793a\u8f6c\u6362\u4e3a\u4e32\u884cI2C LCD\uff0c\u4ec5\u7528\u4e24\u6839\u5bfc\u7ebf\u8fde\u63a5\u5373\u53ef\u901a\u8fc7Arduino\u8fdb\u884c\u63a7\u5236\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4098\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4098\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig3.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig3.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig3-292x300.jpg 292w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig3-142x146.jpg 142w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig3-50x50.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig3-73x75.jpg 73w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"718\" aria-describedby=\"caption-attachment-4098\"><\/p>\n<p id=\"caption-attachment-4098\" class=\"wp-caption-text\">\u56fe3\uff1aArduino\u548cLCD\u4e4b\u95f4\u7684\u8fde\u63a5<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u5728Arduino IDE\u4e2d\u6dfb\u52a0\u5e93\u201c<\/span><b>&lt;LiquidCrystal_I2C.h&gt;<\/b><span style=\"font-weight: 400;\">\u201d\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8be5\u5e93\u5c06LCD\u8fde\u63a5\u5230Arduino\u3002\u5185\u7f6e\u7684LiquidCrystal_I2C\u5e93\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u5728LCD\u5c4f\u5e55\u4e0a\u663e\u793a\u5b57\u6bcd\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u60a8\u53ef\u4ee5\u70b9\u51fb<\/span><a href=\"https:\/\/github.com\/todeilatiberia\/SmartDoor\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">\u6b64\u5904<\/span><\/a>\u4e0b\u8f7d<b>LiquidCrystal_I2C.h<\/b><span style=\"font-weight: 400;\">\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u5c06\u65b0\u7684\u5e93\u5b89\u88c5\u5230\u60a8\u7684Arduino IDE\u4e2d\uff1a<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><strong>1) \u9996\u5148\uff0c\u4ece<a href=\"https:\/\/github.com\/todeilatiberia\/SmartDoor\" target=\"_blank\" rel=\"noopener noreferrer\">Github<\/a><\/strong><span style=\"font-weight: 400;\"><strong>\u4e0a\u4e0b\u8f7d\u6587\u4ef6\uff08\u6211\u5c06\u8981\u4e0b\u8f7d\u7684\u662fKeypad\u5e93\uff09\u3002<\/strong><br \/>\n<\/span><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4100\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step1.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step1.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step1-300x183.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step1-239x146.jpg 239w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step1-50x31.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step1-123x75.jpg 123w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"427\"><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2) \u538b\u7f29(.zip)\u6bcf\u4e2a\u6587\u4ef6\u5939\u3002<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4101\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step2.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step2.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step2-300x155.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step2-260x134.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step2-50x26.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-step2-145x75.jpg 145w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"361\"><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3) \u62f7\u8d1d.zip\u6587\u4ef6\u5230\u60a8\u7684Arduino\u6587\u4ef6\u5939\u4e2d\u3002<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4083\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig6.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig6.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig6-300x175.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig6-250x146.jpg 250w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig6-50x29.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig6-128x75.jpg 128w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"409\"><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>4) \u6253\u5f00Arduino\u5e76\u6dfb\u52a0Keypad.zip\uff1a\uff1aSketch menu &gt; Include Library &gt; Add .ZIP Library\u3002<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4084\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig7.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig7.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig7-300x186.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig7-235x146.jpg 235w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig7-50x31.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig7-121x75.jpg 121w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"434\"><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>5) \u6dfb\u52a0keypad\u5e93\uff1aSketch menu &gt; Include Library &gt; Keypad.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4085\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig8.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig8.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig8-300x293.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig8-149x146.jpg 149w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig8-50x50.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig8-77x75.jpg 77w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"684\"><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400;\">\u6d4b\u8bd5LCD\u7684\u4ee3\u7801\uff1a<\/span><\/h2>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>#include &lt;Wire.h&gt;\r\n\r\n#include &lt;LiquidCrystal_I2C.h&gt;\r\n\r\nLiquidCrystal_I2C lcd(0x27, 16, 2); \/\/ Set the LCD address to 0x27 for a 16 chars and 2 line display\r\n\r\nvoid setup() {\r\n\r\nlcd.begin();\/\/ initialize the LCD\r\n\r\nlcd.backlight();\/\/ Turn on the blacklight and print a message.\r\n\r\nlcd.backlight();\r\n\r\nlcd.print(\"Hello, world!\");\r\n\r\n}\r\n\r\nvoid loop() {\r\n\r\n}\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4086\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4086\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig9.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig9.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig9-300x215.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig9-204x146.jpg 204w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig9-50x36.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig9-105x75.jpg 105w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"502\" aria-describedby=\"caption-attachment-4086\"><\/p>\n<p id=\"caption-attachment-4086\" class=\"wp-caption-text\">\u56fe4\uff1a\u8fde\u63a5\u5230Arduino Nano\u7684LCD<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>\u8fde\u63a5\u952e\u76d8<\/h2>\n<p><span style=\"font-weight: 400;\">\u73b0\u5728\uff0c\u8981\u8fdb\u5165\u952e\u76d8\u90e8\u5206\u4e86\uff01\u6211\u4eec\u5c06\u8981\u5bf9\u952e\u76d8\u8fdb\u884c\u8fde\u63a5\uff0c\u4ee5\u5b9e\u73b0\u5728LCD\u4e0a\u663e\u793a\u4ece\u952e\u76d8\u8f93\u5165\u7684\u6570\u5b57\u3002<\/span><\/p>\n<p><b>Keypad.h<\/b><span style=\"font-weight: 400;\"> \u662f\u4e00\u4e2a\u8ba9Arduino\u80fd\u591f\u4ece\u952e\u76d8\u8bfb\u53d6\u77e9\u9635\u7c7b\u578b\u952e\u76d8\u6570\u636e\u7684\u5e93\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u5728\u672c\u6559\u7a0b\u4e2d\u6211\u4f7f\u7528\u7684\u662f\u4e00\u4e2a 4\u00d74 \u952e\u76d8\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u4e0b\u8868\u663e\u793a\u4e86Arduino\u5f00\u53d1\u677f\u4e0e\u952e\u76d8\u4e4b\u95f4\u7684\u8fde\u63a5\u60c5\u51b5\u3002\u952e\u76d8\u5f15\u811a\u8fde\u63a5\u5230Arduino\u7684\u6570\u5b57\u8f93\u51fa\u5f15\u811a\u3002D6\u5f15\u811a\u662fPWM\u5f15\u811a\uff0c\u56e0\u6b64\u7528\u4e8e\u8702\u9e23\u5668\u3002<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">Keypad pin<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Arduino pin<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">1<\/span><\/td>\n<td><span style=\"font-weight: 400;\">D2<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">2<\/span><\/td>\n<td><span style=\"font-weight: 400;\">D3<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">3<\/span><\/td>\n<td><span style=\"font-weight: 400;\">D4<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">4<\/span><\/td>\n<td><span style=\"font-weight: 400;\">D5<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">5<\/span><\/td>\n<td><span style=\"font-weight: 400;\">A0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">6<\/span><\/td>\n<td><span style=\"font-weight: 400;\">D7<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">7<\/span><\/td>\n<td><span style=\"font-weight: 400;\">D8<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4087\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4087\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig11.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig11.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig11-300x252.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig11-174x146.jpg 174w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig11-50x42.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig11-89x75.jpg 89w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"589\" aria-describedby=\"caption-attachment-4087\"><\/p>\n<p id=\"caption-attachment-4087\" class=\"wp-caption-text\">\u56fe5\uff1aArduino\u3001LCD\u4ee5\u53ca\u952e\u76d8\u4e4b\u95f4\u7684\u8fde\u63a5<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4088\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4088\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig12.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig12.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig12-225x300.jpg 225w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig12-110x146.jpg 110w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig12-38x50.jpg 38w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig12-56x75.jpg 56w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"933\" aria-describedby=\"caption-attachment-4088\"><\/p>\n<p id=\"caption-attachment-4088\" class=\"wp-caption-text\">\u56fe6\uff1a\u8fde\u63a5\u5230Arduino\u7684LCD\u548c\u952e\u76d8<\/p>\n<\/div>\n<h2><\/h2>\n<h2>\u8fde\u63a5RFID<\/h2>\n<p><span style=\"font-weight: 400;\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u6dfb\u52a0RFID\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0cRFID\u677f\u4f7f\u7528SPI\u901a\u4fe1\u534f\u8bae\uff0c\u5176\u4e2dArduino\u5c06\u4f5c\u4e3a\u4e3b\u673a\uff0c\u800cRFID\u9605\u8bfb\u5668\u5c06\u4f5c\u4e3a\u4ece\u673a\u3002\u8bfb\u5361\u5668\u548c\u6807\u7b7e\u5c06\u88ab\u8bbe\u8ba1\u4e3a\u4ee513.56MHz\u5927\u5c0f\u7684\u9891\u7387\u8fdb\u884c\u901a\u4fe1\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u8fd9\u662f\u5f88\u91cd\u8981\u7684\u4e00\u6b65\uff0c\u56e0\u4e3aRFID\u4f1a\u5e2e\u52a9\u6211\u4eec\u4ece\u5361\u4e0a\u8bfb\u53d6\u6570\u636e\uff0c\u5e76\u4e14\u786e\u5b9aID\u662f\u5426\u5bf9\u5e94\u4e8eEEPROM\u4e2d\u5b58\u50a8\u7684\u4fe1\u606f\u3002\u5982\u679c\u5339\u914d\uff0c\u6211\u4eec\u5c31\u80fd\u591f\u8fdb\u5165\u623f\u95f4\u5e76\u663e\u793a\u201c\u89e3\u9501\u201d\u3002\u5426\u5219\uff0cLCD\u5c06\u663e\u793a\u201c\u9501\u5b9a\u201d\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4089\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4089\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig13.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig13.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig13-263x300.jpg 263w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig13-128x146.jpg 128w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig13-44x50.jpg 44w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig13-66x75.jpg 66w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"799\" aria-describedby=\"caption-attachment-4089\"><\/p>\n<p id=\"caption-attachment-4089\" class=\"wp-caption-text\">\u56fe7\uff1a Arduino\u3001LCD\u4ee5\u53caRFID\u4e4b\u95f4\u7684\u8fde\u63a5<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4090\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4090\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig14.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig14.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig14-300x281.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig14-156x146.jpg 156w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig14-50x47.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig14-80x75.jpg 80w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"656\" aria-describedby=\"caption-attachment-4090\"><\/p>\n<p id=\"caption-attachment-4090\" class=\"wp-caption-text\">\u56fe8\uff1a Arduino\u3001LCD\u4ee5\u53caRFID<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><b>\u6dfb\u52a0\u8702\u9e23\u5668\u4ee5\u53caLED<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u4e0b\u4e00\u6b65\u662f\u6dfb\u52a0\u4e00\u4e2a\u8702\u9e23\u5668\u548c2\u4e2aLED\uff0c\u4ee5\u6a21\u62df\u88ab\u63a7\u5236\u8bbf\u95ee\u7cfb\u7edf\u7684\u72b6\u51b5\u3002\u8bf7\u67e5\u770b\u4e0b\u9762\u7684\u63a5\u7ebf\u56fe\uff08\u56fe9\uff09\u3002\u6211\u4eec\u8bbe\u7f6e\u4e86\u4e00\u4e2a\u8702\u9e23\u5668\uff0c\u53ef\u4ee5\u5728\u83b7\u5f97\u8bbf\u95ee\u6743\u9650\uff08\u89e3\u9501\uff09\u65f6\u8702\u9e23\u3002\u9501\u5b9a\u65f6\uff0c\u7ea2\u8272LED\u59cb\u7ec8\u4eae\u8d77\uff0c\u89e3\u9501\u65f6\uff0c\u7eff\u8272LED\u4f1a\u4eae\u8d77\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u4e3a\u4e86\u4fdd\u62a4\u8fd9\u4e9b\u8bbe\u5907\u6a21\u5757\uff0c\u6211\u51b3\u5b9a\u75283D\u6253\u5370\u5236\u9020\u51fa\u6536\u7eb3\u7684\u76d2\u5b50\u3002\u5982\u679c\u60a8\u6ca1\u67093D\u6253\u5370\u673a\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u53ef\u4ee5\u76db\u653e\u6240\u6709\u7ec4\u4ef6\u7684\u5851\u6599\u76d2\u3002\u8fd9\u4f1a\u5f88\u6709\u5e2e\u52a9\uff0c\u56e0\u4e3a\u8fd9\u6837\u4e00\u6765\u8fd9\u4e9b\u6a21\u5757\u5c06\u4f1a\u88ab\u653e\u7f6e\u4e8e\u5185\u90e8\uff0c\u53ea\u6709LED\u3001\u952e\u76d8\u548cLCD\u4f1a\u653e\u7f6e\u5728\u76d2\u5b50\u5916\u3002<\/span><\/p>\n<div id=\"attachment_4091\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4091\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig15.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig15.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig15-296x300.jpg 296w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig15-144x146.jpg 144w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig15-50x50.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig15-74x75.jpg 74w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig15-85x85.jpg 85w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig15-80x80.jpg 80w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"709\" aria-describedby=\"caption-attachment-4091\"><\/p>\n<p id=\"caption-attachment-4091\" class=\"wp-caption-text\">\u56fe9\uff1aNano\u3001 LCD\u3001\u952e\u76d8\u3001RFID\u548c\u8702\u9e23\u5668\u8fde\u63a5\u63a5\u7ebf\u56fe<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>\u5236\u9020\u6536\u7eb3\u7684\u76d2\u5b50<\/h2>\n<p><span style=\"font-weight: 400;\">\u5bf9\u4e8e\u672c\u9879\u76ee\uff0c\u6211\u60f3\u8981\u5236\u9020\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684\u76d2\u5b50\u6765\u6536\u7eb3\u6240\u6709\u7684\u7ec4\u4ef6\uff0c\u5e76\u4fdd\u62a4\u8fd9\u4e9b\u7ec4\u4ef6\u4e0d\u88ab\u635f\u574f\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u6211\u4f7f\u7528SketchUp\u8bbe\u8ba1\u4e86\u4e00\u4e2a\u76d2\u5b50\uff0c\u8fd9\u4e2a\u8f6f\u4ef6\u5177\u6709\u7528\u6237\u53cb\u597d\u578b\u754c\u9762\uff0c\u6709\u4e00\u4e9b\u7b80\u5355\u7684\u64cd\u4f5c\u6309\u94ae\uff0c\u5982\u6a61\u76ae\u64e6\u3001\u7ebf\u6761\u548c\u5377\u5c3a\u5de5\u5177\u7b49\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u76d2\u5b50\u7684\u5c3a\u5bf8\u662f 120x125x37 mm\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4092\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig16.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig16.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig16-300x168.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig16-260x146.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig16-50x28.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig16-134x75.jpg 134w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"393\"><\/p>\n<p><span style=\"font-weight: 400;\">\u5982\u679c\u60a8\u5bf9Sketchup\u4e0d\u719f\u6089\uff0c\u5efa\u8bae\u60a8\u70b9\u51fb<\/span><a href=\"https:\/\/www.sketchup.com\/learn\/videos\/58\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">\u6b64\u5904<\/span><\/a><span style=\"font-weight: 400;\">\u9605\u8bfb\u4e00\u4e9bSketchup\u6559\u7a0b\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4093\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4093\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig17.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig17.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig17-300x171.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig17-256x146.jpg 256w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig17-50x29.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig17-132x75.jpg 132w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"399\" aria-describedby=\"caption-attachment-4093\"><\/p>\n<p id=\"caption-attachment-4093\" class=\"wp-caption-text\">\u56fe10\uff1a\u6536\u7eb3\u76d2\u5b50\uff08\u9876\u90e8\u89c6\u56fe\uff09<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4094\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4094\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig18.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig18.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig18-300x185.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig18-237x146.jpg 237w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig18-50x31.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig18-122x75.jpg 122w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"432\" aria-describedby=\"caption-attachment-4094\"><\/p>\n<p id=\"caption-attachment-4094\" class=\"wp-caption-text\">\u56fe11\uff1a\u6536\u7eb3\u76d2\u5b50\uff08\u5e95\u90e8\u89c6\u56fe\uff09<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u8bbe\u8ba1\u76d2\u5b50\u65f6\uff0c\u6211\u8003\u8651\u4e86\u4ee5\u4e0b\u5c3a\u5bf8\uff1a<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u9876\u90e8\u89c6\u56fe\uff1a<\/span>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">2 \u4e2a\u7528\u4e8eLED\u7684\u5f00\u53e3 (5.2 mm)<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">1 \u4e2a\u7528\u4e8eLCD\u7684\u5f00\u53e3 (42.2\u00d77.3 mm)<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">1 \u4e2a\u7528\u4e8e\u7ebf\u7f06\u7684\u5f00\u53e3(16\u00d710.5 mm)span&gt;<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u5e95\u90e8\u89c6\u56fe<\/span>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">1 \u4e2a\u7528\u4e8e\u952e\u76d8\u7684\u5f00\u53e3(27\u00d710 mm)<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u5728\u6d4b\u91cf\u4e86\u7ec4\u4ef6\u7684\u5c3a\u5bf8\u4e4b\u540e\uff0c\u6211\u8bbe\u8ba1\u4e86\u4e00\u4e2a\u975e\u5e38\u7d27\u51d1\u7684\u76d2\u5b50\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u559c\u597d\u5bf9\u8bbe\u8ba1\u8fdb\u884c\u66f4\u6539\u3002<\/span><\/p>\n<div id=\"attachment_4095\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4095\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig19.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig19.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig19-300x235.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig19-186x146.jpg 186w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig19-50x39.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig19-96x75.jpg 96w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"549\" aria-describedby=\"caption-attachment-4095\"><\/p>\n<p id=\"caption-attachment-4095\" class=\"wp-caption-text\">\u56fe12\uff1a\u5185\u90e8\u88c5\u6709\u6a21\u5757\u7684\u5b8c\u6574\u6536\u7eb3\u76d2<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>\u4ee3\u7801\u6d41\u7a0b\u56fe<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4096\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig20.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig20.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig20-300x146.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig20-260x127.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig20-50x24.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2016\/09\/2016-09-19_RFID-Door-Lock-fig20-150x73.jpg 150w\" alt=\"arduino rfid door lock\" width=\"700\" height=\"341\"><\/p>\n<h2>\u5b8c\u6574\u4ee3\u7801<\/h2>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>#include &lt;SPI.h&gt;\r\n\r\n#include &lt;MFRC522.h&gt;\r\n\r\n#include &lt;Wire.h&gt;\r\n\r\n#include &lt;LiquidCrystal_I2C.h&gt;\r\n\r\n#include &lt;Keypad.h&gt;\r\n\r\n#include&lt;EEPROM.h&gt;\r\n\r\n\r\n\r\nint relPin;\r\n\r\nint state=0;\r\n\r\nbyte  COD[10];\r\n\r\nbyte  AUX[10];\r\n\r\nint k=0;\r\n\r\nString accessCode=\"*123456#\";\r\n\r\nString codpairing=\"*654321#\";\r\n\r\n\/\/NFC\r\n\r\n#define RST_PIN   9\r\n\r\n#define SS_PIN 10   \r\n\r\nMFRC522 mfrc522(SS_PIN, RST_PIN);   \/\/ Create MFRC522 instance\r\n\r\n#define NEW_UID {0xDE, 0xAD, 0xBE, 0xEF}\r\n\r\nMFRC522::MIFARE_Key key;\r\n\r\n\r\n\r\n\/\/LCD\r\n\r\nLiquidCrystal_I2C  lcd(0x27,16,2);\r\n\r\n\r\n\r\n\/\/KEYPAD\r\n\r\nconst byte numRows= 4; \/\/number of rows on the keypad\r\n\r\nconst byte numCols= 4; \/\/number of columns on the keypad\r\n\r\n\r\n\r\nchar keymap[numRows][numCols]=\r\n\r\n{\r\n\r\n{'1', '2', '3', 'A'},\r\n\r\n{'4', '5', '6', 'B'},\r\n\r\n{'7', '8', '9', 'C'},\r\n\r\n{'*', '0', '#', 'D'}\r\n\r\n};\r\n\r\n\r\n\r\n\/\/Code that shows the the keypad connections to the arduino terminals\r\n\r\nbyte rowPins[numRows] = {2,3,4,5}; \/\/Rows 0 to 3\r\n\r\nbyte colPins[numCols]= {A0,7,8,9}; \/\/Columns 0 to 3\r\n\r\n\r\n\r\n\/\/initializes an instance of the Keypad class\r\n\r\nKeypad myKeypad= Keypad(makeKeymap(keymap), rowPins, colPins, numRows, numCols);\r\n\r\n\r\n\r\nvoid setup() {\r\n\r\n  pinMode(A0,OUTPUT);\r\n\r\n  digitalWrite(A0,HIGH);\r\n\r\n  pinMode(A3,OUTPUT);\r\n\r\n  digitalWrite(A3,HIGH);\r\n\r\n  pinMode(A1,OUTPUT);\r\n\r\n  digitalWrite(A1,HIGH);\r\n\r\n  pinMode(A2,OUTPUT);\r\n\r\n  digitalWrite(A2,LOW);\r\n\r\n  \/\/NFC\r\n\r\n  Serial.begin(9600);  \/\/ Initialize serial communications with the PC\r\n\r\n  while (!Serial);  \/\/ Do nothing if no serial port is opened\r\n\r\n  SPI.begin(); \/\/ Init SPI bus\r\n\r\n mfrc522.PCD_Init();     \/\/ Init MFRC522 card\r\n\r\n\r\n\r\n for (byte i = 0; i &lt; 6; i++) {        \r\n\r\nkey.keyByte[i] = 0xFF;\r\n\r\n }\r\n\r\nlcd.begin();\r\n\r\nlcd.backlight();\r\n\r\nlcd.setCursor(0,0);\r\n\r\nlcd.clear();\r\n\r\nlcd.print( \"BLOCKED\" );\r\n\r\n}\r\n\r\n\r\n\r\nvoid  readNFC(){   \/\/ This function will read the code stored on  \r\n\r\n for (byte i =0; i&lt;(mfrc522.uid.size); i++) {  \/\/ the  UID\r\n\r\n   COD[i]=mfrc522.uid.uidByte[i];\r\n\r\n }\r\n\r\n Serial.print(\"COD\");\r\n\r\n Serial.print(COD[0]);\r\n\r\n Serial.print(COD[1]);\r\n\r\n Serial.print(COD[2]);\r\n\r\n Serial.print(COD[3]);\r\n\r\n}\r\n\r\n\r\n\r\nvoid pairNFC(){\r\n\r\n Serial.println(\"COD in pair\");\r\n\r\n Serial.print(COD[0]);\r\n\r\n Serial.print(COD[1]);\r\n\r\n Serial.print(COD[2]);\r\n\r\n Serial.print(COD[3]);\r\n\r\n  long  r=0;\r\n\r\n  int c=0;\r\n\r\n  for(int i=1;i&lt;=EEPROM.read(0);i++){                       \/\/The UID cannot be stored on\r\n\r\nswitch(i%4){                                                     \/\/ one variable, it was needed to be\r\n\r\n      case 1 :{AUX[0]=EEPROM.read(i); break;}     \/\/ split\r\n\r\n      case 2 :{AUX[1]=EEPROM.read(i); break;}\r\n\r\n      case 3 :{AUX[2]=EEPROM.read(i); break;}\r\n\r\n      case 0 :{AUX[3]=EEPROM.read(i); break;}\r\n\r\n}\r\n\r\nif((i)%4==0)\r\n\r\n   {Serial.println(r);\r\n\r\n    if( AUX[0]==COD[0] &amp;&amp; AUX[1]==COD[1] &amp;&amp; AUX[2]==COD[2] &amp;&amp; AUX[3]==COD[3] ){                                      \/\/Verify if the code is in EEPROM\r\n\r\n         lcd.clear();\r\n\r\n         lcd.setCursor(0,0);\r\n\r\n         lcd.print(\"CODE ALREADY IN\");\r\n\r\n         lcd.setCursor(0,1);\r\n\r\n         lcd.print(\"SYSTEM\");\r\n\r\n      delay(2000);\r\n\r\n          c=1;\r\n\r\n      break;}\r\n\r\n  }\r\n\r\n  }\r\n\r\n\r\n\r\nif(c==0){int aux2=EEPROM.read(0);\r\n\r\n             Serial.println(\"CODE PAIRED\");\r\n\r\nSerial.print(COD[0]);\r\n\r\nSerial.print(COD[1]);\r\n\r\nSerial.print(COD[2]);\r\n\r\nSerial.print(COD[3]);\r\n\r\n\r\n\r\n         EEPROM.write(aux2+1,COD[0]);  \/\/Writing code in EEPROM\r\n\r\n         EEPROM.write(aux2+2,COD[1]);\r\n\r\n         EEPROM.write(aux2+3,COD[2]);\r\n\r\n         EEPROM.write(aux2+4,COD[3]);\r\n\r\n\r\n\r\n         aux2=aux2+4; \/\/ Position for a new code\r\n\r\n         Serial.println(\"aux2\");\r\n\r\n         Serial.println(aux2);\r\n\r\n         EEPROM.write(0,0);\r\n\r\n         EEPROM.write(0,aux2);    \r\n\r\n         lcd.clear();\r\n\r\n         lcd.setCursor(0,0);\r\n\r\n         lcd.print(\"CODE PAIRED\");\r\n\r\n         delay(2000);}   \r\n\r\n }\r\n\r\n\r\n\r\nboolean validationNFC(){\r\n\r\n  boolean c=false;\r\n\r\n  for(int i=1;i&lt;=EEPROM.read(0);i++){   \/\/Read the EEPROM\r\n\r\n      switch(i%4){\r\n\r\n      case 1 :{AUX[0]=EEPROM.read(i); break;}\r\n\r\n      case 2 :{AUX[1]=EEPROM.read(i); break;}\r\n\r\n      case 3 :{AUX[2]=EEPROM.read(i); break;}\r\n\r\n      case 0 :{AUX[3]=EEPROM.read(i); break;}\r\n\r\n    }\r\n\r\nif((i)%4==0)\r\n\r\n   {\r\n\r\n    if( AUX[0]==COD[0] &amp;&amp; AUX[1]==COD[1] &amp;&amp; AUX[2]==COD[2] &amp;&amp;                AUX[3]==COD[3])\r\n\r\n      c=true; \/\/Verify if the code is in EEPROM and make flag=true;\r\n\r\n     }\r\n\r\n}       \r\n\r\n  return c;  \r\n\r\n}\r\n\r\n\r\n\r\nint compareCODE(String a)    \/\/We type a code on keypad and this will be compared\r\n\r\n{ \/\/with the accessCode;\r\n\r\n if(a.equals(accessCode))    \r\n\r\nreturn 1;\r\n\r\n else if(a.equals(codpairing)) return 2;\r\n\r\n else return 0;  \r\n\r\n}\r\n\r\n\r\n\r\nString takeCode(char x) \/\/Will display on the LCD the code typed\r\n\r\n{ char vec[10];\r\n\r\n vec[0]=x;\r\n\r\n lcd.setCursor(0,0);\r\n\r\n lcd.clear();\r\n\r\n lcd.print('X');\r\n\r\n for(int i=1;i&lt;8;i++)\r\n\r\n    {vec[i]=myKeypad.waitForKey(); \/\/Waits for 8 keys to be pressed and after that  \r\n\r\n     lcd.print('X');} \/\/is taking the decision\r\n\r\n vec[8]=NULL;\r\n\r\n String str(vec);\r\n\r\n return str;\r\n\r\n}  \r\n\r\n\r\n\r\n  void loop() {\r\n\r\n   \r\n\r\n  switch(state){\r\n\r\n  case 0: {\r\n\r\n    mfrc522.PCD_Init();\r\n\r\n    if (  mfrc522.PICC_IsNewCardPresent() &amp;&amp; mfrc522.PICC_ReadCardSerial() ){\r\n\r\n   \r\n\r\n    readNFC(); \/\/It will read the card and it will search for UID in its\r\n\r\n    if(validationNFC()) \/\/memory\r\n\r\n       { state=1;\r\n\r\n        lcd.clear();\r\n\r\n        lcd.setCursor(0,0);\r\n\r\nlcd.print( \"VALID NFC CODE\" ); \/\/The door will be opened\r\n\r\n        delay(1000);\r\n\r\n        return;\r\n\r\n       }\r\n\r\n    else{\r\n\r\n         lcd.clear();\r\n\r\n         lcd.setCursor(0,0);\r\n\r\n         lcd.print( \"INVALID NFC CODE\" ) \/\/If the code was wrongblocked\r\n\r\n         delay(1000);\r\n\r\n         lcd.setCursor(0,0);\r\n\r\n         lcd.clear();\r\n\r\n         lcd.print( \"BLOCKED\" );\r\n\r\n         return;\r\n\r\n        }\r\n\r\n    }      \r\n\r\n \r\n\r\nchar c=myKeypad.getKey();\r\n\r\n  if(c != NO_KEY){\r\n\r\n   \r\n\r\nString codcurent=takeCode(c);\r\n\r\nint A=compareCODE(codcurent);\r\n\r\n  if(A==0){                                \/\/A is a variable that stores the current code\r\n\r\n   lcd.clear();\r\n\r\n   lcd.print(\"INVALID CODE\");\r\n\r\n   delay(2000);\r\n\r\n    lcd.setCursor(0,0);\r\n\r\n    lcd.clear();\r\n\r\n    lcd.print(\"BLOCKED\");\r\n\r\n   return;\r\n\r\n}\r\n\r\n  if(A==1){\r\n\r\nlcd.setCursor(0,0);\r\n\r\n     lcd.clear();\r\n\r\n   lcd.print( \"VALID CODE \" );\r\n\r\ndelay(2000);\r\n\r\n   state = 1;\r\n\r\n   Return;\r\n\r\n}\r\n\r\n  if(A==2); {\r\n\r\nstate=2;\r\n\r\n         lcd.clear();\r\n\r\n         lcd.setCursor(0,0);\r\n\r\n        lcd.print( \" Pairing...\" );\r\n\r\n      delay(2000);\r\n\r\n    return;}\r\n\r\n  }\r\n\r\nbreak;\r\n\r\n   }\r\n\r\n\r\n\r\n case 1:{\r\n\r\n    lcd.clear();\r\n\r\n    lcd.setCursor(0,0);\r\n\r\n    lcd.print( \"UNLOCKED\" );\r\n\r\n    digitalWrite(A3,LOW);\r\n\r\n    digitalWrite(A1,LOW); \/\/The red LED will be off\r\n\r\n    digitalWrite(A2,HIGH); \/\/The green LED will be on\r\n\r\n    tone(6,3000,5010); \/\/The buzzer will make a sound\r\n\r\n    delay(5000); \/\/After 5 seconds the system will be blocked\r\n\r\n    digitalWrite(A3,HIGH);\r\n\r\n    digitalWrite(A1,HIGH);\r\n\r\n    digitalWrite(A2,LOW);\r\n\r\n    state=0;\r\n\r\n    lcd.setCursor(0,0);\r\n\r\n    lcd.clear();\r\n\r\n    lcd.print( \"BLOCKED\" );\r\n\r\nreturn;\r\n\r\n    }\r\n\r\n\r\n\r\n  case 2:{\r\n\r\n   mfrc522.PCD_Init();\r\n\r\n      if (  mfrc522.PICC_IsNewCardPresent() &amp;&amp; mfrc522.PICC_ReadCardSerial() ){\r\n\r\n      readNFC();\r\n\r\n      pairNFC();\r\n\r\n      state=0;\r\n\r\n      delay(2000);\r\n\r\n      lcd.clear();\r\n\r\n      lcd.setCursor(0,0);\r\n\r\n      lcd.print( \"BLOCKED\" );   }\r\n\r\n \r\n\r\nbreak;\r\n\r\n}\r\n\r\n}\r\n\r\n}\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>\u7ed3\u8bba<\/h2>\n<p><span style=\"font-weight: 400;\">\u81f3\u6b64\uff0c\u6211\u4eec\u6210\u529f\u5236\u4f5c\u4e86\u4e00\u6b3e\u4f4e\u6210\u672c\u7684Arduino RFID\u95e8\u9501\u3002\u5bf9\u6211\u6765\u8bf4\uff0c\u8fd9\u662f\u4e00\u4e2a\u5f88\u6709\u8da3\u7684\u9879\u76ee\uff0c\u56e0\u4e3a\u6211\u662f\u4e3a\u81ea\u5df1\u4f7f\u7528\u800c\u5236\u4f5c\u7684\u3002\u6b64\u5916\uff0c\u5236\u4f5c\u4e00\u4e2a\u8fd9\u6837\u7684\u8bbe\u5907\u4e0d\u4ec5\u80fd\u8ba9\u60a8\u56e0\u4e3a\u505a\u4e86\u4e00\u4e9b\u6709\u7528\u7684\u4e8b\u800c\u4ea7\u751f\u6ee1\u8db3\u611f\uff0c\u5b66\u4e60\u5230\u5f88\u591a\u77e5\u8bc6\uff0c\u8fd8\u80fd\u8ba9\u60a8\u5bf9\u81ea\u5236\u7535\u5b50\u8bbe\u5907\u6709\u521d\u6b65\u7684\u5c1d\u8bd5\u548c\u4f53\u9a8c\u3002\u4e0e\u5404\u79cd\u5404\u6837\u7684\u5f00\u53d1\u677f\u6253\u4ea4\u9053\u662f\u975e\u5e38\u5177\u6709\u6311\u6218\u6027\u7684\u3002\u672c\u9879\u76ee\u8fd8\u5305\u542b\u4e86\u5f88\u591a\u6709\u8da3\u7684\u8bfe\u9898\uff0c\u4f8b\u5982\uff1a<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u4e0e\u5176\u4ed6Arduino\u5e93\u4e00\u8d77\u4f7f\u7528<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u7406\u89e3EEPROM\u7684\u4f7f\u7528<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u4f7f\u7528\u591a\u79cd\u901a\u4fe1\uff0c\u5982I2C, SPI<\/span><\/li>\n<\/ul>\n<p>\u70b9\u51fb<a href=\"https:\/\/www.deviceplus.com\/arduino\/make-your-own-arduino-rfid-door-lock-part-2\/\">\u6b64\u5904<\/a> \u9605\u8bfb\u672c\u6587\u7684\u7b2c\u4e8c\u90e8\u5206\uff0c\u6211\u4eec\u5c06\u5f00\u53d1\u7528\u667a\u80fd\u624b\u673a\u7aef\u89e3\u9501\u7684\u529f\u80fd\uff01\u67e5\u770b\u6211\u4eec\u7684<a href=\"https:\/\/www.deviceplus.com\/arduino\/\">Arduino \u9879\u76ee<\/a>\uff0c\u4e86\u89e3\u5176\u4ed6\u6709\u8da3\u4e14\u5177\u6709\u6311\u6218\u6027\u7684Arduino\u9879\u76ee\uff01<\/p>\n<div class=\"author-box-wrapper\">\n<div class=\"avatar-wrapper\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/micro.wfjydl.com\/deviceplus\/wp-content\/uploads\/2018\/08\/Device-Plus-logo-for-author-info-75x75.png\" alt=\"DevicePlus \u7f16\u8f91\u56e2\u961f\" width=\"64\" height=\"64\"><\/div>\n<div class=\"desc-wrapper\">\n<h5>DevicePlus \u7f16\u8f91\u56e2\u961f<\/h5>\n<div class=\"desc\">\n<p>\u8bbe\u5907\u5347\u7ea7\u7248\u9002\u7528\u4e8e\u6240\u6709\u70ed\u7231\u7535\u5b50\u548c\u673a\u7535\u4e00\u4f53\u5316\u7684\u4eba\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"\u8fd9\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8eDevicePlus.com\u82f1\u8bed\u7f51\u7ad9\u7684\u7ffb\u8bd1\u7a3f\u3002 \u5df2\u7ecf\u70e6\u900f\u4e86\u4e22\u5931\u94a5\u5319\u6216\u8005\u5fd8\u8bb0\u5e26\u94a5\u5319\u800c\u88ab\u9501\u5728\u95e8\u5916\u5417\uff1f\u597d\u5427\uff0c\u8ba9\u6211\u6765\u4e3a\u60a8\u63d0\u4f9b\u4e00\u4e2a\u5b8c\u7f8e\u7684\u89e3\u51b3\u65b9\u6848\uff01\u4eca\u5929\uff0c\u6211\u4eec\u5c06\u5236\u4f5c\u4e00\u6b3eArduino RFID\u95e8\u9501\u3002\u6211\u60f3\u8981\u627e\u5230\u4e00\u79cd\u7b80\u5355\u5e76 [&hellip;]","protected":false},"author":3,"featured_media":16325,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1130],"tags":[],"class_list":["post-8195","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino"],"acf":[],"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/8195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/comments?post=8195"}],"version-history":[{"count":10,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/8195\/revisions"}],"predecessor-version":[{"id":16897,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/8195\/revisions\/16897"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media\/16325"}],"wp:attachment":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media?parent=8195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/categories?post=8195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/tags?post=8195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}