{"id":258,"date":"2014-08-06T00:50:03","date_gmt":"2014-08-05T15:50:03","guid":{"rendered":"http:\/\/goji2100.s199.coreserver.jp\/blog\/?p=258"},"modified":"2022-04-11T06:36:54","modified_gmt":"2022-04-10T21:36:54","slug":"intel-galileo-gen-2%e3%80%80%e8%b6%85%e9%9f%b3%e6%b3%a2%e8%b7%9d%e9%9b%a2%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/goji2100.com\/blog\/?p=258","title":{"rendered":"Intel Galileo GEN 2\u3000\u8d85\u97f3\u6ce2\u8ddd\u96e2\u30bb\u30f3\u30b5\u30fc\u30e2\u30b8\u30e5\u30fc\u30eb"},"content":{"rendered":"<p>Galileo GEN 2\u306e\u30dd\u30fc\u30c8\u64cd\u4f5c\u304c\u666e\u901a\u306e\u901f\u3055\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u6c17\u3092\u826f\u304f\u3057\u3066\u3001\u8d85\u97f3\u6ce2\u8ddd\u96e2\u30bb\u30f3\u30b5\u30fc\u30e2\u30b8\u30e5\u30fc\u30eb(HC-SR04)\u3092\u63a5\u7d9a\u3057\u3066\u3001\u30d1\u30eb\u30b9\u5e45\u3092\u8aad\u53d6\u308b\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3pulseIn()\u3092\u4f7f\u3063\u305f\u30b9\u30b1\u30c3\u30c1\u3092\u8a66\u3057\u305f\u3068\u3053\u308d\u3001\u3042\u3063\u3055\u308a\u3068\u52d5\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\n\uff08\u4ee5\u524d\u306b\u306fpulseIn()\u306f\u975e\u30b5\u30dd\u30fc\u30c8\u3068\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff09<\/p>\n<div id=\"attachment_259\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/goji2100.com\/blog\/wp-content\/uploads\/2014\/08\/Sonic.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-259\" class=\"size-medium wp-image-259\" src=\"https:\/\/goji2100.com\/wp-content\/uploads\/2014\/08\/Sonic-300x170.png\" alt=\"Galileo GEN2 + HC-SR04\" width=\"300\" height=\"170\" srcset=\"https:\/\/goji2100.com\/blog\/wp-content\/uploads\/2014\/08\/Sonic-300x170.png 300w, https:\/\/goji2100.com\/blog\/wp-content\/uploads\/2014\/08\/Sonic.png 724w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-259\" class=\"wp-caption-text\">Galileo GEN2 + HC-SR04<\/p><\/div>\n<p><!--more--><\/p>\n<pre class=\"lang:arduino decode:true\" title=\"SonicLCD.ino\">\r\n#include &lt;LiquidCrystal.h&gt;\r\nLiquidCrystal lcd(8, 9, 4, 5, 6, 7); \/\/ LCD Keypad Shiled\r\n\r\n#define  PLS_OUT  3\r\n#define  PLS_SNS  2\r\n\r\nvoid setup() {\r\n  lcd.begin(16, 2);\r\n  pinMode(PLS_OUT, OUTPUT);  \/\/ Pulse out\r\n  pinMode(PLS_SNS, INPUT );  \/\/ Pulse width sense\r\n}\r\n\r\nvoid loop() {\r\n  lcd.setCursor(0, 1);\r\n  digitalWrite(PLS_OUT, HIGH); \r\n  digitalWrite(PLS_OUT, HIGH); \/\/ delay\r\n  digitalWrite(PLS_OUT, HIGH); \/\/ delay\r\n  digitalWrite(PLS_OUT, HIGH); \/\/ delay\r\n  digitalWrite(PLS_OUT, LOW);\r\n  digitalWrite(PLS_OUT, LOW);  \/\/ delay\r\n  lcd.print(pulseIn(PLS_SNS, HIGH) \/ 58);\r\n  lcd.print(\"    \");\r\n  delay(50);\r\n}\r\n<\/pre>\n<p>\uff0aGlileo GEN 2\u3067\u306f\u30dd\u30fc\u30c8\u64cd\u4f5c\u304c\u901f\u304f\u3001\u30d1\u30eb\u30b9\u5e45\u304c\u4e0d\u8db3\u3059\u308b\u305f\u3081\u4f59\u5206\u306a\u30dd\u30fc\u30c8\u64cd\u4f5c\u3092\u8ffd\u52a0\u3057\u3066\u3001\u30d1\u30eb\u30b9\u5e45\u3092\u78ba\u4fdd\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Galileo GEN 2\u306e\u30dd\u30fc\u30c8\u64cd\u4f5c\u304c\u666e\u901a\u306e\u901f\u3055\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u6c17\u3092\u826f\u304f\u3057\u3066\u3001\u8d85\u97f3\u6ce2\u8ddd\u96e2\u30bb\u30f3\u30b5\u30fc\u30e2\u30b8\u30e5\u30fc\u30eb(HC-SR04)\u3092\u63a5\u7d9a\u3057\u3066\u3001\u30d1\u30eb\u30b9\u5e45\u3092\u8aad\u53d6\u308b\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3pulseIn()\u3092\u4f7f\u3063\u305f\u30b9\u30b1\u30c3\u30c1\u3092\u8a66\u3057\u305f\u3068\u3053\u308d\u3001\u3042\u3063 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,21],"tags":[],"_links":{"self":[{"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/258"}],"collection":[{"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=258"}],"version-history":[{"count":13,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/258\/revisions"}],"predecessor-version":[{"id":263,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/258\/revisions\/263"}],"wp:attachment":[{"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goji2100.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}