{"id":1900,"date":"2022-08-11T10:54:22","date_gmt":"2022-08-11T10:54:22","guid":{"rendered":"https:\/\/firedragon.jp\/nissin\/?page_id=1900"},"modified":"2022-08-21T08:04:34","modified_gmt":"2022-08-21T08:04:34","slug":"%e6%8b%a1%e5%bc%b5%e5%9f%ba%e6%9d%bf","status":"publish","type":"page","link":"https:\/\/firedragon.jp\/nissin\/%e6%8b%a1%e5%bc%b5%e5%9f%ba%e6%9d%bf\/","title":{"rendered":"\u62e1\u5f35\u57fa\u677f"},"content":{"rendered":"<p><strong>&#8220;<span style=\"color: #ff00ff; font-size: 24pt;\">\u62e1\u5f35\u30b3\u30cd\u30af\u30bf\u304b\u3089\u306e\u5916\u90e8\u57fa\u677f\u3067\u306e\u52d5\u4f5c\u691c\u8a3c<\/span>&#8220;\u3000\u3067\u3059<\/strong><\/p>\n<p>\u4e0b\u8a18\u52d5\u753b\u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p><strong style=\"color: #ff0000;\">\uff39outbe\u753b\u9762\u306f\u3001\uff28\uff24\u30e2\u30fc\u30c9\u30fb<\/strong><strong style=\"color: #ff0000;\">\u30d5\u30eb\u753b\u9762\u3067\u8996\u8074\u304a\u9858\u3044\u3057\u307e\u3059\u3002\uff28D\u4ee5\u5916\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0<\/strong><strong style=\"color: #ff0000;\">\u6587\u5b57\u304c\u307f\u306b\u304f\u3044\u3067\u3059\u3002<\/strong><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=y4rxIuUZWjQ\">Youtube\u3067\u306e\u753b\u8cea\u306f\u3001\u5fc5\u305a\u30001080P60 HD (\u9ad8\u753b\u8cea\u30e2\u30fc\u30c9)\u306b\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\uff01\uff01<\/a><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=sg1u7OcbB6Y\">https:\/\/www.youtube.com\/watch?v=sg1u7OcbB6Y<\/a><\/p>\n<a href=\"https:\/\/www.youtube.com\/watch?v=sg1u7OcbB6Y\"><img decoding=\"async\" src=\"https:\/\/firedragon.jp\/nissin\/wp-content\/uploads\/2022\/08\/mq1-1.jpg\" \/><\/a>\n<p><span style=\"color: #ff0000;\">(\u6ce8)\u3000Rspi PICO\u3067\u306f\u3001\u3000IN\u3001OUT\u5207\u308a\u66ff\u3048\u30b9\u30a4\u30c3\u30c1\u306f\u53f3\u4e0a\u306b\u306a\u308a\u307e\u3059\u3002\u00a0<\/span><\/p>\n<p>\u62e1\u5f35\u57fa\u677f\u306e\u30d0\u30b9\u30e9\u30a4\u30f3\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u5185\u90e8\u4fe1\u53f7\u30d0\u30b9\u3092\u305d\u306e\u307e\u307e\u5f15\u304d\u3060\u3057\u305f\u3082\u306e<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u96fb\u6e90\u56de\u8def (3V , 5V)\u00a0 \u306f\u3001\u5185\u90e8\u30fb\u5916\u90e8\u3067\u5207\u308a\u96e2\u3057\u3092\u5b9f\u65bd\u3057\u3066\u307e\u3059\u3002<\/p>\n<p>\u5f93\u3063\u3066\u5165\u529b\u30fb\u51fa\u529b\u306f\u3001\u3000\u4e0b\u8a18\u30b5\u30a4\u30c8\u306b\u8a18\u8f09\u3057\u3066\u3042\u308b\u6ce8\u610f\u4e8b\u9805\u3092\u5341\u5206\u306b\u5b88\u3063\u3066\u3054\u4f7f\u7528\u4e0b\u3055\u3044\u3002<\/p>\n<p><strong>\u3007\u3000ESP32\u95a2\u9023<\/strong><\/p>\n<p><a href=\"https:\/\/lang-ship.com\/blog\/work\/esp32-gpio-input\/\">\u53c2\u8003\u30b5\u30a4\u30c8<\/a><\/p>\n<p><strong>\u3007\u3000RaspiPICO\u95a2\u9023<\/strong><\/p>\n<p><a href=\"https:\/\/blog.boochow.com\/article\/rpi-pico-spec-5.html\">\u53c2\u8003\u30b5\u30a4\u30c8<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #800080; font-size: 14pt;\"><strong>\u73fe\u72b6\u5185\u90e8\u56de\u8def\u3067\u306e\u4fe1\u53f7\u5272\u308a\u632f\u308a\u306f\u4e0b\u8a18\u306b\u306a\u3063\u3066\u307e\u3059\uff08\u30bd\u30d5\u30c8\u3067\u306e\u30d4\u30f3\u756a\u53f7\u5272\u4ed8\u3067\u3059\uff09\u3002\u8a73\u7d30\u306f\u56de\u8def\u56f3\u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\"><strong>\u3007\u3000ESP32<\/strong><\/span><\/p>\n<p><strong>\/\/LED\u306e\u30d4\u30f3\u5272\u4ed8\u3000\uff08\u51fa\u529b\uff09<\/strong><\/p>\n<p>const uint LED_PIN14 = 14; \/\/ LED1<br \/>\nconst uint LED_PIN13 = 13; \/\/ LED2<br \/>\nconst uint LED_PIN25 = 25; \/\/ LED3<br \/>\nconst uint LED_PIN12 = 12; \/\/ LED4<\/p>\n<p><strong>\/\/Speaker\u306e\u30d4\u30f3\u5272\u4ed8\u3000\uff08\u51fa\u529b\uff09<\/strong><\/p>\n<p>const uint SPEAKER = 2;<br \/>\n#define BUZZER_CHANEL 0 \/\/ \u30d6\u30b6\u30fc\u306e\u30c1\u30e3\u30cd\u30eb\u756a\u53f7<br \/>\n#define BUZZER_PIN 27 \/\/ \u30d6\u30b6\u30fc\u3092\u9cf4\u3089\u3059\u305f\u3081\u306e\u30d4\u30f3<br \/>\n#define BEAT 150 \/\/ \u4e00\u3064\u306e\u97f3\u3092\u9cf4\u3089\u3059\u6642\u9593<br \/>\n#define LEDC_CHANNEL 0 \/\/ \u30c1\u30e3\u30f3\u30cd\u30eb<br \/>\n#define LEDC_TIMER_BIT 13<br \/>\n#define LEDC_BASE_FREQ 5000<\/p>\n<p><strong>\/\/SW \u306e\u30d4\u30f3\u5272\u4ed8\u3000\uff08\u5165\u529b\uff09<\/strong><\/p>\n<p>const uint SW = 17; \/\/ SW1<br \/>\nconst uint SW = 16; \/\/ SW2<br \/>\nconst uint SW = 15; \/\/ SW3<br \/>\nconst uint SW = 4; \/\/ SW4<\/p>\n<p><strong>\/\/\u305d\u306e\u4ed6\u3000\u30d4\u30f3\u756a\u53f7\u6307\u5b9a<\/strong><br \/>\nconst uint pd0 = 27; \/\/ \u53f3\u4e0b\u3000\u4e0a\u304b\u30894\u756a\u76ee\u306e\u30c7\u30b8\u30bf\u30eb\u51fa\u529b<br \/>\n#define LEDC_PIN A17<br \/>\n#define LEDC_CHANNEL0 0<\/p>\n<p>\/\/\u30c7\u30b8\u30bf\u30eb\u30dd\u30fc\u30c8\u3000\uff08\u51fa\u529b\uff09<\/p>\n<p>const uint Pin34 = 34;<br \/>\nconst uint Pin33 = 35;<br \/>\nconst uint Pin27 = 27;\u00a0 \/\/Speaker<\/p>\n<p>\/\/\u30a2\u30ca\u30ed\u30b0\u30dd\u30fc\u30c8\u3000\uff08\u51fa\u529b\uff09<\/p>\n<p>const uint inPin32 = 32; \/\/ PHOTO<br \/>\nconst uint inPin33 = 33; \/\/ Temp<br \/>\nuint inPin39 = 39; \/\/ Distance<\/p>\n<p><strong>\/\/SPI\u3000\u30d4\u30f3\u756a\u53f7\u6307\u5b9a<\/strong><\/p>\n<p>const uint inPin18 = 18; \/\/ SCK<br \/>\nconst uint inPin23 = 23; \/\/ MOSI<br \/>\nconst uint inPin19 = 19; \/\/MISO<br \/>\nconst uint inPin26 = 26; \/\/ RST<br \/>\nconst uint inPin5 =\u00a0 5; \/\/SS<\/p>\n<p><span style=\"color: #0000ff;\"><strong>\u3007\u3000Raspi PICO<\/strong><\/span><\/p>\n<p><strong>\/\/LED\u306e\u30d4\u30f3\u5272\u4ed8\u3000\uff08\u51fa\u529b\uff09<\/strong><\/p>\n<p>const uint LED_PIN18 = 18;<br \/>\nconst uint LED_PIN19 = 19;<br \/>\nconst uint LED_PIN20 = 20;<br \/>\nconst uint LED_PIN21 = 21;<\/p>\n<p><strong>\/\/Speaker\u306e\u30d4\u30f3\u5272\u4ed8\u3000\uff08\u51fa\u529b\uff09<\/strong><\/p>\n<p>const uint SPEAKER = 22;<\/p>\n<p><strong>\/\/SW \u306e\u30d4\u30f3\u5272\u4ed8\u3000\uff08\u5165\u529b\uff09<\/strong><\/p>\n<p>const uint inPin12 = 12; \/\/ SW4<br \/>\nconst uint inPin13 = 13; \/\/ SW3<br \/>\nconst uint inPin14 = 14; \/\/ SW2<br \/>\nconst uint inPin15 = 15; \/\/ SW1<\/p>\n<p><strong>\/\/\u305d\u306e\u4ed6\u3000\u30d4\u30f3\u756a\u53f7\u6307\u5b9a<\/strong><br \/>\nconst uint pd0 = 27; \/\/ \u53f3\u4e0b\u3000\u4e0a\u304b\u30894\u756a\u76ee\u306e\u30c7\u30b8\u30bf\u30eb\u51fa\u529b<br \/>\n#define LEDC_PIN A17<br \/>\n#define LEDC_CHANNEL0 0<\/p>\n<p>\/\/\u30c7\u30b8\u30bf\u30eb\u30dd\u30fc\u30c8\u3000\uff08\u51fa\u529b\uff09<\/p>\n<p>const uint Pin34 = 34;<br \/>\nconst uint Pin33 = 35;<br \/>\nconst uint Pin = 9;\u00a0 \/\/Speaker<\/p>\n<p>\/\/\u30a2\u30ca\u30ed\u30b0\u30dd\u30fc\u30c8\u3000\uff08\u51fa\u529b\uff09<\/p>\n<p>const uint inPin28 = 28;\u00a0 \/\/ Photo<br \/>\nconst uint inPin27 = 27;\u00a0 \/\/ Temp<br \/>\nconst uint inPin39 = 39;\u00a0 \/\/ Senser<\/p>\n<p><strong>\/\/SPI\u3000\u30d4\u30f3\u756a\u53f7\u6307\u5b9a<\/strong><\/p>\n<p><strong>\/\/SPI\u3000\u30d4\u30f3\u756a\u53f7\u6307\u5b9a<\/strong><\/p>\n<p>const uint inPin2 = 2; \/\/ SCK<br \/>\nconst uint inPin10 = 10; \/\/ MOSI<br \/>\nconst uint inPin19 = 19; \/\/MISO<br \/>\nconst uint inPin26 = 26; \/\/ RST<br \/>\nconst uint inPin = 5; \/\/SS<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u56de\u8def\u56f3\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;\u62e1\u5f35\u30b3\u30cd\u30af\u30bf\u304b\u3089\u306e\u5916\u90e8\u57fa\u677f\u3067\u306e\u52d5\u4f5c\u691c\u8a3c&#8220;\u3000\u3067\u3059 \u4e0b\u8a18\u52d5\u753b\u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002 \uff39outbe\u753b\u9762\u306f\u3001\uff28\uff24\u30e2\u30fc\u30c9\u30fb\u30d5\u30eb\u753b\u9762\u3067\u8996\u8074\u304a\u9858\u3044\u3057\u307e\u3059\u3002\uff28D\u4ee5\u5916\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u6587\u5b57\u304c\u307f\u306b\u304f\u3044\u3067\u3059\u3002 Youtube&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"content-type":"","footnotes":""},"tags":[],"class_list":["post-1900","page","type-page","status-publish","article cf"],"_links":{"self":[{"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/pages\/1900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/comments?post=1900"}],"version-history":[{"count":23,"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/pages\/1900\/revisions"}],"predecessor-version":[{"id":1942,"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/pages\/1900\/revisions\/1942"}],"wp:attachment":[{"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/media?parent=1900"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/tags?post=1900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}