{"id":1940,"date":"2023-02-05T16:29:17","date_gmt":"2023-02-05T07:29:17","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=1940"},"modified":"2023-03-07T21:54:42","modified_gmt":"2023-03-07T12:54:42","slug":"%e5%b1%b1%e8%a1%8c%e8%a8%98%e9%8c%b2%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ae%e8%a1%8c%e5%8b%95%e3%83%ad%e3%82%b0%e3%82%92%e5%8f%96%e3%82%8a%e3%81%9f%e3%81%84%e2%91%a0-seeeduino-xiao-expansion-board-air5","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2023\/02\/05\/1940\/","title":{"rendered":"\u5c71\u884c\u8a18\u9332\u306e\u305f\u3081\u306e\u884c\u52d5\u30ed\u30b0\u3092\u53d6\u308a\u305f\u3044\u2460 Seeeduino XIAO Expansion Board + Air530"},"content":{"rendered":"<h1>\u884c\u52d5\u30ed\u30b0<\/h1>\n<p>\u6700\u8fd1\u767b\u5c71\u304c\u8da3\u5473\u306b\u8ffd\u52a0\u3055\u308c\u305f\u3053\u3068\u306b\u3088\u308a\u3001\u4f11\u307f\u306e\u65e5\u306f\u30a2\u30db\u307f\u305f\u3044\u306b\u5c71\u306b\u884c\u3063\u3066\u3044\u308b\u3002\u884c\u3063\u3066\u3066\u5199\u771f\u64ae\u3063\u305f\u308a\u306f\u3059\u308b\u3093\u3060\u3051\u3069\u3001\u305d\u306e\u3046\u3061\u3082\u3063\u3068\u8a18\u9332\u53d6\u3063\u3066\u307f\u305f\u3044\u306a\u3068\u601d\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u305f\u3002\u4e16\u9593\u69d8\u3067\u306fGPS\u30ed\u30ac\u30fc\u3084\u30b9\u30de\u30db\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u3066\u8a18\u9332\u3092\u53d6\u3063\u305f\u308a\u3001\u906d\u96e3\u9632\u6b62\u306b\u5f79\u7acb\u3066\u3066\u3044\u308b\u3089\u3057\u3044\u3002\u307e\u3041\u81ea\u5206\u306f\u521d\u5fc3\u8005\u304c\u884c\u304f\u3088\u3046\u306a\u5c71\u3070\u3063\u304b\u306a\u306e\u3067\u3044\u3089\u3093\u306e\u304b\u3082\u3057\u308c\u3093\u3051\u3069\u3001\u5358\u7d14\u306b\u3084\u3063\u3066\u307f\u305f\u3044\u306e\u3002<\/p>\n<h2>\u4f55\u3092\u4f7f\u304a\u3046<\/h2>\n<p>\u3069\u3046\u3057\u305f\u3044\u304b\u3068\u3044\u3046\u3068\u3001\u3068\u308a\u3042\u3048\u305aGPS\u306e\u30ed\u30b0\u304c\u53d6\u308c\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3002\u3060\u304b\u3089GPS\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3064\u306a\u3052\u3066\u3001SD\u30ab\u30fc\u30c9\u7b49\u306b\u4fdd\u5b58\u3067\u304d\u308b\u3088\u3046\u306a\u3084\u3064\u304c\u3044\u3044\u3002\u3067\u306a\u3093\u304b\u306a\u3044\u304b\u306a\u30fc\u3068\u63a2\u3057\u3066\u305f\u3089<\/p>\n<p><a href=\"https:\/\/www.seeedstudio.com\/Seeeduino-XIAO-Expansion-board-p-4746.html\">https:\/\/www.seeedstudio.com\/Seeeduino-XIAO-Expansion-board-p-4746.html<\/a><\/p>\n<p>Seeeduino XIAO\u7528\u306e\u62e1\u5f35\u30dc\u30fc\u30c9\u304c\u51fa\u3066\u3044\u305f\u3002SD\u30ab\u30fc\u30c9\u3082\u4f7f\u3048\u308b\u3057\u3001\u4f55\u306a\u3089\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3082\u3064\u3044\u3066\u308b\u3002\u3053\u308c\u306b\u3057\u3088\u3046\u3001\u30ad\u30df\u306b\u6c7a\u3081\u305f\u3002<\/p>\n<h2>Seeed Studio Expansion Base for XIAO with Grove OLED &#8211; IIC, Uart, Analog\/Digital<\/h2>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1942\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps01-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps01-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps01.png 750w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u306f\u3044\u3002\u3061\u306a\u307f\u306bSeeduinoXIAO\u304c\u306a\u3044\u3068\u4f7f\u3048\u306a\u3044\u3002Seeed Studio XIAO SAMD21, Seeed Studio XIAO RP2040, Seeed Studio XIAO nRF52840, Seeed Studio XIAO nRF52840 Sense\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3002(ESP32\u306b\u672a\u5bfe\u5fdc)<\/p>\n<h3>wiki<\/h3>\n<p><a href=\"https:\/\/wiki.seeedstudio.com\/Seeeduino-XIAO-Expansion-Board\/\">https:\/\/wiki.seeedstudio.com\/Seeeduino-XIAO-Expansion-Board\/<\/a><\/p>\n<h3>pinout<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/files.seeedstudio.com\/wiki\/Seeeduino-XIAO-Expansion-Board\/555.png\" \/><\/p>\n<h2>Grove &#8211; GPS (Air530)<\/h2>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1943\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps02-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps02-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps02.png 750w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.seeedstudio.com\/Grove-GPS-Air530-p-4584.html\">https:\/\/www.seeedstudio.com\/Grove-GPS-Air530-p-4584.html<\/a><\/p>\n<p><a href=\"https:\/\/wiki.seeedstudio.com\/Grove-GPS-Air530\/\">https:\/\/wiki.seeedstudio.com\/Grove-GPS-Air530\/<\/a><\/p>\n<p>GPS\u306f\u5b89\u3081\u306e\u3053\u308c\u306b\u3057\u3066\u307f\u305f\u3002Grove\u306a\u306e\u3067\u63a5\u7d9a\u3082\u697d\u3061\u3093\u3002\u3067\u306f\u3055\u3063\u305d\u304f\u30b3\u30fc\u30c9\u66f8\u3044\u3066\u304f\u3002<\/p>\n<h2>UART\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<\/h2>\n<pre><code class=\"cpp\">#include &lt;SoftwareSerial.h&gt;\r\nSoftwareSerial mySerial(7, 6);\r\n\r\nvoid setup() {\r\n  Serial.begin(57600);\r\n  while (!Serial) {\r\n    ;\r\n  }\r\n\r\n  mySerial.begin(9600);\r\n}\r\n\r\nvoid loop() {\r\n  while (mySerial.available() &gt; 0) {\r\n    char c = mySerial.read();\r\n    Serial.print(c);\r\n  }\r\n}<\/code><\/pre>\n<p>IDE(PC)\u3068\u306e\u901a\u4fe1\u3067Serial\u3092\u4f7f\u3044\u3001SoftwareSerial\u3067GPS\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u901a\u4fe1\u3059\u308b\u611f\u3058\uff1f\u305d\u3046\u3059\u308b\u3068\u30b7\u30ea\u30a2\u30eb\u30e2\u30cb\u30bf\u306b<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1945\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps03-300x187.png\" alt=\"\" width=\"300\" height=\"187\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps03-300x187.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps03-768x478.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps03.png 899w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3066\u3044\u3046\u98a8\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u304f\u3002\u3053\u308c\u304c\u4f55\u304b\u3068\u3044\u3046\u3068NMEA\u30bb\u30f3\u30c6\u30f3\u30b9\u3068\u3044\u3046\u3082\u306e\u3089\u3057\u3044\u3002\u8a73\u3057\u3044\u5185\u5bb9\u306f<\/p>\n<p><a href=\"http:\/\/aprs.gids.nl\/nmea\/\">http:\/\/aprs.gids.nl\/nmea\/<\/a><\/p>\n<p>\u3068\u304b\u898b\u305f\u3089\u3044\u3044\u3068\u601d\u3046\u3002\u3067\u3001\u3053\u308c\u3060\u3051\u3060\u3068\u306a\u3093\u306e\u3053\u3063\u3061\u3083\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3001\u89e3\u6790\u3057\u3066\u304f\u308c\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3042\u308b\u3002\u305d\u308c\u304cTinyGPS++\u3063\u3066\u3084\u3064\u3002<\/p>\n<h2>TinyGPS++\u3092\u4f7f\u7528<\/h2>\n<p><a href=\"http:\/\/arduiniana.org\/libraries\/tinygpsplus\/\">http:\/\/arduiniana.org\/libraries\/tinygpsplus\/<\/a><\/p>\n<p>\u3053\u3061\u3089\u3092\u4f7f\u3046\u3068GPS\u30c7\u30fc\u30bf\u3092\u6271\u3044\u3084\u3059\u304f\u3057\u3066\u304f\u308c\u308b\u3002\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3059\u308b\u3068<\/p>\n<pre><code class=\"cpp\">#include &lt;SoftwareSerial.h&gt;\r\n#include \"TinyGPS++.h\"\r\n\r\nTinyGPSPlus gps;\r\nSoftwareSerial mySerial(7, 6);\r\n\r\nvoid setup() {\r\n  Serial.begin(57600);\r\n  while (!Serial) {\r\n    ;\r\n  }\r\n\r\n  mySerial.begin(9600);\r\n}\r\n\r\nvoid loop() {\r\n  while (mySerial.available() &gt; 0) {\r\n    gps.encode(mySerial.read());\r\n    if (gps.location.isUpdated()) {\r\n      Serial.print(\"LAT=\");\r\n      Serial.println(gps.location.lat(), 6);\r\n      Serial.print(\"LONG=\");\r\n      Serial.println(gps.location.lng(), 6);\r\n      Serial.print(\"ALT=\");\r\n      Serial.println(gps.altitude.meters());\r\n    }\r\n  }\r\n}<\/code><\/pre>\n<p>\u3059\u308b\u3068<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1946\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps04-300x213.png\" alt=\"\" width=\"300\" height=\"213\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps04-300x213.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps04-768x545.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps04.png 818w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3070\u3063\u3061\u3057\u8868\u793a\u3055\u308c\u305f\uff01\u3059\u3054\u3044\u7c21\u5358\u3002\u540c\u69d8\u306b<\/p>\n<pre><code class=\"cpp\">if (gps.date.isUpdated()) {\r\n      Serial.print(\"VAL=\");\r\n      Serial.println(gps.date.value());\r\n      Serial.print(\"YEAR=\");\r\n      Serial.println(gps.date.year());\r\n      Serial.print(\"MON=\");\r\n      Serial.println(gps.date.month());\r\n      Serial.print(\"DAY=\");\r\n      Serial.println(gps.date.day());\r\n    }<\/code><\/pre>\n<p>\u3060\u3068<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1947\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps05-300x209.png\" alt=\"\" width=\"300\" height=\"209\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps05-300x209.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps05-768x535.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps05.png 838w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u65e5\u4ed8\u304c\u53d6\u5f97\u3067\u304d\u308b\u3057<\/p>\n<pre><code class=\"cpp\">if (gps.time.isUpdated()) {\r\n      Serial.print(\"VAL=\");\r\n      Serial.println(gps.time.value());\r\n      Serial.print(\"HOUR=\");\r\n      Serial.println(gps.time.hour());\r\n      Serial.print(\"MIN=\");\r\n      Serial.println(gps.time.minute());\r\n      Serial.print(\"SEC=\");\r\n      Serial.println(gps.time.second());\r\n    }<\/code><\/pre>\n<p>\u3053\u3046\u3060\u3068<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1948\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps06-300x204.png\" alt=\"\" width=\"300\" height=\"204\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps06-300x204.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps06-768x523.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps06.png 852w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u6642\u523b\u304c\u53d6\u5f97\u3067\u304d\u308b\u3002\u3088\u3044\u3067\u3059\u306d\u3002\u3053\u308c\u3089\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068<\/p>\n<pre><code class=\"cpp\">if (gps.time.isUpdated() || gps.date.isUpdated() || gps.location.isUpdated()) {\r\n      Serial.print(gps.date.year());\r\n      Serial.print(\"\/\");\r\n      Serial.print(gps.date.month());\r\n      Serial.print(\"\/\");\r\n      Serial.print(gps.date.day());\r\n      Serial.print(\" \");\r\n      Serial.print(gps.time.hour());\r\n      Serial.print(\":\");\r\n      Serial.print(gps.time.minute());\r\n      Serial.print(\":\");\r\n      Serial.print(gps.time.second());\r\n      Serial.print(\",\");\r\n      Serial.print(gps.location.lat(), 7);\r\n      Serial.print(\",\");\r\n      Serial.print(gps.location.lng(), 7);\r\n      Serial.print(\",\");\r\n      Serial.println(gps.altitude.meters());\r\n    }<\/code><\/pre>\n<p>\u3053\u3046\u3068\u304b\u3002\u305d\u3057\u305f\u3089<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1950\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps08-300x205.png\" alt=\"\" width=\"300\" height=\"205\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps08-300x205.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps08-768x526.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2023\/02\/gps08.png 841w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u304a\u30fcCSV\u3063\u307d\u3044\u3002\u3044\u3044\u611f\u3058\u3067\u3059\u306d\u3002\u3068\u308a\u307e\u3053\u3053\u307e\u3067\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u884c\u52d5\u30ed\u30b0 \u6700\u8fd1\u767b\u5c71\u304c\u8da3\u5473\u306b\u8ffd\u52a0\u3055\u308c\u305f\u3053\u3068\u306b\u3088\u308a\u3001\u4f11\u307f\u306e\u65e5\u306f\u30a2\u30db\u307f\u305f\u3044\u306b\u5c71\u306b\u884c\u3063\u3066\u3044\u308b\u3002\u884c\u3063\u3066\u3066\u5199\u771f\u64ae\u3063\u305f\u308a\u306f\u3059\u308b\u3093\u3060\u3051\u3069\u3001\u305d\u306e\u3046\u3061\u3082\u3063\u3068\u8a18\u9332\u53d6\u3063\u3066\u307f\u305f\u3044\u306a\u3068\u601d\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u305f\u3002\u4e16\u9593\u69d8\u3067\u306fGPS\u30ed\u30ac\u30fc\u3084\u30b9\u30de\u30db\u30a2\u30d7\u30ea\u3092\u4f7f\u3063 &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2023\/02\/05\/1940\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1942,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[181,69,180,179,183],"class_list":["post-1940","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8","tag-air530","tag-arduino","tag-gps","tag-seeeduinoxiao","tag-183"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=1940"}],"version-history":[{"count":4,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1940\/revisions"}],"predecessor-version":[{"id":1952,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1940\/revisions\/1952"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media\/1942"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=1940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=1940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=1940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}