
{"id":16074,"date":"2023-10-24T17:31:44","date_gmt":"2023-10-24T08:31:44","guid":{"rendered":"https:\/\/okiraku-camera.tokyo\/blog\/?p=16074"},"modified":"2026-02-24T15:27:03","modified_gmt":"2026-02-24T06:27:03","slug":"rp2040%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e8%a6%aa%e6%8c%87%e3%82%b7%e3%83%95%e3%83%88%e3%82%ad%e3%83%bc%e3%83%9c%e3%83%bc%e3%83%89-nk60%e3%81%ae%e8%a3%bd%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/okiraku-camera.tokyo\/blog\/?p=16074","title":{"rendered":"RP2040\u3092\u4f7f\u3063\u305f\u89aa\u6307\u30b7\u30d5\u30c8\u30ad\u30fc\u30dc\u30fc\u30c9(nk60)\u306e\u88fd\u4f5c"},"content":{"rendered":"<h1>\u6982\u8981<\/h1>\n<p>\u3057\u3070\u3089\u304f\u524d\u306b\u3001<a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?p=15335\" target=\"_blank\" rel=\"noopener\">XD64 VER 3 PCB\u3092\u4f7f\u3063\u305f\u89aa\u6307\u30b7\u30d5\u30c8\u30ad\u30fc\u30dc\u30fc\u30c9<\/a>\u3092\u4f5c\u3063\u3066\u304a\u304a\u3080\u306d\u6e80\u8db3\u3057\u3066\u3044\u305f\u306e\u3060\u3051\u3069\u3001\u82f1\u6587\u6df7\u3058\u308a\u306e\u65e5\u672c\u8a9e\u5165\u529b\u3092\u3082\u3046\u3061\u3087\u3063\u3068\u3084\u308a\u3084\u3059\u304f\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3002\u305d\u306e\u305f\u3081\u306b\u3001\u6587\u5b57\u7a2e\u5207\u66ff\u3048\u7528\u306e\u30ad\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u540c\u305860%\u30b5\u30a4\u30ba\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u56de\u8def\u57fa\u677f (PCB) \u304b\u3089\u4f5c\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u56de\u8def\u57fa\u677f(PCB)\u306e\u30b9\u30a4\u30c3\u30c1\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001US\u30ad\u30fc\u30dc\u30fc\u30c9\u3068\u65e5\u672c\u8a9e\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u4e21\u8005\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<figure id=\"attachment_16111\" aria-describedby=\"caption-attachment-16111\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/f62ccbec7fd09e6f8ee9aee981e0d715.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-16111\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/f62ccbec7fd09e6f8ee9aee981e0d715-552x235.jpg\" alt=\"\" width=\"552\" height=\"235\" \/><\/a><figcaption id=\"caption-attachment-16111\" class=\"wp-caption-text\">nk60 keyboard US layout<\/figcaption><\/figure>\n<p>hoboNicolaLibrary \u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30db\u30b9\u30c8\u5074\u3084\u30a2\u30c0\u30d7\u30bf\u30fc\u306e\u652f\u63f4\u306a\u304f\u3001\u89aa\u6307\u30b7\u30d5\u30c8\u30ad\u30fc\u30dc\u30fc\u30c9\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u308b\u3002\u4eca\u306e\u3068\u3053\u308d\u3001Windows\u3067\u306e\u52d5\u4f5c\u3057\u304b\u78ba\u8a8d\u3057\u3066\u3044\u306a\u3044\u3002<\/p>\n<p><strong>( \u8ffd\u8a18 :<\/strong> hoboNicola\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u66f4\u65b0\u306b\u3088\u308a\u3001MacOS (Sonoma) \u3084Ubuntu (mozc) \u3067\u306e\u52d5\u4f5c\u3082\u78ba\u8a8d\u3057\u305f\u3002)<\/p>\n<p>PCB \u306e\u5916\u5f62\u5bf8\u6cd5\u3084\u30cd\u30b8\u7a74\u306e\u4f4d\u7f6e\u306f<a href=\"https:\/\/github.com\/komar007\/gh60\" target=\"_blank\" rel=\"noopener\"><strong>GH60<\/strong><\/a>\u306e\u5bf8\u6cd5\u306b\u5408\u308f\u305b\u3066\u8a2d\u8a08\u3057\u305f\u3002\u305d\u3046\u3057\u3066\u304a\u3051\u3070\u3001\u5b89\u4fa1\u306a\u5e02\u8ca9\u306e\u30b1\u30fc\u30b9(\u3042\u308b\u3044\u306f\u30b7\u30a7\u30eb)\u3092Aliexpress \u306a\u3069\u3067\u5bb9\u6613\u306b\u5165\u624b\u3067\u304d\u308b\u304b\u3089\u3001PCB\u304b\u3089\u4e0a\u3060\u3051\u8003\u3048\u308c\u3070\u3088\u3044\u3002<\/p>\n<p>\u30de\u30a4\u30b3\u30f3\u306f <a href=\"https:\/\/www.raspberrypi.com\/products\/rp2040\/\" target=\"_blank\" rel=\"noopener\">Raspberry Pi \u8ca1\u56e3 \u306eRP2040<\/a>\u3092\u5229\u7528\u3057\u305f\u3002XD64\u306b\u306fATmel\u306eATMega32U4\u304c\u8f09\u3063\u3066\u304a\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u5b9f\u88c5\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u3002\u305f\u3060\u81ea\u5206\u3067\u4f5c\u308b\u306b\u3042\u305f\u3063\u3066\u5f93\u6765\u3068\u540c\u3058\u3067\u306f\u9762\u767d\u307f\u3082\u306a\u3044\u306e\u3067\u3001\u5b89\u4fa1\u3067\u9ad8\u6027\u80fd\u306aRP2040\u3092\u63a1\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>\u56de\u8def\u304a\u3088\u3073PCB\u306e\u8a2d\u8a08\u306f\u3001KiCAD\u306e6.11\u7248\u3092\u5229\u7528\u3057\u3001KiCAD\u3067\u51fa\u529b\u3057\u305fgerber\u30c7\u30fc\u30bf\u3092\u88fd\u9020\u7528\u306b\u4f7f\u3063\u305f\u3002<\/p>\n<p>PCB\u306e\u88fd\u9020\u306f <a href=\"https:\/\/jlcpcb.com\/\" target=\"_blank\" rel=\"noopener\">JLCPCB<\/a> \u306b\u4f9d\u983c\u3002RP2040\u3082\u542b\u3081\u3066\u5c0f\u3055\u306a\u90e8\u54c1\u3092\u591a\u6570\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u3066\u3001\u3068\u3066\u3082\u624b\u30cf\u30f3\u30c0\u3067\u4f5c\u308c\u308b\u81ea\u4fe1\u304c\u306a\u304b\u3063\u305f\u304b\u3089PCB\u88fd\u9020\u3068\u540c\u6642\u306b\u307b\u3068\u3093\u3069\u306e\u30c7\u30d0\u30a4\u30b9\u306e\u30a2\u30bb\u30f3\u30d6\u30ea\u3082\u4f9d\u983c\u3057\u305f (PCBA)\u30025\u679a\u88fd\u9020\u3057\u305f\u3068\u304d\u306e\u8cbb\u7528\u306f\u9001\u6599\u3082\u542b\u3081\u3066 $65\u7a0b\u5ea6\u3060\u3063\u305f\u3002\u3072\u3069\u3044\u5186\u5b89\u3058\u3083\u306a\u3051\u308c\u3070\u3001\u5b89\u3055\u3092\u3082\u3063\u3068\u5b9f\u611f\u3067\u304d\u305f\u3060\u308d\u3046\u3002<\/p>\n<p>RP2040\u306b\u66f8\u304d\u8fbc\u3080\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306f\u3001hoboNicola\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u306b\u4eca\u56de\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306e\u4fee\u6b63\u3092\u52a0\u3048\u305f1.7.2\u7248\u3092\u4f7f\u3063\u305f\u3002\u30bd\u30fc\u30b9\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/github.com\/okiraku-camera\/hoboNicolaLibrary\" target=\"_blank\" rel=\"noopener\">GitHUB\u3092\u53c2\u7167<\/a>\u306e\u3053\u3068\u3002<\/p>\n<h1>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2<\/h1>\n<figure id=\"attachment_16108\" aria-describedby=\"caption-attachment-16108\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/b673b68d9d4ae70ed5771c0d96ab8643.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-16108\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/b673b68d9d4ae70ed5771c0d96ab8643-552x205.jpg\" alt=\"\" width=\"552\" height=\"205\" \/><\/a><figcaption id=\"caption-attachment-16108\" class=\"wp-caption-text\">NK60 revision3 PCB<\/figcaption><\/figure>\n<h2>\u56de\u8def<\/h2>\n<p>RP2040\u3092\u4f7f\u3063\u305f\u30b7\u30f3\u30d7\u30eb\u306a\u69cb\u6210\u306b\u30015\u884c x 14\u5217 (70\u30ad\u30fc)\u306e\u30b9\u30a4\u30c3\u30c1\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3044\u308b\u3002<\/p>\n<figure id=\"attachment_16082\" aria-describedby=\"caption-attachment-16082\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/nk60_3_sch.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-16082\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/nk60_3_sch-552x312.png\" alt=\"\" width=\"552\" height=\"312\" \/><\/a><figcaption id=\"caption-attachment-16082\" class=\"wp-caption-text\">nk60 rev3 schematics<\/figcaption><\/figure>\n<h3>RP2040\u5468\u308a<\/h3>\n<p>\u30de\u30a4\u30b3\u30f3\u306eRP2040 \u306e\u5468\u8fba\u56de\u8def\u306b\u3064\u3044\u3066\u306f\u3001Raspberry Pi Ltd \u304c\u516c\u958b\u3057\u3066\u3044\u308b<a href=\"https:\/\/datasheets.raspberrypi.com\/rp2040\/hardware-design-with-rp2040.pdf\" target=\"_blank\" rel=\"noopener\"><strong><em><span style=\"font-size: 14pt;\"> Hardware design with RP2040<\/span> Using RP2040 microcontrollers to build boards and products<\/em><\/strong><\/a> \u3092\u53c2\u8003\u306b\u3001\u30c7\u30ab\u30c3\u30d7\u30ea\u30f3\u30b0\u30b3\u30f3\u30c7\u30f3\u30b5\u3001LDO\u3001\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea\u300112MHz\u306e\u30aa\u30b7\u30ec\u30fc\u30bf\u30fc\u306a\u3069\u3092\u63a5\u7d9a\u3057\u305f\u3002<\/p>\n<figure id=\"attachment_16112\" aria-describedby=\"caption-attachment-16112\" style=\"width: 414px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/4ac2b4ddc3a20bd914a01d4849e0397c.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-16112\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/4ac2b4ddc3a20bd914a01d4849e0397c-414x552.jpg\" alt=\"\" width=\"414\" height=\"552\" \/><\/a><figcaption id=\"caption-attachment-16112\" class=\"wp-caption-text\">NK60 PCB<\/figcaption><\/figure>\n<p>\u56de\u8def\u57fa\u677f\u306eB\u9762\u306eUSB\u30b3\u30cd\u30af\u30bf\u306e\u8fd1\u508d\u3001Esc\u30ad\u30fc\u3068Tab\u30ad\u30fc\u306e\u9593\u3042\u305f\u308a\u306b\u304a\u304a\u3088\u305d\u306e\u30c7\u30d0\u30a4\u30b9\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u914d\u7f6e\u3057\u305f\u3002GH60\u306e\u5bf8\u6cd5\u306b\u5408\u308f\u305b\u308b\u305f\u3081\u306b\u306f\u30ad\u30fc\u30b9\u30a4\u30c3\u30c1\u3092\u9699\u9593\u306a\u304f\u914d\u7f6e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001Tab\u30ad\u30fc\u3084CapsLock\u30ad\u30fc\u306e\u307e\u308f\u308a\u3001\u3042\u308b\u3044\u306f\u3001\u30b9\u30da\u30fc\u30b9\u30ad\u30fc\u306e\u5468\u8fba\u304f\u3089\u3044\u3057\u304b\u3001\u30c7\u30d0\u30a4\u30b9\u3092\u3046\u307e\u304f\u914d\u7f6e\u3067\u304d\u305d\u3046\u306a\u5834\u6240\u304c\u306a\u3044\u3002<\/p>\n<figure id=\"attachment_16083\" aria-describedby=\"caption-attachment-16083\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/pcb_cpu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"waku wp-image-16083 size-large\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/pcb_cpu-552x411.png\" alt=\"\" width=\"552\" height=\"411\" \/><\/a><figcaption id=\"caption-attachment-16083\" class=\"wp-caption-text\">nk60 rev3 cpu part.<\/figcaption><\/figure>\n<p>\u3053\u308c\u306fB\u9762\u304b\u3089\u898b\u305f\u56f3\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u7279\u306b\u914d\u7dda\u304c\u305f\u3066\u8fbc\u3080CPU\u5468\u8fba\u306eGND\u306f\u3001F\u9762\u306e\u5c0e\u4f53\u30be\u30fc\u30f3\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea\u306b\u306f\u3001<a href=\"https:\/\/www.winbond.com\/hq\/product\/code-storage-flash-memory\/serial-nor-flash\/index.html?__locale=ja&amp;partNo=W25Q128JV\" target=\"_blank\" rel=\"noopener\">WinBond\u306eW25Q128JVSIQ<\/a> (128Mbit, 16MBytes Quad SPI Flash) \u3092\u4f7f\u3063\u305f\u304c\u3001\u5b9f\u969b\u306e\u3068\u3053\u308d\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea\u306e\u5bb9\u91cf\u306f2MBytes\u3082\u3042\u308c\u3070\u5341\u5206\u3060\u304b\u3089\u3001\u5bb9\u91cf2MB\u306eW25Q16JV \u3067\u3082\u3088\u304b\u3063\u305f\u3002\u305f\u3060\u30c7\u30d0\u30a4\u30b9\u306e\u5358\u4fa1\u304c0.5$\u3082\u9055\u308f\u306a\u304b\u3063\u305f\u306e\u3067\u3001RP2040\u304c\u30b5\u30dd\u30fc\u30c8\u3067\u304d\u308b\u6700\u5927\u30b5\u30a4\u30ba\u3067\u3042\u308b16MBytes\u306e\u65b9\u3092\u9078\u629e\u3057\u305f\u3002<\/p>\n<h3>USB\u304a\u3088\u3073\u96fb\u6e90<\/h3>\n<p>Type-C\u306eUSB2.0\u7528\u30ec\u30bb\u30d7\u30bf\u30af\u30eb (<a href=\"https:\/\/datasheet.lcsc.com\/lcsc\/2205251630_Korean-Hroparts-Elec-TYPE-C-31-M-12_C165948.pdf\" target=\"_blank\" rel=\"noopener\">USB_C_Receptacle_HRO_TYPE-C-31-M-12<\/a>) \u3092GH60\u306e\u6307\u5b9a\u4f4d\u7f6e\u306b\u53d6\u308a\u4ed8\u3051\u3001\u305d\u306e\u8fd1\u508d\u306bRP2040\u306e+3.3V\u96fb\u6e90\u7528\u3068\u3057\u3066LDO (<a href=\"https:\/\/www.diodes.com\/assets\/Datasheets\/AP2112.pdf\" target=\"_blank\" rel=\"noopener\">AP2112K-3.3<\/a>) \u3092\u914d\u7f6e\u3057\u305f\u3002<\/p>\n<p>USB VBUS\u3068LDO\u306e\u9593\u306b\u306f\u30011A(@25\u2103)\u4ee5\u4e0a\u3067\u30c8\u30ea\u30c3\u30d7\u3059\u308b\u306f\u305a\u306e<strong>\u30ea\u30bb\u30c3\u30bf\u30d6\u30eb\u30d2\u30e5\u30fc\u30ba (nSMD100-16V) <\/strong>\u3092\u5165\u308c\u3001\u904e\u5927\u306a\u96fb\u6d41\u304b\u3089USB\u306e\u30db\u30b9\u30c8\u5074\u3092\u4fdd\u8b77\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3002LED\u3092\u99c6\u52d5\u3059\u308b\u305f\u3081\u306e+5V\u3082\u3001\u5f53\u7136\u30ea\u30bb\u30c3\u30bf\u30d6\u30eb\u30d2\u30e5\u30fc\u30ba\u306e\u51fa\u529b\u5074\u304b\u3089\u5f97\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<p>AP2112K-3.3\u306f\u3001VBUS\u306e+5V\u3092\u5165\u529b\u3068\u3057\u3066+3.3V\u3092\u51fa\u529b\u3059\u308bLDO\u3067\u5e38\u6e29\u306a\u3089\u3070600mA\u307e\u3067\u306f\u5b89\u5b9a\u3057\u3066\u6d41\u305b\u308b\u306f\u305a\u3002RP2040\u306810\u500b\u7a0b\u5ea6\u306e\u9ad8\u8f1d\u5ea6LED\u3092\u99c6\u52d5\u3059\u308b\u306e\u306f\u4f59\u88d5\u3060\u308d\u3046\u3002<\/p>\n<h3>\u8ffd\u8a18 : \u30c7\u30d0\u30a4\u30b9\u306e\u66f4\u65b0<\/h3>\n<h4>LDO<\/h4>\n<p style=\"padding-left: 40px;\">AP2112K-3.3 \u304b\u3089<a href=\"https:\/\/product.torexsemi.com\/system\/files\/series\/xc6206-j.pdf\" target=\"_blank\" rel=\"noopener\"> XC6206P332<\/a> \u306b\u66f4\u65b0\u3057\u305f\u3002AP2112K\u306e\u6700\u5927\u51fa\u529b\u96fb\u6d41\u304c600mA\u3001XC6206P332\u306e\u305d\u308c\u306f200mA\u3067\u3042\u308b\u3002\u3053\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u6d88\u8cbb\u96fb\u529b\u306f\u3059\u3079\u3066\u306e NICOLA LED\u304c\u70b9\u706f\u4e2d\u3067\u3082100mA\u306b\u9054\u3057\u306a\u3044\u305f\u3081\u3001\u3088\u308a\u5c0f\u578b\u3067\u5b89\u4fa1\u306aLDO\u306b\u5909\u66f4\u3057\u305f\u3002<\/p>\n<h4>USB\u30b3\u30cd\u30af\u30bf<\/h4>\n<p style=\"padding-left: 40px;\">\u8868\u9762\u5b9f\u88c5\u30bf\u30a4\u30d7\u306eUSB2.0\u7528\u30ec\u30bb\u30d7\u30bf\u30af\u30eb \u3092PCB\u306b\u53d6\u308a\u4ed8\u3051\u308b\u5834\u5408\u3001\u30ec\u30bb\u30d7\u30bf\u30af\u30eb\u3092PCB\u306b\u56fa\u5b9a\u3059\u308b\u305f\u3081\u306e\u30b7\u30a7\u30eb\u56fa\u5b9a\u30bf\u30d6\u304c\u9577\u3044\u65b9\u304c\u3057\u3063\u304b\u308a\u56fa\u5b9a\u3055\u308c\u308b\u3002\u3053\u306e\u8db3\u304c\u77ed\u3044\u5834\u5408\u3001USB\u30b1\u30fc\u30d6\u30eb\u629c\u304d\u5dee\u3057\u6642\u306b\u4f59\u8a08\u306a\u529b\u304c\u52a0\u308f\u308b\u3068\u30ec\u30bb\u30d7\u30bf\u30af\u30eb\u304c\u5916\u308c\u3066\u3057\u307e\u3046\u6050\u308c\u304c\u3042\u308b\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u5f53\u521d\u4f7f\u3063\u3066\u3044\u305f HRO TYPE-C-31-M-12 \u3067\u306f\u30b7\u30a7\u30eb\u56fa\u5b9a\u30bf\u30d6\u306e\u9577\u3055\u304c\u7d041mm\u7a0b\u5ea6\u3060\u3063\u305f\u3002\u66f4\u65b0\u6642\u306b\u56fa\u5b9a\u30bf\u30d6\u9577\u304cPCB\u306e\u539a\u3055\u3092\u8d85\u3048\u308b2mm\u306e TYPEC-304J-BCP16 \u3068\u3044\u3046\u88fd\u54c1\u306b\u5909\u66f4\u3057\u305f\u3002<\/p>\n<h3>\u30b9\u30a4\u30c3\u30c1\u30de\u30c8\u30ea\u30af\u30b9<\/h3>\n<p>5\u884c14\u5217\u306e\u3001\u6700\u592770\u30ad\u30fc\u307e\u3067\u30b5\u30dd\u30fc\u30c8\u3067\u304d\u308b\u30ad\u30fc\u30b9\u30a4\u30c3\u30c1\u30de\u30c8\u30ea\u30af\u30b9\u3068\u3057\u305f\u3002RP2040\u306b\u306fGPIO\u304c30\u672c\u3067\u3066\u3044\u308b\u306e\u3067\u4f59\u88d5\u3002<\/p>\n<p>\u30ad\u30fc\u30dc\u30fc\u30c9\u30b9\u30a4\u30c3\u30c1\u306f\u3001\u5b89\u304f\u3042\u3052\u308b\u305f\u3081\u306bPCB\u306b\u76f4\u63a5\u30cf\u30f3\u30c0\u4ed8\u3051\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u306e\u3067\u30015\u30d4\u30f3\u306eMX\u30b9\u30a4\u30c3\u30c1\u3092\u4f7f\u3046\u3002\u4eca\u56de\u306ePCB\u306b\u3092\u4f7f\u3063\u3066\u6700\u521d\u306b\u3053\u3057\u3089\u3048\u305f\u30c6\u30b9\u30c8\u76ee\u7684\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u304c\u308f\u308a\u3068\u826f\u304b\u3063\u305f\u306e\u3067\u3001\u30b9\u30a4\u30c3\u30c1\u30d7\u30ec\u30fc\u30c8\u306f\u8a2d\u8a08\u306f\u3057\u305f\u3082\u306e\u306e\u767a\u6ce8\u3057\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u5404\u30b9\u30a4\u30c3\u30c1\u306b\u914d\u3057\u305f\u96fb\u6d41\u65b9\u5411\u3092\u6c7a\u3081\u308b\u30c0\u30a4\u30aa\u30fc\u30c9\u306f\u3001\u5217\u304b\u3089\u884c\u306e\u65b9\u5411\u3068\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u3068\u304d\u5217\u5074GPIO\u30d4\u30f3\u306f\u30d7\u30eb\u30a2\u30c3\u30d7\u4ed8\u304d\u306e\u5165\u529b\u3001\u884c\u5074\u306f\u51fa\u529b(\u30c7\u30d5\u30a9\u30eb\u30c8HIGH\u3001\u884c\u9078\u629e\u6642\u306bLOW)\u3068\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<h3>LED<\/h3>\n<p>CapsLock\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u3068\u3057\u30661\u500b\u3068\u3001NICOLA\u30e2\u30fc\u30c9\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u30921\u7cfb\u7d71\u3092\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<p>hoboNicola\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001NICOLA\u914d\u5217\u3084\u540c\u6642\u6253\u9375\u51e6\u7406\u3092\u8a31\u53ef\u3059\u308b\u30e2\u30fc\u30c9(<strong>NICOLA\u30e2\u30fc\u30c9<\/strong>)\u3092\u660e\u793a\u3059\u308b\u305f\u3081\u306eLED (NICOLA LED)\u3092\u4f7f\u3046\u304c\u3001\u3053\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u306fNICOLA\u30e2\u30fc\u30c9\u3067\u3042\u308b\u3053\u3068\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u793a\u3059\u305f\u3081\u3001LED\u306e\u30d5\u30c3\u30c8\u30d7\u30ea\u30f3\u30c8\u3068\u914d\u7dda\u309210\u7b87\u6240\u7528\u610f\u3057\u305f\u3002LED\u306f\u30b9\u30a4\u30c3\u30c1\u306e\u4e0a(\u30ad\u30fc\u30ad\u30e3\u30c3\u30d7\u306e\u4e0b)\u306b\u9854\u3092\u51fa\u3059\u30b9\u30eb\u30fc\u30db\u30fc\u30eb\u30bf\u30a4\u30d7\u307e\u305f\u306fPCB\u88cf\u9762\u306b\u5b9f\u88c5\u3059\u308bSMD\u30bf\u30a4\u30d7\u306e\u3044\u305a\u308c\u304b\u3092\u9078\u629e\u3067\u304d\u308b\u3002\u88cf\u9762\u306bLED\u3092\u5b9f\u88c5\u3059\u308b\u306e\u306f\u3001GH60\u7528\u306e\u30b9\u30b1\u30eb\u30c8\u30f3\u30bf\u30a4\u30d7\u306e\u30b1\u30fc\u30b9\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3044\u305f\u305f\u3081\u3002<\/p>\n<h4>LED\u306eV<sub>F<\/sub>\u306b\u6ce8\u610f<\/h4>\n<p>\u914d\u616e\u3059\u3079\u304d\u70b9\u306f\u3001RP2040\u306eGPIO\u306eV<sub>OH<\/sub>\u304c+3.3V\u3067\u3042\u308b\u3053\u3068\u3068\u3001\u9752\u3084\u9ec4\u7dd1\u8272\u306eLED\u306eV<sub>F<\/sub>\u306f+3V\u4ee5\u4e0a\u306e\u3082\u306e\u304c\u591a\u304f\u3001GPIO\u306b\u3088\u308b\u76f4\u63a5\u99c6\u52d5\u3067\u306f\u70b9\u706f\u3067\u304d\u306a\u304b\u3063\u305f\u308a\u6697\u304b\u3063\u305f\u308a\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070V<sub>F<\/sub>\u304c\u304d\u3063\u3061\u308a+3.0V\u3060\u3068\u3057\u3066\u3082\u3001LED\u7528\u306e\u76f4\u5217\u62b5\u6297\u304c100\u03a9 \u306a\u3089\u3070LED\u3092\u6d41\u308c\u308b\u96fb\u6d41\u306f (3300 &#8211; 3000) \u00f7 100 = 3 (mA) \u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u3001\u3042\u307e\u308a\u660e\u308b\u3055\u3082\u671f\u5f85\u3067\u304d\u306a\u3044\u3002LED\u306eV<sub>F<\/sub>\u306b\u306f\u8aa4\u5dee\u3084\u500b\u4f53\u5dee\u304c\u3042\u308b\u306e\u3067\u3001GPIO\u306eV<sub>OH<\/sub>\u3068\u306e\u5dee\u304c1V\u4ee5\u4e0b\u306b\u306a\u308b\u3053\u3068\u306f\u907f\u3051\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002<\/p>\n<h4>LED\u99c6\u52d5\u7528\u306e\u30cf\u30a4\u30b5\u30a4\u30c9\u30b9\u30a4\u30c3\u30c1<\/h4>\n<p>NICOLA LED\u3068\u3057\u3066V<sub>F<\/sub>\u304c3.0V\u4ee5\u4e0a\u306e\u9752\u8272LED\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u306e\u3067\u3001\u3053\u308c\u3089\u306b\u3064\u3044\u3066\u306f+5V\u3067\u99c6\u52d5\u3057\u3066\u3084\u308b\u3053\u3068\u306b\u3057\u305f\u3002+3.3V\u306eGPIO\u3067+5V\u3092\u30aa\u30f3\uff0f\u30aa\u30d5\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001<strong>\u30ed\u30fc\u30c9\u30b9\u30a4\u30c3\u30c1<\/strong>\u307e\u305f\u306f<strong>\u30cf\u30a4\u30b5\u30a4\u30c9\u30b9\u30a4\u30c3\u30c1<\/strong>\u3068\u3044\u3046\u3082\u306e\u3092\u4f7f\u3063\u305f\u3002 \u5177\u4f53\u7684\u306a\u30c7\u30d0\u30a4\u30b9\u3068\u3057\u3066\u306f\u3001<a href=\"https:\/\/www.diodes.com\/assets\/Datasheets\/AP2281.pdf\" target=\"_blank\" rel=\"noopener\">DIODES INC \u306eAP2281-3WG-7<\/a> \u3092\u63a1\u7528\u3057\u305f\u3002<\/p>\n<figure id=\"attachment_16077\" aria-describedby=\"caption-attachment-16077\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/AP2281_Typical.png\"><img loading=\"lazy\" decoding=\"async\" class=\"waku wp-image-16077 size-large\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/AP2281_Typical-552x430.png\" alt=\"\" width=\"552\" height=\"430\" \/><\/a><figcaption id=\"caption-attachment-16077\" class=\"wp-caption-text\">AP2281 Typical application circuit. \u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u304b\u3089\u629c\u7c8b<\/figcaption><\/figure>\n<p>V<sub>IN<\/sub>\u306b+5V\u3001EN\u306bRP2040\u306eGPIO\u3092\u63a5\u7d9a\u3057\u3066\u3084\u308b\u3002EN\u304cLOW\u306a\u3089\u3070V<sub>OUT<\/sub>\u3082LOW\u3001HIGH(+1.6V\u4ee5\u4e0a)\u3092\u4e0e\u3048\u308b\u3068V<sub>OUT<\/sub>\u306b+5V\u304c\u51fa\u529b\u3055\u308c\u308b\u3002V<sub>OUT<\/sub>\u304b\u3089\u6d41\u305b\u308b\u96fb\u6d41\u306f\u6700\u59272A\u306a\u306e\u3067\u3001LED\u309210\u500b\u308420\u500b\u3064\u3051\u3066\u3082\u307e\u305a\u554f\u984c\u306a\u3044\u3002\u6c17\u306b\u3059\u3079\u304d\u306a\u306e\u306f\u3001V<sub>IN<\/sub>\u306b\u6d41\u308c\u308bUSB V<sub>BUS<\/sub>\u304b\u3089\u306e\u96fb\u6d41\u306e\u65b9\u3060\u308d\u3046\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u7d44\u307f\u7acb\u3066\u305f\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u306f\u3001NICOLA LED\u306fV<sub>F<\/sub>=3.0\uff5e3.2V, I<sub>F<\/sub>=20mA\u306e\u9752\u8272SMDLED\u3001CapsLock LED\u306f\u3001V<sub>F<\/sub>=2.0\uff5e2.2V, I<sub>F<\/sub>=20mA\u306e\u8d64\u8272\u306e\u30b9\u30eb\u30fc\u30db\u30fc\u30eb\u3092\u4f7f\u3063\u305f\u3002\u76f4\u5217\u62b5\u6297\u306f\u3044\u305a\u308c\u3082330\u03a9\u3068\u3057\u305f\u306e\u3067\u3001NICOLA LED\u306f1\u500b\u3042\u305f\u308a\u6700\u5927\u30676mA\u3001CapsLock LED\u306f\u3084\u306f\u308a\u6700\u5927\u30674mA\u6d41\u308c\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>CapsLock LED\u00a0 \u306b\u3064\u3044\u3066\u96fb\u6d41\u5236\u9650\u62b5\u6297\u3092220\u03a9\u304b100\u03a9\u306b\u3059\u308c\u3070\u3088\u304b\u3063\u305f\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<p>\u306a\u304a\u3001NICOLA LED, CAPS LED\u3068\u3082\u306b\u88fd\u9020\u6642\u306b\u306fLED\u3092\u5b9f\u88c5\u3057\u3066\u3044\u306a\u3044\u3002SMD LED\u306b\u3064\u3044\u3066\u306f3216\u30b5\u30a4\u30ba\u3068\u3057\u305f\u306e\u3067\u624b\u30cf\u30f3\u30c0\u3067\u3082\u88c5\u7740\u3067\u304d\u308b\u3002<\/p>\n<h3>RESET\u30b9\u30a4\u30c3\u30c1\u3068BOOT\u30b9\u30a4\u30c3\u30c1<\/h3>\n<p>RP2040\u3092\u4f7f\u3063\u305f\u3060\u3044\u305f\u3044\u306eArduino\u30dc\u30fc\u30c9\u306f<strong>RESET\u30b9\u30a4\u30c3\u30c1\u3068BOOTSEL\u30b9\u30a4\u30c3\u30c1<\/strong>\u3092\u5099\u3048\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u306ePCB\u306eB\u9762\u306b\u30822\u3064\u306e\u30b9\u30a4\u30c3\u30c1\u3092\u7528\u610f\u3057\u305f\u3002\u30b9\u30a4\u30c3\u30c1\u306f\u3001\u4e00\u822c\u7684\u306aGH60\u7528\u30b1\u30fc\u30b9\u306e\u5e95\u90e8\u306b\u3042\u308b\u30ea\u30bb\u30c3\u30c8\u30dc\u30bf\u30f3\u7528\u306e\u958b\u53e3\u90e8\u304b\u3089\u64cd\u4f5c\u3067\u304d\u308b\u4f4d\u7f6e\u306b\u914d\u7f6e\u3057\u305f\u3002\u30b9\u30a4\u30c3\u30c1\u306e\u76ee\u7684\u306f\u30de\u30a4\u30b3\u30f3\u3092BOOTSEL\u30e2\u30fc\u30c9\u3067\u958b\u59cb\u3055\u305b\u308b\u305f\u3081\u3067\u3042\u308b\u3002<\/p>\n<p>\u305f\u3060\u3001\u30ea\u30bb\u30c3\u30c8\u30dc\u30bf\u30f3\u7528\u958b\u53e3\u90e8\u306e\u4f4d\u7f6e\u3084\u5927\u304d\u3055\u306e\u6a19\u6e96\u3092\u898b\u3064\u3051\u3089\u308c\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u624b\u5143\u306b\u3042\u3063\u305f2\u7a2e\u985e\u306e\u30b1\u30fc\u30b9\u306e\u958b\u53e3\u90e8\u306e\u4f4d\u7f6e\u3084\u5927\u304d\u3055\u304b\u3089\u914d\u7f6e\u4f4d\u7f6e\u3092\u6c7a\u3081\u305f\u3002\u6b63\u78ba\u306a\u4f4d\u7f6e\u306b\u3064\u3044\u3066\u306fGH60\u7528\u306e\u30cd\u30b8\u7a74\u306e\u9805\u3092\u53c2\u7167\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-16085 size-medium\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/59113ad81d2a2ecd4ac45ca4d51d3eff-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" \/><br \/>\n\u30b1\u30fc\u30b91<\/td>\n<td style=\"width: 50%;\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" class=\"wp-image-16086 size-medium\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/b6797d23a5d3aad85aa41f73716616af-300x225.jpg\" \/><br \/>\n\u30b1\u30fc\u30b9\uff12<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30ea\u30bb\u30c3\u30c8\u7528\u958b\u53e3\u90e8\u306e\u5927\u304d\u3055\u306f\u30b1\u30fc\u30b9\u306b\u3088\u3063\u3066\u307e\u3061\u307e\u3061\u3067\u3001\u88fd\u54c1\u306b\u3088\u3063\u3066\u306f\u958b\u53e3\u90e8\u304c\u306a\u3044\u3002<\/p>\n<p>\u306a\u304a\u3001CapsLock\u30b9\u30a4\u30c3\u30c1\u306e\u6a2a\u306b\u3001\u30d4\u30f3\u30bb\u30c3\u30c8\u306a\u3069\u3067\u30b7\u30e7\u30fc\u30c8\u3055\u305b\u308b\u3068\u30b9\u30a4\u30c3\u30c1\u3068\u540c\u3058\u306b\u306a\u308b\u3001RESET\u3068BOOTSEL\u306e\u30b9\u30eb\u30fc\u30db\u30fc\u30eb\u3082\u7528\u610f\u3057\u305f\u3002<\/p>\n<figure id=\"attachment_16113\" aria-describedby=\"caption-attachment-16113\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/78f0aced0139128270c46ce984f4de2a.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-16113\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/78f0aced0139128270c46ce984f4de2a-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-16113\" class=\"wp-caption-text\">reset and bootsel TH<\/figcaption><\/figure>\n<h4>RESET\u30b9\u30a4\u30c3\u30c1<\/h4>\n<p>RP2040\u306e#26(RUN\u307e\u305f\u306fRESET)\u30d4\u30f3\u3092GND\u306b\u63a5\u5730\u3057\u3066\u3084\u308b\u3068\u30ea\u30bb\u30c3\u30c8\u304c\u304b\u304b\u308b\u3002\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306b\u3088\u308c\u3070\u3001\u3053\u306e\u30d4\u30f3\u306fRP2040\u306e\u5185\u90e8\u3067\u7d0450k\u03a9\u3067\u30d7\u30eb\u30a2\u30c3\u30d7\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30aa\u30f3\u306e\u3068\u304d\u306bRUN\u3092GND\u306b\u63a5\u7d9a\u3059\u308c\u3070\u3088\u3044\u3002<\/p>\n<h4>BOOTSEL\u30b9\u30a4\u30c3\u30c1<\/h4>\n<p>RP2040\u306e\u30ea\u30bb\u30c3\u30c8\u6642\u306bBOOTSEL\u30e2\u30fc\u30c9\u3067\u958b\u59cb\u3055\u305b\u308b\u305f\u3081\u306e\u30b9\u30a4\u30c3\u30c1\u3002RP2040\u306e#56 (QSPI_SS)\u30d4\u30f3\u306f\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea (W25Q128JVSIQ )\u306eCS\u30d4\u30f3\u306b\u63a5\u7d9a\u3059\u308b\u304c\u3001\u30ea\u30bb\u30c3\u30c8\u6642\u306b\u3053\u306e\u30d4\u30f3\u304cLOW\u30ec\u30d9\u30eb\u306a\u3089\u3070RP2040\u5185\u90e8\u306eBOOT ROM\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u8aad\u307e\u308c\u3066\u306fBOOTSEL\u30e2\u30fc\u30c9\u3067\u958b\u59cb\u3059\u308b\u3002<\/p>\n<p>BOOTSEL\u30e2\u30fc\u30c9\u3067\u306eRP2040\u306f\u5185\u90e8\u306ebootrom\u306b\u3057\u305f\u304c\u3063\u3066USB Mass Storage Device \u3068\u3057\u3066\u6a5f\u80fd\u3057\u3001PC\u306a\u3069\u306e\u30db\u30b9\u30c8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30a3\u30b9\u30af\u30c9\u30e9\u30a4\u30d6\u304c\u3067\u304d\u308b\u3002<\/p>\n<figure id=\"attachment_16087\" aria-describedby=\"caption-attachment-16087\" style=\"width: 403px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/UF2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"waku wp-image-16087 size-full\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/UF2.png\" alt=\"\" width=\"403\" height=\"351\" \/><\/a><figcaption id=\"caption-attachment-16087\" class=\"wp-caption-text\">BOOTSEL\u30e2\u30fc\u30c9<\/figcaption><\/figure>\n<p>\u3053\u306e\u30c9\u30e9\u30a4\u30d6\u306b\u3001UF2(USB Flashing Format Data)\u5f62\u5f0f\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304d\u8fbc\u3093\u3067\u3084\u308b\u3068\u3001\u305d\u306e\u5185\u5bb9\u304c\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea\u306b\u66f8\u304d\u8fbc\u307e\u308c\u308b\u3002<\/p>\n<h4>\u3053\u308c\u3089\u306e\u30b9\u30a4\u30c3\u30c1\u306f\u5fc5\u8981\u304b\uff1f<\/h4>\n<p>Arduino\u30d9\u30fc\u30b9\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u5834\u5408\u3001Arduino IDE\u3084VSCode\u304b\u3089\u306eUSB\u30b7\u30ea\u30a2\u30eb\u306b\u3088\u308b\u64cd\u4f5c\u306b\u3088\u3063\u3066BOOTSEL\u30e2\u30fc\u30c9\u304c\u81ea\u52d5\u7684\u306b\u958b\u59cb\u3057\u3066UF2\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u8fbc\u307f\u304c\u884c\u308f\u308c\u308b\u3002\u307e\u305f\u3001\u7279\u5b9a\u306e\u30ad\u30fc\u64cd\u4f5c\u3067pico sdk\u306b\u3042\u308b <span class=\"lang:default decode:true crayon-inline\">reset_usb_boot(0, 0);<\/span> \u3068\u3044\u3046API\u3092\u8aad\u3093\u3067\u3084\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u3001\u3084\u306f\u308aBOOTSEL\u30e2\u30fc\u30c9\u304c\u958b\u59cb\u3059\u308b\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3053\u308c\u3089\u306e\u30b9\u30a4\u30c3\u30c1\u306f\u4eca\u306e\u3068\u3053\u308d\u307b\u3068\u3093\u3069\u4f7f\u3063\u3066\u3044\u306a\u3044\u3002\u3067\u306f\u306a\u305c\u7528\u610f\u3057\u305f\u306e\u304b\u3068\u3044\u3046\u3068\u3001Arduino\u7279\u6709\u306eUSB\u7d4c\u7531\u306e\u4eee\u60f3\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3092\u4f5c\u3089\u306a\u3044\u69cb\u6210\u3068\u3057\u3001\u306a\u304a\u304b\u3064\u30ad\u30fc\u5165\u529b\u304c\u4e0d\u80fd\u306b\u306a\u308b\u3088\u3046\u306a\u30d0\u30b0\u3092\u51fa\u3057\u305f\u3068\u304d\u3001\u78ba\u5b9f\u306bBOOTSEL\u30e2\u30fc\u30c9\u3068\u3059\u308b\u624b\u6bb5\u304c\u306a\u3044\u3068\u56f0\u308b\u304b\u3089\u3001\u3068\u3044\u3063\u305f\u3068\u3053\u308d\u3002<\/p>\n<p>RESET\u30b9\u30a4\u30c3\u30c1\u306fUSB\u30b1\u30fc\u30d6\u30eb\u306e\u629c\u304d\u5dee\u3057\u3067\u4ee3\u7528\u3067\u304d\u308b\u304b\u3089\u3001BOOTSEL\u30b9\u30a4\u30c3\u30c1\u3060\u3051\u3067\u3082\u3088\u304b\u3063\u305f\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<h5>\u8ffd\u8a18<\/h5>\n<p>\u306a\u304a\u3001nk60\u7528\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u306e1.7.4\u7248\u304b\u3089\u306fArduino\u7279\u6709\u306e\u4eee\u60f3\u30b7\u30ea\u30a2\u30eb(CDC)\u3092\u7981\u6b62\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u3064\u307e\u308a\u3001Arduino IDE\u3084cli\u304b\u3089USB\u30b7\u30ea\u30a2\u30eb\u3067\u306e\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u306e\u66f4\u65b0\u306f\u3067\u304d\u306a\u3044\u3002<\/p>\n<p>\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u306e\u66f4\u65b0\u3092\u884c\u3046\u3068\u304d\u306f\u306b\u306f\u3001\u7279\u5225\u306a\u30ad\u30fc\u64cd\u4f5c\uff08Fn + \u5de6Ctrl + \u53f3Ctrl + B) \u306b\u3088\u3063\u3066BOOTSEL\u30e2\u30fc\u30c9\u3068\u3057\u3001Windows Explorer\u306b\u73fe\u308c\u308bRPI-RP2\u30c9\u30e9\u30a4\u30d6\u306bUF2\u30d5\u30a1\u30a4\u30eb\u3092\u30c9\u30ed\u30c3\u30d7\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002<\/p>\n<h2>PCBA\u3067\u306e\u30c7\u30d0\u30a4\u30b9\u306e\u9078\u5b9a\u306b\u3064\u3044\u3066<\/h2>\n<p>\u4eca\u56de\u306f\u5f53\u521d\u304b\u3089PCB\u306e\u88fd\u9020\u3068\u30c7\u30d0\u30a4\u30b9\u306e\u30de\u30a6\u30f3\u30c8(SMT)\u3092\u540c\u6642\u306b\u4f9d\u983c\u3059\u308b\u3001<strong>PCBA (PCB and Assembly) <\/strong>\u3092\u524d\u63d0\u306b\u30c7\u30d0\u30a4\u30b9\u3092\u9078\u629e\u3057\u305f\u3002\u30c7\u30d0\u30a4\u30b9\u306e\u9078\u629e\u6642\u306b\u306f\u5fc5\u8981\u306a\u30b9\u30da\u30c3\u30af\u3092\u6e80\u305f\u3059\u3053\u3068\u3068\u540c\u6642\u306b\u3001PCBA\u3092\u4f9d\u983c\u3059\u308b\u696d\u8005(\u4eca\u56de\u306fJLCPCB) \u304c\u6271\u3063\u3066\u3044\u3066\u5728\u5eab\u304c\u3042\u308b\u3082\u306e\u3092\u9078\u3076\u3088\u3046\u306b\u3057\u305f\u3002\u305d\u306e\u65b9\u304c\u6642\u9593\u306e\u7bc0\u7d04\u306b\u306a\u308b\u3057\u3001\u767a\u6ce8\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u884c\u3048\u308b\u3002<\/p>\n<p>\u307e\u305fJLCPCB\u3067\u9078\u629e\u3067\u304d\u308b\u90e8\u54c1\u306b\u306f\u3001<strong>Basic components<\/strong> \u3068 <strong>Extended components<\/strong> \u306e2\u7a2e\u985e\u304c\u3042\u308a\u3001Basic\u306b\u5206\u985e\u3055\u308c\u3066\u3044\u308b\u90e8\u54c1\u306e\u65b9\u304c\u5168\u4f53\u306e\u8cbb\u7528\u304c\u5b89\u304f\u3059\u3080\u3002JLCPCB\u306bSMT\u7528\u306eBOM\u3092\u9001\u308b\u3068\u3001\u9069\u5207\u306a\u90e8\u54c1\u3092\u9078\u5b9a\u3057\u3066\u304f\u308c\u308b\u306e\u3060\u304c\u3001\u305d\u306e\u6642\u70b9\u3067 Extended components \u304c\u9078\u3070\u308c\u3066\u3044\u305f\u3089\u3001\u540c\u30b5\u30a4\u30ba\u3001\u540c\u30b9\u30da\u30c3\u30af\u306eBasic components\u00a0 \u304c\u5b9f\u306f\u3042\u308b\u306e\u304b\u3082\u3068\u601d\u3063\u3066\u63a2\u3059\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002\u3068\u304d\u306b\u306f\u3001\u305d\u306e\u6642\u70b9\u3067\u56de\u8def\u3084PCB\u3092\u4fee\u6b63\u3057\u3066\u767a\u6ce8\u3092\u3084\u308a\u76f4\u3059\u306a\u3093\u3066\u3053\u3068\u3092\u3057\u3066\u3044\u308b\u3002<\/p>\n<h2>GH60\u7528\u306e\u30cd\u30b8\u7a74<\/h2>\n<p>GH60\u7528\u306e\u30b1\u30fc\u30b9\u306fM2\u30cd\u30b8\u30926\u672c\u4f7f\u3063\u3066PCB\u3092\u56fa\u5b9a\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u30cd\u30b8\u306e\u4f4d\u7f6e\u3092\u9593\u9055\u3048\u308b\u3068\u305b\u3063\u304b\u304f\u4f5c\u3063\u305fPCB\u304c\u30b1\u30fc\u30b9\u306b\u56fa\u5b9a\u3067\u304d\u306a\u3044\u3002\u30cd\u30c3\u30c8\u691c\u7d22\u3067\u8cc7\u6599\u3092\u63a2\u3057\u3001<a href=\"https:\/\/geekhack.org\/index.php?topic=97669.0\" target=\"_blank\" rel=\"noopener\">geekhack\u3068\u3044\u3046\u63b2\u793a\u677f\u306b\u3042\u3063\u305f\u7d75<\/a>\u3068\u3001<a href=\"https:\/\/github.com\/komar007\/gh60\" target=\"_blank\" rel=\"noopener\">GitHUB\u306eGH60\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/a>\u306ePCB\u56f3\u9762 (revC_plain) \u306b\u57fa\u3065\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5bf8\u6cd5\u3092\u6c7a\u3081\u305f\u3002<\/p>\n<figure id=\"attachment_16096\" aria-describedby=\"caption-attachment-16096\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/NK60-PCB-dimensions.drawio.png\"><img loading=\"lazy\" decoding=\"async\" class=\"waku wp-image-16096 size-large\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/NK60-PCB-dimensions.drawio-552x211.png\" alt=\"\" width=\"552\" height=\"211\" \/><\/a><figcaption id=\"caption-attachment-16096\" class=\"wp-caption-text\">nk60 PCB dimensions (F)<\/figcaption><\/figure>\n<p>\u3053\u306e\u56f3\u306f\u3001KiCAD\u306e3D\u30d3\u30e5\u30fc\u30ef\u30fc\u306e\u753b\u50cf\u306b\u5bf8\u6cd5\u7dda\u3092\u5165\u308c\u3066\u4f5c\u6210\u3002\u306a\u304a\u3001\u5de6\u4e0b(\u5de6Alt\u30ad\u30fc\u306e\u3061\u3087\u3063\u3068\u53f3\u5074\u304f\u3089\u3044)\u306e\u30cd\u30b8\u7a74\u306f\u3053\u306ePCB\u306e\u305f\u3081\u306b\u8a2d\u7f6e\u3057\u305f\u3082\u306e\u3067\u3001GH60\u30b1\u30fc\u30b9\u3068\u306f\u95a2\u4fc2\u306a\u3044\u3002<\/p>\n<h3>\u30ea\u30bb\u30c3\u30c8\u30b9\u30a4\u30c3\u30c1\u306a\u3069\u306e\u4f4d\u7f6e<\/h3>\n<figure id=\"attachment_16097\" aria-describedby=\"caption-attachment-16097\" style=\"width: 394px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/nk60_PCB_B_dimensions.drawio-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"waku wp-image-16097 size-large\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/nk60_PCB_B_dimensions.drawio-1-394x552.png\" alt=\"\" width=\"394\" height=\"552\" \/><\/a><figcaption id=\"caption-attachment-16097\" class=\"wp-caption-text\">nk60 PCB dimensions (B)<\/figcaption><\/figure>\n<p>B\u9762\u306e\u30b9\u30a4\u30c3\u30c1\u306e\u4f4d\u7f6e\u306f\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3057\u305f\u3002\u3053\u308c\u306f\u3001\u30aa\u30ea\u30b8\u30ca\u30eb\u306eGH60\u306e\u5404\u56f3\u306b\u3042\u308b\u4f4d\u7f6e\u3068\u7570\u306a\u3063\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u624b\u6301\u3061\u306e3\u3064\u306e\u30b1\u30fc\u30b9\u3067\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f\u3002<\/p>\n<p>USB\u30b3\u30cd\u30af\u30bf\u306b\u3064\u3044\u3066\u306f\u3001\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u6307\u5b9a\u4f4d\u7f6e\u901a\u308a\u306b\u7a74\u304c\u958b\u3044\u3066\u3044\u305f\u3002<\/p>\n<figure id=\"attachment_16109\" aria-describedby=\"caption-attachment-16109\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/8c23fb3378eba4d85d469fa15cd48ffb.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-16109\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/8c23fb3378eba4d85d469fa15cd48ffb-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-16109\" class=\"wp-caption-text\">NK60 USB Connector<\/figcaption><\/figure>\n<h2>\u30ad\u30fc\u30ec\u30a4\u30a2\u30a6\u30c8<\/h2>\n<p>PCB\u306f\u65e5\u672c\u8a9e\u30ec\u30a4\u30a2\u30a6\u30c8\u3068US\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u4e21\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u304c\u3001\u65e5\u672c\u8a9e\u30ad\u30fc\u30dc\u30fc\u30c9\u3068\u3057\u3066\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u512a\u5148\u3057\u305f\u3002<\/p>\n<p>\u5404\u30ad\u30fc\u304c\u51fa\u529b\u3059\u308b\u6587\u5b57\u3084\u8a18\u53f7\u306b\u76f8\u5f53\u3059\u308b\u51fa\u529b\u30b3\u30fc\u30c9(HID Usage ID)\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u5074\u3067\u3044\u304b\u3088\u3046\u306b\u3082\u30bb\u30c3\u30c8\u3067\u304d\u308b\u306e\u3067\u3001\u3042\u304f\u307e\u3067\u3082\u57fa\u672c\u7684\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3068\u3057\u3066\u793a\u3057\u3066\u3044\u308b\u3002\u5b9f\u969b\u306b\u4f7f\u3046\u3068\u304d\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001Windows\u306a\u3069\u306e\u30db\u30b9\u30c8\u5074\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u3082\u4f9d\u5b58\u3059\u308b\u3002<\/p>\n<figure id=\"attachment_16099\" aria-describedby=\"caption-attachment-16099\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/nk60_3_jp_sw.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-16099\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/nk60_3_jp_sw-552x193.png\" alt=\"\" width=\"552\" height=\"193\" \/><\/a><figcaption id=\"caption-attachment-16099\" class=\"wp-caption-text\">NK60 rev3 \u65e5\u672c\u8a9e\u30ec\u30a4\u30a2\u30a6\u30c8<\/figcaption><\/figure>\n<figure id=\"attachment_16100\" aria-describedby=\"caption-attachment-16100\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/nk60_3_us_sw.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-16100\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/nk60_3_us_sw-552x193.png\" alt=\"\" width=\"552\" height=\"193\" \/><\/a><figcaption id=\"caption-attachment-16100\" class=\"wp-caption-text\">NK60 rev3 US\u30ec\u30a4\u30a2\u30a6\u30c8<\/figcaption><\/figure>\n<ul>\n<li>\u53f3\u5074\u306eShift\u30ad\u30fc\u306f\u306a\u304f\u3066\u3082\u56f0\u3089\u306a\u3044\u3060\u308d\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u7701\u7565\u3002<\/li>\n<li>\u00a0\u89aa\u6307\u5de6\u30ad\u30fc(SW61)\u306f2U\u3001\u89aa\u6307\u53f3\u30ad\u30fc(SW62)\u306f2.25U\u3068\u3057\u305f\u30022\u3064\u306e\u89aa\u6307\u30ad\u30fc\u306e\u5883\u754c\u306f\u3001B\u30ad\u30fc\u306e\u4e2d\u592e\u4e0b\u3067\u306f\u306a\u304fG\u30ad\u30fc\u3068H\u30ad\u30fc\u306e\u4e2d\u9593\u7dda\u306b\u63c3\u3063\u3066\u3044\u308b\u3002\u3053\u308c\u306f\u3001\u5de6Shift\u30ad\u30fc(SW43)\u306e\u30b5\u30a4\u30ba\u304c2U\u306e\u305f\u3081\u3001\u6a19\u6e96\u7684\u306a\u30ad\u30fc\u30dc\u30fc\u30c9\u3068\u6bd4\u3079\u308b\u3068ZXCVB.. \u884c\u304c0.25U\u5206\u3060\u3051\u5de6\u306b\u305a\u308c\u3066\u3044\u308b\u305f\u3081\u3002<\/li>\n<li>\u65e5\u672c\u8a9e\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u306e\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc (SW54)\u306f\u3001US\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u306f\u3001\u30c6\u30a3\u30eb\u30c0\u304a\u3088\u3073\u30a2\u30af\u30b5\u30f3\u30b0\u30e9\u30d6 (\u3042\u308b\u3044\u306f\u53f3Shift) \u306e\u305f\u3081\u306e\u30ad\u30fc\u3068\u3057\u3066\u4f7f\u3046\u3002<\/li>\n<li>US\u30ad\u30fc\u30dc\u30fc\u30c9\u306b\u306f\u3001\u7121\u5909\u63db\u3001\u5909\u63db\u3001\u3072\u3089\u304c\u306a \u3068\u3044\u3063\u305fDOS\/V\u3067\u62e1\u5f35\u3055\u308c\u305f\u30ad\u30fc\u306f\u5b58\u5728\u3057\u306a\u3044(\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30ad\u30fc\u30dc\u30fc\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u82f1\u8a9e\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u3068\u304d\u3001Windows\u306b\u7121\u8996\u3055\u308c\u308b)\u3002\u305d\u306e\u305f\u3081\u3001F14, F15, ImeOn (HID LANG1 , 0x90)\u3092\u767a\u751f\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u307e\u305f\u3001F14,F15 \u304c\u7121\u5909\u63db\u3084\u5909\u63db\u3068\u540c\u69d8\u306e\u6a5f\u80fd\u3092\u679c\u305f\u3059\u3088\u3046\u306b\u3001\u65e5\u672c\u8a9e\u5165\u529bIME\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n<\/ul>\n<p>\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?p=16363\" target=\"_blank\" rel=\"noopener\">\u6b21\u306e\u6295\u7a3f\u3092\u53c2\u7167<\/a>\u306e\u3053\u3068\u3002<\/p>\n<h3>\u30b9\u30bf\u30d3\u30e9\u30a4\u30b6\u30fc\u7528\u306e\u7a74<\/h3>\n<p>Enter\u30ad\u30fc\u3084Backspace\u30ad\u30fc\u306f\u3044\u305a\u308c\u3082\u30b9\u30bf\u30d3\u30e9\u30a4\u30b6\u30fc\u3092\u5fc5\u8981\u3068\u3059\u308b\u305f\u3081\u3001\u30b9\u30a4\u30c3\u30c1\u3084\u30b9\u30bf\u30d3\u30e9\u30a4\u30b6\u30fc\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u914d\u7f6e\u3057\u3066\u3044\u308b\u3002<\/p>\n<figure id=\"attachment_16102\" aria-describedby=\"caption-attachment-16102\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/key_positions-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-16102\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/key_positions-1-552x470.png\" alt=\"\" width=\"552\" height=\"470\" \/><\/a><figcaption id=\"caption-attachment-16102\" class=\"wp-caption-text\">NK60 rev3 switch, stabilizer<\/figcaption><\/figure>\n<p>\u30b9\u30a4\u30c3\u30c1\u7528\u306e\u7a74\u3068\u30b9\u30bf\u30d3\u30e9\u30a4\u30b6\u30fc\u7528\u306e\u7a74\u304c\u91cd\u306a\u308b\u7b87\u6240\u3082\u3042\u3063\u3066\u3001KiCAD\u306eDRC (Design Rule Checker) \u304b\u3089\u30c9\u30ea\u30eb\u7a74\u304c\u8fd1\u3059\u304e\u308b\u3068\u304b\u8a00\u308f\u308c\u308b\u304c\u88fd\u9020\u4e0a\u306e\u554f\u984c\u306f\u306a\u304b\u3063\u305f\u3002<\/p>\n<figure id=\"attachment_16114\" aria-describedby=\"caption-attachment-16114\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/f297b25cb795f988c1a79b0472593cc6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-16114\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2023\/10\/f297b25cb795f988c1a79b0472593cc6-552x544.jpg\" alt=\"\" width=\"552\" height=\"544\" \/><\/a><figcaption id=\"caption-attachment-16114\" class=\"wp-caption-text\">NK60 rev3 switch, stabilizer pos.<\/figcaption><\/figure>\n<p>\u4eca\u56de\u306ePCB\u306f\u3001PCB\u30de\u30a6\u30f3\u30c8\u306e\u30b9\u30bf\u30d3\u30e9\u30a4\u30b6\u30fc\u3092\u4f7f\u3046\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u308b\u3002\u30b9\u30a4\u30c3\u30c1\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u30d7\u30ec\u30fc\u30c8\u30de\u30a6\u30f3\u30c8\u306e\u30b9\u30bf\u30d3\u30e9\u30a4\u30b6\u30fc\u3082\u9078\u629e\u3067\u304d\u308b\u3002\u305f\u3060\u305d\u3046\u3057\u305f\u5834\u5408\u3001\u65e5\u672c\u8a9e\u3068US\u306e\u4e21\u30ec\u30a4\u30a2\u30a6\u30c8\u30921\u679a\u306e\u30b9\u30a4\u30c3\u30c1\u30d7\u30ec\u30fc\u30c8\u3067\u30ab\u30d0\u30fc\u3059\u308b\u306e\u306f\u7121\u7406\u3060\u308d\u3046\u3002<\/p>\n<h2>\u30ad\u30fc\u30b9\u30a4\u30c3\u30c1<\/h2>\n<p>\u65e5\u672c\u8a9e\u30ec\u30a4\u30a2\u30a6\u30c8\u3068\u3057\u305f\u65b9\u306f<strong>Gateron<\/strong>\u306e<strong>\u3061\u3087\u3063\u3068\u53e4\u3044\u30b5\u30a4\u30ec\u30f3\u30c8\u30b9\u30a4\u30c3\u30c1(\u8d64\u8ef85\u30d4\u30f3)<\/strong>\u3092\u63a1\u7528\u3002\u300c\u3061\u3087\u3063\u3068\u53e4\u3044\u300d\u3068\u66f8\u3044\u305f\u306e\u306f\u3001\u73fe\u5728\u306e\u30b5\u30a4\u30ec\u30f3\u30c8\u30b9\u30a4\u30c3\u30c1 (KS-9\u30b7\u30ea\u30fc\u30ba)\u306e\u5e95\u9762\u306b\u306fPCB\u306b\u8868\u9762\u5b9f\u88c5\u3057\u305fSMD LED\u304c\u63a5\u89e6\u3057\u306a\u3044\u305f\u3081\u306e\u7a93\u304c\u958b\u3044\u3066\u3044\u308b\u306e\u306b\u5bfe\u3057\u3001\u624b\u5143\u306b\u3042\u3063\u305f\u306e\u306f\u30b9\u30eb\u30fc\u30db\u30fc\u30ebLED\u7528\u306e\u7a74\u304c4\u3064\u958b\u3044\u3066\u3044\u308b\u3082\u306e\u3060\u3063\u305f\u3002\u306a\u306e\u3067\u3001\u30b9\u30a4\u30c3\u30c1\u4e0b\u306bSMDLED\u306f\u7f6e\u304b\u306a\u3044\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>US\u30ec\u30a4\u30a2\u30a6\u30c8\u3068\u3057\u305f\u65b9\u306f\u3001<strong>Outemu\u306eLinear Cream Pink<\/strong> \u3068\u3044\u3046factory lubrication \u3092\u8b33\u3046\u30ea\u30cb\u30a2\u306a5\u30d4\u30f3\u30b9\u30a4\u30c3\u30c1\u3092\u9078\u629e\u3057\u305f\u3002\u3053\u3061\u3089\u306f\u30b5\u30a4\u30ec\u30f3\u30c8\u30b9\u30a4\u30c3\u30c1\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u30b3\u30c8\u30b3\u30c8\u30ab\u30bf\u30ab\u30bf\u3068\u3044\u3063\u305f\u63a7\u3048\u3081\u306a\u97f3\u304c\u3059\u308b\u3002<\/p>\n<p>\u89aa\u6307\u30b7\u30d5\u30c8\u30ad\u30fc\u30dc\u30fc\u30c9\u306a\u306e\u3067\u30012\u3064\u306e\u89aa\u6307\u30ad\u30fc\u3092\u983b\u7e41\u306b\u6253\u9375\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u65e5\u672c\u8a9e\u3092\u3070\u308a\u3070\u308a\u5165\u529b\u3057\u3066\u3044\u308b\u3068\u3061\u3087\u3063\u3068\u3046\u308b\u3055\u304f\u611f\u3058\u305f\u3002\u305d\u306e\u305f\u3081\u30012\u3064\u306e\u89aa\u6307\u30ad\u30fc\u7528\u306e\u30b9\u30a4\u30c3\u30c1\u306b\u306f\u3001\u3084\u306f\u308aOutemu\u306e\u30b5\u30a4\u30ec\u30f3\u30c8\u30b9\u30a4\u30c3\u30c1\u306b\u4ed8\u3051\u76f4\u3057\u3066\u4f7f\u3063\u3066\u3044\u308b\u3002<\/p>\n<h1>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2<\/h1>\n<p>\u3053\u306ePCB\u7528\u306e\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u306f\u3001<a href=\"https:\/\/github.com\/okiraku-camera\" target=\"_blank\" rel=\"noopener\">GitHUB\u306bhoboNicolaLibrary 1.7.2\u7248\u3068\u3057\u3066\u516c\u958b\u3057\u3066\u3044\u308b<\/a>\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u305d\u3061\u3089\u3092\u53c2\u7167\u306e\u3053\u3068\u3002<\/p>\n<p>hoboNicolaLibrary\u3092\u30ad\u30fc\u30dc\u30fc\u30c9\u306b\u7d44\u307f\u8fbc\u3093\u3067\u4f7f\u3046\u5834\u5408\u3001\u5404\u30ad\u30fc\u30dc\u30fc\u30c9\u7279\u6709\u306e\u5b9f\u88c5\u306f\u72ec\u7acb\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u53ce\u3081\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002\u3053\u306ePCB\u7528\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001examples\/nk60_hobo_nicola \u5185\u306b\u53ce\u3081\u305f\u3002<\/p>\n<p>\u30c8\u30d4\u30c3\u30af\u30b9\u7684\u306a\u3053\u3068\u3092\u3044\u304f\u3064\u304b\u3002<\/p>\n<h2>\u5fc5\u8981\u306a\u30b3\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u304a\u3088\u3073\u30e9\u30a4\u30d6\u30e9\u30ea<\/h2>\n<p>nk60 hoboNicola \u306f Arduino\u30d9\u30fc\u30b9\u3067\u958b\u767a\u3057\u3066\u304a\u308a\u4ee5\u4e0b\u306e\u30b3\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b (2023\u5e7411\u6708\u73fe\u5728)\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/earlephilhower\/arduino-pico\/releases\/tag\/3.6.0\" target=\"_blank\" rel=\"noopener\">Arduino-pico 3.6.0\u7248<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/okiraku-camera\/hoboNicolaLibrary\" target=\"_blank\" rel=\"noopener\">hoboNicolaLibrary 1.7.2\u7248<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/adafruit\/Adafruit_TinyUSB_Arduino\" target=\"_blank\" rel=\"noopener\">Adafruit Tiny USB Library 2.2.5\u7248<\/a><\/li>\n<\/ul>\n<p>hoboNicolaLibrary\u3092\u9664\u304f\u30b3\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u304a\u3088\u3073\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5c0e\u5165\u306f\u3001Arduino IDE\u306e\u30dc\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\u30de\u30cd\u30fc\u30b8\u30e3\u304b\u3089\u5b9f\u65bd\u3057\u3066\u3044\u308b\u3002<\/p>\n<h2>\u30c7\u30e5\u30a2\u30eb\u30b3\u30a2\u52d5\u4f5c<\/h2>\n<p>RP2040\u306f\u30c7\u30e5\u30a2\u30eb\u30b3\u30a2\u306a\u306e\u3067\u3001core1\u306f\u5b9a\u671f\u7684\u306a\u30ad\u30fc\u30b9\u30ad\u30e3\u30f3\u306e\u5b9f\u884c\u5c02\u7528\u3068\u3057\u3001\u305d\u306e\u4ed6\u306e\u51e6\u7406 (HID\u30ad\u30fc\u30dc\u30fc\u30c9\u3001\u89aa\u6307\u30b7\u30d5\u30c8\u540c\u6642\u6253\u9375\u306a\u3069)\u306fcore0\u3067\u5b9f\u884c\u3059\u308b\u3002nk60_hobo_nicola.ino \u3092\u53c2\u7167\u3002<\/p>\n<pre class=\"nums:true tab-size:2 lang:default decode:true\">void setup1() {\r\n\tdelay(10);\t\/\/ wait for core0 setup done.\r\n}\r\n\r\nstatic unsigned long scan_interval = 5;\r\nvoid loop1() {\r\n\tdelay(scan_interval);\r\n\tmatrix_scan();\r\n}\r\n\r\nvoid setup() {\r\n\tinit_nk60();\r\n\tnk60Keyboard::init_hobo_nicola(&amp;kbd, \"nk60\");\r\n\tdelay(300);\r\n}\r\n\r\nvoid loop() {\r\n\tbool pressed;\r\n        .....\r\n}<\/pre>\n<p>\u30b3\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u306eArduino-Pico\u306f\u3001\u30b9\u30b1\u30c3\u30c1\u5185\u306b <em>void setup1()<\/em> \u304a\u3088\u3073 <em>void loop1()<\/em> \u304c\u5b58\u5728\u3059\u308b\u3068\u3001\u30c7\u30e5\u30a2\u30eb\u30b3\u30a2\u52d5\u4f5c\u3092\u610f\u8b58\u3057\u305f\u30b9\u30b1\u30c3\u30c1\u3060\u3068\u89e3\u91c8\u3057\u3001<a href=\"https:\/\/raspberrypi.github.io\/pico-sdk-doxygen\/group__pico__multicore.html\" target=\"_blank\" rel=\"noopener\"><em>multicore_launch_core1()<\/em>\u00a0<\/a>\u3092\u4f7f\u3063\u3066core1\u3092\u958b\u59cb\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u4e0a\u8a18\u306e\u3088\u3046\u306a\u8a18\u8ff0\u306b\u3088\u308a\u3001core1 \u5074\u306f <em>scan_interval<\/em> (msec) \u3054\u3068\u306b<em> matrix_scan()<\/em> \u3092\u547c\u3073\u51fa\u3057\u3066\u30b9\u30a4\u30c3\u30c1\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306e\u30b9\u30ad\u30e3\u30f3\u3092\u884c\u3044\u3001\u72b6\u614b\u306b\u5909\u5316\u304c\u3042\u3063\u305f\u30b9\u30a4\u30c3\u30c1\u306e\u691c\u51fa\u3092\u884c\u3046\u3002<\/p>\n<p><em>setup1()<\/em> \u306e\u5148\u982d\u306b<em> delay(10);<\/em> \u3092\u7f6e\u3044\u3066\u3044\u308b\u306e\u306f\u3001Arduino-pico \u5b9f\u88c5\u3068\u3057\u3066<em> setup() \u3088\u308a\u3082setup1()<\/em> \u3092\u5148\u306b\u5b9f\u884c\u3059\u308b\u304b\u3089\u300210msec\u307b\u3069\u306e\u9045\u5ef6\u3057\u3066\u3044\u308b\u3042\u3044\u3060\u306b\u3001<em>setup()<\/em> \u3092\u5b8c\u4e86\u3055\u305b\u308b\u3053\u3068\u3092\u610f\u56f3\u3057\u305f\u3002<\/p>\n<h2>\u30ad\u30fc\u30b9\u30ad\u30e3\u30f3<\/h2>\n<p>5\u884c x 14\u5217\u306e\u30b9\u30a4\u30c3\u30c1\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306e\u30b9\u30ad\u30e3\u30f3\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u305f\u3002nk60.cpp \u3092\u53c2\u7167\u3002<\/p>\n<pre class=\"nums:true tab-size:2 lang:default decode:true\">static const uint8_t ROWS[] = {29, 25, 26, 27, 28};\r\nstatic const uint8_t COLS[] = {23, 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13};\r\nstatic const uint8_t SW_COUNT = sizeof(ROWS) * sizeof(COLS);\r\n\r\nvoid matrix_scan() {\r\n  uint32_t tmp_state[STATE_COUNT];\r\n\tfor(uint8_t row = 0; row &lt; sizeof(ROWS); row++) {\t\/\/ scan all rows.\r\n\t\tgpio_put(ROWS[row], 0);\r\n\t\tdelayMicroseconds(5);\r\n\t\tuint32_t cols = gpio_get_all();\r\n\t\ttmp_state[row] = ~(((cols &amp; 0x800000) &gt;&gt; 23) | ((cols &amp; 0x7f) &lt;&lt; 1) | (cols &amp; 0x03f00));\r\n\t\tgpio_put(ROWS[row], 1);\r\n\t}\r\n        ....\r\n}<\/pre>\n<p>\u914d\u5217 ROWS[]\u5185\u306e\u5b9a\u6570\u304c\u884c1\uff5e\u884c5\u306eGPIO\u756a\u53f7\u3001COLS[]\u306f\u5404\u5217\u306b\u63a5\u7d9a\u3057\u305fGPIO\u306e\u756a\u53f7\u3092\u3082\u3064\u3002\u5bfe\u8c61\u884c\u3092<em> gpio_put(ROWS[row], 0);<\/em> \u306b\u3088\u3063\u3066\u9078\u629e\u3057\u3001\u308f\u305a\u304b\u306b\u5f85\u3063\u3066\u304b\u3089\u5168\u5217\u306e\u72b6\u614b\u3092\u5f97\u3066\u5909\u6570<em>tmp_state[]<\/em> \u306b\u683c\u7d0d\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u5217\u306e\u5168\u30d3\u30c3\u30c8\u3092\u5f97\u308b\u305f\u3081\u306b\u3001pico sdk\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3001<em>gpio_get_all()<\/em> \u3092\u4f7f\u3063\u3066\u3044\u308b\u3002\u3053\u306eAPI\u306f\u3001RP2040 \u304c\u5099\u3048\u3066\u3044\u308b30\u30d3\u30c3\u30c8\u306eGPIO\u306e\u72b6\u614b\u309232\u30d3\u30c3\u30c8\u306e\u5024\u3068\u3057\u3066\u8fd4\u3059\u3002\u30d3\u30c3\u30c80\u304cGPIO0\u306e\u72b6\u614b\u3001\u30d3\u30c3\u30c829\u304cGOIO29\u306e\u72b6\u614b\u3068\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<p><em>gpio_get_all()<\/em> \u3067\u5f97\u305f\u5217\u5185\u5bb9\u306e\u3046\u3061\u306e\u5fc5\u8981\u306a15\u30d3\u30c3\u30c8\u3092\u52171\u304b\u3089\u521715\u307e\u3067\u306e\u9806\u306b\u4e26\u3079\u66ff\u3048\u3066 <em>temp_state[] <\/em>\u306b\u683c\u7d0d\u3002\u305d\u3057\u3066\u3001<em> gpio_put(ROWS[row], 1); <\/em>\u3067\u5bfe\u8c61\u884c\u306e\u9078\u629e\u3092\u7d42\u4e86\u3059\u308b\u3002<\/p>\n<p>\u3053\u306e\u51e6\u7406\u30925\u884c\u5206\u5b9f\u884c\u3059\u308b\u3068\u3001<em>tmp_state[]<\/em> \u306b\u306f\u3059\u3079\u3066\u306e\u30b9\u30a4\u30c3\u30c1\u306e\u72b6\u614b\u3092\u8868\u305970\u30d3\u30c3\u30c8\u306e\u30c7\u30fc\u30bf\u304c\u683c\u7d0d\u3055\u308c\u308b\u3002\u305f\u3060\u3057\u3001\u5404\u8981\u7d20\u3067\u6709\u52b9\u306a\u306e\u306f\u30d3\u30c3\u30c80\uff5e14\u306e15\u30d3\u30c3\u30c8\u306e\u307f\u3067\u3042\u308b\u3002<\/p>\n<p>\u3053\u306e\u3042\u3068\u30c7\u30d0\u30a6\u30f3\u30b9\u51e6\u7406(\u30b9\u30a4\u30c3\u30c1\u306e\u30c1\u30e3\u30bf\u30ea\u30f3\u30b0\u306e\u9632\u6b62)\u306a\u3069\u3092\u7d4c\u3066\u3001\u72b6\u614b\u306b\u5909\u5316\u306e\u3042\u3063\u305f\u30b9\u30a4\u30c3\u30c1\u3092\u691c\u51fa\u3057\u3001\u5bfe\u5fdc\u3059\u308b\u30b3\u30fc\u30c9 (\u30b9\u30ad\u30e3\u30f3\u30b3\u30fc\u30c9 = \u30b9\u30a4\u30c3\u30c1\u756a\u53f7)\u3068\u72b6\u614b(\u30aa\u30f3\u307e\u305f\u306f\u30aa\u30d5)\u3092\u30ad\u30e5\u30fc\u3092\u4ecb\u3057\u3066core0\u306b\u901a\u77e5\u3059\u308b\u3002<\/p>\n<h3>\u30b3\u30a2\u9593\u3067\u306e\u30ad\u30fc\u5165\u529b\u306e\u53d7\u6e21\u3057<\/h3>\n<p>core1<em>\u3067\u52d5\u4f5c\u3059\u308b matrix_scan()<\/em> \u3067\u306f\u3001\u72b6\u614b\u306b\u5909\u5316\u306e\u3042\u3063\u305f\u30b9\u30a4\u30c3\u30c1\u3092\u691c\u51fa\u3059\u308b\u3068\u65b0\u305f\u306b\u30aa\u30f3\u306b\u306a\u3063\u305f\u30ad\u30fc\u3001\u30aa\u30d5\u306b\u306a\u3063\u305f\u30b9\u30a4\u30c3\u30c1\u306e\u30b3\u30fc\u30c9 (\u30b9\u30ad\u30e3\u30f3\u30b3\u30fc\u30c9) \u3092<em>send_key_event()<\/em> \u306b\u6e21\u3059\u3002<\/p>\n<pre class=\"nums:true tab-size:2 lang:default decode:true\">static queue_t key_event_queue;\r\nqueue_init(&amp;key_event_queue, sizeof(queue_entry_t), 16);\r\n\r\ntypedef struct {\r\n\tuint8_t flag;\r\n\tuint8_t code;\r\n} queue_entry_t;\r\n\r\nvoid send_key_event(uint8_t code, uint8_t flag) {\r\n\tqueue_entry_t key;\r\n\tkey.flag = flag;\r\n\tkey.code = code;\r\n\tqueue_try_add(&amp;key_event_queue, &amp;key); \/\/ \u30ad\u30e5\u30fc\u304c\u30d5\u30eb\u306a\u3089\u5165\u3089\u306a\u3044\u3060\u3051\u3002 \r\n}<\/pre>\n<p>\u3053\u306e\u95a2\u6570\u3067\u306f\u3001pico sdk\u306e <em>queue_try_add(&amp;key_event_queue, &amp;key);<\/em> \u3092\u547c\u3093\u3067\u30b3\u30fc\u30c9\u304a\u3088\u3073\u72b6\u614b\u3092 <em>key_event_queue<\/em> \u306b\u683c\u7d0d\u3059\u308b\u3002 <em>queue_try_add() <\/em>\u306f\u30ce\u30f3\u30d6\u30ed\u30c3\u30ad\u30f3\u30b0\u3067\u30ad\u30e5\u30fc\u306b\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308bAPI\u3067\u3001\u30ad\u30e5\u30fc\u304c\u30d5\u30eb\u3067\u3042\u3063\u3066\u3082\u6b62\u307e\u3089\u306a\u3044\u3002\u30d5\u30eb\u306a\u3089\u3070\u8981\u7d20\u304c\u5165\u3089\u306a\u3044\u3060\u3051\u3067\u3042\u308b\u3002\u521d\u671f\u5316\u6642\u306b16\u30a8\u30f3\u30c8\u30ea\u3068\u3057\u3066\u3044\u308b\u304c\u3001\u4eca\u306e\u3068\u3053\u308d\u304a\u304b\u3057\u306a\u3053\u3068\u3092\u8d77\u304d\u306a\u3044\u3088\u3046\u3067\u3042\u308b\u3002<\/p>\n<p>core0\u5074\u3067\u306f\u3001<em>void loop()<\/em> \u5185\u3067\u5b9a\u671f\u7684\u306b <em>nk60_get_key()<\/em> \u3092\u547c\u3073\u51fa\u3057\u3066\u30ad\u30fc\u5165\u529b\u3092\u5f97\u308b\u3002<\/p>\n<pre class=\"nums:true tab-size:2 lang:default decode:true\">uint8_t nk60_get_key(bool&amp; pressed, bool us_layout) { \r\n\tuint8_t k;\r\n\tqueue_entry_t key;\r\n\tif (!queue_try_remove(&amp;key_event_queue, &amp;key))\r\n\t\treturn 0;\r\n\tif (key.code &gt; 0 &amp;&amp; key.code &lt;= SW_COUNT) {\r\n\t\tuint8_t hid = scan_to_hid_table[hid_table_index][key.code - 1];\r\n                ....<\/pre>\n<p><em>queue_try_remove(&amp;key_event_queue, &amp;key);<\/em> \u306f\u3001\u6307\u5b9a\u306e\u30ad\u30e5\u30fc\u304b\u3089\u8981\u7d20\u3092\u5f97\u308b\u305f\u3081\u306eAPI\u3067\u3001\u30ad\u30e5\u30fc\u304c\u7a7a\u3067\u306a\u3051\u308c\u3070\u5148\u982d\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u3092\u30ad\u30e5\u30fc\u304b\u3089\u524a\u9664\u3059\u308b\u3002\u30ad\u30e5\u30fc\u304c\u7a7a\u306a\u3089\u3070 false\u3092\u8fd4\u3059\u306e\u3067\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u51e6\u7406\u306f\u305d\u3053\u3067\u7d42\u4e86\u3002<\/p>\n<p>\u30ad\u30e5\u30fc\u304b\u3089\u65b0\u305f\u306a\u8981\u7d20(\u30b9\u30a4\u30c3\u30c1\u756a\u53f7\u304a\u3088\u3073\u30aa\u30f3\uff0f\u30aa\u30d5\u306e\u30d5\u30e9\u30b0)\u304c\u5f97\u3089\u308c\u308c\u3070\u305d\u306e\u5024\u3067\u30c6\u30fc\u30d6\u30eb <em>scan_to_hid_table[]<\/em> \u3092\u5f15\u3044\u3066 HID Usage ID\u3092\u5f97\u3066\u305d\u306e\u5f8c\u306e\u51e6\u7406\u306b\u4f7f\u3046\u3002<\/p>\n<h3>hoboNicola\u30a2\u30c0\u30d7\u30bf\u30fc\u3068\u306e\u985e\u4f3c\u6027<\/h3>\n<p>\u30ad\u30e5\u30fc\u3092\u4ecb\u3057\u3066\u30ad\u30fc\u30a4\u30d9\u30f3\u30c8\u3092\u53d7\u3051\u53d6\u3063\u305f\u3042\u3068\u306f\u3001\u4f8b\u3048\u3070hoboNicola\u30a2\u30c0\u30d7\u30bf\u30fc\u304c\u5916\u90e8\u30ad\u30fc\u30dc\u30fc\u30c9\u304b\u3089\u306e\u5165\u529b\u3092USB Host\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4ecb\u3057\u3066\u5f97\u3066\u304b\u3089\u884c\u3046\u51e6\u7406 (\u540c\u6642\u6253\u9375\u3001\u914d\u5217\u5909\u66f4\u3001HID \u5165\u529b\u30ec\u30dd\u30fc\u30c8\u306e\u51fa\u529b\u306a\u3069)\u3068\u540c\u3058\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u5074\u3067\u7279\u306b\u6c17\u3092\u4f7f\u3046\u3053\u3068\u3082\u306a\u3044\u3002\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u30a2\u30c0\u30d7\u30bf\u30fc\u7528\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u672c\u4f53\u90e8\u5206\u306b\u307b\u3068\u3093\u3069\u624b\u3092\u52a0\u3048\u308b\u3053\u3068\u306a\u304f\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u5b9f\u88c5\u3082\u53ef\u80fd\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<h2>LED\u306ePWM\u5236\u5fa1<\/h2>\n<p>\u4eca\u56de\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u306b\u306f\u8907\u6570\u306eNICOLA LED\u3092\u914d\u7f6e\u3057\u305f\u306e\u3060\u304c\u3001\u305f\u3060\u70b9\u706f\uff0f\u6d88\u706f\u3059\u308b\u3060\u3051\u3067\u306f\u9762\u767d\u304f\u306a\u3044\u3068\u601d\u3063\u3066PWM\u3067\u660e\u6ec5\u3055\u305b\u3066\u3084\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u4eca\u5f8c\u3082 RP2040\u3092\u4f7f\u3063\u305f\u30a2\u30c0\u30d7\u30bf\u30fc\u3084\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u4f5c\u308b\u4e88\u5b9a\u306a\u306e\u3067\u3001PWM\u7528\u306e\u6a5f\u80fd\u3092\u307e\u3068\u3081\u305f\u30d5\u30a1\u30a4\u30eb nk_rp_pwmled.cpp \/ .h )\u3092\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u8ffd\u52a0\u3057\u305f\u3002<\/p>\n<p>PWM\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001<strong><a href=\"https:\/\/datasheets.raspberrypi.com\/rp2040\/rp2040-datasheet.pdf\" target=\"_blank\" rel=\"noopener\">RP2040 Datasheet(2.2\u7248)<\/a> \u306e 4.6 PWM \u3092\u53c2\u7167<\/strong>\u3002\u3053\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306e\u66f4\u65b0\u306f\u983b\u7e41\u306b\u884c\u308f\u308c\u3066\u3044\u3066\u3001\u3061\u3087\u3063\u3068\u53e4\u3044\u7248\u3060\u3068\u7ae0\u756a\u53f7\u304c\u9055\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u6ce8\u610f\u3002<\/p>\n<p>RP2040\u306ePWM\u306e\u7279\u5fb4\u3084\u4eca\u56de\u306e\u5b9f\u88c5\u306e\u30c8\u30d4\u30c3\u30af\u30b9\u7684\u306a\u3053\u3068\u3092\u307e\u3068\u3081\u305f\u3002<\/p>\n<ul>\n<li>\u5408\u8a08\u306716\u500b\u306ePWM\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u5229\u7528\u3067\u304d\u300130\u672c\u3042\u308bGPIO\u3092PWM\u51fa\u529b\u7528\u306b\u5272\u308a\u5f53\u3066\u53ef\u80fd\u3002\u4eca\u56de\u306f\u3001GPIO14 \u3092NICOLA LED\u7528\u306b\u4f7f\u3063\u3066\u3044\u308b\u3002<\/li>\n<li>\u5185\u90e8\u306e\u30a2\u30c3\u30d7\u30c0\u30a6\u30f3\u30ab\u30a6\u30f3\u30bf\u30fc\u306f16\u30d3\u30c3\u30c8\u5e45\u306a\u306e\u3067\u3001TOP\u5024(\u3042\u308b\u3044\u306fWRAP\u5024)\u306f16\u30d3\u30c3\u30c8\u3067\u8868\u73fe\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3057\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u73fe\u5728\u5024\u3068\u6bd4\u8f03\u3059\u308b CC (Counter Compare )\u5024\u308216\u30d3\u30c3\u30c8\u3068\u3059\u308b\u3002\u4eca\u56de\u306f\u3001TOP\u5024\u3068\u3057\u306610000\u3001pwm_level(CC\u5024)\u3068\u3057\u3066 1\uff5e10000\u306e\u7bc4\u56f2\u306e\u5024\u3092\u4e0e\u3048\u3066\u3044\u308b\u3002<\/li>\n<li>\n<div>\n<div><em>pwm_config_set_clkdiv_int(&amp;pwmconf, F_CPU \/ 1000000);<\/em> \u306b\u3088\u308a\u3001\u30af\u30ed\u30c3\u30af\u30c7\u30a3\u30d0\u30a4\u30c0\u3068\u3057\u3066 F_CPU \/ 1000000 \u3092\u4e0e\u3048\u3066\u3044\u308b\u306e\u3067\u3001\u30ab\u30a6\u30f3\u30c8\u30a2\u30c3\u30d7\u5468\u6ce2\u6570\u306f1MHz\u3068\u306a\u308b\u3002TOP\u5024\u304c10000\u306a\u306e\u3067\u3001\u7d0410msec\u3054\u3068\u306b\u5185\u90e8\u30a2\u30c3\u30d7\u30c0\u30a6\u30f3\u30ab\u30a6\u30f3\u30bf\u30fc\u306f\u30e9\u30c3\u30d7\u3059\u308b(0\u306b\u623b\u308b)\u3002<\/div>\n<\/div>\n<\/li>\n<li>\n<div><em>irq_set_exclusive_handler(PWM_IRQ_WRAP, isr_rp_pwm_wrap);<\/em> \u306b\u3088\u308a\u3001\u30e9\u30c3\u30d7\u3068\u540c\u6642\u306b\u5272\u8fbc\u307f\u30cf\u30f3\u30c9\u30e9<em> isr_rp_pwm_wrap()<\/em> \u304c\u547c\u3070\u308c\u308b\u3002<em>isr_rp_pwm_wrap()<\/em> \u5185\u3067CC\u5024 (pwm_level) \u3092\u6f38\u5897\u3001\u6f38\u6e1b\u3055\u305b\u308b\u3053\u3068\u3067\u3001LED\u306e\u660e\u308b\u3055\u3092\u6c7a\u3081\u308b\u30c7\u30e5\u30fc\u30c6\u30a3\u30fc\u6bd4\u304c\u6f38\u5897\u3001\u6f38\u6e1b\u3057\u3001\u7d50\u679c\u3068\u3057\u3066LED\u304c\u660e\u308b\u304f\u306a\u3063\u305f\u308a\u6697\u304f\u306a\u3063\u305f\u308a\u3059\u308b\u3002<\/div>\n<\/li>\n<\/ul>\n<p>\u3082\u3046\u3061\u3087\u3063\u3068\u51dd\u3063\u305f\uff1f \u660e\u6ec5\u3092\u3055\u305b\u305f\u3044\u3068\u3053\u308d\u306a\u306e\u3060\u3051\u3069\u3001\u73fe\u72b6\u306f\u3053\u3093\u306a\u5177\u5408\u3067\u3059\u3002<\/p>\n<p><iframe loading=\"lazy\" title=\"NK60 PWM LED\" width=\"672\" height=\"378\" src=\"https:\/\/www.youtube.com\/embed\/_yRae07RCVo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h1>\u304d\u3087\u3046\u306e\u307e\u3068\u3081<\/h1>\n<ul>\n<li>\u3053\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u306f\u534a\u5e74\u4ee5\u4e0a\u524d\u306b\u4f5c\u3063\u3066\u305a\u3063\u3068\u4f7f\u3063\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u89aa\u6307\u30ad\u30fc\u5468\u308a\u306b\u3064\u3044\u3066\u306f\u3001\u5de6Alt\u30ad\u30fc(SW59)\u306e\u53f3\u96a3\u304b\u3089\u3001<strong>ImeOff\u3001\u89aa\u6307\u5de6(\u7121\u5909\u63db\u307e\u305f\u306fF14)\u3001\u89aa\u6307\u53f3(\u7a7a\u767d)\u3001ImeOn (\u307e\u305f\u306f\u3072\u3089\u304c\u306a)<\/strong> \u3068\u3044\u3046\u4e26\u3073\u3067\u4f7f\u3063\u3066\u3044\u308b\u3002\u4eca\u56de\u30ec\u30a4\u30a2\u30a6\u30c8\u3068\u3057\u3066\u793a\u3057\u305f\u57fa\u672c\u5f62\u306f\u5909\u66f4\u305b\u305a\u3001hoboNicola\u30e9\u30a4\u30d6\u30e9\u30ea\u5074\u306b\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u306e\u3088\u3046\u306b\u4e26\u3079\u3089\u308c\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/li>\n<li>\u307b\u304b\u306b\u3001\u5de6Alt\u30ad\u30fc(SW59)\u306e\u53f3\u96a3\u304b\u3089 <strong>\u7121\u5909\u63db\u307e\u305f\u306fF14<\/strong>\u3001<strong>\u89aa\u6307\u5de6(\u7a7a\u767d)\u3001\u89aa\u6307\u53f3(\u5909\u63db\u307e\u305f\u306fF15)\u3001ImeOn (\u307e\u305f\u306f\u3072\u3089\u304c\u306a)<\/strong> \u3068\u3044\u3046\u306e\u8a2d\u5b9a\u3082\u53ef\u80fd\u3002\u3053\u308c\u306f\u901a\u5e38\u578b\u306e\u65e5\u672c\u8a9e\u30ad\u30fc\u30dc\u30fc\u30c9\u3068\u307b\u307c\u540c\u3058\u4e26\u3073\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002\u7121\u5909\u63db\u30ad\u30fc\u306b\u3088\u308b\u534a\u78ba\u5b9a\u64cd\u4f5c\u3092\u4f7f\u308f\u306a\u3044\u5834\u5408\u3001\u3053\u306e\u65b9\u304c\u3088\u3044\u3060\u308d\u3046\u3002<\/li>\n<li>\u5de6Shift\u30ad\u30fc\u30922U\u30b5\u30a4\u30ba\u306b\u3057\u305f\uff08\u305d\u3046\u305b\u3056\u308b\u5f97\u306a\u3044\uff09\u305f\u3081\u3001\u30ad\u30fc\u30ad\u30e3\u30c3\u30d7\u30bb\u30c3\u30c8\u306e\u9078\u5b9a\u306b\u56f0\u308b\u3053\u3068\u304c\u3042\u308b\u3002\u3061\u3087\u3046\u30692U\u30b5\u30a4\u30ba\u3067\u30ad\u30fc\u30ad\u30e3\u30c3\u30d7\u306e\u9ad8\u3055\u306f\u3055\u307b\u3069\u5909\u308f\u3089\u306a\u3044\u3001<strong>\u30c6\u30f3\u30ad\u30fc\u5074\u306e 0 \u30ad\u30fc\u3092\u4f7f\u3046<\/strong>\u3053\u3068\u304c\u591a\u3044\u3002<\/li>\n<li>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u516c\u958b\u306fGitHUB\u3067\u884c\u3046\u3088\u3046\u306b\u3057\u305f\u3002 \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u66f4\u65b0\u60c5\u5831\u3084hoboNicola\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u6982\u8981\u3084\u8003\u3048\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u524d\u304b\u3089\u3042\u308b <a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?page_id=8211\" target=\"_blank\" rel=\"noopener\">\u307b\u307cNICOLA\u5316\u30d7\u30ed\u30b0\u30e9\u30e0 hoboNicola\u306e\u30da\u30fc\u30b8<\/a> \u306b\u66f8\u304f\u3088\u3046\u306b\u3057\u305f\u306e\u3067\u3054\u53c2\u7167\u306e\u307b\u3069\u3002<\/li>\n<li>\u30d6\u30ed\u30b0\u306e\u6295\u7a3f\u3092\u66f8\u304b\u306a\u3044\u3046\u3061\u306b\u3001\u6b21\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u4f5c\u3063\u305f\u308a\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u306b\u3064\u3044\u3066\u3082\u304a\u3044\u304a\u3044\u3084\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u3053\u306e\u6295\u7a3f\u306b\u3064\u3044\u3066\u3082\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8ffd\u8a18\u3084\u5909\u66f4\u3092\u884c\u3063\u3066\u3044\u304f\u4e88\u5b9a\u3067\u3059\u3002<\/li>\n<li>\u6a5f\u4f1a\u304c\u3042\u3063\u3066Mac book PRO\u306b\u3064\u306a\u3044\u3067\u3061\u3087\u3063\u3068\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u305f\u3002\u89aa\u6307\u30b7\u30d5\u30c8\u540c\u6642\u6253\u9375\u5165\u529b\u3067\u65e5\u672c\u8a9e\u304c\u307e\u305a\u307e\u305a\u30b9\u30e0\u30fc\u30ba\u306b\u5165\u529b\u3067\u304d\u308b\u3053\u3068\u306f\u78ba\u8a8d\u3057\u305f\u3082\u306e\u306e\u3001\u65e5\u672c\u8a9e\u5165\u529b\u30bd\u30d5\u30c8\u306e\u8a2d\u5b9a\u3084\u6587\u5b57\u7a2e\u5207\u308a\u66ff\u3048\u306e\u65b9\u6cd5\u304c\u3088\u304f\u5206\u304b\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u82f1\u6587\u6df7\u3058\u308a\u306e\u65e5\u672c\u8a9e\u5165\u529b\u304c\u5feb\u9069\u306b\u3070\u308a\u3070\u308a\u3067\u304d\u305f\u3001\u3044\u3046\u611f\u3058\u3067\u306f\u306a\u3044\u3002Mac mini \u3067\u3082\u6301\u3063\u3066\u308b\u3068\u3044\u3044\u3093\u3067\u3057\u3087\u3046\u3051\u3069\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u3057\u3070\u3089\u304f\u524d\u306b\u3001XD64 VER 3 PCB\u3092\u4f7f\u3063\u305f\u89aa\u6307\u30b7\u30d5\u30c8\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u4f5c\u3063\u3066\u304a\u304a\u3080\u306d\u6e80\u8db3\u3057\u3066\u3044\u305f\u306e\u3060\u3051\u3069\u3001\u82f1\u6587\u6df7\u3058\u308a\u306e\u65e5\u672c\u8a9e\u5165\u529b\u3092\u3082\u3046\u3061\u3087\u3063\u3068\u3084\u308a\u3084\u3059\u304f\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3002\u305d\u306e\u305f\u3081\u306b\u3001\u6587\u5b57\u7a2e\u5207\u66ff\u3048\u7528\u306e\u30ad\u30fc\u3092\u8ffd &hellip; <a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?p=16074\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">RP2040\u3092\u4f7f\u3063\u305f\u89aa\u6307\u30b7\u30d5\u30c8\u30ad\u30fc\u30dc\u30fc\u30c9(nk60)\u306e\u88fd\u4f5c<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":16110,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[65,151,220,209,100,212],"class_list":["post-16074","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","tag-arduino","tag-hobonicola","tag-nk60","tag-rp2040","tag-100","tag-212"],"_links":{"self":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts\/16074","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=16074"}],"version-history":[{"count":4,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts\/16074\/revisions"}],"predecessor-version":[{"id":17228,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts\/16074\/revisions\/17228"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/media\/16110"}],"wp:attachment":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}