
{"id":13805,"date":"2021-12-06T17:30:35","date_gmt":"2021-12-06T08:30:35","guid":{"rendered":"https:\/\/okiraku-camera.tokyo\/blog\/?p=13805"},"modified":"2021-12-10T10:35:02","modified_gmt":"2021-12-10T01:35:02","slug":"raspberry-pi-4b%e7%94%a8-%e9%9b%bb%e6%ba%90%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab%e5%9f%ba%e6%9d%bf-%e3%81%9d%e3%81%ae1","status":"publish","type":"post","link":"https:\/\/okiraku-camera.tokyo\/blog\/?p=13805","title":{"rendered":"raspberry pi 4B\u7528 \u96fb\u6e90\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30dc\u30fc\u30c9\u306e\u4f5c\u6210 \u305d\u306e1"},"content":{"rendered":"<p><strong>Raspberry pi 4B<\/strong> ( \u4ee5\u4e0b\u3001raspi4 )\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306b\u3057\u305f\u304c\u3063\u3066\u30aa\u30f3\uff0f\u30aa\u30d5\u3059\u308b\u305f\u3081\u306e\u56de\u8def\u3068\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u307f\u305f\u3002<\/p>\n<figure id=\"attachment_13823\" aria-describedby=\"caption-attachment-13823\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/678cc126f600dcda6a128cd2d0f41911.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13823\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/678cc126f600dcda6a128cd2d0f41911-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-13823\" class=\"wp-caption-text\">raspi4\u306b\u96fb\u6e90\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u57fa\u677f\u3092\u88c5\u7740\u3057\u305f\u3068\u3053\u308d<\/figcaption><\/figure>\n<p>\u6a5f\u80fd\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3002<\/p>\n<ul style=\"list-style-type: circle;\">\n<li>raspi4\u306e\u96fb\u6e90\u3092\u30aa\u30f3\u306b\u3057\u305f\u308a\u3001\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u3066\u96fb\u6e90\u3092\u30aa\u30d5\u306b\u3059\u308b\u3002\u30b9\u30a4\u30c3\u30c1\u3067\u3082\u53ef\u80fd (<strong>\u96fb\u6e90\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u6a5f\u80fd<\/strong>)<\/li>\n<li>\u66dc\u65e5\u3001\u6642\u523b\u3001\u30aa\u30f3\u306b\u3057\u3066\u304a\u304f\u5206\u6570\u306e\u6307\u5b9a\u306b\u3088\u3063\u3066\u7a3c\u50cd\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3092\u8a2d\u5b9a\u3057\u3001\u305d\u308c\u306b\u3057\u305f\u304c\u3063\u3066\u96fb\u6e90\u30aa\u30f3\u3001\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3001\u96fb\u6e90\u30aa\u30d5\u3092\u884c\u3046(<strong>\u30d7\u30ed\u30b0\u30e9\u30de\u30d6\u30eb\u30bf\u30a4\u30de\u30fc\u6a5f\u80fd<\/strong>)\u3002<\/li>\n<li>\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306e\u57fa\u6e96\u3068\u306a\u308b\u73fe\u5728\u6642\u523b\u3092\u8a2d\u5b9a\u3057\u3066\u8a18\u61b6\u3059\u308b(<strong>RTC\u642d\u8f09<\/strong>)\u3002<\/li>\n<li>raspi4\u30b3\u30a2\u306e\u6e29\u5ea6\u304c\u4e0a\u304c\u3063\u305f\u3089\u51b7\u5374\u7528\u306e\u30d5\u30a1\u30f3\u3092\u56de\u3059(<strong>gpio-fan\u6a5f\u80fd<\/strong>)\u3002<\/li>\n<\/ul>\n<p>\u81ea\u5206\u304c\u5bdd\u3066\u3044\u308b\u6642\u9593\u5e2f\u306b\u3001\u52dd\u624b\u306b\u8d77\u52d5\u3057\u3066cron\u306b\u8a2d\u5b9a\u3057\u305f\u4ed5\u4e8b\u3092\u3053\u306a\u3057\u3001\u4ed5\u4e8b\u304c\u7d42\u308f\u3063\u305f\u3089\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u3066\u96fb\u6e90\u3082\u30aa\u30d5\u306b\u3059\u308b\u3068\u3044\u3046\u6a5f\u80fd\u3092\u5b9f\u73fe\u3057\u305f\u304f\u3066\u3001Pro Micro\u306eATmega32U4\u3068raspi4\u3092\u63a5\u7d9a\u3057\u305f\u3002<\/p>\n<p>raspi4\u3078\u306e\u96fb\u6e90\u306f\u3001Pch MOSFET\u3092\u30ed\u30fc\u30c9\u30b9\u30a4\u30c3\u30c1\u3068\u3057\u3066\u7528\u3044\u308b\u3053\u3068\u3067\u3001\u30bf\u30af\u30c8\u30b9\u30a4\u30c3\u30c1\u306e\u62bc\u4e0b\u3084Arduino (Pro Micro)\u306e\u30dd\u30fc\u30c8\u64cd\u4f5c\u3067\u884c\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u307e\u305f\u3001raspi4\u306eOS\u304c\u5099\u3048\u308b\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3092\u4f7f\u3063\u3066\u30c7\u30d0\u30a4\u30b9\u30c4\u30ea\u30fc\u3092\u62e1\u5f35\u3057\u3001\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u306e\u958b\u59cb (gpio-shutdown) \u3092Arduino\u306e\u30dd\u30fc\u30c8\u64cd\u4f5c\u3084\u30bf\u30af\u30c8\u30b9\u30a4\u30c3\u30c1\u306e\u62bc\u4e0b\u3067\u884c\u3048\u308b\u3088\u3046\u306b\u3057\u3001raspi4\u304b\u3089\u306e\u30d1\u30ef\u30fc\u30aa\u30d5\u901a\u77e5( gpio-poweroff) \u3092Arduino\u306e\u30dd\u30fc\u30c8\u3067\u691c\u51fa\u3057\u3001\u30ed\u30fc\u30c9\u30b9\u30a4\u30c3\u30c1\u3092\u30aa\u30d5\u306b\u3059\u308b\u3002<\/p>\n<p>\u3064\u3044\u3067\u306b\u3001gpio-fan\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3092\u4f7f\u3063\u3066\u30b3\u30a2\u6e29\u5ea6\u304c\u4e0a\u304c\u3063\u305f\u3089\u3001DC\u30d5\u30a1\u30f3\u3092\u56de\u3059\u305f\u3081\u306e\u56de\u8def\u3082\u57fa\u677f\u306b\u8f09\u305b\u305f\u3002<\/p>\n<p>\u3044\u308d\u3044\u308d\u306a\u8a71\u3067\u9577\u304f\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3001\u4eca\u56de\u306f\u304a\u3082\u306b\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306b\u3064\u3044\u3066\u3002<\/p>\n<h3>\u4eca\u56de\u4f7f\u3063\u305fraspi4\u306b\u3064\u3044\u3066<\/h3>\n<p>2021\u5e74\u306e11\u6708\u306f\u3058\u3081\u306b\u3001<strong>Raspberry pi 4 Model B (4GBytes)<\/strong> \u3092\u8cfc\u5165\u3057\u305f\u3002\u3061\u3087\u3046\u3069\u54c1\u4e0d\u8db3\u6642\u671f\u3067\u300c\u30b9\u30bf\u30fc\u30bf\u30fc\u30ad\u30c3\u30c8\u300d\u3068\u3044\u3046\u8ca9\u58f2\u5f62\u614b\u3057\u304b\u306a\u304b\u3063\u305f\u3002\u305f\u3076\u3093\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u30b1\u30fc\u30b9\u306f\u6700\u521d\u3057\u304b\u4f7f\u308f\u306a\u3044\u304c\u3001USB Type-C\u306e5.1V\u51fa\u529b\u306eAC\u30a2\u30c0\u30d7\u30bf\u3084\u3001MicroHDMI\u30b1\u30fc\u30d6\u30eb\u306f\u3059\u3050\u306b\u5229\u7528\u3057\u305f\u3057\u4eca\u5f8c\u3082\u4f7f\u3046\u3060\u308d\u3046\u304b\u3089\u3001\u9ad8\u3044\u8cb7\u3044\u7269\u3068\u3044\u3046\u3053\u3068\u3082\u306a\u304b\u3063\u305f\u3002<\/p>\n<figure id=\"attachment_13819\" aria-describedby=\"caption-attachment-13819\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/20de7797e287863f25b8cccdacc87d92.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13819\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/20de7797e287863f25b8cccdacc87d92-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-13819\" class=\"wp-caption-text\">Raspberry Pi 4 ModelB<\/figcaption><\/figure>\n<p>OS\u306f\u3001Raspbian OS\u30a4\u30e1\u30fc\u30b8\u3092\u542b\u3080\u30d5\u30eb\u30d0\u30fc\u30b8\u30e7\u30f3NOOBS \u66f8\u304d\u8fbc\u307f\u6e08\u307f\u306eMicroSD\u304c\u30ad\u30c3\u30c8\u306b\u4ed8\u5c5e\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u5229\u7528\u3057\u3066\u3044\u308b\u3002\u3053\u306e\u6295\u7a3f\u3092\u66f8\u3044\u3066\u3044\u308b\u6642\u70b9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f <strong>Debian\u00a0 10.11 (Linux raspberrypi 5.10.63-v7l+ )\u00a0<\/strong> \u306b\u306a\u3063\u3066\u3044\u308b\u3002\u4eca\u307e\u3067RHEL\u7cfb\u306eCentOS\u3070\u304b\u308a\u4f7f\u3063\u3066\u304d\u305f\u306e\u3067\u6238\u60d1\u3044\u3082\u3042\u3063\u305f\u304c\u3001\u3060\u3093\u3060\u3093\u3068\u306a\u3058\u3093\u3067\u304d\u305f\u3002<\/p>\n<h1>\u56de\u8def\u56f3<\/h1>\n<p>\u79cb\u6708\u96fb\u5b50\u306e<a href=\"https:\/\/akizukidenshi.com\/catalog\/g\/gP-11073\/\" target=\"_blank\" rel=\"noopener\">Raspberry Pi\u7528\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u57fa\u677f<\/a>\u306e\u4e0a\u306b\u4ee5\u4e0b\u306e\u56de\u8def\u3092\u8f09\u305b\u305f\u3002<\/p>\n<figure id=\"attachment_13812\" aria-describedby=\"caption-attachment-13812\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/RSP_RTC_Power1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13812\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/RSP_RTC_Power1-552x321.png\" alt=\"\" width=\"552\" height=\"321\" \/><\/a><figcaption id=\"caption-attachment-13812\" class=\"wp-caption-text\">RSP_RTC_Power1<\/figcaption><\/figure>\n<p>\u3053\u306e\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u57fa\u677f\u306b\u306f\u30012.1mm\u6a19\u6e96DC\u30b8\u30e3\u30c3\u30af\u3092\u30cf\u30f3\u30c0\u4ed8\u3051\u3059\u308b\u305f\u3081\u306e\u30d1\u30bf\u30fc\u30f3\u304c\u63cf\u3044\u3066\u3042\u308b\u3002\u5916\u90e8\u96fb\u6e90\u3068\u3057\u3066\u3001\u3084\u306f\u308a\u79cb\u6708\u96fb\u5b50\u306e+5V(4A)\u306eAC\u30a2\u30c0\u30d7\u30bf (AD-A50P400) \u3092\u63a5\u7d9a\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u5916\u90e8\u96fb\u6e90\u3068\u3057\u3066\u306f\u3001USB Type-C\u306b\u63a5\u7d9a\u3059\u308b +5.1\uff36(3A\uff5e4A) \u306e\u3082\u306e\u304c\u4f7f\u3044\u305f\u3044\u306e\u3060\u3051\u3069\u3001\u3053\u306e\u57fa\u677f\u306bType-C\u30ec\u30bb\u30d7\u30bf\u30af\u30eb\u3092\u8f09\u305b\u3089\u308c\u308b\u5834\u6240\u304c\u7121\u3055\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u3042\u304d\u3089\u3081\u305f\u30023A\u304f\u3089\u3044\u3044\u3051\u308bType-C\u30ec\u30bb\u30d7\u30bf\u30af\u30eb\u3092\u5b9f\u88c5\u6e08\u306e\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u57fa\u677f\u304c\u6b32\u3057\u3044\u3068\u3053\u308d\u3002<\/p>\n<figure id=\"attachment_13825\" aria-describedby=\"caption-attachment-13825\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/eac48f898808b1a2b91b166cf2fc09f7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13825\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/eac48f898808b1a2b91b166cf2fc09f7-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-13825\" class=\"wp-caption-text\">\u96fb\u6e90\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u30dc\u30fc\u30c9 \u5404\u90e8\u540d\u79f0\u306a\u3069<\/figcaption><\/figure>\n<p>\u3053\u306e\u30b5\u30a4\u30ba\u306e\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u57fa\u677f\u3067\u4f7f\u3046\u3068\u306a\u308b\u3068\u3001Pro Micro\u306f\u3061\u3087\u3063\u3068\u5927\u304d\u3044\u3002\u5f53\u521d\u3001\u30b7\u30e3\u30ec\u3067RP2040\u30d6\u30ec\u30a4\u30af\u30a2\u30a6\u30c8\u306e Raspberry Pi Pico\u3092\u4f7f\u304a\u3046\u304b\u3068\u601d\u3063\u3066\u3044\u305f\u304c\u3001\u3082\u3063\u3068\u5927\u304d\u3044\u306e\u3067\u3084\u3081\u305f\u3002<\/p>\n<h2>\u304a\u3082\u306a\u69cb\u6210\u7269\u306b\u3064\u3044\u3066<\/h2>\n<p>\u69cb\u6210\u3059\u308b\u30d1\u30fc\u30c4\u3084\u56de\u8def\u306b\u3064\u3044\u3066\u3002<\/p>\n<h4>\u30de\u30a4\u30b3\u30f3 (Pro Micro)<\/h4>\n<p>\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306e\u8a2d\u5b9a\u3084\u8a18\u61b6\u306b\u30de\u30a4\u30b3\u30f3\u304c\u3044\u308b\u306e\u3067\u3001\u3044\u3064\u3082\u4f7f\u3063\u3066\u3044\u308bPro Micro (3.3V \/ 8MHz) \u3092\u4f7f\u3063\u305f\u3002raspi4\u306eGPIO\u30d4\u30f3\u30d8\u30c3\u30c0\u306b\u63a5\u7d9a\u3059\u308b\u306e\u3067\u3001+5V\u52d5\u4f5c\u306e\u3082\u306e\u3088\u308a+3.3V\u52d5\u4f5c\u306e\u65b9\u304c\u624b\u9593\u304c\u6e1b\u308b\u3002<\/p>\n<p>Pro Micro\u306e<strong>RAW<\/strong>\u30d4\u30f3\u306b\u306f\u3001DC\u30b8\u30e3\u30c3\u30af(AC\u30a2\u30c0\u30d7\u30bf)\u304b\u3089\u306e+5V\u3092\u30b7\u30e7\u30c3\u30c8\u30ad\u30fc\u30c0\u30a4\u30aa\u30fc\u30c9 \u3092\u4ecb\u3057\u3066\u63a5\u7d9a\u3057\u3066\u3044\u308b\u3002\u3053\u306e\u30c0\u30a4\u30aa\u30fc\u30c9\u304c\u306a\u3044\u3068\u3001Pro Micro\u306bUSB\u30b1\u30fc\u30d6\u30eb\u3092\u63a5\u7d9a\u3057\u3066\u3044\u308b\u72b6\u614b\u3067DC5V in\u304b\u3089\u96fb\u6e90\u30b1\u30fc\u30d6\u30eb\u3092\u629c\u3044\u305f\u3068\u304d\u3001Pro Micro\u306eUSB\u306eVBUS\u304c\u4e00\u6b21\u5074\u96fb\u6e90(\u5916\u90e8\u96fb\u6e90)\u3068\u3057\u3066\u4f7f\u308f\u308c\u3066\u3057\u307e\u3063\u3066\u3068\u3066\u3082\u307e\u305a\u3044\u3002Pro Micro\u306e\u96fb\u6e90\u5468\u308a\u306f\u4e0b\u56f3\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3089\u3001500mA\u4ee5\u4e0a\u6d41\u308c\u308b\u3068\u30dd\u30ea\u30d2\u30e5\u30fc\u30ba\u304c\u30c8\u30ea\u30c3\u30d7\u3059\u308b\u3060\u308d\u3046\u3002<\/p>\n<figure id=\"attachment_13815\" aria-describedby=\"caption-attachment-13815\" style=\"width: 411px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/66c19942ab4ba346fdb64ccc04cde373-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"waku wp-image-13815 size-full\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/66c19942ab4ba346fdb64ccc04cde373-1.png\" alt=\"\" width=\"411\" height=\"218\" \/><\/a><figcaption id=\"caption-attachment-13815\" class=\"wp-caption-text\">Pro Micro\u96fb\u6e90\u5468\u308a<\/figcaption><\/figure>\n<p>\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306e\u8a2d\u5b9a\u306f\u3001Arduino IDE\u306e\u30b7\u30ea\u30a2\u30eb\u30e2\u30cb\u30bf \u3092\u4f7f\u3063\u3066\u5bfe\u8a71\u7684\u306b\u884c\u3046\u3002\u8a2d\u5b9a\u3057\u305f\u5185\u5bb9\u306fEEPROM\u306b\u8a18\u61b6\u3059\u308b\u306e\u3067\u30ea\u30bb\u30c3\u30c8\u3057\u3066\u3082\u96fb\u6e90\u5207\u3063\u3066\u3082\u5927\u4e08\u592b\u3002\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306f\u6700\u592720\u500b\u307e\u3067\u3068\u3057\u305f\u304c\u3001\u305d\u308c\u307b\u3069\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3082\u306a\u3044\u3060\u308d\u3046\u3002<\/p>\n<p>\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306e\u8a2d\u5b9a\u6642\u306b\u306fUSB\u30b1\u30fc\u30d6\u30eb\u3092\u4ecb\u3057\u3066PC\u306b\u4eee\u60f3COM\u30dd\u30fc\u30c8\u304c\u898b\u3048\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u304c\u3001\u904b\u7528\u6642\u306b\u306f\u30b7\u30ea\u30a2\u30eb\u63a5\u7d9a\u306f\u4e0d\u8981\u3002ATMega32U4\u306e\u30d1\u30ef\u30fc\u30c0\u30a6\u30f3\u30b9\u30ea\u30fc\u30d7\u6a5f\u80fd\u306b\u3088\u308a\u3001raspi\u306b\u96fb\u6e90\u3092\u4f9b\u7d66\u3057\u3066\u3044\u306a\u3044\u72b6\u614b\u3067\u306e\u6d88\u8cbb\u96fb\u6d41\u306f\u3001ProMicro\u306e\u30d1\u30ef\u30fc\u30a4\u30f3\u30b8\u30b1\u30fc\u30bfLED\u3068\u3044\u304f\u3064\u304b\u306e\u30dd\u30fc\u30c8\u72b6\u614b\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306e 2mA\u4ee5\u4e0b\u306b\u306a\u308b\u3002<\/p>\n<h4>RTC (RX8900) \u3068\u96fb\u6c17\u4e8c\u91cd\u5c64\u30b3\u30f3\u30c7\u30f3\u30b5<\/h4>\n<p>\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u901a\u308a\u306b\u52d5\u304b\u3059\u305f\u3081\u306b\u306f\u6642\u8a08\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u3001RTC \u3068\u3057\u3066EPSON\u30d6\u30e9\u30f3\u30c9\u306eRX8900 (\u79cb\u6708\u306eDIP\u5316\u30ad\u30c3\u30c8\u3001AE-RX8900) \u3092\u4f7f\u3063\u305f\u3002RTC\u306e\u96fb\u6e90\u3068\u3057\u3066\u306f\u3001Pro Micro\u306e\u30aa\u30f3\u30dc\u30fc\u30c9LDO\u306e\u51fa\u529b(+3.3V\u3001VCC\u30d4\u30f3\u304b\u3089\u51fa\u3066\u304f\u308b) \u3092\u4f7f\u3063\u3066\u3044\u308b\u3002RX8900\u306e\u6d88\u8cbb\u96fb\u6d41\u306f\u3001Pro Micro\u306e\u30aa\u30f3\u30dc\u30fc\u30c9LED\u304c\u7d041.3mA\u4f7f\u3046\u3053\u3068\u3092\u8003\u3048\u308c\u3070\u3001\u307e\u3063\u305f\u304f\u7121\u8996\u3057\u3066\u304b\u307e\u308f\u306a\u3044\u30ec\u30d9\u30eb\u3002<\/p>\n<p>Pro Micro\u3084RTC\u306b\u306f\u57fa\u672c\u7684\u306b\u5e38\u6642\u901a\u96fb\u3059\u308b\u304c\u3001\u5834\u6240\u3092\u5909\u3048\u305f\u308a\u69cb\u6210\u3092\u5909\u3048\u305f\u308a\u3059\u308b\u3068\u304d\u306b\u96fb\u6e90\u30aa\u30d5\u306b\u3059\u308b\u3053\u3068\u3082\u3042\u308b\u3002\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u3044\u3061\u3044\u3061\u6642\u8a08\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u9762\u5012\u306a\u306e\u3067\u3001<a href=\"https:\/\/akizukidenshi.com\/catalog\/g\/gP-04249\/\" target=\"_blank\" rel=\"noopener\">1.0F \u306e\u96fb\u6c17\u4e8c\u91cd\u5c64\u30b3\u30f3\u30c7\u30f3\u30b5<\/a>(EDLC)\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u96fb\u6e90\u3068\u3057\u3066\u63a5\u7d9a\u3057\u305f\u3002\u3053\u306e\u30b3\u30f3\u30c7\u30f3\u30b5\u306e\u8010\u5727\u306f5.5V\u306a\u306e\u3060\u304c\u3001+3.3V\u3067\u5145\u96fb\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u308a\u30d5\u30eb\u5145\u96fb\u6642\u306b\u307b\u307c+3.25V\u3068\u306a\u308b\u3002\u3053\u306eRTC\u306f V<sub>BAT<\/sub>\u304c+1.6V\u306b\u4f4e\u4e0b\u3059\u308b\u307e\u3067\u8a08\u6642\u52d5\u4f5c\u304c\u53ef\u80fd\u3068\u306e\u3053\u3068\u3002<\/p>\n<p><a href=\"https:\/\/akizukidenshi.com\/download\/ds\/seikoepson\/rx8900_aplication_manual.pdf\" target=\"_blank\" rel=\"noopener\">RX8900\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30de\u30cb\u30e5\u30a2\u30eb<\/a> \u304b\u3089\u3001VDD=0V\u306b\u306a\u308aV<sub>BAT<\/sub>\u306b\u3088\u308b\u99c6\u52d5\u306b\u5207\u308a\u66ff\u308f\u3063\u305f\u969b\u306e\u6d88\u8cbb\u96fb\u6d41\u306f1.5uA (max) \u3068\u898b\u7a4d\u3082\u3063\u305f\u3002\u3053\u3053\u306b\u30b3\u30f3\u30c7\u30f3\u30b5\u306e\u81ea\u5df1\u653e\u96fb\u5206\u3092\u52a0\u5473\u3057\u3066 10uA \u306e\u5b9a\u96fb\u6d41\u8ca0\u8377\u306b\u306a\u308b\u3068\u3059\u308b\u3068\u3001\u96fb\u5727\u304c1.6V\u4f4e\u4e0b\u3059\u308b\u306e\u306b\u8981\u3059\u308b\u6642\u9593\u306f\u3001<span style=\"font-family: 'courier new', courier, monospace;\">t = {C \u00d7 (V0 \u2013 V1)} \/ I<\/span> \u3067\u6c42\u3081\u3089\u308c\u308b\u304b\u3089\u3001<\/p>\n<p style=\"padding-left: 40px;\"><span style=\"font-family: 'courier new', courier, monospace;\">1(F) \u00d7 (3.2 \u2013 1.6) \u00f7 10(uA) = 1.6\u00d710<sup>5<\/sup> (sec) \u2252 2666.7(min) \u2252 44\u6642\u959327\u5206<\/span><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002\u4eca\u56de\u4f7f\u3063\u305fEDLC\u306e\u30b9\u30da\u30c3\u30af\u30b7\u30fc\u30c8\u304c\u306a\u304f\u3066\u81ea\u5df1\u653e\u96fb\u91cf\u3092\u6b63\u78ba\u306b\u628a\u63e1\u3067\u304d\u3066\u3044\u306a\u3044\u306e\u3060\u304c\u3001\u305f\u3068\u3048\u305d\u308c\u304c100uA\u3060\u3063\u305f\u3068\u3057\u3066\u30824.4\u6642\u9593\u306f\u4fdd\u6301\u3067\u304d\u308b\u308f\u3051\u3060\u304b\u3089\u3001\u4eca\u56de\u306e\u7528\u9014\u306b\u306f\u5341\u5206\u904e\u304e\u308b\u3060\u308d\u3046\u3002<\/p>\n<p>\u5b9a\u96fb\u6d41\u8ca0\u8377\u6642\u306e\u653e\u96fb\u6642\u9593\u306e\u8003\u3048\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u30b3\u30f3\u30c7\u30f3\u30b5\u30fc\u30e1\u30fc\u30ab\u30fc\u306e<a href=\"https:\/\/www.elna.co.jp\/ja\/product\/caluclation_double_layer\/\" target=\"_blank\" rel=\"noopener\">\u30a8\u30eb\u30ca\u30fc\u793e\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u8003\u306b\u3057\u305f\u3002<\/p>\n<p>RX8900\u306eV<sub>BAT<\/sub>\u3068EDLC\u9593\u306e\u62b5\u6297\u306f\u3001\u304a\u3082\u306b\u5145\u96fb\u6642\u306e\u96fb\u6d41\u3092\u5236\u9650\u3059\u308b\u305f\u3081\u306b\u5165\u308c\u305f\u30023.3V\u3067100\u03a9\u3060\u304b\u3089\u3001\u30b3\u30f3\u30c7\u30f3\u30b5\u304c\u7a7a\u3063\u307d\u306e\u3068\u304d\u3067\u308230mA\u5f37\u306e\u96fb\u6d41\u3057\u304b\u6d41\u308c\u8fbc\u307e\u306a\u3044\u306f\u305a\u3002EDLC\u306eESR\u3082\u5bc4\u4e0e\u3059\u308b\u304b\u3089\u5b9f\u969b\u306b\u306f\u3082\u3046\u3061\u3087\u3063\u3068\u96fb\u6d41\u306f\u5c11\u306a\u3044\u3060\u308d\u3046\u3002\u305d\u306e\u4ee3\u308f\u308a\u30d5\u30eb\u5145\u96fb\u307e\u3067\u306b\u306f10\u5206\u9593\u4ee5\u4e0a\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u304c\u3001\u4eca\u56de\u306e\u7528\u9014\u3067\u306f\u554f\u984c\u306a\u3044\u3002<\/p>\n<h4>raspi\u96fb\u6e90\u5236\u5fa1<\/h4>\n<p>Raspi4\u306e\u96fb\u6e90\u306fGPIO\u30d4\u30f3\u30d8\u30c3\u30c0\u306e+5V\u30d4\u30f3\u304b\u3089\u4e0e\u3048\u308b\u3002+5V\u30d4\u30f3\u306b\u96fb\u6d41\u3092\u6d41\u3059\u304b\u3069\u3046\u304b\u306b\u3088\u3063\u3066\u3001raspi4\u306e\u96fb\u6e90\u3092\u30aa\u30f3\u306b\u3057\u305f\u308a\u30aa\u30d5\u306b\u3057\u305f\u308a\u3059\u308b\u3002raspi\u306b\u5099\u308f\u3063\u3066\u3044\u308bType-C\u306e\u96fb\u6e90\u30b3\u30cd\u30af\u30bf\u306f\u4f7f\u308f\u306a\u3044\u3002raspi4B\u306e\u96fb\u6e90\u5468\u308a\u306e\u56de\u8def\u56f3 ( <a href=\"https:\/\/datasheets.raspberrypi.com\/rpi4\/raspberry-pi-4-reduced-schematics.pdf\" target=\"_blank\" rel=\"noopener\">https:\/\/datasheets.raspberrypi.com\/rpi4\/raspberry-pi-4-reduced-schematics.pdf<\/a> ) \u3092\u898b\u308b\u3068\u3001Type-C\u30b3\u30cd\u30af\u30bf\u306eVBUS\u306f\u3001\u305d\u306e\u307e\u307e+5V\u3068\u3057\u3066\u30d4\u30f3\u30d8\u30c3\u30c0\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u3057 PMIC(Power Management IC) \u306e MxL7704 \u306eVIN\u306b\u3082\u3064\u306a\u304c\u3063\u3066\u3044\u308b\u3002<\/p>\n<figure id=\"attachment_13826\" aria-describedby=\"caption-attachment-13826\" style=\"width: 414px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/ebc2627968f7120a34e2b98654dcfe76.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13826\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/ebc2627968f7120a34e2b98654dcfe76-414x552.jpg\" alt=\"\" width=\"414\" height=\"552\" \/><\/a><figcaption id=\"caption-attachment-13826\" class=\"wp-caption-text\">raspi4 pmic VBUS\u306e\u30d1\u30bf\u30f3\u306f\u592a\u3044<\/figcaption><\/figure>\n<p>raspi\u96fb\u6e90\u3092\u30aa\u30f3\uff0f\u30aa\u30d5\u3059\u308b\u305f\u3081\u306e\u30ed\u30fc\u30c9\u30b9\u30a4\u30c3\u30c1\u3068\u3057\u3066\u3001Pch MOSFET \u306e<strong>2SJ349<\/strong> (Q3) \u3092\u4f7f\u3063\u305f\u3002\u3053\u306eFET\u306f\u4f4eV<sub>th<\/sub> \u3067\u30de\u30a4\u30b3\u30f3\u304b\u3089\u6271\u3044\u3084\u3059\u304f\u3001\u306a\u304a\u304b\u3064\u4f4eR<sub>DS(ON)<\/sub> \u00a0\u306a\u306e\u3067\u4e00\u6b21\u5074\u96fb\u6e90(\u5916\u90e8\u96fb\u6e90\uff5eFET\u30bd\u30fc\u30b9)\u3068\u4e8c\u6b21\u5074\u96fb\u6e90 (FET\u30c9\u30ec\u30a4\u30f3\uff5eraspi+5V) \u306e\u96fb\u4f4d\u5dee\u304c\u5c0f\u3055\u3044\u30021A\u5f31\u6d41\u308c\u3066\u3044\u308b\u3068\u304d\u306e\u5b9f\u6e2c\u30670.03\uff5e0.04V\u7a0b\u5ea6\u3060\u3063\u305f\u3002<a href=\"https:\/\/akizukidenshi.com\/download\/2sj349.pdf\" target=\"_blank\" rel=\"noopener\">2SJ349\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8<\/a>\u306e\u3001<strong>R<sub>DS(ON)<\/sub> &#8211; I<sub>D<\/sub> \u30b0\u30e9\u30d5<\/strong>\u304b\u3089\u8aad\u307f\u53d6\u308c\u308b\u30c9\u30ec\u30a4\u30f3\u96fb\u6d411A\u6642\u306e\u5024\u30820.05\u03a9\u672a\u6e80\u306b\u898b\u3048\u308b\u306e\u3067\u3001\u60f3\u5b9a\u901a\u308a\u3002<\/p>\n<p>FET\u306e\u30b2\u30fc\u30c8\u306b\u306f+5V\u3092\u304b\u3051\u308b\u5fc5\u8981\u304c\u3042\u308b\u304c\u3001+3.3V\u306e\u30de\u30a4\u30b3\u30f3\u3068\u76f4\u7d50\u3059\u308b\u308f\u3051\u306b\u306f\u3044\u304b\u306a\u3044\u304b\u3089\u3001NPN\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\u306e<strong> 2N3904<\/strong> (Q1)\u00a0 \u3067\u30b2\u30fc\u30c8\u96fb\u5727\u3092\u30aa\u30f3\uff0f\u30aa\u30d5\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>Q1\u306e\u30d9\u30fc\u30b9\u306b\u306f<strong>2\u7cfb\u7d71\u306e\u5165\u529b<\/strong>\u3092\u7528\u610f\u3057\u305f\u3002\u4e00\u65b9\u306fPro Micro\u306eD4\u30dd\u30fc\u30c8\u3067\u3001\u3082\u3046\u4e00\u65b9\u306f\u30b9\u30e9\u30a4\u30c9\u30b9\u30a4\u30c3\u30c1(SW1)\u3092\u4ecb\u3057\u3066+3.3V\u306b\u63a5\u7d9a\u3057\u3066\u3044\u308b\u3002SW1 <span style=\"font-family: 'courier new', courier, monospace;\">(<span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><strong>EVER-ON\u30b9\u30a4\u30c3\u30c1<\/strong><\/span>)<\/span>\u3092\u30aa\u30f3\u5074\u306b\u3059\u308b\u3068\u3001\u30de\u30a4\u30b3\u30f3\u306e\u72b6\u614b\u306b\u95a2\u308f\u3089\u305aFET\u306f\u30aa\u30f3\u306b\u306a\u308b\u3002<\/p>\n<p>2\u7cfb\u7d71\u304b\u3089\u306e\u5165\u529b\u3092\u624b\u6301\u3061\u306e\u5c0f\u96fb\u6d41\u30b9\u30a4\u30c3\u30c1\u30f3\u30b0\u30c0\u30a4\u30aa\u30fc\u30c9\u306e<strong>1SS270A<\/strong>\u3092\u4ecb\u3057\u3066\u30ef\u30a4\u30e4\u30fc\u30c9OR\u3057\u305f\u3042\u30683.3k\u03a9\u306e\u62b5\u6297\u3092\u4ecb\u3057\u3066 Q1\u306e\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3057\u3066\u3044\u308b\u3002\u3053\u306e\u30c0\u30a4\u30aa\u30fc\u30c9\u306e V<sub>F<\/sub> \u304c0.6V (@1mA) \u3042\u305f\u308a\u3060\u304b\u3089\u3001Q1\u306e\u30d9\u30fc\u30b9\u96fb\u6d41\u306f0.8mA \u7a0b\u5ea6\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>EVER-ON\u30b9\u30a4\u30c3\u30c1\u306f\u5f53\u521d\u306f\u4e0d\u8981\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3060\u3051\u3069\u3001FET\u3092\u30aa\u30f3\u306b\u3057\u305f\u72b6\u614b\u3067\u30de\u30a4\u30b3\u30f3\u3092\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u3068\u3001\u5f53\u7136\u306e\u3088\u3046\u306braspi\u306e\u96fb\u6e90\u304c\u843d\u3061\u3066\u3057\u307e\u3046\u306e\u3067\u8ffd\u52a0\u3057\u305f\u3002<\/p>\n<h4>rapi4\u3068\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9 (DT Overlay\u306e\u5229\u7528)<\/h4>\n<p><strong>\u30c7\u30d0\u30a4\u30b9\u30c4\u30ea\u30fc\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4 (Devicetree Overlay)<\/strong> \u3068\u306f\u3001raspi\u7528 \u306eLinux\u30ab\u30fc\u30cd\u30eb\u304c\u3082\u3064\u56fa\u6709\u306e\u30c7\u30d0\u30a4\u30b9\u30c4\u30ea\u30fc\u3092\u3001\u30d6\u30fc\u30c8\u6642\u306e\u8a2d\u5b9a(<span style=\"font-family: 'courier new', courier, monospace;\">\/boot\/config.txt<\/span>) \u306b\u3057\u305f\u304c\u3063\u3066\u62e1\u5f35\u3057\u305f\u308a\u5909\u66f4\u3057\u305f\u308a\u3059\u308b\u6a5f\u80fd(\u3068\u3001\u89e3\u91c8\u3057\u305f)\u3002\u4eca\u56de\u306e\u96fb\u6e90\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30dc\u30fc\u30c9\u3067\u306f\u30012\u3064\u306e\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u30d5\u30a1\u30a4\u30eb\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3067\u3001<strong>\u5b89\u5168\u306a\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3068\u30d1\u30ef\u30fc\u30aa\u30d5<\/strong>\u3092\u884c\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<p>config.txt\u306b\u306f\u3001\u96fb\u6e90\u95a2\u4fc2\u3068\u3057\u3066\u4ee5\u4e0b\u306e2\u884c\u3092\u8ffd\u52a0\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">dtoverlay=gpio-shutdown,gpio_pin=20, active_low=1, gpio_pull=2\r\ndtoverlay=gpio-poweroff,gpio_pin=26,active_low=1<\/pre>\n<p>\u3053\u308c\u3089\u306e\u6a5f\u80fd\u306b\u3064\u3044\u3066\u306f\u6b21\u306e\u6587\u66f8\u3092\u53c2\u8003\u306b\u3057\u305f\u3002\u00a0 <a href=\"https:\/\/github.com\/raspberrypi\/firmware\/blob\/master\/boot\/overlays\/README\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/raspberrypi\/firmware\/blob\/master\/boot\/overlays\/README<\/a><\/p>\n<h5>gpio-shutdown\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4<\/h5>\n<p>\u3053\u306e\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001\u6307\u5b9a\u306eGPIO\u30d4\u30f3\u304c\u6307\u5b9a\u306e\u8ad6\u7406(\u30a2\u30af\u30c6\u30a3\u30d6LOW\u307e\u305f\u306fHIGH)\u306b\u306a\u3063\u305f\u3068\u304d\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306ePower\u30ad\u30fc\u304c\u62bc\u3055\u308c\u305f\u3068\u304d\u306e\u3088\u3046\u306b\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u51e6\u7406\u3092\u958b\u59cb\u3059\u308b\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001GPIO20\u3001\u30d7\u30eb\u30a2\u30c3\u30d7\u6709\u52b9\u3001\u30a2\u30af\u30c6\u30a3\u30d6LOW\u3068\u3057\u305f\u306e\u3067\u3001\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30dc\u30fc\u30c9\u306eSHD-SW\u3067GPIO20\u3092\u6240\u5b9a\u306e\u6642\u9593GND\u306b\u63a5\u5730\u3057\u3066\u3084\u308b\u304b\u3001Arduino\u306e\u30dd\u30fc\u30c8\u304b\u3089LOW\u3092\u51fa\u529b\u3057\u3066\u30b7\u30f3\u30af\u3057\u3066\u3084\u308c\u3070\u3001raspi\u306f\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3092\u958b\u59cb\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n<p>gpio-poweroff\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3068\u4f75\u7528\u3057\u306a\u3044\u5834\u5408\u3001gpio-shutdown\u3092\u4f7f\u3063\u3066\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u305f\u6642\u70b9\u3067\u96fb\u6e90\u30b3\u30fc\u30c9\u3092\u629c\u304f\u306a\u3069\u3059\u308b\u304c\u3001\u96fb\u6e90\u3092\u305d\u306e\u307e\u307e\u306b\u3057\u3066\u304a\u3044\u3066GPIO3\u3092LOW\u306b\u3057\u3066\u3084\u308b\u3068\u3001raspi\u306f\u518d\u5ea6\u30d6\u30fc\u30c8\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n<p>\u5f53\u521d\u306fGPIO3\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306b\u6cbf\u3063\u3066\u30aa\u30f3\uff0f\u30aa\u30d5\u3057\u3066\u3084\u308c\u3070\u3044\u3044\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u5b8c\u4e86\u3057\u305f\u6642\u70b9\u3067\u306e\u6d88\u8cbb\u96fb\u6d41\u304c\u5b9f\u6e2c\u3067255mA \u3082\u3042\u3063\u305f\u3002\u3053\u308c\u307b\u3069\u98df\u3046\u306a\u3089\u96fb\u6e90\u3082\u30aa\u30d5\u306b\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u3002<\/p>\n<h5>gpio-poweroff\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4<\/h5>\n<p>\u3053\u306e\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u304c\u5b8c\u4e86\u3057\u305f\u6642\u70b9\u3067\u3001\u6307\u5b9a\u306eGPIO\u304c\u6307\u5b9a\u306e\u8ad6\u7406(LOW\u307e\u305f\u306fHIGH)\u306b\u306a\u308a\u3001\u96fb\u6e90\u65ad\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u3092\u901a\u77e5\u3057\u3066\u304f\u308c\u308b\u3002\u305f\u3060\u3057\u3001GPIO3\u3092\u4f7f\u3063\u305f\u518d\u30d6\u30fc\u30c8\u306f\u3067\u304d\u306a\u304f\u306a\u308b\u3002<\/p>\n<p>\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30dc\u30fc\u30c9\u3067\u306f\u3001gpio-poweroff\u306b\u6307\u5b9a\u3057\u305fGPIO26\u304cLOW\u306b\u306a\u308a\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u5b8c\u4e86\u72b6\u614b\u306b\u306a\u3063\u305f\u3053\u3068\u3092\u691c\u51fa\u3059\u308b\u3068\u3001FET\u3092\u30aa\u30d5\u306b\u3057\u3066\u96fb\u6e90\u65ad\u3059\u308b\u3002<\/p>\n<p>raspi\u304c\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u5b8c\u4e86\u72b6\u614b\u306b\u306a\u308b\u8981\u56e0\u3068\u3057\u3066\u306f\u4ee5\u4e0b\u3092\u8003\u3048\u305f\u3002\u3044\u305a\u308c\u306e\u5834\u5408\u3082\u3001gpio-poweroff\u306b\u3088\u308b\u901a\u77e5\u304c\u6709\u52b9\u3060\u3063\u305f\u3002<\/p>\n<ul>\n<li>SHD-SW\u306b\u3088\u308b\u624b\u52d5\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3(<span style=\"font-family: 'courier new', courier, monospace;\">gpio-shutdown<\/span>)\u3002<\/li>\n<li>Arduino\u306e\u30dd\u30fc\u30c8\u64cd\u4f5c(\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9)\u306b\u3088\u308b\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3 (<span style=\"font-family: 'courier new', courier, monospace;\">gpio-shutdown<\/span>)\u3002<\/li>\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u306e\u5165\u529b\u3084\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306e<span style=\"font-family: 'courier new', courier, monospace;\">shutdown -h<\/span> \u306e\u5b9f\u884c\u3002<\/li>\n<\/ul>\n<p>raspi\u306eGPIO26\u306f\u3001Pro Micro\u306ePCINT4 ( D8,\u00a0 PB4) \u306b\u63a5\u7d9a\u3057\u3066\u304a\u308a\u3001Pin Change Interrupt\u306b\u3088\u3063\u3066\u30d1\u30ef\u30fc\u30c0\u30a6\u30f3\u30b9\u30ea\u30fc\u30d7\u304b\u3089\u5fa9\u5e30\u3057\u3066\u3059\u3050\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002<\/p>\n<h5>3V3\u306e\u691c\u51fa<\/h5>\n<p>raspi\u306b\u96fb\u6e90\u3092\u4e0e\u3048\u305f\u76f4\u5f8c\u306f\u3001gpio-poweroff\u901a\u77e5\u3092\u691c\u51fa\u3059\u308bGPIO26\u306fLOW\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u5358\u7d14\u306bGPIO26 == LOW \u3092\u96fb\u6e90\u65ad\u306e\u304d\u3063\u304b\u3051\u3068\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002<\/p>\n<p>\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30dc\u30fc\u30c9\u3067\u306f\u3001raspi\u306eGPIO\u30d4\u30f3\u30d8\u30c3\u30c0\u306b\u3067\u3066\u3044\u308b<strong>3V3<\/strong>\u30d4\u30f3\u304b\u308910k\u03a9\u306e\u62b5\u6297\u3092\u4ecb\u3057\u3066Pro Micro\u306e\u30dd\u30fc\u30c8\u30d4\u30f3\u306b\u63a5\u7d9a\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u3053\u306e\u30d4\u30f3\u304cHIGH\u306b\u306a\u3063\u305f\u3089raspi\u304c\u7a3c\u50cd\u72b6\u614b\u306b\u306a\u3063\u305f\u3068\u5224\u65ad\u3059\u308b\u3002\u305d\u3057\u3066\u3001\u7a3c\u50cd\u72b6\u614b\u306b\u306a\u3063\u3066\u3057\u3070\u3089\u304f\u305f\u3063\u305f\u6642\u70b9\u3067\u3001GPIO26\u306b\u3088\u308b\u96fb\u6e90\u65ad\u3092\u8a31\u53ef\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002<\/p>\n<h4>\u96fb\u6e90\u30aa\u30f3\uff0f\u30aa\u30d5\u306e\u30b7\u30fc\u30b1\u30f3\u30b9<\/h4>\n<p>\u96fb\u6e90\u5236\u5fa1\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<figure id=\"attachment_13842\" aria-describedby=\"caption-attachment-13842\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/66c19942ab4ba346fdb64ccc04cde373-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"waku wp-image-13842 size-large\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/66c19942ab4ba346fdb64ccc04cde373-2-552x386.png\" alt=\"\" width=\"552\" height=\"386\" \/><\/a><figcaption id=\"caption-attachment-13842\" class=\"wp-caption-text\">\u96fb\u6e90\u5236\u5fa1\u30b7\u30fc\u30b1\u30f3\u30b9<\/figcaption><\/figure>\n<p>GPIO20\u306f\u3001SHD-SW\u64cd\u4f5c\u3084\u30dd\u30fc\u30c8\u51fa\u529b\u306b\u3088\u3063\u3066raspi\u306b\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3092\u958b\u59cb\u3055\u305b\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u96fb\u6e90\u5236\u5fa1\u3068\u306f\u3042\u307e\u308a\u95a2\u4fc2\u304c\u306a\u3044\u3002<\/p>\n<p>gpio-poweroff\u3067\u4f7f\u3046GPIO26\u306f\u3001\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u6642\u306b\u306f<strong>100msec\u9593\u306eLOW\u3001100msec\u9593\u306eHIGH\u306e\u5f8c\u306bLOW\u30ec\u30d9\u30eb<\/strong>\u306b\u306a\u308a\u3001\u96fb\u6e90\u65ad\u8a31\u53ef\u306e\u901a\u77e5\u3067\u3042\u308b\u3053\u3068\u3092\u660e\u78ba\u306b\u4f1d\u3048\u3066\u304f\u308c\u308b\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001<strong><span style=\"font-family: 'courier new', courier, monospace;\">$ sudo reboot<\/span> ( <\/strong>\u3042\u308b\u3044\u306f\u3001<strong><span style=\"font-family: 'courier new', courier, monospace;\">shutdown -r now<\/span> ) <\/strong>\u3068\u304b\u3084\u3063\u305f\u5834\u5408\u3001100msec\u306eHIGH\u671f\u9593\u304c\u751f\u3058\u305a\u306b\u3059\u3050\u306bLOW\u306b\u306a\u308b\u3002\u305d\u3057\u3066\u3001\u7d0410\u79d2\u5f8c\u306b\u30b7\u30b9\u30c6\u30e0\u306e\u30ea\u30d6\u30fc\u30c8\u304c\u5b8c\u4e86\u3059\u308b\u3068HIGH\u306b\u623b\u308b\u3002\u96fb\u6e90\u65ad\u3092\u524d\u63d0\u3068\u3057\u305f\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3068\u3001\u305d\u3046\u3067\u306f\u306a\u3044\u30ea\u30b9\u30bf\u30fc\u30c8\u3092\u533a\u5225\u3057\u3066\u96fb\u6e90\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<h5>gpio-poweroff\u306b\u3064\u3044\u3066\u306e\u8ffd\u8a18(\u30d1\u30e9\u30e1\u30fc\u30bf\u8ffd\u52a0)<\/h5>\n<p>kernel\u306eupgrade\u3092\u3059\u308b\u305f\u3073\u306bgpio-poweroff\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u306b\u5909\u66f4\u304c\u52a0\u308f\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u6c17\u304c\u3059\u308b(\u3061\u3083\u3093\u3068\u898b\u3066\u3044\u306a\u3044\u3060\u3051\u306a\u306e\u3060\u3051\u3069)\u3002\u4e0a\u306b\u66f8\u3044\u305f\u96fb\u6e90\u65ad\u8a31\u53ef\u901a\u77e5\u306e\u306b\u3064\u3044\u3066\u306f\u3001\u6700\u521d\u306eLOW\u671f\u9593\u3068\u6b21\u306eHIGH\u671f\u9593\u306e\u9577\u3055\u3092\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b(2021\u5e7412\u670810\u65e5\u73fe\u5728\u30015.10.63-v7l+ #1496 SMP)\u3002<\/p>\n<p><strong><span style=\"font-family: 'courier new', courier, monospace;\"> active_delay_ms<\/span> <\/strong>\u306b\u3088\u3063\u3066\u6700\u521d\u306eLOW\u671f\u9593\u306e\u9577\u3055\u3092\u3001<br \/>\n<strong><span style=\"font-family: 'courier new', courier, monospace;\">inactive_delay_ms<\/span> <\/strong>\u306b\u3088\u3063\u3066\u5f15\u304d\u7d9a\u304fHIGH\u671f\u9593\u306e\u9577\u3055\u3092\u6307\u5b9a\u3059\u308b\u3002\u3044\u305a\u308c\u3082msec\u5358\u4f4d\u3067\u3001\u7701\u7565\u5024\u306f100\u3002<\/p>\n<p>\u96fb\u6e90\u65ad\u8a31\u53ef\u901a\u77e5\u3092\u51e6\u7406\u3059\u308bArduino\u30b9\u30b1\u30c3\u30c1\u3067\u306f\u3044\u305a\u308c\u3082100msec\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u308b\u306e\u3067\u3001\/boot\/config.txt \u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u660e\u793a\u7684\u306b\u6307\u5b9a\u3059\u308b\u3088\u3046\u5909\u66f4\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true \">dtoverlay=gpio-poweroff,gpio_pin=26, active_low=1,\u00a0active_delay_ms=100, inactive_delay_ms=100<\/pre>\n<p>gpio-poweroff\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u306edts\u30d5\u30a1\u30a4\u30eb\u306f\u3001rpi-5.10y\u30d6\u30e9\u30f3\u30c1\u306e\u4ee5\u4e0b\u3092\u53c2\u7167\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/raspberrypi\/linux\/blob\/33c6a6568ca8394698768692e904ec80589b0c39\/arch\/arm\/boot\/dts\/overlays\/gpio-poweroff-overlay.dts\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/raspberrypi\/linux\/blob\/33c6a6568ca8394698768692e904ec80589b0c39\/arch\/arm\/boot\/dts\/overlays\/gpio-poweroff-overlay.dts<\/a><\/p>\n<h4>\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u57fa\u677f\u3068\u96fb\u6e90\u30e9\u30a4\u30f3<\/h4>\n<p>\u79cb\u6708\u306e\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u57fa\u677f\u306b\u306f\u3001DC\u30b8\u30e3\u30c3\u30af\u7528\u3084\u96fb\u6e90\u30ec\u30fc\u30eb\u306e\u30d1\u30bf\u30f3\u304c\u63cf\u3044\u3066\u3042\u308a\u3001GPIO\u30d4\u30f3\u30d8\u30c3\u30c0\u304b\u3089DC\u30b8\u30e3\u30c3\u30af\u307e\u3067\u96fb\u6e90\u95a2\u4fc2\u306e\u30e9\u30a4\u30f3\u306f\u3064\u306a\u304c\u3063\u3066\u3044\u308b\u3002<\/p>\n<figure id=\"attachment_13835\" aria-describedby=\"caption-attachment-13835\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/20211118_112628_r2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13835\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/20211118_112628_r2-552x414.png\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-13835\" class=\"wp-caption-text\">raspi\u7528\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u57fa\u677f<\/figcaption><\/figure>\n<p>\u4e0a\u56f3\u306e\u8d64\u8272\u3067\u793a\u3057\u305f\u90e8\u5206\u304c+5V\u3001\u6c34\u8272\u304cGND\u3001\u9ec4\u8272\u304c+3.3V\u306b\u306a\u3063\u3066\u3044\u308b(+3.3V\u306fraspi\u5074\u304b\u3089\u4f9b\u7d66\u3055\u308c\u308b)\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001raspi\u306b\u4e0e\u3048\u308b+5V\u3092\u30aa\u30f3\uff0f\u30aa\u30d5\u3059\u308b\u306e\u3067\u3053\u306e\u307e\u307e\u3067\u306f\u4f7f\u3048\u306a\u3044\u304b\u3089\u3001\u5de6\u5074\u306e+5V\u306e\u30d1\u30bf\u30f3\u3092\u88cf\u8868\u3068\u3082\u306b\u9014\u4e2d\u3067\u30ab\u30c3\u30c8\u3057\u3001DC\u30b8\u30e3\u30c3\u30af\u306b\u8fd1\u3044\u5074\u3092\u4e00\u6b21\u5074\u96fb\u6e90\u30e9\u30a4\u30f3\u3001\u30d4\u30f3\u30d8\u30c3\u30c0\u306b\u8fd1\u3044\u65b9\u3092\u4e8c\u6b21\u5074\u96fb\u6e90\u30e9\u30a4\u30f3\u3068\u3057\u305f\u3002\u4e8c\u6b21\u5074\u96fb\u6e90\u30e9\u30a4\u30f3\u306b\u306f\u3001MOSFET\u306e\u30c9\u30ec\u30a4\u30f3\u3092\u63a5\u7d9a\u3059\u308b\u3002<\/p>\n<h5>\u4f4e\u96fb\u5727\u8b66\u544a\u3068\u5bfe\u7b56<\/h5>\n<p>\u6700\u521dMOSFET\u306e\u30c9\u30ec\u30a4\u30f3\u3092\u4e8c\u6b21\u5074\u96fb\u6e90\u30e9\u30a4\u30f3\u306e\u65e2\u5b58\u306e\u30d1\u30bf\u30f3\u306b\u63a5\u7d9a\u3059\u308b\u3060\u3051\u306b\u3057\u3066\u8a66\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ed\u30b0\u304c\u51fa\u308b\u3053\u3068\u304c\u3042\u3063\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">...\r\nNov 18 10:51:02 raspberrypi kernel: [ 628.717692] Under-voltage detected! (0x00050005) \r\nNov 18 10:51:09 raspberrypi kernel: [ 634.967599] Voltage normalised (0x00000000)\r\n...<\/pre>\n<p>\u3053\u308c\u306f\u96fb\u6e90\u96fb\u5727\u304c\u4f4e\u4e0b\u3057\u305f\u306e\u3067\u30b3\u30a2\u306e\u80fd\u529b\u3092\u7d5e\u308a\u307e\u3057\u305f\u3088\u3001\u3068\u3044\u3046\u3053\u3068\u306e\u3088\u3046\u3067\u3042\u308b\u3002\u4e8c\u6b21\u5074\u96fb\u5727\u304c+4.8V\u3092\u4e0b\u56de\u3063\u305f\u3042\u305f\u308a\u3067\u4f4e\u96fb\u5727\u8b66\u544a\u304c\u3067\u3066\u304f\u308b\u3088\u3046\u306a\u611f\u3058\u3002<\/p>\n<p>\u5bfe\u7b56\u3068\u3057\u3066\u3001FET\u3068\u96fb\u6e90\u30e9\u30a4\u30f3\u306e\u914d\u7dda\u3092\u30bd\u30fc\u30b9\u3001\u30c9\u30ec\u30a4\u30f3\u4e21\u65b9\u3068\u3082\u592a\u3044\u96fb\u7dda\u306b\u5909\u66f4\u3057\u305f\u308a2\u672c\u306b\u3057\u305f\u308a\u3057\u305f\u3068\u3053\u308d\u3001\u5c11\u306a\u304f\u3068\u3082\u76ee\u7684\u306e\u7528\u9014\u306b\u304a\u3044\u3066\u306f\u8b66\u544a\u306f\u3067\u306a\u304f\u306a\u3063\u305f\u3002\u914d\u7dda\u9762\u306f\u3068\u3066\u3082\u898b\u305b\u3089\u308c\u305f\u3082\u306e\u3067\u306f\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u304c\u3002<\/p>\n<p>\u4f7f\u7528\u72b6\u6cc1\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a<\/p>\n<ul>\n<li>HDMI\u306f4K\u30e2\u30cb\u30bf\u306b\u63a5\u7d9a\u3057\u305f\u308a\u3057\u306a\u304b\u3063\u305f\u308a<\/li>\n<li>USB3.0\u3067USB\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u306b\u63a5\u7d9a<\/li>\n<li>NIC\u306fGBit \u30cf\u30d6\u306b\u6709\u7dda\u63a5\u7d9a<\/li>\n<li>WiFi\u306f\u30aa\u30d5<\/li>\n<li>\u30ad\u30fc\u30dc\u30fc\u30c9\u3001\u30de\u30a6\u30b9\u306f\u672a\u63a5\u7d9a<\/li>\n<\/ul>\n<p>\u73fe\u72b6\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u3084MicroSD\u30ab\u30fc\u30c9\u30ea\u30fc\u30c0\u30fc\u306a\u3069\u3092USB\u30dd\u30fc\u30c8\u306b\u63a5\u7d9a\u3057\u3066\u3084\u308b\u3068\u4f4e\u96fb\u5727\u8b66\u544a\u304c\u3067\u308b\u3053\u3068\u304c\u3042\u308b\u3002DC 5.25V \/ 3A\u51fa\u529b\u306eAC\u30a2\u30c0\u30d7\u30bf\u3068\u304b\u3042\u308b\u3068\u3044\u3044\u3067\u3059\u304c\u3002<\/p>\n<h4>\u7d44\u307f\u7acb\u3066\u306b\u3064\u3044\u3066<\/h4>\n<figure id=\"attachment_13836\" aria-describedby=\"caption-attachment-13836\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/b5018150e0f3a907abcb84defc794488.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13836\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/b5018150e0f3a907abcb84defc794488-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-13836\" class=\"wp-caption-text\">raspi4<\/figcaption><\/figure>\n<p>\u307e\u305a\u3001raspi4\u306eGPIO\u30d4\u30f3\u30d8\u30c3\u30c0\u306b\u306f\u3001\u79cb\u6708\u96fb\u5b50\u306e <a href=\"https:\/\/akizukidenshi.com\/catalog\/g\/gC-10702\/\" target=\"_blank\" rel=\"noopener\">\u9023\u7d50\u30d4\u30f3\u30bd\u30b1\u30c3\u30c8 2\u00d720(40P)\u30e9\u30ba\u30d1\u30a4\u7528\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30cd\u30af\u30bf<\/a> \u3092\u306f\u3081\u305f\u3002<\/p>\n<figure id=\"attachment_13838\" aria-describedby=\"caption-attachment-13838\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/2632ffdea1fd735a0fdb4c6f19a4f07c.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13838\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/2632ffdea1fd735a0fdb4c6f19a4f07c-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-13838\" class=\"wp-caption-text\">raspi4 \u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30cd\u30af\u30bf\u3092\u88c5\u7740\u3057\u305f\u3068\u3053\u308d<\/figcaption><\/figure>\n<p>\u305f\u3060\u3001\u4e00\u6bb5\u3060\u3051\u3067\u306f\u51b7\u5374\u30d5\u30a1\u30f3\u3092\u53ce\u3081\u308b\u306e\u304c\u5384\u4ecb\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u3001\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u57fa\u677f\u306b\u3082\u540c\u69d8\u306e\u30b3\u30cd\u30af\u30bf\u3092\u30cf\u30f3\u30c0\u4ed8\u3051\u3057\u3001\u7d50\u679c\u3068\u3057\u3066\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30cd\u30af\u30bf2\u6bb5\u91cd\u306d\u3068\u3057\u305f\u3002<\/p>\n<figure id=\"attachment_13839\" aria-describedby=\"caption-attachment-13839\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/c69154af73881fddd7507936128a1401.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13839\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/c69154af73881fddd7507936128a1401-552x552.jpg\" alt=\"\" width=\"552\" height=\"552\" \/><\/a><figcaption id=\"caption-attachment-13839\" class=\"wp-caption-text\">raspi4 \u30d5\u30a1\u30f3\u306e\u4e0a\u90e8\u306f\u5e83\u3044<\/figcaption><\/figure>\n<p>\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u57fa\u677f\u3092\u56fa\u5b9a\u3059\u308b\u305f\u3081\u306e\u811a\u3068\u3057\u3066\u306f\u3001M2.5\u306e\u771f\u936e\u88fd\u516d\u89d2\u30b9\u30da\u30fc\u30b5\u30fc\u306e20mm\u306811mm\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3061\u3087\u3046\u3069\u826f\u304f\u3066\u3001raspi\u306e\u57fa\u677f\u9762\u3068\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u57fa\u677f\u306e\u88cf\u9762\u3068\u306e\u8ddd\u96e2\u306f32mm\u307b\u3069\u306b\u306a\u3063\u305f\u3002\u30ca\u30c3\u30c8\u3067\u7de0\u3081\u306a\u304f\u3066\u3082\u5b89\u5b9a\u3057\u3066\u3044\u308b\u3002<\/p>\n<figure id=\"attachment_13840\" aria-describedby=\"caption-attachment-13840\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/7717cfa1e80fe228fd1a2813e57a9f3c.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13840\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/7717cfa1e80fe228fd1a2813e57a9f3c-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-13840\" class=\"wp-caption-text\">raspi4\u88cf\u9762<\/figcaption><\/figure>\n<p>\u88cf\u5074\u304b\u3089M2.5\u00d75mm\u306e\u30b9\u30da\u30fc\u30b5\u30fc\u3067\u811a\u3092\u56fa\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u5168\u4f53\u3092\u652f\u3048\u308b\u811a\u306b\u3057\u305f\u3002\u554f\u984c\u70b9\u306f\u3001\u5168\u4f53\u3092\u53ce\u3081\u308b\u90fd\u5408\u306e\u3044\u3044\u30b7\u30a7\u30eb\u3084\u30b1\u30fc\u30b9\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3053\u3068\u3002<\/p>\n<h4>gpio-fan\u6a5f\u80fd<\/h4>\n<p>raspi4\u306b\u306fSoC\u30b3\u30a2\u304c\u6307\u5b9a\u306e\u6e29\u5ea6\u306b\u9054\u3059\u308b\u3068\u3001\u6307\u5b9a\u306eGPIO\u306e\u8ad6\u7406\u3092\u5909\u3048\u308b\u3001<strong>gpio-fan\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4<\/strong>\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3002\u3053\u308c\u3092\u5229\u7528\u3057\u3066\u3001\u51b7\u5374\u7528\u306eDC\u30d5\u30a1\u30f3\u3092\u56de\u305b\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<p>\/boot\/config.txt \u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u30ea\u30d6\u30fc\u30c8\u3059\u308b\u3068\u3053\u306e\u30c7\u30d0\u30a4\u30b9\u30c4\u30ea\u30fc\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u304c\u6709\u52b9\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true\" style=\"padding-left: 40px;\">dtoverlay=gpio-fan,gpiopin=21,temp=50000<\/pre>\n<p>\u3053\u306e\u6307\u5b9a\u3067\u306f\u3001\u30b3\u30a2\u6e29\u5ea6\u304c50\u2103\u3092\u8d85\u3048\u305f\u6642\u70b9\u3067 gpio21 \u304cHIGH\u306b\u306a\u308b\u3002\u305d\u3057\u3066\u3001\u6307\u5b9a\u6e29\u5ea6\u304b\u308910\u2103\u4e0b\u304c\u308b\u3068\u3001\u4eca\u5ea6\u306fgpio21\u304cLOW\u306b\u623b\u308b(\u4f4e\u4e0b\u6e29\u5ea6\u306fdts\u30d5\u30a1\u30a4\u30eb\u306e\u5b9a\u6570\u306b\u306a\u3063\u3066\u3044\u308b)\u3002<\/p>\n<p>GPIO\u30d4\u30f3\u81ea\u4f53\u304b\u3089\u6d41\u3059\u96fb\u6d41\u306f\u898f\u683c\u4e0a16mA\u4ee5\u4e0b\u3068\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u30d5\u30a1\u30f3\u3092\u76f4\u7d50\u3059\u308b\u308f\u3051\u306b\u306f\u3044\u304b\u306a\u3044\u3002\u305d\u306e\u305f\u3081\u3001\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\u306eQ2 (<strong>2N3904<\/strong>)\u3067\u53d7\u3051\u3066\u30d5\u30a1\u30f3\u306e\u96fb\u6e90\u3092\u30aa\u30f3\uff0f\u30aa\u30d5\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3002GPIO\u3068Q2\u306e\u30d9\u30fc\u30b9\u9593\u306b\u306f1k\u03a9\u306e\u62b5\u6297\u3092\u5165\u308c\u305f\u306e\u3067\u3001GPIO21\u304b\u3089\u6d41\u308c\u308b\u96fb\u6d41\u306f\u3001\u6700\u5927\u3067\u30823.3mA\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>\u30d5\u30a1\u30f3\u306b\u4e0e\u3048\u308b+5V\u306f\u3001\u3053\u306e\u30dc\u30fc\u30c9\u5185\u306e\u4e00\u6b21\u5074\u96fb\u6e90\u3092\u63a5\u7d9a\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u51b7\u5374\u30d5\u30a1\u30f3\u304c\u56de\u308a\u3060\u3057\u305f\u3068\u304d\u306e\u4e8c\u6b21\u5074(raspi\u5074)\u3078\u306e\u5f71\u97ff\u306f\u5c11\u306a\u3044\u3060\u308d\u3046\u3002\u307e\u305f\u3001+5V\u3068\u30d5\u30a1\u30f3\u306e\u5165\u529b\u5074\u306e\u9593\u306b\u306f10\u03a9\u306e\u62b5\u6297\u3092\u5165\u308c\u3066\u904e\u5927\u306a\u96fb\u6d41\u304c\u6d41\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3002\u73fe\u5728\u5229\u7528\u3057\u3066\u3044\u308b\u30d5\u30a1\u30f3\u306e\u5834\u5408\u5b9f\u6e2c\u306780\uff5e90mA\u6d41\u308c\u3066\u3044\u308b\u3002<\/p>\n<figure id=\"attachment_13834\" aria-describedby=\"caption-attachment-13834\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/9e8ee27996e9afad7cabf6d5ce427d16.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-13834\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2021\/12\/9e8ee27996e9afad7cabf6d5ce427d16-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-13834\" class=\"wp-caption-text\">raspi \u51b7\u5374\u30d5\u30a1\u30f3<\/figcaption><\/figure>\n<p>\u30d5\u30a1\u30f3\u81ea\u4f53\u306f<a href=\"https:\/\/www.amazon.co.jp\/dp\/B07GFH8HF3\/\" target=\"_blank\" rel=\"noopener\">amazon\u30674\u3064\u30671000\u5186(\u9001\u6599\u8fbc\u307f)\u306e\u3082\u306e<\/a>\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001SoC\u306e\u30d2\u30fc\u30c8\u30b7\u30f3\u30af\u306b\u5f37\u529b\u4e21\u9762\u30c6\u30fc\u30d7\u3067\u8cbc\u308a\u4ed8\u3051\u305f\u3002\u8cbc\u308a\u4ed8\u3051\u308b\u90fd\u5408\u3067\u30d5\u30a1\u30f3\u306e\u4e0a\u4e0b\u304c\u9006( \u30d2\u30fc\u30c8\u30b7\u30f3\u30af\u306b\u5439\u304d\u4ed8\u3051\u308b\u65b9\u5411 ) \u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u304c\u3001\u4eca\u306e\u3068\u3053\u308d\u554f\u984c\u306f\u306a\u3044\u3088\u3046\u3060\u3002\u3082\u3063\u3068\u3082\u3001\u5bd2\u3044\u5b63\u7bc0\u306b\u306a\u3063\u305f\u306e\u3067\u306a\u304b\u306a\u304b\u56de\u3089\u306a\u3044\u306e\u3060\u304c\u3002<\/p>\n<h1>\u304d\u3087\u3046\u306e\u307e\u3068\u3081<\/h1>\n<p>\u3057\u3070\u3089\u304f\u524d\u306b\u30012010\u5e74\u304b\u3089\u81ea\u5b85\u3067\u4f7f\u3063\u3066\u3044\u305fIntel ATOM-D510\u30d9\u30fc\u30b9\u306e\u5c0f\u3055\u306aLinux box\u304c\u58ca\u308c\u3066\u3057\u307e\u3063\u305f\u3002\u3053\u306e\u30db\u30b9\u30c8\u306b\u306f\u3001BIOS\u306b\u7a3c\u50cd\u6642\u9593\u3092\u8a2d\u5b9a\u3059\u308b\u4ed5\u7d44\u307f\u304c\u5165\u3063\u3066\u304a\u308a\u3001\u5730\u7403\u4e0a\u306e\u3069\u3053\u304b\u3067\u52d5\u3044\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u6df1\u591c\u307e\u305f\u306f\u65e9\u671d\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30c7\u30fc\u30bf\u3092\u5438\u3044\u4e0a\u3052\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u3044\u305f\u3002\u65b0\u3057\u304f\u8cb7\u3046\u306e\u3082\u3064\u307e\u3089\u306a\u3044\u306e\u3067\u3001\u521draspi\u3092\u8cfc\u5165\u3057\u3066\u65e9\u901f\u5de5\u4f5c\u3057\u3066\u307f\u305f\u3002<\/p>\n<p>Raspberry Pi\u3068\u3044\u3046\u306e\u306f\u6559\u80b2\u7528\u306b\u4f5c\u3089\u308c\u305f\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3068\u8a00\u308f\u308c\u3066\u3044\u308b\u304c\u3001\u96fb\u6e90\u30b9\u30a4\u30c3\u30c1\u3082\u6642\u8a08\u3082\u51b7\u5374\u30d5\u30a1\u30f3\u3082\u3001\u4eca\u56de\u4f5c\u3063\u305f\u3088\u3046\u306a\u96fb\u6e90\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u3082\u8f09\u3063\u3066\u306a\u3044\u308f\u3051\u3067\u3001\u305d\u3046\u3044\u3063\u305f\u88dc\u5b8c\u6a5f\u80fd\u3092\u9069\u5207\u306b\u8003\u3048\u3066\u8ffd\u52a0\u3057\u3066\u3044\u304f\u3053\u3068\u304c\u3001\u697d\u3057\u3044\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u304a\u52c9\u5f37\u3068\u3044\u3046\u3053\u3068\u3060\u308d\u3046\u3068\u601d\u3063\u305f\u3002<\/p>\n<p>\u6b21\u56de\u306f\u3001Pro Micro\u306b\u8f09\u305b\u305fArduino\u30b9\u30b1\u30c3\u30c1\u306e\u8a71\u306b\u306a\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry pi 4B ( \u4ee5\u4e0b\u3001raspi4 )\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306b\u3057\u305f\u304c\u3063\u3066\u30aa\u30f3\uff0f\u30aa\u30d5\u3059\u308b\u305f\u3081\u306e\u56de\u8def\u3068\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u307f\u305f\u3002 \u6a5f\u80fd\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3002 raspi4\u306e\u96fb\u6e90\u3092\u30aa\u30f3\u306b\u3057\u305f\u308a\u3001\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u3066\u96fb\u6e90\u3092\u30aa\u30d5 &hellip; <a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?p=13805\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">raspberry pi 4B\u7528 \u96fb\u6e90\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30dc\u30fc\u30c9\u306e\u4f5c\u6210 \u305d\u306e1<\/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,186,187,103,173],"class_list":["post-13805","post","type-post","status-publish","format-standard","hentry","category-programming","tag-arduino","tag-gpio-poweroff","tag-gpio-shutdown","tag-promicro","tag-raspberry_pi"],"_links":{"self":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13805","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=13805"}],"version-history":[{"count":0,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13805\/revisions"}],"wp:attachment":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}