{"id":7307,"date":"2015-05-20T22:55:56","date_gmt":"2015-05-20T13:55:56","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=7307"},"modified":"2018-11-14T16:33:48","modified_gmt":"2018-11-14T07:33:48","slug":"arduino-%e3%81%a7%e9%81%8a%e3%81%b6-1-%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%80%9c%e5%8b%95%e4%bd%9c%e7%a2%ba%e8%aa%8d","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2015\/05\/20\/arduino-%e3%81%a7%e9%81%8a%e3%81%b6-1-%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%80%9c%e5%8b%95%e4%bd%9c%e7%a2%ba%e8%aa%8d\/","title":{"rendered":"Arduino \u3067\u904a\u3076 (1) \u958b\u767a\u74b0\u5883\u69cb\u7bc9\u301c\u52d5\u4f5c\u78ba\u8a8d"},"content":{"rendered":"<h2 id=\"arduino-\u3067\u904a\u3076\">Arduino \u3067\u904a\u3076<\/h2>\n<p>Arduino \u306f\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306a\u3069\u547c\u3070\u308c\u308b\u3082\u306e\u3067\u3001\u96fb\u5727\u3092\u8aad\u307f\u3068\u3063\u305f\u308a(\u5165\u529b)\u3001\u96fb\u5727\u3092\u30bb\u30c3\u30c8(\u51fa\u529b)\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u30d4\u30f3\u304c\u3064\u3044\u3066\u3044\u307e\u3059\u3002 \u305d\u308c\u3092\u5236\u5fa1\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306f USB \u63a5\u7d9a\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u7c21\u5358\u306b\u66f8\u304d\u3053\u3080\u3053\u3068\u304c\u3067\u304d\u3001\u30d4\u30f3\u3092\u4ecb\u3057\u3066\u8272\u3005\u306a\u30bb\u30f3\u30b5\u30fc\u3084\u30c7\u30d0\u30a4\u30b9\u3092\u5236\u5fa1\u3067\u304d\u308b\u3068\u3044\u3063\u305f\u30c7\u30d0\u30a4\u30b9\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e Arduino \u3092\u4f7f\u3063\u3066\u3001CI \u3067\u30c6\u30b9\u30c8\u304c\u843d\u3061\u305f\u3068\u304d\u306b\u56de\u8ee2\u706f(\u3053\u3044\u3064\u2193)\u3092\u70b9\u706f\u3067\u304d\u308b\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<div class=\"figure\"><img title=\"\u56de\u8ee2\u706f\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2015\/05\/2015-05-15-091522_521x436_scrot.png\" alt=\"\" \/><\/div>\n<p>\u307e\u305a\u4eca\u56de\u306f\u3001\u958b\u767a\u74b0\u5883\u3092\u7528\u610f\u3057\u3066\u7c21\u5358\u306a\u52d5\u4f5c\u78ba\u8a8d\u307e\u3067\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 id=\"\u958b\u767a\u74b0\u5883\u306e\u7528\u610f\">\u958b\u767a\u74b0\u5883\u306e\u7528\u610f<\/h2>\n<p>arduino \u306b\u306f GUI \u306e IDE \u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u4e0d\u4fbf\u306a\u3053\u3068\u3082\u591a\u3044\u306e\u3067\u3001arturo \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u30c4\u30fc\u30eb\u30ad\u30c3\u30c8\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3059\u3002 arturo \u5358\u4f53\u3067\u306f\u52d5\u4f5c\u3057\u306a\u3044\u306e\u3067\u3001IDE (1.6 \u7cfb)\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h3 id=\"arch-linux\">Arch Linux<\/h3>\n<p>AUR \u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u306e\u3067\u3001\u4f7f\u308f\u305b\u3066\u3082\u3089\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><a class=\"uri\" href=\"https:\/\/aur.archlinux.org\/packages\/arturo-git\">https:\/\/aur.archlinux.org\/packages\/arturo-git<\/a><\/p>\n<h3 id=\"\u305d\u306e\u4ed6-os\">\u305d\u306e\u4ed6 OS<\/h3>\n<p>Arduino IDE \u306f\u3001<a class=\"uri\" href=\"http:\/\/www.arduino.cc\/en\/Main\/Software\">http:\/\/www.arduino.cc\/en\/Main\/Software<\/a> \u304b\u3089\u3002 arturo \u306f <a class=\"uri\" href=\"https:\/\/github.com\/scottdarch\/Arturo\">https:\/\/github.com\/scottdarch\/Arturo<\/a> \u3092\u53c2\u8003\u306b\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre><code>$ git clone 'https:\/\/github.com\/scottdarch\/Arturo.git'\r\n$ cd Arturo\r\n$ sudo make install<\/code><\/pre>\n<h3 id=\"\u6ce8\u610f\">\u6ce8\u610f<\/h3>\n<p>IDE \u304c\u6700\u65b0\u306e\u5834\u5408\u3001boards.txt \u304c\u898b\u3064\u304b\u3089\u306a\u3044! \u3068\u8a00\u3063\u305f\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 \u305d\u306e\u6642\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30ea\u30f3\u30af\u3092\u306f\u308b\u4e8b\u3067\u89e3\u6c7a\u3059\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre><code># ln -s \/usr\/share\/arduino\/hardware\/arduino\/avr \/usr\/local\/share\/arduino\/hardware\/arduino<\/code><\/pre>\n<h2 id=\"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b<\/h2>\n<p>arturo \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001ano \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002 \u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30d3\u30eb\u30c9\u306a\u3069\u3001\u5168\u3066\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea \"chikachika\" \u3092\u4f5c\u308a\u3001ano init \u30b3\u30de\u30f3\u30c9\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code>$ mkdir chikachika\r\n$ cd chikachika\r\n$ ano init<\/code><\/pre>\n<h2 id=\"\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\">\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f<\/h2>\n<p>Arduino \u306e\u5165\u51fa\u529b\u306e\u30d4\u30f3\u306b\u306f\u3001\u30a2\u30ca\u30ed\u30b0\u5165\u529b\u3068\u30c7\u30b8\u30bf\u30eb\u5165\u51fa\u529b\u304c\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u306b\u756a\u53f7\u304c\u3064\u3044\u3066\u3044\u307e\u3059\u3002 Arduino UNO \u306b\u306f \u30c7\u30b8\u30bf\u30eb\u306e 13 \u756a\u30d4\u30f3\u3068\u3057\u3066 LED \u304c\u521d\u3081\u304b\u3089\u7d44\u8fbc\u307e\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u306e LED \u3067\u52d5\u4f5c\u78ba\u8a8d\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001ano init \u3067\u751f\u6210\u3055\u308c\u305f src\/sketch.ino \u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n<h3 id=\"led-\u3092\u30c1\u30ab\u30c1\u30ab\u30c1\u30ab\u30c1\u30ab\u30fc\u30c3\u3055\u305b\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\">LED \u3092\u30c1\u30ab\u30c1\u30ab\u30c1\u30ab\u30c1\u30ab\u30fc\u30c3\u3055\u305b\u308b\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n<pre><code>\/\/ \u7d44\u307f\u8fbc\u307f LED \u30d4\u30f3\u306e\u756a\u53f7\u3092\u5b9a\u7fa9\r\n#define PIN_LED 13\r\n\r\n\/\/ \u30dc\u30fc\u30c9\u306e\u96fb\u6e90\u30aa\u30f3\u6642\u306b\u5b9f\u884c\u3055\u308c\u308b\u30b3\u30fc\u30c9\r\nvoid setup()\r\n{\r\n  \/\/ 13 \u756a\u3092\u51fa\u529b\u30e2\u30fc\u30c9\u306b\u3059\u308b\r\n  pinMode(PIN_LED, OUTPUT);\r\n}\r\n\r\n\/\/ setup \u5f8c\u306b\u3053\u3053\u306e\u30b3\u30fc\u30c9\u304c\u7121\u9650\u30eb\u30fc\u30d7\u3067\u5b9f\u884c\u3055\u308c\u308b\r\nvoid loop()\r\n{\r\n  \/\/ \u30c7\u30b8\u30bf\u30eb\u51fa\u529b\u3092 HIGH (\u30aa\u30f3) \u306b\u8a2d\u5b9a\u3059\u308b\r\n  digitalWrite(PIN_LED, HIGH);\r\n  \/\/ 100 \u30df\u30ea\u79d2\u5f85\u6a5f\u3059\u308b\r\n  delay(100);\r\n  \/\/ \u30c7\u30b8\u30bf\u30eb\u51fa\u529b\u3092 LOW (\u30aa\u30d5) \u306b\u8a2d\u5b9a\u3059\u308b\r\n  digitalWrite(PIN_LED, LOW);\r\n  delay(100);\r\n\r\n  \/\/ \u4ee5\u4e0b\u8b0e\u306e\u30ea\u30ba\u30e0\u3067\u30aa\u30f3\u30aa\u30d5\u3059\u308b\r\n\r\n  digitalWrite(PIN_LED, HIGH);\r\n  delay(100);\r\n  digitalWrite(PIN_LED, LOW);\r\n  delay(100);\r\n\r\n  digitalWrite(PIN_LED, HIGH);\r\n  delay(100);\r\n  digitalWrite(PIN_LED, LOW);\r\n  delay(100);\r\n\r\n  digitalWrite(PIN_LED, HIGH);\r\n  delay(500);\r\n  digitalWrite(PIN_LED, LOW);\r\n  delay(300);\r\n}<\/code><\/pre>\n<h2 id=\"arduino-\u3092\u63a5\u7d9a\u3059\u308b\">Arduino \u3092\u63a5\u7d9a\u3059\u308b<\/h2>\n<p>USB \u3067\u63a5\u7d9a\u3059\u308b\u3068\u3001Linux \u3067\u306f \/dev\/ttyACM0 \u306e\u3088\u3046\u306a\u30c7\u30d0\u30a4\u30b9\u304c\u751f\u3048\u307e\u3059\u3002 (Windows \u3084 OS X \u306f\u2026\u308f\u304b\u308a\u307e\u305b\u3093!)<\/p>\n<h2 id=\"\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u66f8\u304d\u3053\u3080\">\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u66f8\u304d\u3053\u3080<\/h2>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u3067\u3001build \u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3001upload \u3067\u30dc\u30fc\u30c9\u306b\u66f8\u304d\u3053\u307f\u307e\u3059\u3002 (--board-model \u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 uno \u306b\u306a\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u5ff5\u306e\u305f\u3081\u6307\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><code>$ ano build --board-model uno\r\n$ ano upload --board-model uno<\/code><\/pre>\n<p>arturo \u304c\u4e0a\u624b\u304f\u30c7\u30d0\u30a4\u30b9\u3092\u691c\u51fa\u3067\u304d\u306a\u3044\u6642\u306f\u3001\u30c7\u30d0\u30a4\u30b9\u3092\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code>$ ano build --board-model uno\r\n$ ano upload --board-model uno --serial-port \/dev\/ttyACM1<\/code><\/pre>\n<h2 id=\"\u52d5\u4f5c\u78ba\u8a8d\">\u52d5\u4f5c\u78ba\u8a8d<\/h2>\n<p>\u3053\u3044\u3064\u304c \u30c1\u30ab\u30c1\u30ab\u30c1\u30ab\u30c1\u30ab\u30fc\u30c3 \u3068\u3044\u3063\u305f\u611f\u3058\u3067\u5149\u308c\u3070\u3001\u6210\u529f\u3067\u3059!<\/p>\n<div class=\"figure\"><img title=\"Arduino UNO R3 - \u30d3\u30eb\u30c8\u30a4\u30f3 LED\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2015\/05\/2015-05-14-161951_540x473_scrot.png\" alt=\"\" \/><\/div>\n<p>\u4e92\u63db\u30dc\u30fc\u30c9\u3067\u306f\u3001\u5834\u6240\u304c\u9055\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2 id=\"\u5165\u624b\u65b9\u6cd5\u306a\u3069\">\u5165\u624b\u65b9\u6cd5\u306a\u3069<\/h2>\n<p>\u3060\u3044\u305f\u3044\u30a2\u30de\u30be\u30f3\u3067\u8cfc\u5165\u3067\u304d\u307e\u3059\u3002 \u30ea\u30f3\u30af\u3092\u793a\u3059\u306e\u3067\u3001\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 id=\"arduino-uno-r3\">Arduino Uno R3<\/h3>\n<p><a class=\"uri\" href=\"http:\/\/amazon.jp\/dp\/B0044X2E5S\">http:\/\/amazon.jp\/dp\/B0044X2E5S<\/a><\/p>\n<p>LED \u3084\u30bb\u30f3\u30b5\u30fc\u306a\u3069\u304c\u30bb\u30c3\u30c8\u306b\u3055\u308c\u305f\u30ad\u30c3\u30c8\u3082\u3042\u308a\u307e\u3059\u3002 \u2192 <a class=\"uri\" href=\"http:\/\/amazon.jp\/dp\/B008PQEWIW\">http:\/\/amazon.jp\/dp\/B008PQEWIW<\/a> \u307e\u305f\u3001\u4e92\u63db\u54c1\u3068\u3044\u3046\u306e\u3082\u3042\u308b\u306e\u3067\u3082\u3063\u3068\u5b89\u304f\u3042\u3052\u305f\u3044\u3068\u304d\u306f\u3001\u63a2\u3057\u3066\u307f\u308b\u3068\u8272\u3005\u51fa\u3066\u304d\u307e\u3059\u3002 Arduino \u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306a\u306e\u3067\u3001\u7279\u5225\u602a\u3057\u3044\u30d6\u30c4\u3067\u306f\u306a\u3044\u306f\u305a\u3067\u3059\u3002<\/p>\n<h3 id=\"a-b-\u30bf\u30a4\u30d7\u306e-usb-\u30b1\u30fc\u30d6\u30eb\">A-B \u30bf\u30a4\u30d7\u306e USB \u30b1\u30fc\u30d6\u30eb<\/h3>\n<p>Arduino UNO R3 \u306f\u3001USB \u63a5\u7d9a\u3067\u3059\u304c\u30bf\u30a4\u30d7 B \u306e\u30b8\u30e3\u30c3\u30af\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001A-B \u30bf\u30a4\u30d7\u306e USB \u30b1\u30fc\u30d6\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002 Arduino \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u3088\u3063\u3066\u306f\u3001\u4ed8\u5c5e\u3057\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arduino \u3067\u904a\u3076<br \/>\nArduino \u306f\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306a\u3069\u547c\u3070\u308c\u308b\u3082\u306e\u3067\u3001\u96fb\u5727\u3092\u8aad\u307f\u3068\u3063\u305f\u308a(\u5165\u529b)\u3001\u96fb\u5727\u3092\u30bb\u30c3\u30c8(\u51fa\u529b)\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u30d4\u30f3\u304c\u3064\u3044\u3066\u3044\u307e\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2015\/05\/20\/arduino-%e3%81%a7%e9%81%8a%e3%81%b6-1-%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%80%9c%e5%8b%95%e4%bd%9c%e7%a2%ba%e8%aa%8d\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":43,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[196,197],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/7307"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=7307"}],"version-history":[{"count":17,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/7307\/revisions"}],"predecessor-version":[{"id":7326,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/7307\/revisions\/7326"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=7307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=7307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=7307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}