{"id":8791,"date":"2021-03-11T00:00:32","date_gmt":"2021-03-10T15:00:32","guid":{"rendered":"https:\/\/techclass.wfjydl.com\/?p=8791"},"modified":"2022-03-07T17:17:47","modified_gmt":"2022-03-07T09:17:47","slug":"%e6%99%ba%e8%83%bd%e5%ae%a0%e7%89%a9%e5%96%82%e9%a3%9f%e6%9c%ba%e7%ac%ac2%e9%83%a8%e5%88%86-%e5%85%b7%e6%9c%89%e8%af%ad%e9%9f%b3%e8%af%86%e5%88%ab%e5%8a%9f%e8%83%bd%e7%9a%84%e5%96%82%e9%a3%9f","status":"publish","type":"post","link":"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/how-tos\/arduino\/smart-pet-feeder-part-2-feeding-app-with-speech-recognition","title":{"rendered":"\u667a\u80fd\u5ba0\u7269\u5582\u98df\u673a\u7b2c2\u90e8\u5206\u2014\u5177\u6709\u8bed\u97f3\u8bc6\u522b\u529f\u80fd\u7684\u5582\u98df\u5e94\u7528\u7a0b\u5e8f"},"content":{"rendered":"<div class=\"\u201cthe_content_wrapper\u201d\">\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<\/p>\n<p><a style=\"font-size: 20px;\" href=\"\/knowledge\/deviceplus\/how-tos\/arduino\/make-a-smart-automatic-pet-feeder-with-arduino-uno\"><strong>\u70b9\u51fb\u6b64\u5904\u9605\u8bfb\u672c\u6587\u7b2c1\u90e8\u5206 &gt;<\/strong><\/a><\/p>\n<p><b><img decoding=\"async\" class=\"alignnone size-full wp-image-5611\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image001.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image001.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image001-300x198.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image001-221x146.jpg 221w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image001-50x33.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image001-113x75.jpg 113w\" alt=\"automatic pet feeder\" width=\"640\" \/><\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u5728\u667a\u80fd\u5ba0\u7269\u5582\u98df\u673a\u7684\u7b2c1\u90e8\u5206<\/span><a href=\"\/knowledge\/deviceplus\/how-tos\/arduino\/make-a-smart-automatic-pet-feeder-with-arduino-uno\"><b>\u201c\u4f7f\u7528Arduino Uno\u5236\u4f5c\u667a\u80fd\u81ea\u52a8\u5ba0\u7269\u5582\u98df\u673a\u201d<\/b><\/a><span style=\"font-weight: 400;\">\u4e2d\uff0c\u6211\u4eec\u5efa\u7acb\u4e86\u4e00\u4e2a\u81ea\u52a8\u5316\u5e73\u53f0\uff0c\u53ef\u4ee5\u5224\u65ad\u60a8\u7684\u5ba0\u7269\u662f\u5426\u88ab\u5582\u98df\u4ee5\u53ca\u8ba1\u7b97\u4e0b\u4e00\u6b21\u5582\u98df\u7684\u65f6\u95f4\u3002\u5728\u7b2c2\u90e8\u5206\u4e2d\uff0c\u6211\u4eec\u5c06\u5c1d\u8bd5\u901a\u8fc7MIT App Inventor\u5f00\u53d1\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u5e76\u6dfb\u52a0\u8bed\u97f3\u8bc6\u522b\u529f\u80fd\uff0c\u4f7f\u7cfb\u7edf\u66f4\u52a0\u201c\u667a\u80fd\u201d\u3002\u5728\u4e4b\u524d\u7684\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5df2\u7ecf\u4f7f\u7528\u8fc7MIT App Inventor\u6765\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002App Inventor\u662f\u4e00\u79cd\u6613\u4e8e\u4f7f\u7528\u7684\u57fa\u4e8e\u5757\u7684\u8bed\u8a00\uff0c\u7528\u4e8e\u8bbe\u8ba1Android\u5e94\u7528\u7a0b\u5e8f\u3002<\/span><\/p>\n<h2><b>\u786c\u4ef6<\/b><\/h2>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 Arduino UNO<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 RFID RC522<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 HC-05 \u84dd\u7259\u6a21\u5757<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u6cbf\u7528<\/span><a href=\"\/knowledge\/deviceplus\/how-tos\/arduino\/make-a-smart-automatic-pet-feeder-with-arduino-uno\"><b>\u7b2c1\u90e8\u5206<\/b><\/a><span style=\"font-weight: 400;\">\u7684\u786c\u4ef6\uff1a<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 Arduino Uno<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u5149\u4f20\u611f\u5668 TEMT6000<\/span><\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u8ddd\u79bb\u4f20\u611f\u5668 Sharp GP2Y0A21YK<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 RFID RC522<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u8702\u9e23\u5668<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u7535\u673a SG90<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 RTC DS1307<\/span><\/li>\n<\/ul>\n<h2><b>\u8f6f\u4ef6<\/b><\/h2>\n<ul>\n<li><span style=\"font-weight: 400;\">Arduino IDE<\/span><\/li>\n<li><i><a href=\"https:\/\/github.com\/todeilatiberia\/PetFeeder\"><span style=\"font-weight: 400;\">GitHub\u4e0a\u7684PetFeeder<\/span><\/a><\/i><\/li>\n<li><span style=\"font-weight: 400;\">MIT App Inventor<\/span><\/li>\n<\/ul>\n<h2><b>\u6b65\u9aa41\uff1a\u4f7f\u7528\u5e26\u6709RFID\u6807\u7b7e\u7684EEPROM<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">\u6211\u4eec\u5728<\/span><a href=\"\/knowledge\/deviceplus\/how-tos\/arduino\/make-a-smart-automatic-pet-feeder-with-arduino-uno\"><b>\u7b2c1\u90e8\u5206<\/b><\/a><span style=\"font-weight: 400;\">\u4e2d\u8bbe\u7f6e\u7684\u7528\u4e8eEEPROM\u7684\u6807\u7b7e\u2014\u5728\u8be5\u5b58\u50a8\u5668\u4e2d\uff0c\u6807\u7b7e\u5c06\u88ab\u4fdd\u5b58\u5230\u6211\u4eec\u5c06\u5176\u6e05\u9664\u4e3a\u6b62\u3002\u6b64\u529f\u80fd\u6709\u52a9\u4e8e\u6211\u4eec\u5c06\u81ea\u5df1\u7684\u5ba0\u7269\u4e0e\u5176\u4ed6\u5ba0\u7269\u5206\u5f00\u6765\uff0c\u53ea\u4e3a\u5e26\u6709\u6307\u5b9a\u6807\u7b7e\u7684\u5ba0\u7269\u63d0\u4f9b\u98df\u7269\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u6211\u4eec\u5728<\/span><a href=\"\/knowledge\/deviceplus\/how-tos\/arduino\/make-a-smart-automatic-pet-feeder-with-arduino-uno\"><b>\u7b2c1\u90e8\u5206<\/b><\/a><span style=\"font-weight: 400;\">\u4e2d\u8bbe\u7f6e\u4e86\u4e24\u4e2a\u6807\u7b7e\uff0c\u5e76\u4f7f\u7528EEPROM\u6765\u5b58\u50a8\u6570\u636e\u3002RFID\u6807\u7b7e\u6709\u52a9\u4e8e\u8bc6\u522b\u60a8\u7684\u5ba0\u7269\u5e76\u5c06\u5176\u4e0e\u5176\u4ed6\u4eba\u7684\u5ba0\u7269\u533a\u5206\u5f00\uff0c\u4ece\u800c\u4ec5\u5411\u5e26\u6709\u6307\u5b9a\u6807\u7b7e\u7684\u5ba0\u7269\u63d0\u4f9b\u98df\u7269\u3002\u4f7f\u7528EEPROM\u53ef\u4ee5\u786e\u4fdd\u6570\u636e\u5728\u7cfb\u7edf\u91cd\u65b0\u542f\u52a8\u540e\u4e5f\u53ef\u4ee5\u5b89\u5168\u5730\u5b58\u50a8\u5728\u5185\u5b58\u4e2d\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u4eceEEPROM\u66f4\u6539\u6807\u7b7e\u4fe1\u606f\uff1a<\/span><\/p>\n<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>#include &lt;EEPROM.h&gt;\r\n#include &lt;SPI.h&gt;\r\n#include &lt;MFRC522.h&gt;\r\nboolean match = false;\r\nboolean programMode = false;\r\nint isOurPet;\r\nbyte storedCard[4];\r\nbyte readCard[4];\r\nbyte masterCard[4];\r\n#define SS_PIN 10\r\n#define RST_PIN 9\r\nMFRC522 mfrc522(SS_PIN, RST_PIN);\r\nvoid setup() {\r\n Serial.begin(9600);\r\n SPI.begin();\r\n mfrc522.PCD_Init();\r\n if (EEPROM.read(1) != 143) {\r\n   do {\r\n     isOurPet = findOurPet();\r\n   }\r\n   while (!isOurPet);\r\n   for ( int j = 0; j &lt; 4; j++ ) {\r\n     EEPROM.write( 2 + j, readCard[j] );\r\n   }\r\n   EEPROM.write(1, 143);\r\n }\r\n for ( int i = 0; i &lt; 4; i++ ) {\r\n   masterCard[i] = EEPROM.read(2 + i);\r\n }\r\n}\r\nvoid loop () {\r\n do {\r\n   isOurPet = findOurPet();\r\n}\r\n while (!isOurPet);\r\n if ( master(readCard)) {\r\n     programMode = true;\r\n     Serial.println(F(\"Our Pet - Green Tag\"));\r\n     int count = EEPROM.read(0);\r\n   }\r\n   else {\r\n       Serial.println(F(\"Not our pet - Purple Tag\"));\r\n     }\r\n   }\r\nint findOurPet() {\r\n if ( ! mfrc522.PICC_IsNewCardPresent()) {\r\n   return 0;\r\n }\r\n if ( ! mfrc522.PICC_ReadCardSerial()) {\r\n   return 0;\r\n }\r\n for (int i = 0; i &lt; 4; i++) {\r\n   readCard[i] = mfrc522.uid.uidByte[i];\r\n}\r\n mfrc522.PICC_HaltA(); \/\/ Stop reading\r\n return 1;\r\n}\r\nvoid readCollar( int number ) {\r\n int start = (number * 4 ) + 2;\r\n for ( int i = 0; i &lt; 4; i++ ) {\r\n   storedCard[i] = EEPROM.read(start + i);\r\n }\r\n}\r\nboolean EEpromCheck ( byte a[], byte b[] ) {\r\n if ( a[0] != NULL )\r\n   match = true;\r\n for ( int k = 0; k &lt; 4; k++ ) {\r\n   if ( a[k] != b[k] )\r\n     match = false;\r\n }\r\n if ( match ) {\r\n   return true;\r\n }\r\n else  {\r\n   return false;\r\n }\r\n}\r\nboolean master( byte test[] ) {\r\n if ( EEpromCheck( test, masterCard ) )\r\n   return true;\r\n else\r\n   return false;\r\n}\r\n<\/code><\/pre>\n<\/div>\n<div id=\"attachment_5612\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5612\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image003.jpg\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image003.jpg 637w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image003-300x148.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image003-260x128.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image003-50x25.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image003-150x75.jpg 150w\" alt=\"automatic pet feeder\" width=\"637\" height=\"314\" aria-describedby=\"caption-attachment-5612\" \/><\/p>\n<p id=\"caption-attachment-5612\" class=\"wp-caption-text\">\u56fe1\uff1a\u6211\u4eec\u5728EEPROM\u4e2d\u7684\u5ba0\u7269\u6807\u7b7e<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u4e0a\u6b21\uff0c\u6211\u4eec\u5c06\u5ba0\u7269\u6307\u5b9a\u4e3a\u7ea2\u8272\u6807\u7b7e\u3002\u8fd9\u6b21\uff0c\u6211\u4eec\u5c06\u6807\u7b7e\u66f4\u6539\u4e3a\u7eff\u8272\u3002<\/span><\/p>\n<h2><b>\u6b65\u9aa42\uff1a\u600e\u6837\u63a7\u5236\u4f3a\u670d<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">\u4f3a\u670d\u7535\u673a\u901a\u8fc7\u6765\u81ea\u5fae\u63a7\u5236\u5668\u7684PWM\uff08\u8109\u51b2\u5bbd\u5ea6\u8c03\u8282\uff09\u6765\u66f4\u6539\u5176\u4f4d\u7f6e\u3002\u4f3a\u670d\u9700\u8981\u8fdb\u884c\u6821\u51c6\uff0c\u5e76\u5c06\u5176\u9600\u95e8\u5f00\u5ea6\u89d2\u5ea6\u8bbe\u7f6e\u4e3a90\u5ea6\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u4e3a\u4e86\u63a7\u5236\u4f3a\u670d\uff0c\u6211\u4eec\u5c06\u4f7f\u7528Arduino<\/span><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/Sweep\"><span style=\"font-weight: 400;\">Sweep \u4ee3\u7801<\/span><\/a><span style=\"font-weight: 400;\">\u3002\u8be5\u4ee3\u7801\u4e2d\u4f3a\u670d\u7535\u673a\u8f74\u53ef\u4ee5\u65cb\u8f6c180\u5ea6\u3002\u6211\u4eec\u5c06\u628a\u65cb\u8f6c\u89d2\u5ea6\u4ece0-180\u5ea6\u66f4\u6539\u4e3a10-170\u5ea6\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>#include &lt;Servo.h&gt;\r\nServo myservo; \/\/ create servo object to control a servo\r\nint pos = 0; \/\/ variable to store the servo position\r\nvoid setup()\r\n{\r\n myservo.attach(9); \/\/ attaches the servo on pin 9 to the servo object\r\n}\r\nvoid loop()\r\n{\r\n for(pos = 10; pos &lt;= 170; pos += 1) \/\/ goes from 10 degrees to 170 degrees\r\n\/\/ in steps of 1 degree\r\n {\r\n   myservo.write(pos); \/\/ tell servo to go to position in variable \u2018pos\u2019\r\n   delay(15); \/\/ waits 15ms for the servo to reach the position\r\n }\r\n for(pos = 170; pos&gt;=10; pos -= 1) \/\/ goes from 170 degrees to 10 degrees\r\n {\r\n   myservo.write(pos); \/\/ tell servo to go to position in variable \u2018pos\u2019\r\n   delay(15); \/\/ waits 15ms for the servo to reach the position\r\n }\r\n}\r\n<\/code><\/pre>\n<\/div>\n<p><strong>\u5173\u4e8e\u4f3a\u670d\u7684\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">\u60a8\u7684\u4f3a\u670d\u5728\u67d0\u4e9b\u65f6\u5019\u53ef\u80fd\u4f1a\u884c\u4e3a\u5f02\u5e38\u3002\u5f53\u60a8\u7531\u4e8eArduino\u81ea\u884c\u91cd\u542f\u800c\u65e0\u6cd5\u6267\u884c\u6307\u4ee4\u65f6\uff0c\u53ef\u80fd\u662f\u56e0\u4e3aUSB\u7aef\u53e3\u6ca1\u6709\u63d0\u4f9b\u8db3\u591f\u7684\u7535\u6e90\u6765\u9a71\u52a8\u4f3a\u670d\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0cArduino\u4f1a\u8fdb\u884c\u91cd\u7f6e\uff0c\u5e94\u7528\u7a0b\u5e8f\u4e5f\u65e0\u6cd5\u5de5\u4f5c\u3002\u7528\u4ee5\u4e0b\u4e24\u79cd\u65b9\u6cd5\u53ef\u4ee5\u907f\u514d\u6b64\u95ee\u9898\u7684\u4ea7\u751f\uff1a<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400;\">1. \u60a8\u53ef\u4ee5\u5728\u9762\u5305\u677f\u4e0a\u7684GND\u548c5V\u4e4b\u95f4\u6dfb\u52a0\u4e00\u4e2a\u5927\u5bb9\u503c\u7535\u5bb9\u5668\uff08470uF\u6216\u66f4\u5927\uff09\u3002\u5f53Arduino\u6ca1\u6709\u8db3\u591f\u7684\u7535\u6e90\u6765\u7ef4\u6301\u7535\u6d41\u65f6\uff0c\u8be5\u7535\u5bb9\u5668\u53ef\u4ee5\u7528\u4f5c\u4e34\u65f6\u7535\u6e90\u3002\u8f83\u957f\u7684\u7aef\u5b50\u5fc5\u987b\u8fde\u63a5\u5230VDD=5V\uff0c\u800c\u8f83\u77ed\u7684\u7aef\u5b50\u5fc5\u987b\u8fde\u63a5\u5230GND\u3002<\/span><\/li>\n<\/ol>\n<ol start=\"2\">\n<li><span style=\"font-weight: 400;\">2. \u60a8\u53ef\u4ee5\u901a\u8fc7USB\u5bf9\u5f00\u53d1\u677f\u8fdb\u884c\u7f16\u7a0b\uff0c\u4e4b\u540e\u65ad\u5f00\u8fde\u63a5\u3002\u7136\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u624b\u673a\u5145\u7535\u5668\u901a\u8fc7\u63d2\u5934\u6765\u4e3a\u88c5\u7f6e\u4f9b\u7535\uff0c\u56e0\u4e3a\u5b83\u5177\u6709\u66f4\u5927\u7684\u7535\u6d41\u5bb9\u91cf\u3002<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">\u8ba9\u6211\u4eec\u7b80\u8981\u5730\u770b\u4e00\u4e0b<\/span><b>&lt;Servo.h&gt;<\/b> <span style=\"font-weight: 400;\">\u5e93\u7684\u5de5\u4f5c\u65b9\u5f0f\u3002<\/span><\/p>\n<p><strong><span style=\"color: white; background-color: black;\">#include &lt;Servo.h&gt;<\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400;\">\u5fc5\u987b\u542b\u6709\u8be5\u6307\u4ee4\u624d\u80fd\u4f7f\u7528Servo.h\u5e93\u3002Servo\u5e93\u4e2d\u7ed9\u51fa\u7684\u4e24\u4e2a\u793a\u4f8b\u662f\u201cKnob\u201d\u548c\u201cSweep\u201d\u3002\u8fd9\u4e24\u4e2a\u63a7\u4ef6\u5bf9\u4f3a\u670d\u7684\u6d4b\u8bd5\u5f88\u6709\u7528\u3002\u4f7f\u7528Knob\uff0c\u60a8\u5c31\u53ef\u4ee5\u901a\u8fc7\u7535\u4f4d\u8ba1\u5c06\u4f3a\u670d\u8f6c\u52a8\u5230\u7279\u5b9a\u89d2\u5ea6\u3002\u4f7f\u7528Sweep\uff0c\u60a8\u5c31\u53ef\u4ee5\u5728180\u5ea6\u7684\u8303\u56f4\u5185\u6765\u56de\u626b\u52a8\u4f3a\u670d\u8f74\u3002<\/span><\/p>\n<p><strong><span style=\"color: white; background-color: black;\">Servo servo;<\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400;\">\u8fd9\u662f\u4e00\u4e2a\u7c7b\u578b\u7684\u58f0\u660e\u3002\u5b83\u5b9a\u4e49\u4e86<\/span><b>servo<\/b><span style=\"font-weight: 400;\">\u7c7b\u578b\u7684\u53d8\u91cf<\/span><b>Servo<\/b><span style=\"font-weight: 400;\">\u3002\u5b83\u4e0e\u5176\u4ed6\u7528\u4e8e\u4f3a\u670d\u7684\u7c7b\u578b\u76f8\u4f3c\uff0c\u5982<\/span><i><span style=\"font-weight: 400;\">int<\/span><\/i><span style=\"font-weight: 400;\">\uff08\u6574\u578b\uff09\u548c<\/span><i><span style=\"font-weight: 400;\">float<\/span><\/i><span style=\"font-weight: 400;\">\uff08\u6d6e\u70b9\u578b\uff09\u3002<\/span><\/p>\n<p><strong><span style=\"color: white; background-color: black;\">servo.attach(servoPin);<\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400;\">\u5728\u8bbe\u7f6e\u4ee3\u7801\u5757\u65f6\uff0c\u60a8\u9700\u8981\u5c06\u4f3a\u670d\u5206\u914d\u7ed9\u7279\u5b9a\u7684\u5f15\u811a\u3002\u8be5\u6307\u4ee4\u7528\u4e8e\u5c06\u4f3a\u670d\u53d8\u91cf\u5206\u914d\u5f15\u811a\u3002<\/span><\/p>\n<p><strong><span style=\"color: white; background-color: black;\">servo.write(angle); <\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400;\">\u6b64\u6307\u4ee4\u5c06\u8bbe\u7f6e\u4f3a\u670d\u8f74\u89d2\u5ea6\uff08\u57280\u5230180\u5ea6\u8303\u56f4\u5185\uff09\uff0c\u7136\u540e\u5c06\u4f3a\u670d\u8f6c\u52a8\u81f3\u8be5\u89d2\u5ea6\u3002<\/span><\/p>\n<\/p>\n<p><b>\u6b65\u9aa43\uff1a\u6dfb\u52a0HC-05\u84dd\u7259\u6a21\u5757<\/b><\/p>\n<p><b>\u2014\u2014\u2014-<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u5173\u4e8e\u84dd\u7259HC-05 \u2013 <\/span><a href=\"https:\/\/cdn.makezine.com\/uploads\/2014\/03\/hc_hc-05-user-instructions-bluetooth.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">\u7528\u6237\u4f7f\u7528\u624b\u518c<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u84dd\u7259\u4e32\u884c\u6a21\u5757\u7684\u8fd0\u884c\u4e0d\u9700\u8981\u8fdb\u884c\u9a71\u52a8\uff0c\u5e76\u4e14\u53ef\u4ee5\u4e0e\u5177\u6709\u4e32\u884c\u63a5\u53e3\u7684\u5176\u4ed6\u84dd\u7259\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\u3002\u4e24\u4e2a\u84dd\u7259\u6a21\u5757\u4e4b\u95f4\u5b9e\u73b0\u901a\u4fe1\u81f3\u5c11\u9700\u8981\u4e24\u4e2a\u6761\u4ef6\uff1a<\/span><\/p>\n<p><span style=\"font-weight: 400;\">(1) \u5fc5\u987b\u5728\u4e3b\u8bbe\u5907\u548c\u4ece\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u3002<br \/><\/span><span style=\"font-weight: 400;\">(2) \u5bc6\u7801\u5fc5\u987b\u6b63\u786e\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u8be5\u6a21\u5757\u7684\u5c5e\u6027\uff1a<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u53ef\u4ee5\u5728\u4e3b\u6a21\u5f0f\u548c\u4ece\u6a21\u5f0f\u4e4b\u95f4\u5207\u6362<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u84dd\u7259\u540d\u79f0\uff1a HC-05<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u5bc6\u7801\uff1a 1234<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u914d\u5bf9\uff1a\u4e3b\u8bbe\u5907\u4e0d\u4ec5\u53ef\u4ee5\u4e0e\u6307\u5b9a\u7684\u84dd\u7259\u5730\u5740\u914d\u5bf9\uff08\u5982\u624b\u673a\u3001\u8ba1\u7b97\u673a\u9002\u914d\u5668\u3001\u4ece\u8bbe\u5907\uff09\uff0c\u8fd8\u53ef\u4ee5\u81ea\u52a8\u641c\u7d22\u4ece\u8bbe\u5907\u5e76\u4e0e\u4e4b\u914d\u5bf9\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u5178\u578b\u65b9\u6cd5\uff1a\u5728\u67d0\u4e9b\u7279\u5b9a\u6761\u4ef6\u4e0b\uff0c\u4e3b\u8bbe\u5907\u548c\u4ece\u8bbe\u5907\u53ef\u4ee5\u81ea\u52a8\u914d\u5bf9\uff08\u8fd9\u662f\u9ed8\u8ba4\u65b9\u6cd5\uff09\u3002<\/span><\/p>\n<p><b>\u2014\u2014\u2014-<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u5728\u672c\u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u9009\u62e9\u4e86\u84dd\u7259\u8fde\u63a5\uff0c\u56e0\u4e3a\u8fd9\u79cd\u65b9\u5f0f\u6613\u4e8e\u914d\u7f6e\u3002\u84dd\u7259\u6a21\u5757\u7528\u4f5cArduino\u7684\u4e32\u884c\u7aef\u5b50\uff0c\u5c06\u88ab\u8fde\u63a5\u5230TX\u548cRX\u5f15\u811a\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u60f3\u8981\u901a\u8fc7\u84dd\u7259\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u9700\u8981\u9075\u5faa\u4e00\u4e9b\u89c4\u5219\u3002\u6211\u4eec\u9700\u8981\u6709\uff1a<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \uff08\u901a\u5e38\u503c\u4e3a\u903b\u8f910\uff09<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u6570\u636e\u4f4d<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u6821\u9a8c\u4f4d\uff08\u6570\u636e\u4f4d\u7684\u548c\uff1b\u6211\u4eec\u5c06\u4f1a\u6bd4\u8f83\u4ece\u5934\u5230\u5c3e\u6240\u6709\u4f4d\u7684\u548c\uff09<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u505c\u6b62\u4f4d\uff08\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u503c\u4e3a\u903b\u8f911\uff09<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u5f15\u811a\u8fde\u63a5\uff1a<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">1.\u5c06HC-05\u7684TX\u5f15\u811a\u8fde\u63a5\u5230Arduino\u7684RX\u5f15\u811a\u3002<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">2.\u5c06HC-05\u7684RX\u5f15\u811a\u8fde\u63a5\u5230Arduino\u7684TX\u5f15\u811a\u3002<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">3.\u5c06GND\u5f15\u811a\u8fde\u63a5\u5728\u4e00\u8d77\u3002<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">\u5728\u6211\u4eec\u4e4b\u524d\u7684\u6559\u7a0b<\/span><a href=\"\/knowledge\/tech-info\/how-tos\/arduino\/make-your-own-arduino-rfid-door-lock-part-2\"> <b>\u5236\u4f5c\u60a8\u81ea\u5df1\u7684Arduino RFID\u95e8\u9501\u2014\u7b2c2\u90e8\u5206\uff1a\u7528\u667a\u80fd\u624b\u673a\u89e3\u9501<\/b><\/a><span style=\"font-weight: 400;\">\u4e2d\u5bf9HC-05\u8bbe\u7f6e\u8fdb\u884c\u4e86\u8be6\u7ec6\u8bf4\u660e\u3002\u5982\u679c\u60a8\u5728\u8fde\u63a5\u84dd\u7259\u6a21\u5757\u65f6\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u53c2\u8003\u4e0a\u8ff0\u6559\u7a0b\u3002<\/span><\/p>\n<div id=\"attachment_5613\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5613\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image005.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image005.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image005-300x204.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image005-215x146.jpg 215w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image005-50x34.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image005-110x75.jpg 110w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5613\" \/><\/p>\n<p id=\"caption-attachment-5613\" class=\"wp-caption-text\">\u56fe2\uff1aHC-05\u548cArduino Uno\u4e4b\u95f4\u7684\u8fde\u63a5<\/p>\n<\/div>\n<p><b>\u84dd\u7259\u4f20\u8f93\u4ee3\u7801\uff1a<\/b><\/p>\n<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>#include &lt;SD.h&gt;\r\n#include &lt;Wire.h&gt;\r\n#include &lt;Time.h&gt;\r\n#include &lt;TimeLib.h&gt;\r\n#include &lt;DS1307RTC.h&gt;\r\n#include &lt;Servo.h&gt;\r\n#include &lt;EEPROM.h&gt;\r\n#include &lt;SPI.h&gt;\r\n#include &lt;MFRC522.h&gt;\r\nString voice;\r\n#define SS_PIN 10\r\n#define RST_PIN 9\r\nServo myservo;\r\nboolean match = false;\r\nboolean programMode = false;\r\nboolean replaceMaster = false;\r\nint lightSensor = 0;\r\nint distanceSensor=1;\r\nint pos = 0;\r\nint successRead;\r\nbyte storedCard[4];\r\nbyte readCard[4];\r\nbyte masterCard[4];\r\nMFRC522 mfrc522(SS_PIN, RST_PIN);\r\nvoid setup() {\r\n pinMode(8, OUTPUT);\r\n setSyncProvider(RTC.get);\r\n myservo.attach(9);\r\n Serial.begin(9600);\r\n SPI.begin();\r\n mfrc522.PCD_Init();\r\n if (EEPROM.read(1) != 143) {\r\n   do\r\n   {\r\n     successRead = getID();\r\n   }\r\n   while (!successRead);\r\n   for ( int j = 0; j &lt; 4; j++ )\r\n   {\r\n     EEPROM.write( 2 + j, readCard[j] );\r\n   }\r\n   EEPROM.write(1, 143);\r\n }\r\nfor ( int i = 0; i &lt; 4; i++ )\r\n{\r\n   masterCard[i] = EEPROM.read(2 + i);\r\n   Serial.print(masterCard[i], HEX);\r\n   Serial.println(\"\");\r\n }\r\n}\r\nvoid loop()\r\n{\r\n int valueFromLightSensor = analogRead(lightSensor);\r\n \/\/Serial.print(\"Light Value= \");\r\n \/\/Serial.println(valueFromLightSensor);\r\n \/\/Serial.println(\"\");\r\n \/\/Serial.print(\"Distance Value= \");\r\n int valueFromDistanceSensor = analogRead(distanceSensor);\r\n int distance= 4800\/(valueFromDistanceSensor - 20);\r\n \/\/Serial.println(distance);\r\n \/\/Serial.print(\"Hour= \");\r\n\/\/ Serial.println(hour());\r\n while (Serial.available())\r\n {\r\n delay(10);\r\n char c = Serial.read();\r\n voice += c;\r\n }\r\n if (voice.length() &gt; 0)\r\n {\r\n   Serial.println(voice);\r\n      if(voice == \"feed\")\r\n      {\r\n        myservo.write(130);\r\n        delay(1000);\r\n        myservo.write(50);\r\n        delay(1000);\r\n        myservo.write(130);\r\n        delay(1000);\r\n        myservo.write(50);\r\n        delay(1000);\r\n        digitalClockDisplay();\r\n       }\r\n      if(voice == \"feed2\")\r\n      {\r\n        myservo.write(130);\r\n        delay(1000);\r\n        myservo.write(50);\r\n        delay(1000);\r\n        digitalClockDisplay();\r\n       }\r\n       if(voice == \"feed1\")\r\n      {\r\n        myservo.write(130);\r\n        delay(1000);\r\n        myservo.write(50);\r\n        delay(1000);\r\n        myservo.write(130);\r\n        delay(1000);\r\n        myservo.write(50);\r\n        delay(1000);\r\n        myservo.write(130);\r\n        delay(1000);\r\n        myservo.write(50);\r\n        delay(1000);\r\n        digitalClockDisplay();\r\n       }\r\nvoice=\"\";\r\n}\r\ndo {\r\n   successRead = getID();\r\n }\r\n while (!successRead);\r\n if (programMode) {\r\n   if ( isMaster(readCard) ) {\r\n      programMode = false;\r\n     return;\r\n   }\r\n   else {\r\n     if ( findID(readCard) ) {\r\n     }\r\n   }\r\n }\r\n else {\r\n   if ( isMaster(readCard)) {\r\n     programMode = true;\r\n          int count = EEPROM.read(0);\r\n   }\r\n   else {\r\n     if ( findID(readCard) ) {\r\n               if ((hour()&gt;=8) &amp;&amp; (hour()&lt;=12 )){\r\n                 if (distance&gt;=20){\r\n                  \/\/   Serial.println(distance);\r\n                     myservo.write(130);\r\n                     delay(100);\r\n                     myservo.write(50);\r\n                     delay(100);\r\n                     myservo.write(130);\r\n                     delay(100);\r\n                     myservo.write(50);\r\n                     delay(100);\r\n                     digitalClockDisplay();\r\n                 }\r\n               delay(300);\r\n               }\r\n<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>if ((hour()&gt;=12) &amp;&amp; (hour()&lt;=16 )){\r\n                 if (distance&gt;=20){\r\n                   \/\/  Serial.println(distance);\r\n                     myservo.write(130);\r\n                     delay(100);\r\n                     myservo.write(50);\r\n                     delay(100);\r\n                     myservo.write(130);\r\n                     delay(100);\r\n                     myservo.write(50);\r\n                     delay(100);\r\n                     digitalClockDisplay();\r\n                 }\r\n               delay(300);\r\n         }\r\n        if ((hour()&gt;=16) &amp;&amp; (hour()&lt;=20 )){\r\n                 if (distance&gt;=20){\r\n                   \/\/  Serial.println(distance);\r\n                     myservo.write(130);\r\n                     delay(100);\r\n                     myservo.write(50);\r\n                     delay(100);\r\n                     myservo.write(130);\r\n                     delay(100);\r\n                     myservo.write(50);\r\n                     delay(100);\r\n                     digitalClockDisplay();\r\n                 }\r\n               delay(300);\r\n         }\r\n          if ((hour()&gt;=20) &amp;&amp; (hour()&lt;=8 )){\r\n                 if (distance&gt;=20){\r\n                    \/\/ Serial.println(distance);\r\n                     myservo.write(130);\r\n                     delay(100);\r\n                     myservo.write(50);\r\n                     delay(100);\r\n                     myservo.write(130);\r\n                     delay(100);\r\n                     myservo.write(50);\r\n                     delay(100);\r\n                     digitalClockDisplay();\r\n                 }\r\n               delay(300);\r\n         }\r\n     }\r\n     else {      \/\/ If not, show that the ID was not valid\r\n       Serial.println(F(\"You shall not pass\"));\r\n     }\r\n   }\r\n }\r\n}\r\nint getID() {\r\n if ( ! mfrc522.PICC_IsNewCardPresent()) {\r\n   return 0;\r\n }\r\n if ( ! mfrc522.PICC_ReadCardSerial()) {\r\n   return 0;\r\n }\r\n\/\/ Serial.println(F(\"Scanned PICC's UID:\"));\r\n for (int i = 0; i &lt; 4; i++) {  \/\/\r\n   readCard[i] = mfrc522.uid.uidByte[i];\r\n\/\/   Serial.print(readCard[i], HEX);\r\n }\r\n\/\/  Serial.println(\"\");\r\n mfrc522.PICC_HaltA(); \/\/ Stop reading\r\n return 1;\r\n}\r\nvoid readID( int number ) {\r\n int start = (number * 4 ) + 2;\r\n for ( int i = 0; i &lt; 4; i++ ) {\r\n   storedCard[i] = EEPROM.read(start + i);\r\n }\r\n}\r\nboolean checkTwo ( byte a[], byte b[] ) {\r\n if ( a[0] != NULL )\r\n   match = true;\r\n for ( int k = 0; k &lt; 4; k++ ) {\r\n   if ( a[k] != b[k] )\r\n     match = false;\r\n }\r\n if ( match ) {\r\n   return true;\r\n }\r\n else  {\r\n   return false;\r\n }\r\n}\r\nint findIDSLOT( byte find[] ) {\r\n int count = EEPROM.read(0);\r\n for ( int i = 1; i &lt;= count; i++ ) {\r\n   readID(i);\r\n   if ( checkTwo( find, storedCard ) ) {\r\n     return i;\r\n     break;\r\n   }\r\n }\r\n}\r\nboolean findID( byte find[] ) {\r\n int count = EEPROM.read(0);\r\n for ( int i = 1; i &lt;= count; i++ ) {\r\n   readID(i);\r\n   if ( checkTwo( find, storedCard ) ) {\r\n     return true;\r\n     break;\r\n   }\r\n   else {\r\n   }\r\n }\r\n return false;\r\n}\r\nboolean isMaster( byte test[] ) {\r\n if ( checkTwo( test, masterCard ) )\r\n   return true;\r\n else\r\n   return false;\r\n}\r\nvoid digitalClockDisplay()\r\n{\r\n Serial.print(hour());\r\n printDigits(minute());\r\n \/\/printDigits(second());\r\n Serial.print(\" \");\r\n Serial.print(day());\r\n Serial.print(\" \");\r\n Serial.print(month());\r\n Serial.print(\" \");\r\n Serial.print(year());\r\n Serial.println();\r\n}\r\nvoid printDigits(int digits){\r\n \/\/ utility function for digital clock display: prints preceding colon and leading 0\r\n Serial.print(\":\");\r\n if(digits &lt; 10)\r\n   Serial.print('0');\r\n Serial.print(digits);\r\n}\r\n<\/code><\/pre>\n<\/div>\n<\/p>\n<p><span style=\"font-weight: 400;\">\u8be5\u4ee3\u7801\u4e2d\u7684\u7b97\u6cd5\u975e\u5e38\u7b80\u5355\uff1a\u6211\u4eec\u5bf9\u4e32\u53e3\u8fdb\u884c\u521d\u59cb\u5316\uff0c\u7136\u540e\u7b49\u5f85\u7aef\u53e3\u6253\u5f00\u3002\u6211\u4eec\u5c06\u901a\u8fc7\u8be5\u4ee3\u7801\u53d1\u9001\u6307\u4ee4\u3002\u5982\u679c\u4ee3\u7801\u4e0d\u53ef\u7528\uff0c\u7a0b\u5e8f\u5c06\u4e0d\u4f1a\u6267\u884c\uff0c\u201c\u5582\u98df\u201d\u6307\u4ee4\u5c06\u4e0d\u4f1a\u53d1\u9001\u5230\u5fae\u63a7\u5236\u5668\u8fdb\u884c\u76f8\u5e94\u5904\u7406\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u8be5\u7a0b\u5e8f\u8fd8\u5c06\u6bd4\u8f83\u6765\u81ea\u201cvoice\uff08\u58f0\u97f3\uff09\u201d\u53d8\u91cf\u7684\u5b57\u7b26\u4e32\u548c\u4e32\u53e3\u8bfb\u53d6\u7684\u5b57\u7b26\u4e32\u3002\u5982\u679c\u4e24\u8005\u76f8\u540c\uff0c\u5219\u4f1a\u5411\u7535\u673a\u53d1\u9001\u4e00\u4e2a\u6307\u4ee4\u6765\u89e6\u53d1SG90\u4f3a\u670d\u7535\u673a\u3002<\/span><\/p>\n<div id=\"attachment_5614\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5614\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image007.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image007.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image007-300x247.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image007-177x146.jpg 177w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image007-50x41.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image007-91x75.jpg 91w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5614\" \/><\/p>\n<p id=\"caption-attachment-5614\" class=\"wp-caption-text\">\u56fe3\uff1a\u8fde\u63a5\u5230\u7b2c1\u90e8\u5206\u88c5\u7f6e\u4e2d\u7684HC-05\u84dd\u7259\u6a21\u5757<\/p>\n<\/div>\n<p><b>\u6b65\u9aa43\uff1a\u8bbe\u8ba1\u5e94\u7528\u7a0b\u5e8f<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u6765\u521b\u5efa\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u5427\uff01\u548c\u4ee5\u524d\u4e00\u6837\uff0c\u6211\u4eec\u5c06\u4f7f\u7528<\/span><a href=\"https:\/\/appinventor.mit.edu\/explore\/ai2\/windows.html\"><span style=\"font-weight: 400;\">MIT App Inventor<\/span><\/a><span style=\"font-weight: 400;\">\u3002\u6211\u4eec\u7684\u6700\u7ec8\u76ee\u6807\u662f\u521b\u5efa\u4e00\u4e2a\u5bf9\u6240\u8fde\u63a5\u7684\u591a\u79cd\u8bbe\u5907\u8fdb\u884c\u96c6\u6210\u7684\u7ec4\u5408\u578b\u5e94\u7528\u7a0b\u5e8f\uff08\u4f8b\u5982\uff0c\u96c6\u6210\u4e86\u591a\u4e2a\u6240\u8fde\u63a5\u8bbe\u5907\u7684\u667a\u80fd\u5bb6\u5c45\u5e94\u7528\u7a0b\u5e8f\uff09\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u6709\u5173MIT App Inventor\u7684\u8bbe\u7f6e\u6307\u5357\uff0c\u8bf7\u53c2\u8003\u4e0a\u4e00\u6559\u7a0b<\/span><a href=\"\/knowledge\/tech-info\/how-tos\/arduino\/make-your-own-arduino-rfid-door-lock-part-2\"><b>\u5236\u4f5c\u60a8\u81ea\u5df1\u7684Arduino RFID\u95e8\u9501\u2014\u7b2c2\u90e8\u5206\uff1a\u7528\u667a\u80fd\u624b\u673a\u89e3\u9501 <\/b><\/a><span style=\"font-weight: 400;\">\uff08\u6b65\u9aa43\uff1a\u5e94\u7528\u7a0b\u5e8f\uff09\u3002\u672c\u6559\u7a0b\u5c06\u5206\u6b65\u6307\u5bfc\u60a8\u4f7f\u7528App Inventor\u521b\u5efa\u81ea\u5df1\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u6211\u4eec\u6240\u521b\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\u5c06\u4f1a\u5177\u6709\u4e00\u4e2a\u7b80\u5355\u7684\u754c\u9762\uff0c\u5176\u4e2d\u5305\u542b\u4ee5\u4e0b\u529f\u80fd\uff1a<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u8fde\u63a5\u5230\u84dd\u7259<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u4f7f\u60a8\u53ef\u4ee5\u8fdc\u7a0b\u5582\u98df\u5ba0\u7269<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u5b58\u50a8\uff1a\u5c06\u6570\u636e\uff08\u4ee5\u6587\u4ef6\u5f62\u5f0f\uff09\u5b58\u50a8\u5728\u624b\u673a\u4e2d<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u663e\u793a\u65e5\u671f\uff1a\u5728\u624b\u673a\u5c4f\u5e55\u4e0a\u663e\u793a\u65e5\u671f\u4fe1\u606f<\/span><\/li>\n<\/ul>\n<div id=\"attachment_5615\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5615\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image009.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image009.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image009-225x300.jpg 225w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image009-110x146.jpg 110w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image009-38x50.jpg 38w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image009-56x75.jpg 56w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5615\" \/><\/p>\n<p id=\"caption-attachment-5615\" class=\"wp-caption-text\">\u56fe4\uff1a\u5ba0\u7269\u5582\u98df\u5668\u5e94\u7528\u7a0b\u5e8f\u7684\u7b80\u5355\u7528\u6237\u754c\u9762<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u8be5\u7a0b\u5e8f\u7684\u6a21\u5757\u56fe\u975e\u5e38\u7b80\u5355\u6613\u61c2\uff1a<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>\u2022\u7b2c\u4e00\u4e2a\u6a21\u5757\uff1a<\/b><span style=\"font-weight: 400;\">\u7b2c\u4e00\u4e2a\u6a21\u5757\u7528\u4e8e\u84dd\u7259\u6309\u94ae<\/span>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 ListPicker \u2013 <\/span><i><span style=\"font-weight: 400;\">MIT App Inventor<br \/><\/span><\/i>\u5355\u51fb\u8be5\u6309\u94ae\uff0c\u5c06\u663e\u793a\u6587\u672c\u5217\u8868\u4f9b\u7528\u6237\u9009\u62e9\u3002\u53ef\u4ee5\u901a\u8fc7Designer\u6216Blocks Editor\u6765\u6307\u5b9a\u6587\u672c\u5185\u5bb9\uff0c\u65b9\u6cd5\u662f\u5c06ElementsFromString\u5c5e\u6027\u8bbe\u7f6e\u4e3a\u6587\u672c\u7684\u62c6\u5206\u5b57\u7b26\u4e32\u7ea7\u8054\uff08\u4f8b\u5982\uff0c\u9009\u62e91\uff0c\u9009\u62e92\uff0c\u9009\u62e93\uff09\u6216\u8005\u5c06Elements\u5c5e\u6027\u8bbe\u7f6e\u4e3a\u4e00\u4e2aBlocks editor\u4e2d\u7684\u5217\u8868\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 ListPicker \u663e\u793a\u6240\u6709\u53ef\u7528\u7684\u84dd\u7259\uff1b\u8be5\u529f\u80fd\u5728\u60a8\u9009\u62e9\u67d0\u4e00\u4e2a\u84dd\u7259\u524d\u6709\u6548\u3002<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div id=\"attachment_5616\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5616\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image011.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image011.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image011-300x31.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image011-260x27.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image011-50x5.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image011-150x16.jpg 150w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5616\" \/><\/p>\n<p id=\"caption-attachment-5616\" class=\"wp-caption-text\">\u56fe5\uff1a\u7b2c\u4e00\u4e2a\u6a21\u5757<\/p>\n<\/div>\n<ul>\n<li style=\"font-weight: 400;\"><b>\u2022 \u7b2c\u4e8c\u4e2a\u6a21\u5757\uff1a<\/b><span style=\"font-weight: 400;\">\u901a\u8fc7\u8c03\u7528<\/span><b><i>BluetoothClient1.Connect address<\/i><\/b><span style=\"font-weight: 400;\">\u73b0\u5e94\u7528\u7a0b\u5e8f\u4e0e\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u8fde\u63a5\u3002\u60a8\u624b\u673a\u4e2d\u7684\u84dd\u7259\u5c06\u641c\u7d22\u9644\u8fd1\u7684\u8bbe\u5907\uff0c\u5e76\u5c06\u5176\u663e\u793a\u5728ListPicker\u4e2d\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u8981\u914d\u5bf9\u7684\u8bbe\u5907\u3002<\/span><\/li>\n<\/ul>\n<div id=\"attachment_5617\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5617\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image013.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image013.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image013-300x61.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image013-260x52.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image013-50x10.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image013-150x30.jpg 150w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5617\" \/><\/p>\n<p id=\"caption-attachment-5617\" class=\"wp-caption-text\">\u56fe6\uff1a\u7b2c\u4e8c\u4e2a\u6a21\u5757<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u540c\u65f6\u8fd8\u6709\u4e00\u4e2a\u6807\u7b7e\uff0c\u5728\u5efa\u7acb\u8fde\u63a5\u540e\u6807\u7b7e\u4e0a\u4f1a\u663e\u793a\u76f8\u5173\u6d88\u606f\u3002\u5982\u679c\u8bbe\u5907\u5df2\u7ecf\u6210\u529f\u8fde\u63a5\uff0c\u60a8\u5c06\u5728\u5c4f\u5e55\u4e0a\u770b\u5230\u201c\u5df2\u8fde\u63a5\uff08Connected\uff09\u201d\u7684\u6d88\u606f\u3002<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>\u2022 \u7b2c\u4e09\u4e2a\u6a21\u5757\uff1a<\/b><span style=\"font-weight: 400;\">\u4ec5\u7528\u4e8e\u8fde\u63a5\u5b8c\u6210\u65f6\u901a\u8fc7\u5ba2\u6237\u7aef\u53d1\u9001\u4e00\u4e2a\u6d88\u606f\u3002\u8be5\u6587\u672c\u4ee5\u4e32\u884c\u901a\u4fe1\u7684\u65b9\u5f0f\uff0c\u901a\u8fc7\u84dd\u7259\u4ece\u4e00\u4e2a\u8bbe\u5907\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u8bbe\u5907\u3002\u8fd9\u5c31\u50cf\u5728Arduino\u7684\u4e32\u884c\u76d1\u89c6\u5668\u4e2d\u952e\u5165\u6587\u672c\u4e00\u6837\u3002<br \/>\u5f53\u6211\u4eec\u4ece\u4e32\u884c\u8bfb\u53d6\u6570\u636e\u65f6\uff0c\u5c31\u662f\u5728\u5bf9\u7528\u6237\u7684\u8f93\u5165\u4e0eArduino\u5185\u5b58\u4e2d\u5b58\u50a8\u7684\u5b57\u7b26\u4e32\u8fdb\u884c\u6bd4\u8f83\u3002\u8fd9\u5c31\u662f\u7b97\u6cd5\u7684\u5de5\u4f5c\u539f\u7406\u3002<\/span><\/li>\n<\/ul>\n<div id=\"attachment_5618\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5618\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image015.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image015.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image015-300x61.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image015-260x52.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image015-50x10.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image015-150x30.jpg 150w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5618\" \/><\/p>\n<p id=\"caption-attachment-5618\" class=\"wp-caption-text\">\u56fe7\uff1a\u7b2c\u4e09\u4e2a\u6a21\u5757<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u6211\u4eec\u63a5\u4e0b\u6765\u770b\u770b\u53e6\u4e00\u7ec4\u6a21\u5757\u56fe\uff1a<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>\u2022 \u7b2c\u4e00\u4e2a\u6a21\u5757\uff1a<\/b><span style=\"font-weight: 400;\">\u5c06\u84dd\u7259\u4f20\u8f93\u7684\u65e5\u671f\u4fdd\u5b58\u5230\u5b58\u50a8\u5728\u624b\u673a\u5185\u5b58\u91cc\u7684.txt\u6587\u4ef6\u4e2d\u3002<\/span><\/li>\n<\/ul>\n<div id=\"attachment_5619\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5619\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image017.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image017.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image017-300x47.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image017-260x40.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image017-50x8.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image017-150x23.jpg 150w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5619\" \/><\/p>\n<p id=\"caption-attachment-5619\" class=\"wp-caption-text\">\u56fe8\uff1a\u7b2c\u4e00\u4e2a\u6a21\u5757<\/p>\n<\/div>\n<ul>\n<li style=\"font-weight: 400;\"><b>\u2022 \u7b2c\u4e8c\u4e2a\u6a21\u5757\uff1a<\/b><span style=\"font-weight: 400;\">\u5f53\u6309\u4e0b\u6309\u94ae\u65f6\uff0c\u5c06\u4f1a\u8bfb\u53d6\u4fdd\u5b58\u5728\u6587\u672c\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u3002<\/span><\/li>\n<\/ul>\n<div id=\"attachment_5620\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5620\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image019.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image019.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image019-300x28.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image019-260x25.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image019-50x5.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image019-150x14.jpg 150w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5620\" \/><\/p>\n<p id=\"caption-attachment-5620\" class=\"wp-caption-text\">\u56fe9\uff1a\u7b2c\u4e8c\u4e2a\u6a21\u5757<\/p>\n<\/div>\n<ul>\n<li style=\"font-weight: 400;\"><b>\u2022 \u7b2c\u4e09\u4e2a\u6a21\u5757\uff1a<\/b><span style=\"font-weight: 400;\">\u5c06\u5582\u98df\u7684\u65f6\u95f4\u548c\u6807\u7b7e\u5199\u5165\u5c4f\u5e55\u3002\u8fd9\u4e2a\u4fe1\u606f\u5f88\u6709\u7528\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5bf9\u5582\u98df\u65f6\u95f4\u8fdb\u884c\u8bb0\u5f55\uff0c\u5982\u679c\u6211\u4eec\u4e0d\u60f3\u5bf9\u5ba0\u7269\u5582\u98df\u8fc7\u591a\uff0c\u53ef\u4ee5\u67e5\u770b\u65f6\u95f4\u6765\u786e\u8ba4\u3002<\/span><\/li>\n<\/ul>\n<div id=\"attachment_5621\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5621\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image021.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image021.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image021-300x28.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image021-260x24.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image021-50x5.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image021-150x14.jpg 150w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5621\" \/><\/p>\n<p id=\"caption-attachment-5621\" class=\"wp-caption-text\">\u56fe10\uff1a\u7b2c\u4e09\u4e2a\u6a21\u5757<\/p>\n<\/div>\n<ul>\n<li style=\"font-weight: 400;\"><b>\u2022 \u7b2c\u56db\u4e2a\u6a21\u5757\uff1a<\/b><span style=\"font-weight: 400;\">\u53d1\u751f\u9519\u8bef\u65f6\uff0c\u8be5\u6a21\u5757\u5c06\u5220\u9664.txt\u6587\u4ef6\u4e2d\u7684\u6240\u6709\u6570\u636e\u3002\u8fd9\u4e00\u529f\u80fd\u5f88\u91cd\u8981\uff0c\u56e0\u4e3a\u4e00\u65e6\u6267\u884c\uff0c\u5c06\u4e0d\u518d\u663e\u793a\u4ee5\u524d\u7684\u4fe1\u606f\u3002<\/span><\/li>\n<\/ul>\n<div id=\"attachment_5622\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5622\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image023.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image023.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image023-300x39.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image023-260x33.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image023-50x6.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image023-150x19.jpg 150w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5622\" \/><\/p>\n<p id=\"caption-attachment-5622\" class=\"wp-caption-text\">\u56fe11\uff1a\u7b2c\u56db\u4e2a\u6a21\u5757<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u8be5\u5e94\u7528\u7a0b\u5e8f\u7684\u7b2c\u4e8c\u90e8\u5206\u63d0\u4f9b\u4e86\u4e0d\u540c\u7684\u5582\u98df\u6a21\u5f0f\uff1a\u6b63\u5e38\u5582\u98df\u6a21\u5f0f\uff0c\u7528\u4e8e\u5ba0\u7269\u5b9d\u5b9d\u7684\u5582\u98df\u6a21\u5f0f\u548c\u7528\u4e8e\u6210\u5e74\u5ba0\u7269\u7684\u5582\u98df\u6a21\u5f0f\u3002\u8fd9\u4e5f\u4e3a\u60a8\u63d0\u4f9b\u4e86\u9700\u8981\u4e3a\u5ba0\u7269\u5582\u98df\u591a\u5c11\u98df\u7269\u91cf\u7684\u6709\u5173\u4fe1\u606f\u3002\u5176\u4e2d\u6700\u9177\u7684\u529f\u80fd\u4e4b\u4e00\u662f\u8bed\u97f3\u8bc6\u522b\u6a21\u5f0f\u3002\u6211\u4eec\u5c06\u5728\u4e0b\u6587\u4e2d\u8ba8\u8bba\u6709\u5173\u8be5\u529f\u80fd\u7684\u66f4\u591a\u5185\u5bb9\u3002<\/span><\/p>\n<div id=\"attachment_5623\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5623\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image025.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image025.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image025-225x300.jpg 225w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image025-110x146.jpg 110w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image025-38x50.jpg 38w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image025-56x75.jpg 56w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5623\" \/><\/p>\n<p id=\"caption-attachment-5623\" class=\"wp-caption-text\">\u56fe12\uff1a\u5e94\u7528\u7a0b\u5e8f\u4e0a\u663e\u793a\u7684\u975e\u6b63\u786e\u65f6\u95f4\u548c\u65e5\u671f<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u5982\u679c\u60f3\u8981\u67e5\u627e\u5582\u98df\u7684\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u53ef\u4ee5\u6309\u201c<\/span><b>\u663e\u793a\u65e5\u671f<\/b><span style=\"font-weight: 400;\">\u201d\u6309\u94ae\u3002\u8be5\u5e94\u7528\u7a0b\u5e8f\u662f\u4ee5\u7cbe\u7b80\u6a21\u5f0f\u5236\u4f5c\u7684\uff0c\u56e0\u4e3a\u5e76\u4e0d\u662f\u6bcf\u4e2a\u4eba\u90fd\u5e0c\u671b\u770b\u5230\u6240\u6709\u4fe1\u606f\u3002\u5982\u56fe\u6240\u793a\uff0c\u65e5\u671f\u548c\u65f6\u95f4\u663e\u793a\u4e0d\u6b63\u786e\u3002\u4e3a\u4e86\u83b7\u5f97\u786e\u5207\u7684\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528Arduino IDE\u4e2d\u7684<\/span><b>Set Time <\/b><span style=\"font-weight: 400;\">\u793a\u4f8b\u3002\u73b0\u5728\uff0cRTC\u6a21\u5757\u5c06\u6307\u793a\u6b63\u786e\u7684\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/span><\/p>\n<div id=\"attachment_5624\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5624\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image027.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image027.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image027-300x118.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image027-260x103.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image027-50x20.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image027-150x59.jpg 150w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5624\" \/><\/p>\n<p id=\"caption-attachment-5624\" class=\"wp-caption-text\">\u56fe13\uff1a\u5982\u4f55\u627e\u5230Arduino IDE\u4e2d\u7684SetTime<\/p>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>Set Time code:\r\n#include &lt;Wire.h&gt;\r\n#include &lt;TimeLib.h&gt;\r\n#include &lt;DS1307RTC.h&gt;\r\nconst char *monthName[12] = {\r\n \"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\",\r\n \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"\r\n};\r\ntmElements_t tm;\r\nvoid setup() {\r\n bool parse=false;\r\n bool config=false;\r\n \/\/ get the date and time the compiler was run\r\n if (getDate(__DATE__) &amp;&amp; getTime(__TIME__)) {\r\n   parse = true;\r\n   \/\/ and configure the RTC with this info\r\n   if (RTC.write(tm)) {\r\n     config = true;\r\n   }\r\n }\r\nSerial.begin(9600);\r\n while (!Serial) ; \/\/ wait for Arduino Serial Monitor\r\n delay(200);\r\n if (parse &amp;&amp; config) {\r\n   Serial.print(\"DS1307 configured Time=\");\r\n   Serial.print(__TIME__);\r\n   Serial.print(\", Date=\");\r\n   Serial.println(__DATE__);\r\n } else if (parse) {\r\n   Serial.println(\"DS1307 Communication Error :-{\");\r\n   Serial.println(\"Please check your circuitry\");\r\n } else {\r\n   Serial.print(\"Could not parse info from the compiler, Time=\\\"\");\r\n   Serial.print(__TIME__);\r\n   Serial.print(\"\\\", Date=\\\"\");\r\n   Serial.print(__DATE__);\r\n   Serial.println(\"\\\"\");\r\n }\r\n}\r\nvoid loop() {\r\n}\r\nbool getTime(const char *str)\r\n{\r\n int Hour, Min, Sec;\r\nif (sscanf(str, \"%d:%d:%d\", &amp;Hour, &amp;Min, &amp;Sec) != 3) return false;\r\n tm.Hour = Hour;\r\n tm.Minute = Min;\r\n tm.Second = Sec;\r\n return true;\r\n}\r\nbool getDate(const char *str)\r\n{\r\n char Month[12];\r\n int Day, Year;\r\n uint8_t monthIndex;\r\n if (sscanf(str, \"%s %d %d\", Month, &amp;Day, &amp;Year) != 3) return false;\r\n for (monthIndex = 0; monthIndex &lt; 12; monthIndex++) {\r\n   if (strcmp(Month, monthName[monthIndex]) == 0) break;\r\n }\r\nif (monthIndex &gt;= 12) return false;\r\n tm.Day = Day;\r\n tm.Month = monthIndex + 1;\r\n tm.Year = CalendarYrToTm(Year);\r\n return true;\r\n}\r\n<\/code><\/pre>\n<\/div>\n<\/p>\n<p><span style=\"font-weight: 400;\">\u56fe14\u663e\u793a\u4e86\u8be5\u5e94\u7528\u7a0b\u5e8f\u7684\u6700\u7ec8\u7248\u672c\uff1a<\/span><\/p>\n<div id=\"attachment_5625\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5625\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image029.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image029.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image029-225x300.jpg 225w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image029-110x146.jpg 110w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image029-38x50.jpg 38w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image029-56x75.jpg 56w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5625\" \/><\/p>\n<p id=\"caption-attachment-5625\" class=\"wp-caption-text\">\u56fe14\uff1a\u5e94\u7528\u7a0b\u5e8f\u7684\u6700\u7ec8\u7248\u672c<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u5e94\u7528\u7a0b\u5e8f\u6982\u8ff0\uff1a<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u9700\u8981\u8fde\u63a5\u5230\u84dd\u7259\u3002<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u6839\u636e\u5ba0\u7269\u7684\u5e74\u9f84\u91c7\u7528\u4e0d\u540c\u7684\u5582\u98df\u6a21\u5f0f\u3002<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u8981\u6fc0\u6d3b\u8bed\u97f3\u8bc6\u522b\u6a21\u5f0f\uff0c\u53ea\u9700\u5355\u51fb\u201c\u8bed\u97f3\u8bc6\u522b\u5582\u98df\u201d\u6309\u94ae\u5e76\u8bb2\u8bdd\u5373\u53ef\u3002<\/span>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u4ec5\u5f53\u6b63\u786e\u8bf4\u51fa\u6307\u4ee4\u65f6\uff0c\u5582\u98df\u5668\u624d\u80fd\u8fd0\u884c\u3002\u5982\u679c\u5173\u952e\u5b57\u4e0d\u6b63\u786e\uff08\u65e0\u6cd5\u6b63\u786e\u8bc6\u522b\uff09\uff0c\u5219\u53ea\u4f1a\u5728\u6807\u7b7e\u4e0a\u663e\u793a\u800c\u4e0d\u6267\u884c\u6307\u4ee4\u3002<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u5728\u8bed\u97f3\u8bc6\u522b\u7684\u6a21\u5f0f\u4e0b\uff0c\u5f53\u4e24\u6b21\u8bf4\u51fa\/\u91cd\u590d\u201c\u5582\u98df\u201d\u6307\u4ee4\uff08\u6bd4\u5982\u60a8\u6ca1\u6709\u7b49\u5f85\u51e0\u79d2\u949f\u7684\u65f6\u95f4\u8ba9\u7cfb\u7edf\u5bf9\u4fe1\u606f\u8fdb\u884c\u5904\u7406\uff09\u65f6\uff0c\u6307\u4ee4\u5c31\u4f1a\u53d8\u6210\u201c\u5582\u98df\u5582\u98df\u201d\uff0c\u8fd9\u4e0d\u662f\u6709\u6548\u7684\u6307\u4ee4\u3002\u5b83\u5c06\u4fdd\u7559\u5728\u6807\u7b7e\u4e0a\u800c\u4e0d\u6267\u884c\u3002<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u5982\u679c\u8bed\u97f3\u8bc6\u522b\u4e0a\u7684\u201c\u5582\u98df\u201d\u6307\u4ee4\u6b63\u5e38\u5de5\u4f5c\uff0c\u6807\u7b7e\u4e0a\u5c06\u4f1a\u6253\u5370\u51fa\u65f6\u95f4\u3002<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u2022 \u8fd8\u5305\u62ec\u4e00\u4e2a\u5582\u98df\u6307\u5357\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u5ba0\u7269\u7684\u4f53\u91cd\u67e5\u627e\u6709\u5173\u6240\u5e94\u63d0\u4f9b\u98df\u7269\u91cf\u7684\u4fe1\u606f\u3002<\/span><\/li>\n<\/ul>\n<div id=\"attachment_5626\" class=\"wp-caption alignnone\" style=\"width: 271px;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5626\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image031.jpg\" sizes=\"auto, (max-width: 261px) 100vw, 261px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image031.jpg 261w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image031-213x146.jpg 213w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image031-50x34.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image031-109x75.jpg 109w\" alt=\"automatic pet feeder\" width=\"261\" height=\"179\" aria-describedby=\"caption-attachment-5626\" \/><\/p>\n<p id=\"caption-attachment-5626\" class=\"wp-caption-text\">\u56fe15\uff1a\u5ba0\u7269\u5582\u98df\u6307\u5357\/ \u00a9Fish4Dogs<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u6240\u6709\u6307\u4ee4\u90fd\u53ef\u4ee5\u5728Arduino IDE\u7684\u4e32\u884c\u76d1\u89c6\u5668\u4e0a\u627e\u5230\u3002\u8fd9\u6709\u52a9\u4e8e\u6211\u4eec\u5728\u5fc5\u8981\u65f6\u5bf9\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u8c03\u8bd5\u3002<\/span><\/p>\n<div id=\"attachment_5627\" class=\"wp-caption alignnone\" style=\"width: 638px;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5627\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image033.jpg\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image033.jpg 628w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image033-300x171.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image033-257x146.jpg 257w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image033-50x28.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image033-132x75.jpg 132w\" alt=\"automatic pet feeder\" width=\"628\" height=\"357\" aria-describedby=\"caption-attachment-5627\" \/><\/p>\n<p id=\"caption-attachment-5627\" class=\"wp-caption-text\">\u56fe16\uff1a\u4e32\u884c\u76d1\u89c6\u5668\u4e2d\u663e\u793a\u7684\u5582\u98df\u6570\u636e<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u5bf9\u4e8e\u8bed\u97f3\u8bc6\u522b\uff0c\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u6309\u94ae\u6765\u6fc0\u6d3b\u8be5\u6a21\u5f0f\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528App Inventor\u4e2d\u5df2\u7ecf\u63d0\u4f9b\u7684<\/span><b>SpeechRecognizer<\/b><span style=\"font-weight: 400;\">\u7ec4\u4ef6\u3002<\/span><\/p>\n<\/p>\n<div id=\"attachment_5628\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5628\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image035.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image035.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image035-300x171.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image035-256x146.jpg 256w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image035-50x29.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image035-131x75.jpg 131w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5628\" \/><\/p>\n<p id=\"caption-attachment-5628\" class=\"wp-caption-text\">\u56fe17\uff1a\u5728MIT App Interventor\u4e0a\u6dfb\u52a0SpeechRecognizer\u7ec4\u4ef6<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u6709\u4e86\u8fd9\u4e24\u4e2a\u7ec4\u4ef6\u540e\uff0c\u5c06\u5b83\u4eec\u8fde\u63a5\u8d77\u6765\u975e\u5e38\u7b80\u5355\u3002\u60a8\u9700\u8981\u5904\u7406\u6765\u81ea\u8bb2\u8bdd\u8005\u7684\u6587\u672c\u3002\u8fd9\u662f\u901a\u8fc7\u8c03\u7528<\/span><b>SpeechRecognizer.GetText<\/b><span style=\"font-weight: 400;\">\u6765\u5b8c\u6210\u7684\u3002\u4e4b\u540e\uff0c\u60a8\u9700\u8981\u6709\u4e00\u4e2a\u6807\u7b7e\u6765\u663e\u793a\u6240\u8bf4\u7684\u5185\u5bb9\uff0c\u4e5f\u53ef\u4ee5\u6ca1\u6709\u8fd9\u4e2a\u6807\u7b7e\uff0c\u4f46\u662f\u5982\u679c\u6ca1\u6709\u6807\u7b7e\u60a8\u5c06\u65e0\u6cd5\u770b\u5230\u81ea\u5df1\u662f\u5426\u8bf4\u4e86\u6b63\u786e\u7684\u6307\u4ee4\u3002\u5728\u7a0b\u5e8f\u5faa\u73af\u4e2d\uff0c\u60a8\u8fd8\u9700\u8981\u901a\u8fc7\u84dd\u7259\u5c06\u8bed\u97f3\u6307\u4ee4\u4f20\u8f93\u5230Arduino\uff0c\u9700\u8981\u4f7f\u7528<\/span><b>SentText text<\/b><span style=\"font-weight: 400;\">\u7a0b\u5e8f\u3002 <\/span><\/p>\n<div id=\"attachment_5629\" class=\"wp-caption alignnone\" style=\"width: 432px;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5629\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image037.jpg\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image037.jpg 422w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image037-300x173.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image037-254x146.jpg 254w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image037-50x29.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image037-130x75.jpg 130w\" alt=\"automatic pet feeder\" width=\"422\" height=\"243\" aria-describedby=\"caption-attachment-5629\" \/><\/p>\n<p id=\"caption-attachment-5629\" class=\"wp-caption-text\">\u56fe18\uff1a\u8bed\u97f3\u8bc6\u522b\u6a21\u5757<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u5bf9\u4e8e\u6bcf\u79cd\u6a21\u5f0f\uff0c\u60a8\u90fd\u9700\u8981\u6709\u76f8\u5bf9\u5e94\u7684\u6309\u94ae\u3002\u6bcf\u4e2a\u6309\u94ae\u5bf9\u5e94\u4e0d\u540c\u7684\u6307\u4ee4\uff0c\u8be5\u6307\u4ee4\u5c06\u4f1a\u88ab\u53d1\u9001\u5230Arduino\uff0c\u7136\u540e\u636e\u6b64\u5582\u98df\u4e0d\u540c\u91cf\u7684\u98df\u7269\u3002<\/span><\/p>\n<div id=\"attachment_5630\" class=\"wp-caption alignnone\" style=\"width: 640px;\"><img decoding=\"async\" class=\"size-full wp-image-5630\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image039.jpg\" sizes=\"(max-width: 640px) 100vw, 640px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image039.jpg 640w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image039-300x52.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image039-260x45.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image039-50x9.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image039-150x26.jpg 150w\" alt=\"automatic pet feeder\" width=\"640\" aria-describedby=\"caption-attachment-5630\" \/><\/p>\n<p id=\"caption-attachment-5630\" class=\"wp-caption-text\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5631\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image041.jpg\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image041.jpg 501w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image041-300x92.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image041-260x79.jpg 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image041-50x15.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/03\/image041-150x46.jpg 150w\" alt=\"image041\" width=\"501\" height=\"153\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe19\uff1a\u5ba0\u7269\u5b9d\u5b9d\u6a21\u5f0f\uff0c\u6b63\u5e38\u5582\u98df\u6a21\u5f0f\u548c\u6210\u5e74\u5ba0\u7269\u6a21\u5f0f\u6a21\u5757<\/p>\n<\/div>\n<p><a style=\"font-size: 20px;\" href=\"\/knowledge\/deviceplus\/how-tos\/arduino\/make-a-smart-automatic-pet-feeder-with-arduino-uno\"><strong>\u70b9\u51fb\u6b64\u5904\u9605\u8bfb\u672c\u6587\u7684\u7b2c1\u90e8\u5206 &gt;<\/strong><\/a><\/p>\n<div class=\"author-box-wrapper\">\n<div class=\"avatar-wrapper\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2017\/05\/Tiberia-Todeila_avatar_1496261149-64x64.jpg\" alt=\"Tiberia Todeila\" width=\"64\" height=\"64\" \/><\/div>\n<div class=\"desc-wrapper\">\n<h5>Tiberia Todeila<\/h5>\n<div class=\"desc\">\n<p>Tiberia\u76ee\u524d\u662f\u5e03\u52a0\u52d2\u65af\u7279\u7406\u5de5\u5927\u5b66\u7535\u6c14\u5de5\u7a0b\u5b66\u9662\u7684\u5927\u56db\u5b66\u751f\u3002\u5979\u975e\u5e38\u70ed\u8877\u4e8e\u667a\u80fd\u5bb6\u5c45\u8bbe\u5907\u7684\u8bbe\u8ba1\u548c\u5f00\u53d1\uff0c\u65e8\u5728\u8ba9\u6211\u4eec\u7684\u65e5\u5e38\u751f\u6d3b\u66f4\u52a0\u8f7b\u677e\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 \u70b9\u51fb\u6b64\u5904\u9605\u8bfb\u672c\u6587\u7b2c1\u90e8\u5206 &gt; \u5728\u667a\u80fd\u5ba0\u7269\u5582\u98df\u673a\u7684\u7b2c1\u90e8\u5206\u201c\u4f7f\u7528Arduino Uno\u5236\u4f5c\u667a\u80fd\u81ea\u52a8\u5ba0\u7269\u5582\u98df\u673a\u201d\u4e2d\uff0c\u6211\u4eec\u5efa\u7acb\u4e86\u4e00\u4e2a\u81ea\u52a8\u5316\u5e73\u53f0\uff0c\u53ef\u4ee5\u5224\u65ad\u60a8\u7684\u5ba0 [&hellip;]","protected":false},"author":3,"featured_media":16160,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1130],"tags":[],"class_list":["post-8791","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\/8791","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=8791"}],"version-history":[{"count":44,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/8791\/revisions"}],"predecessor-version":[{"id":16944,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/8791\/revisions\/16944"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media\/16160"}],"wp:attachment":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media?parent=8791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/categories?post=8791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/tags?post=8791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}