{"id":2158,"date":"2014-11-16T23:07:25","date_gmt":"2014-11-16T14:07:25","guid":{"rendered":"http:\/\/pokosho.com\/b\/?p=2158"},"modified":"2014-11-16T23:11:56","modified_gmt":"2014-11-16T14:11:56","slug":"post-2158","status":"publish","type":"post","link":"https:\/\/pokosho.com\/b\/archives\/2158","title":{"rendered":"Arduino\u52c9\u5f37\u4e2d\u306b\u30c7\u30a3\u30b9\u30c8\u30fc\u30b7\u30e7\u30f3\u30a8\u30d5\u30a7\u30af\u30bf\u8a66\u4f5c"},"content":{"rendered":"<p>Arduino\u3067\u904a\u3093\u3067\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u9762\u767d\u3044\u3001\u5922\u304c\u3072\u308d\u304c\u308a\u3093\u3050\uff01<\/p>\n<p><!--more--><br \/>\n\u4f8b\u3048\u3070\u3001LED\u304c\u70b9\u6ec5\u3092\u7e70\u308a\u8fd4\u3059\u3082\u306e\u3092\u4f5c\u308d\u3046\u3068\u3059\u308b\u3068\u304d\u3063\u3068\u76f8\u5f53\u96e3\u3057\u3044\u3068\u601d\u3046\u3093\u3067\u3059\u304c\u3001Arduino\u3060\u3068\u3053\u3046\u3067\u3059\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n\/\/ the setup function runs once when you press reset or power the board\r\nvoid setup() {\r\n  \/\/ initialize digital pin 13 as an output.\r\n  pinMode(13, OUTPUT);\r\n}\r\n\r\n\/\/ the loop function runs over and over again forever\r\nvoid loop() {\r\n  digitalWrite(13, HIGH);   \/\/ turn the LED on (HIGH is the voltage level)\r\n  delay(1000);              \/\/ wait for a second\r\n  digitalWrite(13, LOW);    \/\/ turn the LED off by making the voltage LOW\r\n  delay(1000);              \/\/ wait for a second\r\n}\r\n<\/pre>\n<p><iframe loading=\"lazy\" width=\"1140\" height=\"641\" src=\"https:\/\/www.youtube.com\/embed\/ToVvjRSN_7M?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>C\u8a00\u8a9e\u3067\u6307\u5b9a\u306e\u7aef\u5b50\u306b\u6307\u5b9a\u306e\u96fb\u5727\u3092\u51fa\u529b\u3067\u304d\u308b\u3002\u3082\u3061\u308d\u3093\u3001\u5165\u529b\u3082\u540c\u3058\u304f\u3067\u304d\u308b\u3002<br \/>\n\u96fb\u5b50\u5de5\u4f5c\u304c\u3067\u304d\u306a\u304f\u3066\u4f5c\u308c\u306a\u304b\u3063\u305f\u3042\u308c\u3084\u3053\u308c\u3084\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u66f8\u3051\u307e\u3059\uff01<\/p>\n<p><a href=\"\/b\/archives\/1953\">\u50d5\u304c\u96fb\u5b50\u5de5\u4f5c\u3001\u3068\u3044\u3046\u3068\u30ae\u30bf\u30fc\u306e\u30a8\u30d5\u30a7\u30af\u30bf<\/a>\u3067\u3059\u304c\u3001Arduino\u3067\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4e00\u756a\u7c21\u5358\u3067\u6c4e\u7528\u6027\u3082\u9ad8\u3044\u6b6a\u7cfb\u30a8\u30d5\u30a7\u30af\u30bf\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001Arduino\u306e\u51fa\u529b\u306fPWM\u3092\u4f7f\u3063\u305f\u64ec\u4f3c\u7684\u306a\u3082\u306e\u3067\u3001\u53cd\u5fdc\u3082\u60aa\u305d\u3046\u3060\u3057\u3001\u4f7f\u7528\u306b\u8010\u3048\u3046\u308b\u3082\u306e\u306f\u3067\u304d\u306a\u3044\u3060\u308d\u3046\u306a\u3001\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u3084\u308b\u3053\u3068\u306b\u610f\u7fa9\u304c\u3042\u308b\uff01<\/p>\n<p>\u3084\u308b\u3053\u3068\u306f\u3053\u3093\u306a\u611f\u3058\u3092\u8003\u3048\u3066\u3044\u307e\u3059\u3002\u96fb\u5b50\u5de5\u4f5c\u306f\u7d20\u4eba\u306a\u306e\u3067\u8a73\u3057\u3044\u4eba\u7a81\u3063\u8fbc\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol>\n<li>\u30ae\u30bf\u30fc\u304b\u3089\u51fa\u529b\u3055\u308c\u308b\u96fb\u5727\u306f0.4mV\u7a0b\u5ea6\u306e\u4ea4\u6d41\u3067\u3001Arduino\u306e\u5165\u529b\u96fb\u5727(0\u301c5V)\u304b\u3089\u307f\u308b\u3068\u5c0f\u3055\u3059\u304e\u308b\u3057\u3001\u30de\u30a4\u30ca\u30b9\u90e8\u5206\u304c\u6271\u3048\u306a\u3044\u3002<\/li>\n<li>2.5V\u3092\u4e2d\u5fc3\u306b\u3057\u305f\u4ea4\u6d41\u306b\u3057\u3066\u3001\u96fb\u5727\u3082\u5927\u304d\u304f\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002\u30aa\u30da\u30a2\u30f3\u30d7\u3092\u4f7f\u3063\u3066\u30012.5V\u306e\u30d0\u30a4\u30a2\u30b9\u3092\u304b\u3051\u3066\u30016\u500d\u7a0b\u5ea6\u3057\u3066\u3084\u308c\u3070\u826f\u3055\u305d\u3046\u3002<\/li>\n<li>Arduino\u3067\u597d\u304d\u306a\u3088\u3046\u306b\u6ce2\u5f62\u3092\u3044\u3058\u308b\u3002\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u306a\u3093\u304b\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3089\u4f59\u88d5\u3067\u3059\uff01\u3068\u601d\u3046\u3051\u3069\u3001\u3069\u3046\u306a\u308b\u304b\u3084\u3063\u3066\u307f\u306a\u3044\u3068\u308f\u304b\u3089\u306a\u3044\u3002<\/li>\n<li>Arduino\u304b\u306e\u51fa\u529b\u30920V\u3092\u4e2d\u5fc3\u306b\u632f\u3089\u308c\u308b\u3088\u3046\u306b\u5143\u306b\u623b\u3059\u3002\u30a2\u30ca\u30ed\u30b0\u306a\u3089\u30b3\u30f3\u30c7\u30f3\u30b5\u3092\u901a\u3057\u3066\u3001\u30d0\u30a4\u30a2\u30b9\u3067\u8db3\u3057\u305f\u76f4\u6d41\u6210\u5206\u3092\u53d6\u3063\u6255\u3048\u3070\u3044\u3044\u3093\u3060\u3051\u3069\u3001\u540c\u3058\u306b\u3067\u304d\u306a\u3044\u3067\u3059\u3088\u306d\u2026\uff1f \u6e1b\u7b97\u56de\u8def\u3092\u7d44\u3080\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3002+\u65b9\u5411\u3060\u3051\u306b\u632f\u308c\u3066\u3066\u3082\u5225\u306b\u3044\u3044\u6c17\u3082\u3057\u3066\u304d\u305f\u305e\u3002<\/li>\n<\/ol>\n<p>\u307e\u305a\u306f\u30011\u301c2\u306b\u53d6\u3063\u639b\u304b\u308a\u59cb\u3081\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u3053\u307e\u3067\u51fa\u6765\u3066\u3057\u307e\u3048\u3070\u3001\u30a2\u30ca\u30ed\u30b0\u3067\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u306e\u306a\u3093\u304b\u7c21\u5358\u3002\u30c0\u30a4\u30aa\u30fc\u30c92\u672c\u633f\u3059\u3060\u3051\u3067\u3059\u3002<br \/>\n\u30c6\u30b9\u30c8\u304c\u3066\u3089\u3001\u904a\u3073\u59cb\u3081\u3066\u3057\u307e\u3044\u3001\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u56de\u8def\u3092\u8272\u3005\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u306f\u308f\u304b\u308a\u3084\u3059\u3044\u56de\u8def\u3092\u76ee\u6307\u3057\u305f\u305f\u3081\u3001\u30ce\u30a4\u30ba\u5bfe\u7b56\u3092\u6b86\u3069\u3057\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\n\u30e9\u30b8\u30aa\u306e\u97f3\u3082\u62fe\u3063\u3066\u5897\u5e45\u3057\u3066\u305f\u69d8\u5b50\u3002<br \/>\n\u5de6\u304b\u3089\u3001\u30b2\u30eb\u30de\u30cb\u30a6\u30e0\u30c0\u30a4\u30aa\u30fc\u30c9\u3001LED\u3001\u6574\u6d41\u7528\u30c0\u30a4\u30aa\u30fc\u30c9\u3001\u5e02\u8ca9\u54c1(ARION SDI-1)\u3067\u3059\u3002<br \/>\n<strong style=\"color: red;\">\u7206\u97f3\u6ce8\u610f<\/strong>\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/w.soundcloud.com\/player\/?url=https%3A\/\/api.soundcloud.com\/tracks\/177164122&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true\" width=\"100%\" height=\"450\" frameborder=\"no\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u30ce\u30a4\u30ba\u304c\u9177\u3044\u306e\u306f\u3055\u3066\u304a\u304d\u3001\u3053\u308c\u306f\u3053\u308c\u3067\u5473\u304c\u3042\u308b\u6c17\u304c\u3057\u306a\u3044\u3067\u3082\u306a\u3044\u3067\u3059\u304c\u3001\u5e02\u8ca9\u54c1\u306f\u6d41\u77f3\u3067\u3059\u306a\u3002<br \/>\n\u30ce\u30a4\u30ba\u304c\u5c11\u306a\u3044\u3057\u3001\u500d\u97f3\u3082\u5fc3\u5730\u3088\u3044\u3002\u3053\u308c\u30672500\u5186\u7a0b\u5ea6\u306a\u306e\u3060\u304b\u3089\u3001\u5927\u3057\u305f\u3082\u3093\u3067\u3059\u3088\u3002<\/p>\n<p>\u3061\u306a\u307f\u306bLED\u306f\u6f14\u594f\u306b\u5408\u308f\u305b\u3066\u5149\u308a\u307e\u3057\u305f\u3002\u697d\u3057\u3044\uff57<br \/>\n\u3042\u3001<strong style=\"color: red;\">\u7206\u97f3\u6ce8\u610f<\/strong>\u306d\u3002<\/p>\n<p><iframe loading=\"lazy\" width=\"1140\" height=\"641\" src=\"https:\/\/www.youtube.com\/embed\/5w5vjy_9XRg?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>\u305d\u3057\u3066\u3001\u4f55\u3084\u3063\u3066\u3093\u3060\u30aa\u30ec\u2026\u3063\u3066\u306a\u3063\u3066\u3001\u4eca\u306b\u81f3\u308b\u3002<\/p>\n<p>Arduino\u30a8\u30d5\u30a7\u30af\u30bf\u304c\u3046\u307e\u304f\u3067\u304d\u305f\u3089\u3001\u5e74\u672b\u306e\u4f1a\u793e\u306e\u7d0d\u4f1a\u3067\u62ab\u9732\u3057\u305f\u3044\u3068\u601d\u3063\u3066\u307e\u3059(^^)<br \/>\n\u30ed\u30c3\u30af\u30d0\u30f3\u30c9\u4e00\u4eba\u3001\u30e9\u30a4\u30d6\u30cf\u30a6\u30b9B\u4f1a\u8b70\u5ba4\u3078\u3088\u3046\u3053\u305d\uff01\u3053\u3053\u306f\u6771\u4eac\u3060\u305c\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arduino\u3067\u904a\u3093\u3067\u307e\u3059\u3002 \u3053\u308c\u306f\u9762\u767d\u3044\u3001\u5922\u304c\u3072\u308d\u304c\u308a\u3093\u3050\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[15,5],"tags":[],"class_list":["post-2158","post","type-post","status-publish","format-standard","hentry","category-electronics","category-music"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/posts\/2158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/comments?post=2158"}],"version-history":[{"count":0,"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/posts\/2158\/revisions"}],"wp:attachment":[{"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/media?parent=2158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/categories?post=2158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/tags?post=2158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}