
{"id":5112,"date":"2016-10-25T18:53:12","date_gmt":"2016-10-25T09:53:12","guid":{"rendered":"https:\/\/okiraku-camera.tokyo\/blog\/?p=5112"},"modified":"2017-09-11T13:11:14","modified_gmt":"2017-09-11T04:11:14","slug":"arduino-pro-mini%e3%81%ae%e3%83%95%e3%83%a9%e3%83%83%e3%82%b7%e3%83%a5%e3%83%a1%e3%83%a2%e3%83%aa%e3%81%ae%e6%b6%88%e5%8e%bb%e3%81%a8%e6%9b%b8%e3%81%8d%e6%8f%9b%e3%81%88","status":"publish","type":"post","link":"https:\/\/okiraku-camera.tokyo\/blog\/?p=5112","title":{"rendered":"Arduino PRO MINI\u306e\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea\u306e\u6d88\u53bb\u3068\u66f8\u304d\u63db\u3048"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p>Arduino PRO MINI\u3092\u4f7f\u3063\u305f\u7814\u7a76\uff08\uff1f\uff09\u3092\u3057\u3066\u3044\u3066\u5931\u6557\u3057\u3066\u3057\u307e\u3044\u3001Arduino IDE\u304b\u3089\u30b9\u30b1\u30c3\u30c1\u306e\u66f8\u304d\u63db\u3048\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u305d\u306e\u4e0a\u3001<em>ArduinoISP<\/em>\u30b9\u30b1\u30c3\u30c1\u3092\u4f7f\u3063\u305f\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u3084\u30b9\u30b1\u30c3\u30c1\u306e\u66f8\u304d\u8fbc\u307f\u3082\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u3066\u3067\u304d\u306a\u304f\u306a\u3063\u305f\u3002<\/p>\n<p>\u56de\u5fa9\u3059\u308b\u305f\u3081\u3001\u3082\u30461\u679a\u306ePRO MINI\u3092\u30d7\u30ed\u30b0\u30e9\u30de\u3068\u3057\u3066\u4f7f\u3044<em>ArduinoISP<\/em>\u30b9\u30b1\u30c3\u30c1\u3067\u5fa9\u65e7\u3057\u305f\u8a71\u3002<\/p>\n<figure id=\"attachment_5133\" aria-describedby=\"caption-attachment-5133\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2016\/10\/90193f39456e84463eae3f33fd5d3e86.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-5133\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2016\/10\/90193f39456e84463eae3f33fd5d3e86-552x414.jpg\" alt=\"Arduino PRO MINI\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-5133\" class=\"wp-caption-text\">Arduino PRO MINI \u3053\u3053\u306b\u914d\u7dda\u3092\u8ffd\u52a0\u3057\u3066ISP\u3068\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u3057\u305f\u3002<\/figcaption><\/figure>\n<h2>\u554f\u984c\u306e\u30b9\u30b1\u30c3\u30c1<\/h2>\n<p>PRO MINI\u306e\u30af\u30ed\u30c3\u30af\u3068\u96fb\u5727\u306f\u305d\u306e\u307e\u307e\u3067\u7701\u96fb\u529b\u5316\u3092\u8a66\u307f\u308b\u305f\u3081\u3001\u5185\u8535\u306e\u30a6\u30a9\u30c3\u30c1\u30c9\u30c3\u30b0\u30bf\u30a4\u30de\u30fc\uff08wdt\uff09\u306e\u52d5\u4f5c\u3068\u306e\u95a2\u4fc2\u3092\u8abf\u3079\u3088\u3046\u3068\u3057\u3066\u3044\u305f\u3002<em>#include &lt;avr\/wdt.h&gt;<\/em> \u3057\u3066\u3001<em>wdt_disable()<\/em>\u00a0 \u3068\u304b\u66f8\u3044\u3066\u307f\u3088\u3046\u3068\u3057\u3066\u3044\u305f\u306e\u3060\u3051\u3069\u3001\u4e0d\u7528\u610f\u306b\u3082\u00a0<em>wdt_enable(0)<\/em>\u00a0\u3068\u66f8\u3044\u3066\u3057\u307e\u3063\u3066\u30cb\u30c3\u30c1\u3082\u30b5\u30c3\u30c1\u3082\u884c\u304b\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3060\u3063\u305f\u3002<\/p>\n<pre class=\"lang:c++ decode:true\">void setup() {\r\n  pinMode(13, OUTPUT);\r\n  digitalWrite(13, 0);\r\n  pinMode(2, INPUT_PULLUP);\r\n  delay(10);\r\n}\r\nvoid isr() {}\r\nvoid loop() {\r\n  attachInterrupt(0, isr, LOW);\r\n  wdt_enable(0);\r\n  set_sleep_mode(SLEEP_MODE_PWR_DOWN);\r\n  sleep_mode();\r\n  detachInterrupt(0);\r\n  digitalWrite(13, 1);\r\n  delay(1000);\r\n  digitalWrite(13, 0);\r\n  delay(10);\r\n}\r\n<\/pre>\n<p>\u3082\u3068\u3082\u3068\u4f55\u3092\u3084\u308d\u3046\u3068\u3057\u3066\u3044\u305f\u304b\u3068\u8a00\u3046\u3068\u3001<\/p>\n<ul>\n<li>\u30bf\u30af\u30c8\u30b9\u30a4\u30c3\u30c1\u3092\u62bc\u3057\u305f\u3089\u30b9\u30ea\u30fc\u30d7\u304c\u89e3\u9664\u3055\u308c\u308b\u3088\u3046\u3001<em>attachInterrupt()<\/em> \u3059\u308b\u3002<\/li>\n<li>\u30b9\u30ea\u30fc\u30d7\u306b\u5165\u308b\u3002<\/li>\n<li>\u30b9\u30ea\u30fc\u30d7\u304b\u3089\u629c\u3051\u305f\u3089PRO MINI\u4e0a\u306eLED (D13) \u30921\u79d2\u9593\u70b9\u706f\u3059\u308b\u3002<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u5177\u5408\u3002\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u4e0a\u3067\u306fPRO MINI\u306eD2\u3068GND\u9593\u306b\u30b9\u30ea\u30fc\u30d7\u5fa9\u5e30\u7528\u306e\u30bf\u30af\u30c8\u30b9\u30a4\u30c3\u30c1\u3092\u914d\u7f6e\u3057\u305f\u56de\u8def\u3092\u4f7f\u3063\u3066\u3044\u308b\u3002\u30bf\u30af\u30c8\u30b9\u30a4\u30c3\u30c1\u64cd\u4f5c\u306b\u3088\u308b\u30b9\u30ea\u30fc\u30d7\u5fa9\u5e30\u306e\u78ba\u8a8d\u3084\u3001\u6d88\u8cbb\u96fb\u6d41\u306e\u6bd4\u8f03\u306a\u3093\u304b\u3092\u3057\u3066\u3044\u305f\u300210\u884c\u76ee\u306b\u00a0<em>wdt_enable(0);<\/em> \u3092\u66f8\u304f\u307e\u3067\u306f\u610f\u56f3\u901a\u308a\u306b\u52d5\u3044\u3066\u3044\u305f\u3002<\/p>\n<p>\u3060\u304c\u00a0<em>wdt_enable(0) ;<\/em> \u3068\u66f8\u3044\u3066\u3057\u307e\u3063\u305f\u3053\u3068\u3067\u3001<\/p>\n<ul>\n<li><em>wdt_enable(0)<\/em> \u306b\u3088\u308a15msec\u3067\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3059\u308b\u30ab\u30a6\u30f3\u30bf\u304c\u52d5\u4f5c\u3092\u958b\u59cb\u3059\u308b\u3002<\/li>\n<li><em>sleep_mode()<\/em>\u00a0\u306e\u547c\u51fa\u3057\u3067\u30b9\u30ea\u30fc\u30d7\u306b\u5165\u308b\u3002<\/li>\n<li>\u30b9\u30ea\u30fc\u30d7\u4e2d\u3082wdt\u306f\u6709\u52b9\u3060\u304b\u3089\u300115msec\u5f8c\u306b\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3057\u30de\u30a4\u30b3\u30f3\u306b\u30ea\u30bb\u30c3\u30c8\u304c\u304b\u304b\u308b\u3002<\/li>\n<li><em>setup()<\/em> \u304b\u3089\u5b9f\u884c\u3092\u518d\u958b\u3059\u308b\u2026\u6c38\u9060\u306b\u3002<\/li>\n<li>\u898b\u305f\u76ee\u306e\u75c7\u72b6\u3068\u3057\u3066\u306f\u3001D13\u306b\u63a5\u7d9a\u3057\u305fLED\u304c\u8d85\u9ad8\u901f\u306b\u70b9\u6ec5\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3044\u305f\u3002<br \/>\n<strong>\u8ffd\u8a18<\/strong> : \u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u306e\u30bd\u30fc\u30b9\u3092\u898b\u3066\u5206\u304b\u3063\u305f\u306e\u3060\u3051\u3069\u3001LED\u3092\u70b9\u706f\u3055\u305b\u3066\u3044\u305f\u306e\u306f\u30b9\u30b1\u30c3\u30c1\u3067\u306f\u306a\u304f\u3066\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u306e\u3088\u3046\u3067\u3042\u308b\u3002\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u70b9\u706f\u3059\u308b\u7406\u7531\u304c\u306a\u3044\u3002<\/li>\n<\/ul>\n<p>\u3053\u306e\u72b6\u6cc1\u3067\u306f\u3001\u30b7\u30ea\u30a2\u30eb\u5165\u529b\u3092\u53d7\u4fe1\u3057\u3066\u3044\u308b\u6700\u4e2d\u306b\u3082wdt\u306b\u3088\u308b\u30ea\u30bb\u30c3\u30c8\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u304b\u3089\u3001PRO MINI\u306e\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u306f\u5165\u529b\u3092\u691c\u51fa\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3042\u308b\u3002Arduino IDE\u306b\u3066\u300c\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306b\u66f8\u304d\u8fbc\u3080\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u305f\u3002<\/p>\n<pre class=\"nums:false lang:default highlight:0 decode:true\">avrdude: stk500_recv(): programmer is not responding\r\navrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x72\r\navrdude: stk500_recv(): programmer is not responding\r\n....\r\navrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x72\r\n\r\n\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306b\u66f8\u304d\u8fbc\u3082\u3046\u3068\u3057\u307e\u3057\u305f\u304c\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\r\n\u3053\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\nhttp:\/\/www.arduino.cc\/en\/Guide\/Troubleshooting#upload\r\n\r\n<\/pre>\n<p>\u30ea\u30bb\u30c3\u30c8\u30b9\u30a4\u30c3\u30c1\u3092\u62bc\u3057\u306a\u304c\u3089\u8ee2\u9001\u958b\u59cb\u3059\u308b\u306a\u3069\u3057\u3066\u307f\u305f\u304c\u52b9\u679c\u306f\u306a\u304f\u3001\u3057\u3087\u3046\u304c\u306a\u3044\u306e\u3067PRO MINI\u5185\u3092\u304d\u308c\u3044\u3055\u3063\u3071\u308a\u6d88\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u306b\u3057\u305f\u3002&#8221;The Simple&#8221; \u304c336\u5186(\u9001\u6599\u8fbc)\u3067\u58f2\u3063\u3066\u3044\u308b\u304b\u3089\u3001\u4f55\u3082\u8003\u3048\u305a\u306b\u6368\u3066\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u8003\u3048\u307e\u3057\u305f\u304c\u3002<\/p>\n<h2>ArduinoISP\u306b\u3088\u308b\u30b9\u30b1\u30c3\u30c1\u306e\u66f8\u63db\u3048<\/h2>\n<p>AVR\u30de\u30a4\u30b3\u30f3\u5185\u306eEEPROM\u3084\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea\u3092\u66f8\u304d\u8fbc\u3080\u305f\u3081\u306e <em><strong>ArduinoISP<\/strong><\/em> \u3068\u3044\u3046\u30b9\u30b1\u30c3\u30c1\u3092\u4f7f\u3063\u3066\u3001\u30b9\u30b1\u30c3\u30c1\u306e\u5185\u5bb9\u3092\u66f8\u66ff\u3048\u308b\u3053\u3068\u306b\u3057\u305f\u3002<br \/>\n\u3053\u306e\u30b9\u30b1\u30c3\u30c1\u306f\u3001Arduino IDE (1.6.7\u7248\u3092\u4f7f\u7528\u4e2d) \u306b\u30b9\u30b1\u30c3\u30c1\u4f8b\u3068\u3057\u3066\u4ed8\u5c5e\u3057\u3066\u3044\u308b\u3002\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u306e\u30b9\u30b1\u30c3\u30c1\u306e\u30b3\u30e1\u30f3\u30c8\u3084\u3001<a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/ArduinoISP\">https:\/\/www.arduino.cc\/en\/Tutorial\/ArduinoISP<\/a> \u3092\u53c2\u8003\u306b\u3057\u305f\u3002<\/p>\n<p><strong>ISP<\/strong>\u3068\u306f\u3001<em>In-System Programming<\/em>\u00a0\u306e\u7565\u3067\u3001Arduino \u306b\u3088\u304f\u4f7f\u308f\u308c\u3066\u3044\u308bAtmel\u793e\u306eATmega\u30de\u30a4\u30b3\u30f3\u30b7\u30ea\u30fc\u30ba\u3067\u306f\u3001SPI\u30b7\u30ea\u30a2\u30eb\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u4ecb\u3057\u3066\u3001\u5185\u8535\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u66f4\u65b0\u7b49\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002ArduinoISP\u3068\u3044\u3046\u30b9\u30b1\u30c3\u30c1\u306f\u3001\u30b7\u30ea\u30a2\u30eb\u63a5\u7d9a\u3092\u4ecb\u3057\u3066PC (Arduino IDE) \u304b\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u89e3\u91c8\u3057\u305f\u308a\u3001\u8ee2\u9001\u3059\u3079\u304d\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u3063\u305f\u308a\u3057\u3001\u305d\u306e\u5185\u5bb9\u3092SPI\u3092\u4ecb\u3057\u3066\u30bf\u30fc\u30b2\u30c3\u30c8\u306eAVR\u30de\u30a4\u30b3\u30f3\u306b\u9001\u308a\u8fbc\u3080\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u308b\u3002<\/p>\n<h3>PRO MINI\u3092\u4f7f\u3063\u305fISP<\/h3>\n<p>\u53c2\u8003\u306b\u3057\u305f\u30da\u30fc\u30b8\u306b\u306fArduino UNO\u3092\u4f7f\u3063\u305f\u914d\u7dda\u56f3\u304c\u3067\u3066\u3044\u305f\u306e\u3060\u3051\u3069\u3001\u624b\u5143\u306b\u7121\u4e8b\u306aPRO MINI\u304c\u3042\u3063\u305f\u306e\u3067\u3001ISP\u5074\u306b\u3082PRO MINI\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u306e\u5b9f\u4f53\u914d\u7dda\u56f3\u3067\u306f\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u306e\u3067\u56de\u8def\u56f3\u3063\u307d\u3044\u914d\u7dda\u56f3\u306b\u63cf\u304d\u76f4\u3057\u305f\u3002SPI\u63a5\u7d9a\u7528\u306e3\u672c\u3068\u30bf\u30fc\u30b2\u30c3\u30c8\u5074\u306eRESET\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u30d4\u30f3\u304c1\u672c\u3002\u305d\u3057\u3066ISP\u30b9\u30b1\u30c3\u30c1\u306e\u52d5\u4f5c\u72b6\u6cc1\u3092\u8868\u3059LED\u304c3\u3064\u3002<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_6421\" aria-describedby=\"caption-attachment-6421\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2017\/09\/A_PRO_MINI-ISP.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-6421\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2017\/09\/A_PRO_MINI-ISP-552x380.png\" alt=\"\" width=\"552\" height=\"380\" \/><\/a><figcaption id=\"caption-attachment-6421\" class=\"wp-caption-text\">Arduino as ISP. \u53f3\u304cISP,\u5de6\u304c\u30bf\u30fc\u30b2\u30c3\u30c8<\/figcaption><\/figure>\n<p>\u3053\u3046\u3044\u3063\u305f\u69cb\u6210\u306b\u3057\u3066<em>ArduinoISP<\/em>\u30b9\u30b1\u30c3\u30c1\u3092ISP\u3068\u3059\u308b\u5074(\u56de\u8def\u56f3\u3067\u306f\u53f3\u5074\u306ePRO MINI) \u306b\u9001\u308a\u8fbc\u307f\u3001\u5ff5\u306e\u305f\u3081\u30ea\u30bb\u30c3\u30c8\u3057\u3066\u958b\u59cb\u3055\u305b\u308b\u3068\u3001D9\u306b\u3064\u306a\u3044\u3060\u7dd1\u8272\u306eLED\u304c\u70b9\u706f\u3057\u305f\u3002\u6e96\u5099\u30aa\u30fc\u30b1\u30fc\u306e\u306f\u305a\u306a\u306e\u3067\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u5074 (\u56de\u8def\u56f3\u5de6\u5074)\u306b\u3082+5V\u3092\u4e0e\u3048\u3001Arduino IDE\u306e\u30c4\u30fc\u30eb\u30e1\u30cb\u30e5\u30fc\u306b\u3066\u4e0b\u56f3\u306e\u3088\u3046\u306b\u66f8\u8fbc\u307f\u88c5\u7f6e\u3092\u9078\u629e\u3057\u305f\u3002\u3053\u306e\u6bb5\u968e\u3067\u3082\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u5074D13\u306eLED\u306f\u9ad8\u901f\u70b9\u6ec5\u306e\u307e\u307e\u3060\u3063\u305f\u3002<\/p>\n<p><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2016\/10\/0d40a5e4a645fc6b96e767d64ac0878e.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-5150\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2016\/10\/0d40a5e4a645fc6b96e767d64ac0878e-552x548.png\" alt=\"\u66f8\u8fbc\u307f\u88c5\u7f6e\u306e\u9078\u629e\" width=\"552\" height=\"548\" \/><\/a><\/p>\n<p>Arduino IDE\u3067\u306f\u3001\u30c4\u30fc\u30eb\u30e1\u30cb\u30e5\u30fc\u5185\u306e<strong>\u300c\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u300d<\/strong>\u3068\u3057\u3066\u66f8\u8fbc\u307f\u5148\u306eArduino\u306e\u7a2e\u985e(PRO MINI)\u3092\u9078\u629e\u3057\u3001<strong>\u300c\u66f8\u8fbc\u88c5\u7f6e\u300d<\/strong>\u3068\u3057\u3066&#8221;<em>Arduino as ISP<\/em>&#8221; \u3092\u9078\u629e\u3059\u308b\u3002<br \/>\n\u4eca\u56de\u306fISP\u3082\u30bf\u30fc\u30b2\u30c3\u30c8\u3082PRO MINI\u306a\u306e\u3067\u300c\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u300d\u306e\u9078\u629e\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u304c\u3001\u4f8b\u3048\u3070Arduino ADK\u3092ISP\u3068\u3057\u3066\u4f7f\u3046\u3088\u3046\u306a\u5834\u5408\u306b\u306f\u3001\u3082\u3068\u3082\u3068\u306fArduino ADK\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u306a\u306e\u3067\u5909\u66f4\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<h6>\u30b9\u30b1\u30c3\u30c1\u306e\u66f8\u8fbc\u307f (\u66f8\u8fbc\u307f\u88c5\u7f6e\u3092\u4f7f\u3063\u3066\u66f8\u304d\u8fbc\u3080)<\/h6>\n<p>\u554f\u984c\u306e\u30b9\u30b1\u30c3\u30c1\u3092\u4e0a\u66f8\u304d\u3059\u308c\u3070\u30aa\u30fc\u30b1\u30fc\u3060\u308d\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3001IDE\u3067\u7121\u96e3\u306a\u30b9\u30b1\u30c3\u30c1\u3092\u958b\u304d\u3001\u30b9\u30b1\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc\u306b\u3042\u308b\u300c<strong>\u66f8\u8fbc\u307f\u88c5\u7f6e\u3092\u4f7f\u3063\u3066\u66f8\u304d\u8fbc\u3080<\/strong>\u300d\u3092\u9078\u629e\u3057\u305f\u3002<br \/>\nISP\u5074\u306ePRO MINI\u306b\u306f<em>ArduinoISP<\/em>\u30b9\u30b1\u30c3\u30c1\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3068\u306f\u3044\u3048\u3001\u300c<strong>\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306b\u66f8\u304d\u8fbc\u3080<\/strong>\u300d\u3092\u9078\u3093\u3067\u3057\u307e\u3046\u3068\u3001<span style=\"text-decoration: underline;\">ISP\u5074\u306ePRO MINI\u306e\u30b9\u30b1\u30c3\u30c1\u304c\u66f8\u304d\u63db\u308f\u3063\u3066\u3057\u307e\u3046<\/span>\u3053\u3068\u306b\u6ce8\u610f\u3002<strong>\u300c\u66f8\u8fbc\u88c5\u7f6e\u300d<\/strong>\u3068\u3057\u3066&#8221;<em>Arduino as ISP<\/em>&#8220;\u3092\u9078\u629e\u3057\u3066\u3044\u3066\u3082\u3001\u3053\u306e\u52d5\u4f5c\u306f\u5909\u308f\u3089\u306a\u3044\u3088\u3046\u3060\u3063\u305f\u3002<\/p>\n<figure id=\"attachment_5157\" aria-describedby=\"caption-attachment-5157\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2016\/10\/737a5429c39613f1dd6631c4a537ec77.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-5157\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2016\/10\/737a5429c39613f1dd6631c4a537ec77-552x414.jpg\" alt=\"PRO MINI as ISP\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-5157\" class=\"wp-caption-text\">\u5de6\u5074\u304c\u30bf\u30fc\u30b2\u30c3\u30c8\u3001\u53f3\u5074\u304cISP<\/figcaption><\/figure>\n<p>\u666e\u901a\u306e\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u306b2\u3064\u306ePRO MINI\u3092\u8f09\u305b\u3001ISP\u5074\u306fAE-FT231X\u306b\u63a5\u7d9a\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u66f8\u8fbc\u307f\u3092\u958b\u59cb\u3059\u308b\u3068ISP\u5074\u306b\u63a5\u7d9a\u3057\u305fLED\u304c\u70b9\u6ec5\u3057\u305f\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u5931\u6557\u3057\u305f\u3002<\/p>\n<pre class=\"nums:false lang:default highlight:0 decode:true\">avrdude: Yikes!  Invalid device signature.\r\n         Double check connections and try again, or use -F to override\r\n         this check.\r\n<\/pre>\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8\u5074\u3067\u9ad8\u901f\u306b\u70b9\u6ec5\u3059\u308bLED\u306fD13\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u3001\u3053\u306e\u4fe1\u53f7\u7dda\u306fSPI\u63a5\u7d9a\u6642\u306b\u3082\u4f7f\u308f\u308c\u308b\u304b\u3089\u3001ISP-\u30bf\u30fc\u30b2\u30c3\u30c8\u9593\u306e\u901a\u4fe1\u306b\u554f\u984c\u304c\u3042\u308b\u3088\u3046\u306b\u601d\u3048\u305f\u3002<\/p>\n<p>\u4f55\u5ea6\u304b\u8a66\u3057\u305f\u304c\u540c\u3058\u3060\u3063\u305f\u306e\u3067\u3001AVR\u30de\u30a4\u30b3\u30f3\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8 (\u00a0<strong><em>ATmega48A\/PA\/88A\/PA\/168A\/PA\/328\/P [DATASHEET],\u00a0Atmel-8271J-AVR- ATmega-Datasheet_11\/2015<\/em><\/strong> ) \u3092\u8aad\u3093\u3067\u300128.8\u9805\u306e\u30b7\u30ea\u30a2\u30eb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u5074\u306eRESET\u3068SCK\u3092LOW\u306b\u3057\u3066\u304b\u3089\u96fb\u6e90\u3092\u4e0e\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3057(\u4ee3\u66ff\u624b\u9806\u3082\u66f8\u3044\u3066\u3042\u308b\u304c)\u3002ArduinoISP\u306esetup() \u3092\u5c11\u3057\u624b\u76f4\u3057\u3057\u3001RESET=LOW\u72b6\u614b\u3067\u958b\u59cb\u3057\u3001\u305d\u306e\u5f8c\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u96fb\u6e90\u3092\u4e0e\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u3088\u3046\u3084\u304f\u66f8\u8fbc\u307f\u304c\u6210\u529f\u3002D13 LED\u306e\u70b9\u6ec5\u3082\u6b62\u307e\u3063\u3066\u304f\u308c\u305f\u3002<\/p>\n<h2>\u304d\u3087\u3046\u306e\u307e\u3068\u3081<\/h2>\n<ul>\n<li>\u30bf\u30fc\u30b2\u30c3\u30c8\u5074\u306bFT-231X\u3092\u3064\u306a\u3044\u3067\u3001Arduino IDE\u304b\u3089\u3082\u30b9\u30b1\u30c3\u30c1\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u5fa9\u65e7\u3057\u305f\u3068\u898b\u3066\u3088\u3044\u3060\u308d\u3046\u3002<\/li>\n<li>\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306b\u3042\u308b\u00a0Chip Erase \u3068\u3044\u3046\u30d0\u30a4\u30c8\u30b7\u30fc\u30b1\u30f3\u30b9\u3082\u8a66\u3057\u3066\u307f\u305f\u304c\u3001\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u3082\u30b9\u30b1\u30c3\u30c1\u3082\u304d\u308c\u3044\u3055\u3063\u3071\u308a\u6d88\u3048\u3066\u3057\u307e\u3046\u3088\u3046\u3060\u3063\u305f\u3002\u305d\u306e\u5f8c\u3001\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u306e\u307f\u3092\u66f8\u8fbc\u307f\u3068\u3001D13\u306eLED\u304c1Hz\u4ee5\u4e0a\u306e\u5468\u671f\u3067\u70b9\u6ec5\u3092\u7e70\u308a\u8fd4\u3059\u3088\u3046\u306b\u306a\u3063\u305f\u304c\u3001\u305d\u308c\u304c\u6b63\u3057\u3044\u52d5\u4f5c\u306a\u306e\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3059\u308b\u624b\u6bb5\u3082\u60c5\u5831\u3082\u306a\u3044\u3002<\/li>\n<li>Arduino PRO MINI\u306f\u3001\u3044\u308f\u3070\u30d5\u30e9\u30c3\u30c8\u578b\u306eAVR\u30de\u30a4\u30b3\u30f3\u306eDIP\u5316\u30ad\u30c3\u30c8\uff08\u30d6\u30ec\u30fc\u30af\u30a2\u30a6\u30c8\u30dc\u30fc\u30c9\uff09\u307f\u305f\u3044\u306a\u3082\u306e\u3067\u3001\u307b\u307c\u7d20\u306e\u72b6\u614b\u306e\u30de\u30a4\u30b3\u30f3\u306b\u89e6\u308c\u308b\u3002\u4eca\u5f8c\u3082\u3061\u3087\u304f\u3061\u3087\u304f\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u305d\u3046\u3002<\/li>\n<\/ul>\n<h3>\u8ffd\u8a18<\/h3>\n<ul>\n<li>Arduino\u306e\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u306e\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u306f\u3001&#8221;<em>&#8230;\\hardware\\arduino\\avr\\bootloaders\\atmega\\ATmegaBOOT_168.c<\/em>&#8221; \u3068\u3057\u3066Arduino IDE\u3068\u5171\u306b\u914d\u5e03\u3055\u308c\u3066\u3044\u305f\u3002&#8221;<em>__AVR_ATmega328P__<\/em>&#8220;\u3092\u4e0e\u3048\u3066make\u3059\u308b\u306e\u3060\u308d\u3046\u3002\u30d2\u30de\u306a\u6642\u306b\u3067\u3082\u8aad\u3093\u3067\u307f\u307e\u3059\u3002<\/li>\n<li>AVR\u30de\u30a4\u30b3\u30f3 (ATmega328p) \u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306f\u6539\u8a02\u3055\u308c\u3066\u304a\u308a\u3001\u304d\u3087\u3046\u73fe\u5728\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308b\u306e\u306f\u3001<em><a href=\"http:\/\/www.atmel.com\/ja\/jp\/Images\/Atmel-42735-8-bit-AVR-Microcontroller-ATmega328-328P_datasheet.pdf\">Atmel-42735A-ATmega328\/P_Datasheet_Complete-06\/2016<\/a> <\/em>\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u3053\u308c\u3092\u898b\u308b\u3068\u3001SPI\u3092\u4f7f\u3063\u305f\u30b7\u30ea\u30a2\u30eb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u3064\u3044\u3066\u306f31.8\u9805\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 Arduino PRO MINI\u3092\u4f7f\u3063\u305f\u7814\u7a76\uff08\uff1f\uff09\u3092\u3057\u3066\u3044\u3066\u5931\u6557\u3057\u3066\u3057\u307e\u3044\u3001Arduino IDE\u304b\u3089\u30b9\u30b1\u30c3\u30c1\u306e\u66f8\u304d\u63db\u3048\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u305d\u306e\u4e0a\u3001ArduinoISP\u30b9\u30b1\u30c3\u30c1\u3092\u4f7f\u3063\u305f\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u3084\u30b9\u30b1\u30c3\u30c1 &hellip; <a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?p=5112\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Arduino PRO MINI\u306e\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea\u306e\u6d88\u53bb\u3068\u66f8\u304d\u63db\u3048<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[65],"class_list":["post-5112","post","type-post","status-publish","format-standard","hentry","category-programming","tag-arduino"],"_links":{"self":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5112"}],"version-history":[{"count":0,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5112\/revisions"}],"wp:attachment":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}