{"id":885,"date":"2020-02-23T10:08:20","date_gmt":"2020-02-23T01:08:20","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=885"},"modified":"2020-02-23T11:04:01","modified_gmt":"2020-02-23T02:04:01","slug":"arduino%e3%81%a7%e3%83%96%e3%82%b6%e3%83%bc%e3%82%92%e9%b3%b4%e3%82%89%e3%81%97%e3%81%9f%e3%81%84","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2020\/02\/23\/885\/","title":{"rendered":"Arduino\u3067\u30d6\u30b6\u30fc\u3092\u9cf4\u3089\u3057\u305f\u3044"},"content":{"rendered":"<h1>\u30d6\u30b6\u30fc<\/h1>\n<p>\u97f3\u304c\u51fa\u308b\u3002\u96fb\u6c17\u6d41\u3059\u3060\u3051\u3067\u3067\u304d\u308b\u307f\u305f\u3044\u3002<\/p>\n<h2>\u304a\u8cb7\u3044\u7269<\/h2>\n<p><a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gP-09800\/\">http:\/\/akizukidenshi.com\/catalog\/g\/gP-09800\/<\/a><\/p>\n<p>\u3053\u3061\u3089\u3092\u8cb7\u3044\u307e\u3057\u3066\u3002\u5b9a\u683c5V\u306a\u306e\u3067\u4f55\u3082\u8003\u3048\u305a\u306b\u306b\u7e4b\u3052\u3070\u826f\u3055\u305d\u3046\u3002<\/p>\n<p><a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gP-03647\/\">http:\/\/akizukidenshi.com\/catalog\/g\/gP-03647\/<\/a><\/p>\n<p>\u3042\u3068\u30b9\u30a4\u30c3\u30c1\u3002\u62bc\u3059\u3068\u7e4b\u304c\u3063\u3066\u3001\u96e2\u3059\u3068\u5207\u308c\u308b\u3002<\/p>\n<h2>\u63a5\u7d9a\u3057\u3066\u624b\u52d5\u3067\u9cf4\u3089\u3059<\/h2>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/buz02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-886\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/buz02-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/buz02-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/buz02-768x576.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/buz02.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u30d6\u30b6\u30fc\u306b\u306f\u6975\u6027\u304c\u3042\u3063\u305f\u3002Arduino5V\u2192\u30b9\u30a4\u30c3\u30c1\u2192\u30d6\u30b6\u30fc\u2192ArduinoGND\u3066\u3064\u306a\u3044\u3067\u307f\u305f\u3002<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/2pyomQTQCkg\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u62bc\u3059\u3068\u9cf4\u308b\u3002\u3067\u3082\u3053\u308c\u306f\u3042\u3093\u307e\u308a\u3088\u308d\u3057\u304f\u306a\u3044\u307f\u305f\u3044\u3002\u30b9\u30a4\u30c3\u30c1\u30aa\u30d5\u306e\u3068\u304d\u304c\u3001\u6d6e\u3044\u3066\u308b\u72b6\u614b\u3060\u304b\u3089?\u306a\u306e?<\/p>\n<h3>\u30d7\u30eb\u30a2\u30c3\u30d7\u30fb\u30d7\u30eb\u30c0\u30a6\u30f3<\/h3>\n<p>\u8a73\u3057\u304f\u306f<\/p>\n<p><a href=\"https:\/\/voltechno.com\/blog\/pullup-pulldown\/\">https:\/\/voltechno.com\/blog\/pullup-pulldown\/<\/a><\/p>\n<p>\u3084<\/p>\n<p><a href=\"https:\/\/slash-mochi.net\/?p=978\">https:\/\/slash-mochi.net\/?p=978<\/a><\/p>\n<p>\u3067\u3001\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306f<\/p>\n<p><a href=\"https:\/\/www.arduino.cc\/reference\/en\/language\/functions\/digital-io\/pinmode\/\">https:\/\/www.arduino.cc\/reference\/en\/language\/functions\/digital-io\/pinmode\/<\/a><\/p>\n<p>\u3068\u304b<\/p>\n<p><a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/DigitalPins\">https:\/\/www.arduino.cc\/en\/Tutorial\/DigitalPins<\/a><\/p>\n<p>\u306a\u3069\u3092\u53c2\u8003\u306b\u3044\u305f\u3057\u307e\u3057\u3066\u3001\u8272\u3005\u8a66\u3057\u3066\u307f\u305f\u3082\u306e\u306e\u3001\u7406\u89e3\u304c\u8ffd\u3044\u3064\u304b\u305a\u3001\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067\u3044\u3044\u3084\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2><code class=\"cpp\"><\/code>\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u9cf4\u3089\u3059<\/h2>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/buz1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-887\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/buz1-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/buz1-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/buz1-768x576.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/buz1.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3001D01(9)\u30d4\u30f3\u2192\u30d6\u30b6\u30fc\u2192GND\u3067\u63a5\u7d9a\u3057\u3066<\/p>\n<pre><code class=\"cpp\">void setup() {\r\n  pinMode(9, OUTPUT);\r\n}\r\n\r\nvoid loop() {\r\n\r\n  for (int i = 1; i &lt;= 3; i++) {\r\n    digitalWrite(9, HIGH);\r\n    delay(100);\r\n    digitalWrite(9, LOW);\r\n    delay(100);\r\n  }\r\n\r\n  delay(300);\r\n\r\n  for (int i = 1; i &lt;= 3; i++) {\r\n    digitalWrite(9, HIGH);\r\n    delay(300);\r\n    digitalWrite(9, LOW);\r\n    delay(100);\r\n  }\r\n\r\n  delay(300);\r\n\r\n  for (int i = 1; i &lt;= 3; i++) {\r\n    digitalWrite(9, HIGH);\r\n    delay(100);\r\n    digitalWrite(9, LOW);\r\n    delay(100);\r\n  }\r\n\r\n  delay(700);\r\n\r\n}<\/code><\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u307e\u3057\u3066\u3001\u30ab\u30a6\u30f3\u30bf\u4e00\u7dd2\u3060\u3051\u3069\u3044\u3044\u306e\u304b\u306a\u3002<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/sOWRWlKj13A\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u3059\u308b\u3068\u9cf4\u308a\u307e\u3059\u3002SOS!\u3002<\/p>\n<h2>tone\u3092\u4f7f\u3046<\/h2>\n<pre><code class=\"cpp\">void setup() {\r\n  pinMode(9, OUTPUT);\r\n}\r\n\r\nvoid loop() {\r\n\r\n  for (int i = 32; i &lt;= 8000; i++) {\r\n    tone(9, i);\r\n    delay(10);\r\n    noTone(9);\r\n  }\r\n}<\/code><\/pre>\n<p>tone\u3092\u4f7f\u3046\u3068\u97f3\u968e\u304c\u4f5c\u308c\u308b\u3002<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/Cbx6M551buM\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u30b9\u30b1\u30c3\u30c1\u4f8b\u306etoneMelody\u3092\u3084\u308b\u3068<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/5zuxoL5hOzo\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u52d5\u753b\u3060\u3068\u5fae\u5999\u3060\u3051\u3069\u3001\u3061\u3083\u3093\u3068\u805e\u3053\u3048\u308b\u3002\u3059\u3052\u30fc\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d6\u30b6\u30fc \u97f3\u304c\u51fa\u308b\u3002\u96fb\u6c17\u6d41\u3059\u3060\u3051\u3067\u3067\u304d\u308b\u307f\u305f\u3044\u3002 \u304a\u8cb7\u3044\u7269 http:\/\/akizukidenshi.com\/catalog\/g\/gP-09800\/ \u3053\u3061\u3089\u3092\u8cb7\u3044\u307e\u3057\u3066\u3002\u5b9a\u683c5V\u306a\u306e\u3067\u4f55\u3082\u8003\u3048\u305a\u306b\u306b\u7e4b\u3052\u3070\u826f\u3055\u305d\u3046\u3002 htt &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2020\/02\/23\/885\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":886,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[69,86,54],"class_list":["post-885","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8","tag-arduino","tag-86","tag-54"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/885","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=885"}],"version-history":[{"count":3,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/885\/revisions"}],"predecessor-version":[{"id":890,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/885\/revisions\/890"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media\/886"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}