{"id":23849,"date":"2023-08-17T00:00:41","date_gmt":"2023-08-16T16:00:41","guid":{"rendered":"https:\/\/techclass.wfjydl.com\/?p=23849"},"modified":"2026-05-18T11:43:38","modified_gmt":"2026-05-18T03:43:38","slug":"%e7%94%a8spresense%e6%89%a9%e5%a4%a7%e7%94%b5%e5%ad%90%e5%88%b6%e4%bd%9c%e7%9a%84%e5%b9%bf%e5%ba%a6%ef%bc%81%e3%80%90%e7%ac%ac5%e7%af%87%e3%80%91","status":"publish","type":"post","link":"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/hobby\/spresense-05","title":{"rendered":"\u7528Spresense\u6269\u5927\u7535\u5b50\u5236\u4f5c\u7684\u5e7f\u5ea6\uff01\u3010\u7b2c5\u7bc7\u3011"},"content":{"rendered":"<h3>\u4f7f\u7528Spresense\u76f8\u673a\u677f\u5236\u4f5c\u6570\u7801\u76f8\u673a\uff01<\/h3>\n<p>&nbsp;<\/p>\n<p>\u7b2c1\u7bc7\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/hobby\/spresense-01\/\">\u4ec0\u4e48\u662fSpresense\uff1f<\/a><br \/>\n\u7b2c2\u7bc7\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/hobby\/spresense-02\/\">\u4f7f\u7528Spresense\u5236\u4f5c\u9ad8\u5206\u8fa8\u7387\u97f3\u4e50\u64ad\u653e\u5668\uff01<\/a><br \/>\n\u7b2c3\u7bc7\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/hobby\/spresense-03\/\">\u4f7f\u7528极悦娱乐\u9644\u52a0\u677f\uff0c\u901a\u8fc7Spresense\u8f7b\u677e\u5b9e\u73b0\u4f20\u611f\u5668\u68c0\u6d4b\uff01<\/a><br \/>\n\u7b2c4\u7bc7\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/hobby\/spresense-04\/\">\u4f7f\u7528极悦娱乐\u7684BLE\u9644\u52a0\u677f\uff0c\u901a\u8fc7\u667a\u80fd\u624b\u673a\u73a9\u8f6c\u9ad8\u5206\u8fa8\u7387\u97f3\u4e50\u64ad\u653e\u5668\uff01<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u5409\u7530\uff01<br \/>\n\u8fd9\u662f\u4f7f\u7528\u7d22\u5c3c\u63a8\u51fa\u7684Spresense\u8fdb\u884c\u7535\u5b50\u5236\u4f5c\u7684\u7b2c5\u7bc7\uff0c\u8fd9\u6b21\u6211\u5c06\u4f7f\u7528\u76f8\u673a\u677f\uff0c\u5236\u4f5c\u4e00\u53f0\u5c0f\u578b\u6570\u7801\u76f8\u673a\u3002\u53e6\u5916\uff0c\u5728\u672c\u7bc7\u4e2d\uff0c\u6211\u8fd8\u5c06\u5206\u4eab\u591a\u4e2a\u9644\u52a0\u677f\u548cSpresense\u5e94\u7528\u7bc7\u76f8\u5173\u7684\u4f5c\u54c1\u793a\u4f8b\u54e6\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30064 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/001-1.png\" alt=\"1\" width=\"700\" height=\"441\" \/><\/p>\n<div class=\"box-red-01\">\n<h4>\u672c\u9879\u76ee\u6240\u9700\u90e8\u4ef6<\/h4>\n<p><a href=\"https:\/\/developer.sony.com\/ja\/develop\/spresense\/buy-now\" target=\"_blank\" rel=\"noopener\"><strong>\u30fbSONY Spresense \u4e3b\u677f<\/strong><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30065 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/002-1.png\" alt=\"Spresense\" width=\"300\" height=\"300\" \/><\/p>\n<p><a href=\"https:\/\/developer.sony.com\/ja\/develop\/spresense\/buy-now\" target=\"_blank\" rel=\"noopener\"><strong>\u30fbSONY Spresense \u6269\u5c55\u677f<\/strong><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30066 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/003-1.png\" alt=\"Extension\" width=\"300\" height=\"300\" \/><\/p>\n<p><a href=\"https:\/\/developer.sony.com\/ja\/develop\/spresense\/buy-now\" target=\"_blank\" rel=\"noopener\"><strong>\u30fbSpresense \u4e13\u7528\u76f8\u673a\u677f<\/strong><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30067 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/004.png\" alt=\"11\" width=\"300\" height=\"300\" \/><\/p>\n<p><a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gP-13870\/\" target=\"_blank\" rel=\"noopener\"><br \/>\n<strong>\u30fb\u5e26LED\u7684\u5fae\u52a8\u5f00\u5173<\/strong><\/a><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30068 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/005-1.png\" alt=\"tact\" width=\"283\" height=\"212\" \/><\/p>\n<p><a href=\"https:\/\/www.sengoku.co.jp\/mod\/sgk_cart\/detail.php?code=EEHD-4YZM\" target=\"_blank\" rel=\"noopener\"><strong>\u30fb\u5c0f\u578b\u9502\u805a\u5408\u7269\u7535\u6c60<\/strong><\/a>\uff08860mAh\uff09<br \/>\n\uff08\u203b\u6ce8\u610f\uff1a\u8bf7\u5c0f\u5fc3\u5904\u7406\uff0c\u4f7f\u7528\u98ce\u9669\u81ea\u8d1f\uff09<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30069 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/006-1.png\" alt=\"battely\" width=\"260\" height=\"193\" \/><\/p>\n<p><strong>\u30fbMicro USB \u6570\u636e\u7ebf<\/strong><br \/>\n<strong>\u30fbMicro SD \u5361<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h4>\u672c\u9879\u76ee\u7684\u6d41\u7a0b<\/h4>\n<p><strong>1.Spresense \u76f8\u673a\u677f\u76f8\u5173\u4ecb\u7ecd<\/strong><br \/>\n<strong>2.\u589e\u52a0\u53ef\u64cd\u4f5c\u6309\u94ae<\/strong><br \/>\n<strong>3.\u5236\u4f5c\u5c0f\u578b\u6570\u7801\u76f8\u673a<\/strong><br \/>\n<strong>4.\u603b\u7ed3\uff08\u542b\u4f7f\u7528GPS\u548cAI\u7b49\u529f\u80fd\u7684\u5e94\u7528\u521b\u610f\uff01\uff09<\/strong><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>1.Spresense\u76f8\u673a\u677f\u76f8\u5173\u4ecb\u7ecd<\/h2>\n<p>\u7d22\u5c3c\u63a8\u51fa\u7684\u76f8\u673a\u677f\u662f\u4e00\u6b3e\u5c0f\u578b\u6444\u50cf\u5934\uff0c\u5b83\u53ef\u4ee5\u8fde\u63a5Spresense\u4e3b\u677f\uff0c\u5206\u8fa8\u7387\u4e3a5.1\u5146\u50cf\u7d20\u3002\u5b83\u662f\u4e00\u6b3eSpresense\u4e13\u7528\u7684\u4ea7\u54c1\uff0c\u5185\u7f6eJPEG\u7f16\u7801\u5668\uff0c\u6240\u4ee5\u53ef\u4ee5\u76f4\u63a5\u62cd\u6444JPEG\u56fe\u50cf\u3002<\/p>\n<div id=\"attachment_23195\" class=\"wp-caption aligncenter\" style=\"width: 624px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30070\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/007-1.png\" alt=\"Camera Module\" width=\"614\" height=\"362\" \/><\/p>\n<p id=\"caption-attachment-23195\" class=\"wp-caption-text\">[\u7d22\u5c3c \u76f8\u673a\u677f\u76f8\u5173\u4ecb\u7ecd\u3000\u6458\u81ea<a href=\"https:\/\/developer.sony.com\/ja\/develop\/spresense\/developer-tools\/introduction\/\" target=\"_blank\" rel=\"noopener\">Spresense\u5b98\u65b9\u7f51\u7ad9<\/a>]\n<\/div>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u5c06\u8be5\u6444\u50cf\u5934\u548c\u4e3b\u677f\u8fdb\u884c\u8fde\u63a5\u3002\u5148\u5c06\u4e13\u7528\u7684\u6444\u50cf\u5934\u8fde\u63a5\u7ebf\u63d2\u5230\u4e3b\u677f\u4e0a\uff0c\u6df1\u5ea6\u65b9\u9762\u8981\u786e\u4fdd\u8fde\u63a5\u7ebf\u7684\u94f6\u8272\u5f15\u811a\u5230\u8fbe\u4e3b\u677f\u7684\u4e0b\u65b9\uff08\u53c2\u7167\u4e0b\u56fe\uff09\uff0c\u518d\u8fde\u63a5\u63d2\u6709SD\u5361\u7684\u6269\u5c55\u677f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30071 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/008-1.png\" alt=\"2\" width=\"700\" height=\"412\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c31\u8981\u4f53\u9a8c\u4e00\u4e0b\u62cd\u7167\u529f\u80fd\u4e86\u3002\u5148\u5c06\u4e3b\u677f\u548c\u7535\u8111\u8fdb\u884c\u8fde\u63a5\uff0c\u7136\u540e\u542f\u52a8Arduino IDE\u3002\u5982\u4e0b\u8ff0\u622a\u56fe\u6240\u793a\uff0c\u5728Arduino IDE\u754c\u9762\uff0c\u9009\u62e9\u6587\u4ef6 \uff1e Sketch\u793a\u4f8b \uff1e Spresense\u7684Sketch\u793a\u4f8b\uff0c\u6253\u5f00camera\u7a0b\u5e8f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30072 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/009-1.png\" alt=\"3\" width=\"939\" height=\"589\" \/><\/p>\n<p>\u518d\u5c06\u8be5Sketch\u76f4\u63a5\u52a0\u8f7d\u5230Spresense\u5185\uff0c\u8fd0\u884c\u8d77\u6765\u4f1a\u662f\u4ec0\u4e48\u6548\u679c\u5462\uff1f\u6253\u5f00\u4e32\u53e3\u76d1\u89c6\u5668\uff0c\u5c31\u53ef\u4ee5\u53d1\u73b0\u6bcf\u9694\u5341\u79d2\u5c31\u4f1a\u8fdb\u884c\u4e00\u6b21\u7167\u7247\u62cd\u6444\u3002\u56fe\u50cf\u6587\u4ef6\u5219\u662f\u4ee5\u201cPICT00x.JPG\u201d\u8fd9\u6837\u7684\u547d\u540d\uff0c\u4f9d\u6b21\u4fdd\u5b58\u5728SD\u9a71\u52a8\u5668\u4e0b\u9762\u3002\u5982\u6b64\uff0c\u5c31\u53ef\u4ee5\u975e\u5e38\u8f7b\u677e\u5730\u62cd\u51fa\u9ad8\u753b\u8d28\u7684\u7167\u7247\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-30073 size-full\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/010-1.png\" alt=\"b\" width=\"450\" height=\"339\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>2.\u589e\u52a0\u53ef\u64cd\u4f5c\u6309\u94ae<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u4e3a\u4e86\u64cd\u4f5cLED\u548c\u6444\u50cf\u5934\u7b49\u90e8\u4ef6\uff0c\u6211\u4eec\u9700\u8981\u7ed9Spresense\u52a0\u88c5\u4e00\u4e2a\u6309\u94ae\u3002\u6269\u5c55\u677f\u4e0a\u7528\u4e8e\u8fde\u63a5\u6309\u94ae\u7b49\u786c\u4ef6\u7684\u5f15\u811a\u5206\u914d\u89c1\u4e0b\u56fe\u3002<\/p>\n<div id=\"attachment_23195\" class=\"wp-caption aligncenter\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30074\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/011-1.png\" alt=\"c\" width=\"939\" height=\"470\" \/><\/p>\n<p id=\"caption-attachment-23195\" class=\"wp-caption-text\">[\u6269\u5c55\u677f\u7684\u5f15\u811a\u5206\u914d\u3000\u6458\u81ea<a href=\"https:\/\/developer.sony.com\/ja\/develop\/spresense\/developer-tools\/introduction\/\" target=\"_blank\" rel=\"noopener\">Spresense\u5b98\u65b9\u7f51\u7ad9<\/a>]\n<\/div>\n<p>\u5f15\u811a\u5206\u914d\u56fe\u4e2d\u7684D00\u301c15 Arduino compatible Pin\u90e8\u5206\uff0c\u53ef\u4ee5\u76f4\u63a5\u8fdb\u884cDigital Input\u548cOutput\uff08\u6570\u5b57\u8f93\u5165\u548c\u8f93\u51fa\uff09\u3002<br \/>\n\u6211\u4eec\u53c2\u7167\u5f15\u811a\u5206\u914d\u56fe\uff0c\u5c06\u5e26LED\u7684\u5fae\u52a8\u5f00\u5173\u8fde\u63a5\u5230Spresense\u6269\u5c55\u677f\u4e0a\u3002\u5148\u5c06\u5fae\u52a8\u5f00\u5173\u7684\u6309\u94ae\u4fa7\u5f15\u811a\uff08\u4f4d\u4e8e\u56db\u4e2a\u8fb9\u89d2\u90e8\u4f4d\u7684\u5bfc\u7ebf\uff09\u7684\u4e24\u7aef\u5206\u522b\u8fde\u63a5GND\u548cD13\u3002\u5c06LED\u7684\u9633\u6781\u5f15\u811a\uff08\u6b63\u4e2d\u95f4\u8f83\u957f\u7684\u5bfc\u7ebf\uff09\u8fde\u63a5D12\uff0c\u8f83\u77ed\u7684\u5f15\u811a\u8fde\u63a5GND\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30075 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/012-1.png\" alt=\"d\" width=\"847\" height=\"380\" \/><\/p>\n<p>\u8fde\u63a5\u5b8c\u6210\u4e4b\u540e\uff0c\u6211\u4eec\u6765\u6d4b\u8bd5\u4e00\u4e0b\u6309\u94ae\u80fd\u5426\u6b63\u5e38\u54cd\u5e94\u3002\u5982\u4e0b\u6240\u793a\uff0c\u5148\u5236\u4f5c\u76f8\u5e94\u7684Sketch\uff0c\u8ba9Spresense\u7684\u7eff\u8272LED0\u548c\u5f00\u5173\u7684LED\u53d1\u5149\uff0c\u4ee5\u6b64\u6765\u8fdb\u884c\u52a8\u4f5c\u786e\u8ba4\u3002<\/p>\n<pre class=\"crayon-plain-tag\">const int buttonPin = 13; \/\/ the number of the pushbutton pin \r\n const int ledPin = 12; \/\/ the number of the led pin \r\n   void setup() \r\n { \r\n \/\/ initialize the pushbutton pin as an input: \r\n pinMode(buttonPin, INPUT_PULLUP);  \r\n \/\/ initialize the LED pin as an output: \r\n pinMode(LED0, OUTPUT); \r\n pinMode(ledPin, OUTPUT); \r\n digitalWrite(ledPin, LOW);  \r\n } \r\n   void loop() \r\n { \r\n int buttonState = digitalRead(buttonPin); \r\n if (buttonState == LOW) { \r\n digitalWrite(LED0, HIGH); \r\n digitalWrite(ledPin, HIGH); \r\n } else { \r\n digitalWrite(LED0, LOW); \r\n digitalWrite(ledPin, LOW);  \r\n } \r\n } \r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5c06Sketch\u52a0\u8f7d\u81f3Spresense\uff0c\u7136\u540e\u8fdb\u884c\u6d4b\u8bd5\u3002<br \/>\n\u6309\u4e0b\u6309\u94ae\u4e4b\u540e\uff0cSpresense\u7684LED\uff08\u7eff\u8272\uff09\u548c\u5fae\u52a8\u5f00\u5173\uff08\u7ea2\u8272\uff09\u4eae\u8d77\u6765\u4e86\uff0c\u770b\u6765\u7528\u8fd9\u4e2a\u6309\u94ae\u8fdb\u4e00\u6b65\u64cd\u4f5c\u8fde\u63a5\u5728Spresense\u4e0a\u7684\u4f20\u611f\u5668\u548c\u6444\u50cf\u5934\uff0c\u5e94\u8be5\u4e5f\u4e0d\u5b58\u5728\u95ee\u9898\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30076 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/013-1.png\" alt=\"e\" width=\"550\" height=\"412\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>3.\u5236\u4f5c\u5c0f\u578b\u6570\u7801\u76f8\u673a<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c31\u8981\u5c06\u5b83\u5236\u4f5c\u6210\u4e00\u6309\u6309\u94ae\u5c31\u80fd\u62cd\u7167\u7684\u6570\u7801\u76f8\u673a\u4e86\u3002\u5148\u5c06\u6444\u50cf\u5934\u3001\u5c0f\u578b\u9502\u805a\u5408\u7269\u7535\u6c60\u5b89\u88c5\u5230\u4e3b\u677f\u4e0a\uff0c\u518d\u5c06\u5fae\u52a8\u5f00\u5173\u5b89\u88c5\u81f3\u6269\u5c55\u677f\u4e0a\uff0c\u5c06\u4e24\u8005\u5408\u4e8c\u4e3a\u4e00\u3002<br \/>\n\u7136\u540e\uff0c\u6211\u4eec\u8fd8\u662f\u91c7\u7528\u8001\u529e\u6cd5\uff0c\u4f7f\u7528Spresense\u7684\u7a7a\u5305\u88c5\u76d2\uff0c\u5236\u4f5c\u4e00\u4e2a\u548c\u8fd9\u4e2a\u5c0f\u5bb6\u4f19\u5f62\u72b6\u5b8c\u5168\u5339\u914d\u7684\u5916\u58f3\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30077 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/014-1.png\" alt=\"f\" width=\"700\" height=\"338\" \/><\/p>\n<p>\u5148\u5728\u5305\u88c5\u76d2\u4e0a\u638f\u4e00\u4e2a\u53ef\u4ee5\u9732\u51fa\u6444\u50cf\u5934\u7684\u5b54\uff08\u7167\u7247\u4e2d\u7684S\u7684\u6b63\u4e2d\u95f4\uff09\uff0c\u5f00\u4e00\u4e2a\u6309\u94ae\u5b54\uff0c\u518d\u628a\u8fd9\u4e2a\u5c0f\u5bb6\u4f19\u653e\u8fdb\u53bb\uff0c\u4e00\u53f0\u5c0f\u578b\u6570\u7801\u76f8\u673a\u5c31\u6b64\u8bde\u751f\u4e86\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30078 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/015-1.png\" alt=\"g\" width=\"700\" height=\"416\" \/><\/p>\n<p>\u6700\u540e\uff0c\u4e3a\u4e86\u786e\u4fdd\u5728\u6309\u4e0b\u5f00\u5173\u4e4b\u540e\u5c31\u53ef\u4ee5\u8fdb\u884c\u62cd\u7167\uff0c\u4e14\u7167\u7247\u4fdd\u5b58\u5230SD\u5361\u5185\uff0c\u8fd8\u9700\u8981\u5bf9\u4e00\u5f00\u59cb\u7528\u5230\u7684\u793a\u4f8bSketch\u201ccamera.ino\u201d\u8fdb\u884c\u6539\u826f\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u6dfb\u52a0\u9ec4\u8272\u90e8\u5206\u5185\u5bb9\uff0c\u518d\u5c06\u5176\u53e6\u5b58\u4e3a\u201csp_camera.ino\u201d\u3002<\/p>\n[sp_camera.ino\u30b9\u30b1\u30c3\u30c1\uff08\u5728camera Sketch\u5185\u6dfb\u52a0\u9ec4\u8272\u90e8\u5206\u7684\u5185\u5bb9\uff09]\n<pre class=\"crayon-plain-tag\">SDClass theSD; \r\n int take_picture_count = 0; \r\n   const int buttonPin = 13; \/\/ the number of the pushbutton pin \r\n const int ledPin = 12; \/\/ the number of the led pin \r\n \u2026 \r\n   void setup() \r\n { \r\n pinMode(buttonPin, INPUT_PULLUP); \/\/ initialize the pushbutton pin as an input: \r\n pinMode(LED0, OUTPUT); \/\/ initialize the LED pin as an output: \r\n pinMode(ledPin, OUTPUT); \/\/ initialize the LED pin as an output: \r\n digitalWrite(ledPin, LOW); \r\n \u2026 \r\n   void loop() \r\n { \r\n sleep(1);  \r\n   int buttonState = digitalRead(buttonPin); \r\n \/\/ check if the pushbutton is pressed. (buttonState is LOW as it\u2019s PULLUP) \r\n if (buttonState == LOW) { \r\n Serial.println(\"Go!\"); \r\n digitalWrite(LED0, HIGH); \r\n digitalWrite(ledPin, HIGH); \r\n if (take_picture_count &lt; 100) \r\n { \r\n \u2026 \r\n } \r\n } else { \r\n \/\/ turn LED off: \r\n Serial.println(\"Waiting for Pushing Button\"); \r\n digitalWrite(LED0, LOW); \r\n digitalWrite(ledPin, LOW); \r\n } \r\n } \r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u8fd0\u884csp_camera Sketch\u4e4b\u540e\uff0c\u5219\u6bcf\u6b21\u6309\u4e0b\u6309\u94ae\uff08D13\uff09\uff0c\u6309\u94ae\u90e8\u4f4d\u5c31\u4f1a\u4eae\u8d77\u7ea2\u8272\u706f\u5149\uff0c\u540c\u65f6\u62cd\u4e0b\u4e00\u5f20\u7167\u7247\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30079 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/016-1.png\" alt=\"h\" width=\"939\" height=\"508\" \/><\/p>\n<p>\u600e\u4e48\u6837\u554a\uff1f\u4e00\u90e8\u53ef\u4ee5\u5b8c\u5168\u653e\u5728\u624b\u638c\u91cc\u9762\u7684\u5c0f\u578b\u6570\u7801\u76f8\u673a\u5c31\u5236\u4f5c\u5b8c\u6210\u4e86\u3002\u5f3a\u70c8\u5efa\u8bae\u60a8\u628a\u5b83\u5e26\u5230\u6237\u5916\u53bb\uff0c\u5c3d\u60c5\u5730\u62cd\u7167\u54e6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30080 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/017-1.png\" alt=\"i\" width=\"700\" height=\"321\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>4.\u603b\u7ed3\uff08\u542b\u4f7f\u7528GPS\u548cAI\u7b49\u529f\u80fd\u7684\u5e94\u7528\u521b\u610f\uff01\uff09<\/h2>\n<p>\u5728\u672c\u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u7528\u5230\u4e86\u7d22\u5c3c\u63a8\u51fa\u7684\u6807\u51c6\u76f8\u673a\u677f\uff0c\u518d\u642d\u914d\u4f7f\u7528\u6269\u5c55\u677f\uff0c\u5c31\u6210\u529f\u5236\u4f5c\u51fa\u4e00\u53f0\u5c0f\u578b\u6570\u7801\u76f8\u673a\u3002<\/p>\n<p>\u7d22\u5c3c\u63a8\u51fa\u7684Spresense\u8fd8\u6709\u5f88\u591a\u529f\u80fd\u548c\u5e94\u7528\uff0c\u8fd8\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u521b\u610f\u5236\u4f5c\u51fa\u5404\u79cd\u5404\u6837\u7684\u7535\u5b50\u4f5c\u54c1\u3002Spresense\u7684\u4e3b\u677f\u8fd8\u6807\u914d\u4e86GPS\u5929\u7ebf\uff0c\u518d\u642d\u914d\u4f7f\u7528\u672c\u9879\u76ee\u4e2d\u7684\u6444\u50cf\u5934\uff0c\u8fd8\u53ef\u4ee5\u663e\u793a\u62cd\u7167\u5730\u70b9\u7684GPS\u4fe1\u606f\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u7d22\u5c3c\u8fd8\u63d0\u4f9b\u4e86AI\u5e73\u53f0\u2014\u2014<a href=\"https:\/\/dl.sony.com\/\" target=\"_blank\" rel=\"noopener\">Sony Neural Network Console<\/a>\u3002\u767b\u9646\u8be5\u5e73\u53f0\u4e4b\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u56fe\u50cf\u8fdb\u884c\u673a\u5668\u5b66\u4e60\u7b49\u5404\u79cd\u5e94\u7528\u4f53\u9a8c\u3002\u8fd8\u53ef\u4ee5\u5c06\u5728\u8be5\u5e73\u53f0\u4e0a\u642d\u5efa\u7684\u673a\u5668\u5b66\u4e60\u6a21\u578b\u4fdd\u5b58\u81f3SD\u5361\uff0c\u901a\u8fc7\u8bfb\u53d6\u5c31\u53ef\u4ee5\u4f7f\u7528Spresense\u7684\u6444\u50cf\u5934\u8fdb\u884c\u56fe\u50cf\u89e3\u6790\u4e86\u3002<\/p>\n<div id=\"attachment_23195\" class=\"wp-caption aligncenter\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30081\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/018-1.png\" alt=\"\u4e5f\u53ef\u4ee5\u8fdb\u884c\u624b\u5f62\uff08\u731c\u62f3\uff09\u7684\u56fe\u50cf\u89e3\u6790\" width=\"700\" height=\"537\" \/><\/p>\n<p id=\"caption-attachment-23195\" class=\"wp-caption-text\">[\u4e5f\u53ef\u4ee5\u8fdb\u884c\u624b\u5f62\uff08\u731c\u62f3\uff09\u7684\u56fe\u50cf\u89e3\u6790]\n<\/div>\n<p>\u600e\u4e48\u6837\uff1f\u901a\u8fc7\u8fd9\u4e9b\u4f7f\u7528\u7d22\u5c3cSpresense\u5236\u4f5c\u7684\u9879\u76ee\uff0c\u662f\u5426\u80fd\u611f\u89c9\u5230\u7535\u5b50\u5236\u4f5c\u7684\u5e7f\u5ea6\u5728\u4e0d\u65ad\u6269\u5927\u5462\uff1f<br \/>\n\u6700\u540e\uff0c\u9f13\u52b1\u5404\u4f4d\u8bfb\u8005\u670b\u53cb\u4eca\u540e\u4e5f\u4e00\u5b9a\u8981\u5145\u5206\u5229\u7528Spresense\uff0c\u4e0d\u65ad\u5236\u4f5c\u51fa\u5404\u79cd\u6709\u8da3\u7684\u7535\u5b50\u4f5c\u54c1\uff0c\u52a0\u6cb9\uff01<\/p>\n<p>(\u5409\u7530)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-size: 14pt;\">\u672c\u7cfb\u5217\u8fde\u8f7d\u7684\u5185\u5bb9<\/span><\/strong><\/p>\n<p>\u7b2c1\u7bc7\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/hobby\/spresense-01\/\">\u4ec0\u4e48\u662fSpresense\uff1f<\/a><br \/>\n\u7b2c2\u7bc7\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/hobby\/spresense-02\/\">\u4f7f\u7528Spresense\u5236\u4f5c\u9ad8\u5206\u8fa8\u7387\u97f3\u4e50\u64ad\u653e\u5668\uff01<\/a><br \/>\n\u7b2c3\u7bc7\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/hobby\/spresense-03\/\">\u4f7f\u7528极悦娱乐\u9644\u52a0\u677f\uff0c\u901a\u8fc7Spresense\u8f7b\u677e\u5b9e\u73b0\u4f20\u611f\u5668\u68c0\u6d4b\uff01<\/a><br \/>\n\u7b2c4\u7bc7\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/hobby\/spresense-04\/\">\u4f7f\u7528极悦娱乐\u7684BLE\u9644\u52a0\u677f\uff0c\u901a\u8fc7\u667a\u80fd\u624b\u673a\u73a9\u8f6c\u9ad8\u5206\u8fa8\u7387\u97f3\u4e50\u64ad\u653e\u5668\uff01<\/a><br \/>\n\u7b2c5\u7bc7\uff1a\u4f7f\u7528Spresense\u76f8\u673a\u677f\u5236\u4f5c\u6570\u7801\u76f8\u673a\uff01\uff08\u672c\u6587\uff09<\/p>\n<div class=\"author-box-wrapper\">\n<div class=\"avatar-wrapper\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30047\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2023\/08\/Yoshiken.png\" alt=\"\" width=\"83\" height=\"90\" \/><\/div>\n<div class=\"desc-wrapper\">\n<h5>\u5409\u7530\u3000\u663e\u4e00\uff08Yoshiken\uff09<\/h5>\n<div class=\"desc\">\n<p>\u5728\u666e\u901a\u516c\u53f8\u5de5\u4f5c\u7684\u4e0a\u73ed\u65cf\uff0c\u975e\u5e38\u559c\u6b22\u521b\u4f5c\u7684\u5468\u672b\u521b\u5ba2\uff0c\u51fa\u7248\u4e86\u7535\u5b50\u4e66MESHBOOK\uff0c\u5e73\u65f6\u4e5f\u5199\u5199\u535a\u5ba2\u3002<br \/>\nhttp:\/\/blog.ktrips.net<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Spresense\u76f8\u673a\u677f\u5236\u4f5c\u6570\u7801\u76f8\u673a\uff01 &nbsp; \u7b2c1\u7bc7\uff1a\u4ec0\u4e48\u662fSpresense\uff1f \u7b2c2\u7bc7\uff1a\u4f7f\u7528Spresense\u5236\u4f5c\u9ad8\u5206\u8fa8\u7387\u97f3\u4e50\u64ad\u653e\u5668\uff01 \u7b2c3\u7bc7\uff1a\u4f7f\u7528极悦娱乐\u9644\u52a0\u677f\uff0c\u901a\u8fc7Spresense\u8f7b\u677e\u5b9e\u73b0\u4f20\u611f\u5668\u68c0\u6d4b\uff01 [&hellip;]","protected":false},"author":4,"featured_media":23856,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2060],"tags":[],"class_list":["post-23849","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hobby"],"acf":[],"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/23849","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/comments?post=23849"}],"version-history":[{"count":10,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/23849\/revisions"}],"predecessor-version":[{"id":30082,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/23849\/revisions\/30082"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media\/23856"}],"wp:attachment":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media?parent=23849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/categories?post=23849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/tags?post=23849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}