{"id":629,"date":"2019-08-17T12:15:38","date_gmt":"2019-08-17T03:15:38","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=629"},"modified":"2019-08-17T20:01:27","modified_gmt":"2019-08-17T11:01:27","slug":"%e6%9a%97%e3%81%84%e6%99%82%e3%81%abled%e3%81%8c%e5%85%89%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%97%e3%81%9f%e3%81%84","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2019\/08\/17\/629\/","title":{"rendered":"\u6697\u3044\u6642\u306bLED\u304c\u5149\u308b\u3088\u3046\u306b\u3057\u305f\u3044"},"content":{"rendered":"<h1>\u5149\u30bb\u30f3\u30b5\u30fc<\/h1>\n<p>\u5149\u30bb\u30f3\u30b5\u30fc\u30b9\u30a4\u30c3\u30c1\u30ad\u30c3\u30c8\u3092\u8cb7\u3063\u305f\u306f\u3044\u3044\u3082\u306e\u306e\u3001\u8aac\u660e\u66f8\u898b\u3066\u3082\u4f7f\u3044\u65b9\u304c\u305c\u3093\u305c\u3093\u308f\u304b\u3089\u306a\u3044\u3002\u306a\u306e\u3067\u8ae6\u3081\u3066\u4e00\u304b\u3089\u65b9\u6cd5\u3092\u691c\u8a0e\u3057\u3066\u307f\u308b\u3002\u3069\u3093\u306a\u65b9\u6cd5\u304c\u3042\u308b\u306e\u304b\u306a\u30fc\u3068\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308d<\/p>\n<ul>\n<li>\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf\u3092\u4f7f\u3046<\/li>\n<li>\u30d5\u30a9\u30c8\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\u3092\u4f7f\u3046<\/li>\n<li>\u2191+AD\u30b3\u30f3\u30d0\u30fc\u30bf\u4f7f\u3046<\/li>\n<li>\u7167\u5ea6\u30bb\u30f3\u30b5\u4f7f\u3046<\/li>\n<\/ul>\n<p>\u307f\u305f\u3044\u306a\u65b9\u6cd5\u304c\u3042\u308b\u305d\u3046\u3067\u3001\u5149\u30bb\u30f3\u30b5\u30fc\u30b9\u30a4\u30c3\u30c1\u30ad\u30c3\u30c8\u3067\u4f7f\u308f\u308c\u3066\u305f\u3001\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\u3067\u3044\u3063\u3066\u307f\u305f\u3044\u3002<\/p>\n<h2>\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf\u3001CdS\u30bb\u30eb\u3092\u4f7f\u3063\u3066\u307f\u308b<\/h2>\n<p>\u3064\u30fc\u3053\u3068\u3067<a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gI-05859\/\">GL5528<\/a>\u3092\u8cb7\u3063\u3066\u304d\u305f\u3002\u30c6\u30b9\u30bf\u30fc\u3067\u62b5\u6297\u5024\u3092\u6e2c\u3063\u3066\u307f\u308b\u3068\u3001\u65e5\u4e2d\u306e\u5ba4\u5185\u30674k\u03a9\u3001\u624b\u3092\u304b\u3056\u3059\u306815k\u03a9\u3001\u6307\u3067\u96a0\u3059\u3068100k\u03a9\u3050\u3089\u3044\u3060\u3063\u305f\u3002\u3061\u306a\u307f\u306b\u5149\u30bb\u30f3\u30b5\u30fc\u30b9\u30a4\u30c3\u30c1\u30ad\u30c3\u30c8\u306b\u5165\u3063\u3066\u308bCdS\u30bb\u30eb(\u591a\u5206<a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gI-00110\/\">\u3053\u308c<\/a>)\u3092\u540c\u3058\u3088\u3046\u306b\u6e2c\u3063\u3066\u307f\u308b\u3068\u3001\u65e5\u4e2d\u306e\u5ba4\u5185\u306720k\u03a9\u3001\u624b\u3092\u304b\u3056\u3059\u306850k\u03a9\u3001\u6307\u3067\u96a0\u3059\u3068160k\u03a9\u3050\u3089\u3044\u3060\u3063\u305f\u3002\u3048\u3089\u3044\u3070\u3089\u3064\u304d\u3042\u3093\u306a\u2026\u3002<\/p>\n<p>\u3067\u3001\u3053\u306e\u307e\u307eL\u30c1\u30ab\u3057\u305f\u6642\u306e\u56de\u8def\u306e\u62b5\u6297\u306e\u4ee3\u308f\u308a\u306b\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf\u4f7f\u3063\u305f\u3068\u3057\u3066\u3082\u3001\u6697\u3044\u6642\u306b\u6697\u304f\u306a\u3063\u3066\u3001\u660e\u308b\u3044\u6642\u306b\u660e\u308b\u304f\u306a\u308b\u3060\u3051\u3067\u3002\u3058\u3083\u3042\u3069\u3046\u3059\u308b\u304b\u3068\u3044\u3046\u3068\u3001\u5206\u5727\u56de\u8def\u3068\u3044\u3046\u306e\u306b\u3059\u308b\u307f\u305f\u3044\u3002<\/p>\n<div id=\"attachment_630\" style=\"width: 240px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/230px-Voltage_divider.svg_.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-630\" class=\"size-full wp-image-630\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/230px-Voltage_divider.svg_.png\" alt=\"\" width=\"230\" height=\"253\" \/><\/a><p id=\"caption-attachment-630\" class=\"wp-caption-text\">Wikipedia\u3088\u308a<\/p><\/div>\n<p>\u3053\u3093\u306a\u3002\u3067\u3001R2\u306e\u65b9\u306b\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf\u3092\u4ed8\u3051\u3066\u3042\u3052\u308c\u3070\u3044\u3044\u307f\u305f\u3044\u3002\u3048\u3063\u3068\u3001Vin\u306f3.3V\u3001R2\u306f\u660e\u308b\u3044\u66424k\u03a9\u3001\u6697\u3044\u6642100k\u03a9\u3067\u3001Vout\u306f\u660e\u308b\u3044\u6642\u306fLED\u70b9\u304b\u306a\u3044\u3050\u3089\u3044\u306e\u96fb\u5727\u3001\u6697\u3044\u6642\u306f\u70b9\u304f\u3050\u3089\u3044\u306e\u96fb\u5727\u306b\u306a\u3063\u3066\u307b\u3057\u3044\u3002\u70b9\u304f\u3050\u3089\u3044\u306e\u96fb\u5727\u3063\u3066\u3044\u3046\u306e\u306f\u3064\u307e\u308a\u9806\u65b9\u5411\u96fb\u5727\u306a\u306e\u3067\u3001L\u30d4\u30ab\u3057\u305f\u6642\u306e2.6V\u306b\u306a\u3063\u3066\u304f\u308c\u308c\u3070\u3044\u3044\u304b\u306a\u3002\u307b\u3044\u3067R1\u306e\u62b5\u6297\u5024\u3092\u6c42\u3081\u308b\u3002<\/p>\n<blockquote><p>Vout = R2 \/ (R1 + R2) * Vin<\/p><\/blockquote>\n<p>\u306a\u306e\u3067\u30012.6 = (100000 \/ (x + 100000)) * 3.3\u3092\u89e3\u304f\u3002<a href=\"https:\/\/www.wolframalpha.com\/input\/?i=2.6+%3D+(100000+%2F+(x+%2B+100000))+*+3.3\">Wolframalpha\u3055\u3093\u306b\u983c\u3080<\/a>\u3068R1\u225227k\u03a9\u3068\u306a\u3063\u305f\u3002\u307b\u3093\u3068\u304b\u3057\u3089\u3001\u53c2\u8003\u30b5\u30a4\u30c8\u3060\u3068\u6570k\u03a9\u3060\u3063\u305f\u305e\u3002\u3064\u3044\u3067\u306bR1\u306b27k\u03a9\u4f7f\u3063\u305f\u6642\u3001\u660e\u308b\u3044\u6642\u306eVout\u306f\u3069\u3093\u306a\u306a\u3093\u3060\u308d\u3068\u601d\u3044x = ( 4000 \/ (27000 + 4000)) * 3.3\u3092<a href=\"https:\/\/www.wolframalpha.com\/input\/?i=x+%3D+(+4000+%2F+(27000+%2B+4000))+*+3.3\">\u8a08\u7b97\u3057\u3066\u3082\u3089\u3046<\/a>\u3068\u7d040.43V\u306a\u306e\u3067\u70b9\u304b\u306a\u305d\u3046\u3001\u8a08\u7b97\u4e0a\u306f\u3044\u3044\u611f\u3058\u3067\u3059\u3002\u5b9f\u969b\u3084\u3063\u3066\u307f\u3066\u3069\u3046\u306a\u308b\u3060\u308d\u3046\u304b\u3002<\/p>\n<p>\u90fd\u5408\u3088\u304f27k\u03a9\u306e\u62b5\u6297\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u305d\u308c\u3092\u633f\u3057\u3066\u56de\u8def\u56f3\u901a\u308a\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u3001\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf\u3092\u6307\u3067\u96a0\u3057\u3066\u307f\u308b\u3068\u2026\u3001\u70b9\u304b\u306a\u3044\u3002\u3046\u30fc\u3093\u3002\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf\u306e\u62b5\u6297\u5024\u304c\u5b89\u5b9a\u3057\u3066\u306a\u3044\u3088\u3046\u306a\u611f\u3058\u3002\u6700\u521d\u6e2c\u3063\u305f\u6642\u306f100k\u03a9\u3060\u3063\u305f\u3051\u3069\u3001\u4eca\u6e2c\u308b\u306880k\u3068\u304b\u306b\u306a\u308b\u3002\u3046\u30fc\u3093\u3002\u3068\u308a\u3042\u3048\u305a\u6697\u3044\u6642\u309280k\u3068\u3057\u3066<a href=\"https:\/\/www.wolframalpha.com\/input\/?i=2.6+%3D+(80000+%2F+(x+%2B+80000))+*+3.3\">\u8a08\u7b97\u3057\u76f4\u3059<\/a>\u3068R1\u306f\u7d0422k\u03a9\u306a\u306e\u3067\u3053\u308c\u307e\u305f\u90fd\u5408\u826f\u304f\u3042\u3063\u305f\u62b5\u6297\u3092\u633f\u3057\u66ff\u3048\u308b\u3068<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phore.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-633\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phore-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phore-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phore-768x576.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phore.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u70b9\u3044\u305f!\u3053\u306e\u6642\u306e\u96fb\u5727\u3092\u30c6\u30b9\u30bf\u30fc\u3067\u6e2c\u3063\u3066\u307f\u308b\u3068\u3001LED\u304c2.39V\u3001R1(22k\u03a9)\u304c0.885V\u3001R2(\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf)\u304c2.4V\u3060\u3063\u305f\u3002LED\u3068R2\u306f\u4e26\u5217\u306a\u306e\u3067\u96fb\u5727\u306f\u4e00\u7dd2\u306e\u306f\u305a\u3001R1\u306f\u96fb\u6e90\u96fb\u5727 &#8211; LED&amp;R2\u306e\u96fb\u5727\u306e\u306f\u305a\u306a\u306e\u3067\u3001\u5927\u4f53\u5408\u3063\u3066\u308b\u3002\u3053\u3053\u304b\u3089\u3001R1\u306b\u6d41\u308c\u308b\u96fb\u6d41\u3092\u6c42\u3081\u308b\u3068\u30010.885 \/ 22k = \u7d040.04mA\u306e\u96fb\u6d41\u304c\u6d41\u308c\u3066\u308b\u3002\u3093\u3067\u2026\u3042\u308c?LED\u3068R2\u306e\u305d\u308c\u305e\u308c\u306b\u6d41\u308c\u3066\u308b\u96fb\u6d41\u3063\u3066\u3069\u3046\u3084\u3063\u3066\u6c42\u3081\u3093\u306e?\u3048\u30fc\u3068\u3001\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf\u306e\u62b5\u6297\u5024\u309280k\u03a9\u3068\u4eee\u5b9a\u3057\u3066\u3042\u3052\u308b\u3068\u30012.4 \/ 80k =\u00a0 0.03mA\u3067\u30ad\u30eb\u30d2\u30db\u30c3\u30d5\u306e\u6cd5\u5247\u304b\u30890.04 &#8211; 0.03 = 0.01mA\u304cLED\u306b\u6d41\u308c\u3066\u308b\u2026\u306e?\u305d\u3093\u306a\u3093\u3042\u308a\u3048\u308b\u3093\u3060\u308d\u3046\u304b\u3002\u8a08\u7b97\u9593\u9055\u3063\u3066\u306a\u3044\u304b\u306a\u3002\u3046\u30fc\u3093\u3001\u307e\u3041\u70b9\u3044\u3061\u3083\u3063\u3066\u308b\u3093\u3060\u304b\u3089\u3057\u3087\u3046\u304c\u306a\u3044\u3088\u306a\u3002<\/p>\n<h2>\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf+\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\u3067\u660e\u308b\u304f\u3059\u308b<\/h2>\n<p>LED\u3092\u660e\u308b\u304f\u3059\u308b\u306b\u306f\u3001\u6d41\u308c\u8fbc\u3080\u96fb\u6d41\u3092\u591a\u304f\u3057\u306a\u304f\u3061\u3083\u3044\u3051\u306a\u3044\u308f\u3051\u3067\u3001\u305d\u3046\u3044\u3046\u6642\u306b\u4f7f\u3046\u306e\u304c\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\u3068\u3044\u3046\u3053\u3068\u307f\u305f\u3044\u3002\u3068\u3044\u3046\u3053\u3068\u3067<a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gI-00881\/\">2SC1815<\/a>\u8cb7\u3063\u3066\u304d\u305f\u300120\u500b\u3082\u3044\u3093\u306a\u3044\u3093\u3060\u3051\u3069\u306a\u3002\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\u306f3\u672c\u8db3\u3067\u3001\u30b3\u30ec\u30af\u30bf\u30fb\u30a8\u30df\u30c3\u30bf\u30fb\u30d9\u30fc\u30b9\u3068\u5206\u304b\u308c\u3066\u308b\u3002\u901a\u5e38\u3001\u30b3\u30ec\u30af\u30bf-\u30a8\u30df\u30c3\u30bf\u9593\u306f\u96fb\u6c17\u304c\u6d41\u308c\u3066\u306a\u304f\u3066\u3001\u30d9\u30fc\u30b9\u306b\u96fb\u6c17\u3092\u6d41\u3059\u3068\u5897\u5e45\u3055\u308c\u305f\u96fb\u6c17\u304c\u30b3\u30ec\u30af\u30bf-\u30a8\u30df\u30c3\u30bf\u9593\u306b\u6d41\u308c\u308b\u307f\u305f\u3044\u3001\u8cb7\u3063\u305f\u3084\u3064\u306fNPN\u578b\u3060\u304b\u3089\u3002\u305d\u3093\u6642\u306b\u6d41\u308c\u308b\u96fb\u6d41\u306e\u5024\u304c\u3069\u3093\u304f\u3089\u3044\u306b\u306a\u308b\u304b\u3063\u3066\u3044\u3046\u306e\u3092hFE(\u76f4\u6d41\u96fb\u6d41\u5897\u5e45\u7387)\u3067\u8868\u3059\u305d\u3046\u306a\u3002hFE = Ic \/ Ib\u306d\u3001\u30a8\u30df\u30c3\u30bf\u63a5\u5730\u306e\u5834\u5408\u3002\u8cb7\u3063\u305f\u3084\u3064\u3092\u30c6\u30b9\u30bf\u3067\u6e2c\u3063\u3066\u307f\u305f\u3089hFE=284\u3060\u3063\u305f\u3002\u3082\u306e\u3059\u3054\u3044\u5358\u7d14\u306b\u8003\u3048\u305f\u30890.04mA * 284 = 11.36mA\u306b\u306a\u308b\u3063\u3066\u3053\u3068?\u3053\u3048\u30fc\u306a\u3001\u5927\u4e08\u592b\u304b\u306a\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u3042\u307e\u308a\u8003\u3048\u305a\u62b5\u6297\u3068\u304b\u5909\u3048\u305a\u306b\u53c2\u8003\u30b5\u30a4\u30c8\u306e\u56de\u8def\u56f3\u306e\u901a\u308a\u306b\u7e4b\u3044\u3067\u307f\u308b\u3068<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phore2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-634\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phore2-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phore2-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phore2-768x576.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phore2.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u70b9\u304f\u306f\u70b9\u304f\u3093\u3060\u3051\u3069\u3001\u30b9\u30de\u30db\u306eLED\u30e9\u30a4\u30c8\u304c\u5f53\u305f\u3063\u3066\u308b\u3050\u3089\u3044\u3058\u3083\u306a\u3044\u3068\u660e\u308b\u3044\u3068\u5224\u5b9a\u3055\u308c\u306a\u3044\u3002\u5ba4\u5185\u706f\u306e\u660e\u308b\u3055\u306e\u5143\u3067\u306f\u6697\u3044\u3068\u5224\u5b9a\u3055\u308c\u3066\u5149\u3063\u3066\u3057\u307e\u3046\u3002\u306a\u3093\u3067\u3060\u308d\u3002\u4eca\u7e4b\u3044\u3060\u56de\u8def\u56f3\u304c<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/Untitled.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-635\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/Untitled-300x240.png\" alt=\"\" width=\"300\" height=\"240\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/Untitled-300x240.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/Untitled.png 500w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u3093\u306a\u3002\u3046\u30fc\u3093\u3001\u5ba4\u5185\u706f\u4e0b\u3067\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf\u306e\u62b5\u6297\u3092\u6e2c\u3063\u3066\u307f\u305f\u308910k\u03a9\u307b\u3069\u3060\u3063\u305f\u3002\u3053\u306e\u6642Vout\u306f\u3044\u304f\u3089\u304b<a href=\"https:\/\/www.wolframalpha.com\/input\/?i=x+%3D+(10000+%2F+(22000+%2B+10000))+*+3.3\">\u8a08\u7b97\u3059\u308b<\/a>\u30681.03V\u3002\u3042\u3001\u306a\u308b\u307b\u3069\u3001\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\u304cON\u306b\u306a\u3063\u3061\u3083\u3063\u3066\u308b\u3093\u3060\u3002\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf\u304cON\u306b\u306a\u308b\u30d9\u30fc\u30b9-\u30a8\u30df\u30c3\u30bf\u9593\u306e\u96fb\u5727\u306f\u7d040.7V\u3089\u3057\u3044\u3001\u6839\u62e0\u89e3\u8aac\u3057\u3066\u308b\u3068\u3053\u898b\u3064\u304b\u3093\u306a\u304b\u3063\u305f\u3002\u5618\u3067\u3059\u3001\u3042\u3063\u305f\u3051\u3069\u3088\u304f\u5206\u304b\u3093\u306a\u304b\u3063\u305f(<a href=\"https:\/\/okwave.jp\/qa\/q5246366.html\">1<\/a>, <a href=\"https:\/\/oshiete.goo.ne.jp\/qa\/3151497.html\">2<\/a>, <a href=\"https:\/\/oshiete.goo.ne.jp\/qa\/8645704.html\">3<\/a>)\u3002\u306a\u306e\u3067\u3001\u660e\u308b\u3044\u6642\u306bVout\u304c0.7\u3088\u308a\u5c0f\u3055\u304f\u306a\u3089\u306a\u3044\u3068\u99c4\u76ee\u3063\u3066\u3053\u3068\u307f\u305f\u3044\u3002\u3068\u308a\u3042\u3048\u305a0.6\u3092\u72d9\u3063\u3066<a href=\"https:\/\/www.wolframalpha.com\/input\/?i=0.6+%3D+(10000+%2F+(x+%2B+10000))+*+3.3\">\u8a08\u7b97\u3057\u3066\u307f\u308b<\/a>\u3068R1\u304c45k\u03a9\u3068\u51fa\u305f\u3002\u6301\u3063\u3066\u308b\u5185\u306745k\u306b\u306a\u308b\u7d44\u307f\u5408\u308f\u305b\u306a\u3044\u304b\u306a\u30fc\u3068\u63a2\u3059\u306818k\u03a9\u306827k\u03a9\u3092\u76f4\u5217\u306b\u3059\u308c\u3070\u826f\u3055\u3052\u3002\u3068\u601d\u3063\u3066\u3084\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phor.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-637\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phor-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phor-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phor-768x576.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/phor.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u60dc\u3057\u3044!\u5149\u306f\u5f31\u307e\u3063\u305f\u3051\u3069\u3001\u5149\u3063\u3061\u3083\u3063\u305f\u3002\u3066\u3044\u3046\u304b0.6V\u3068\u304b\u3058\u3083\u306a\u304f\u3066\u3082\u3063\u3068\u30ac\u30c3\u30c4\u30ea\u6e1b\u3089\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u307f\u305f\u3044\u3002\u306a\u306e\u30670.3V\u72d9\u3044\u3067<a href=\"https:\/\/www.wolframalpha.com\/input\/?i=0.3+%3D+(10000+%2F+(x+%2B+10000))+*+3.3\">\u8a08\u7b97\u3059\u308b<\/a>\u3068100k\u03a9\u3068\u306a\u3002100k\u03a9\u306a\u3089\u3042\u308b\u305e\u3001\u3084\u3063\u3066\u307f\u3088\u3046\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/photoreg.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-638\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/photoreg-300x200.png\" alt=\"\" width=\"300\" height=\"200\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/photoreg-300x200.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/photoreg-768x512.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/photoreg.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3067\u3001\u3067\u304d\u305f\u30fc\u3002\u5ba4\u5185\u706f\u4e0b\u3067\u3082LED\u306f\u70b9\u304b\u305a\u3001\u30ab\u30d0\u30fc\u3092\u88ab\u305b\u3066\u6697\u304f\u3057\u305f\u3089\u70b9\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u3042\u3068\u306f\u3053\u308c\u3092GPIO\u306b\u7e4b\u3052\u3070\u3001\u30ab\u30e1\u30e9\u3067\u64ae\u5f71\u3059\u308b\u6642\u306bHIGH\u306b\u3059\u308b\u3060\u3051\u3067\u3001\u56de\u8def\u4e0a\u3067\u660e\u308b\u3055\u3092\u5224\u5b9a\u3057\u3066\u6697\u3044\u6642\u306fLED\u3092\u70b9\u3051\u3066\u304f\u308c\u308b\u306f\u305a\u3002<\/p>\n<h2>AD\u30b3\u30f3\u30d0\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u307f\u308b<\/h2>\n<p>\u3053\u308c\u307e\u3067\u306e\u56de\u8def\u3060\u3068\u3001\u660e\u6697\u306e\u95be\u5024\u304c\u5206\u304b\u3089\u306a\u3044\u3088\u306d\u3002\u8584\u6697\u3044\u6642\u306b\u307c\u3093\u3084\u308a\u3068\u5149\u308b\u3001\u307f\u305f\u3044\u306a\u3053\u3068\u306b\u306a\u308a\u305d\u3046\u3002\u3067\u3001\u95be\u5024\u3092\u3044\u3044\u611f\u3058\u306b\u6307\u5b9a\u3057\u305f\u3044\u3063\u3066\u5834\u5408\u306b\u4fbf\u5229\u306a\u306e\u304cAD\u30b3\u30f3\u30d0\u30fc\u30bf\u307f\u305f\u3044\u3002\u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf\u306e\u62b5\u6297\u5024\u3092\u30c7\u30b8\u30bf\u30eb\u306b\u5909\u63db\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u6570\u5024\u3067\u306e\u6307\u5b9a\u304c\u53ef\u80fd\u306b\u306a\u308b\u3063\u3066\u3053\u3068\u307f\u305f\u3044\u3002\u3066\u3053\u3068\u3067AD\u30b3\u30f3\u30d0\u30fc\u30bf\u306e<a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gI-00238\/\">MCP3208<\/a>\u3092\u8cb7\u3063\u305f\u3002\u3053\u308c\u3092\u89e3\u8aac\u3057\u3066\u308b\u30b5\u30a4\u30c8\u3068\u304b\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u3068\u304b\u3092\u898b\u305f\u306e\u3060\u3051\u3069\u3001\u5206\u304b\u3063\u3066\u308b\u4eba\u304c\u3061\u3087\u3063\u3068\u5206\u304b\u3063\u3066\u308b\u4eba\u306b\u8a00\u3063\u3066\u308b\u611f\u3058\u3067\u3001\u5168\u7136\u5206\u304b\u3063\u3066\u306a\u3044\u4eba\u306b\u306f\u3061\u3093\u3077\u3093\u304b\u3093\u3077\u3093\u306a\u611f\u3058\u3002\u3064\u307e\u308a\u4ffa\u306b\u306f\u3061\u3093\u3077\u3093\u304b\u3093\u3077\u3093\u3067\u3059\u3001\u30b2\u30ed\u5410\u3044\u3066\u9f3b\u8840\u304c\u51fa\u305d\u3046\u3002\u305d\u3082\u305d\u3082\u4f7f\u308f\u308c\u3066\u308b\u5358\u8a9e\u304c\u308f\u304b\u3089\u3093\u3001\u306a\u3093\u30673,4\u6587\u5b57\u306e\u7565\u79f0\u3070\u3063\u304b\u306a\u3093\u3060\u3002<\/p>\n<h3>\u7528\u8a9e\u3092\u8abf\u3079\u308b<\/h3>\n<p>\u5206\u304b\u3063\u3066\u308b\u98a8\u306b\u66f8\u3044\u3066\u308b\u3051\u3069\u307b\u307c\u5206\u304b\u3063\u3066\u306a\u3044\u3002<\/p>\n<h4>MCP3208<\/h4>\n<div id=\"attachment_647\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/mcp3208.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-647\" class=\"wp-image-647 size-medium\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/mcp3208-300x190.png\" alt=\"\" width=\"300\" height=\"190\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/mcp3208-300x190.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/mcp3208.png 486w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-647\" class=\"wp-caption-text\">\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u3088\u308a<\/p><\/div>\n<table width=\"873\">\n<tbody>\n<tr>\n<td width=\"83\">PDIP<\/td>\n<td width=\"790\">IC\u30c1\u30c3\u30d7\u306e\u5f62\u72b6(\u30d1\u30c3\u30b1\u30fc\u30b8)\u306e\u540d\u524d\u3002Dual Inline Package\u30022\u5074\u9762\u304b\u3089\u30d4\u30f3\u304c\u51fa\u3066\u3066\u30d7\u30e9\u30b9\u30c1\u30c3\u30af\u3002<\/td>\n<\/tr>\n<tr>\n<td>SOIC<\/td>\n<td>\u30d4\u30f3\u30d4\u30c3\u30c1\u304c1.27mm\u306e\u3082\u306e\u3002Small Outline Integrated Circuit\u3002<\/td>\n<\/tr>\n<tr>\n<td>CH0\uff5eCH7<\/td>\n<td>CHannel\u3002\u30a2\u30ca\u30ed\u30b0\u5024\u306e\u5165\u529b\u3067\u4f7f\u3046\u30020-7\u307e\u3067\u306e8\u672c\u3067\u5225\u3005\u306e\u5024\u304c\u53d6\u5f97\u3067\u304d\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>VDD<\/td>\n<td>\u52d5\u4f5c\u96fb\u5727\u3002IC\u81ea\u4f53\u306e\u96fb\u6e90\u96fb\u5727\u3002Voltage Drain\u3002<\/td>\n<\/tr>\n<tr>\n<td>VREF<\/td>\n<td>\u57fa\u6e96\u96fb\u5727\u3002Voltage REFerence\u3002\u3053\u3053\u306b\u63a5\u7d9a\u3059\u308b\u96fb\u5727\u3068\u3001CH*\u306b\u63a5\u7d9a\u3059\u308b\u96fb\u5727\u306e\u6bd4\u304c\u30c7\u30b8\u30bf\u30eb\u306e\u6570\u5024\u3068\u306a\u308b\u307f\u305f\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>AGND<\/td>\n<td>\u30a2\u30ca\u30ed\u30b0\u63a5\u5730\u3002Analog GrouND\u3002<\/td>\n<\/tr>\n<tr>\n<td>CLK<\/td>\n<td>\u30af\u30ed\u30c3\u30af\u3002CLocK\u3002<a href=\"https:\/\/ja.wikipedia.org\/wiki\/%E3%82%AF%E3%83%AD%E3%83%83%E3%82%AF\">\u3053\u308c?<\/a><\/td>\n<\/tr>\n<tr>\n<td>DOUT<\/td>\n<td>\u30b7\u30ea\u30a2\u30eb\u30c7\u30fc\u30bf\u51fa\u529b\u3002D\u306fData\u306e\u7565\u3067\u3059\u304b\u306d\u2026<\/td>\n<\/tr>\n<tr>\n<td>DIN<\/td>\n<td>\u30b7\u30ea\u30a2\u30eb\u30c7\u30fc\u30bf\u5165\u529b\u3002<\/td>\n<\/tr>\n<tr>\n<td>CS\/SHDN<\/td>\n<td>Chip Select \/ SHutDowN\u3002LOW\u3067\u901a\u4fe1\u958b\u59cb\u3001HIGH\u3067\u5f85\u6a5f\u3002<\/td>\n<\/tr>\n<tr>\n<td>DGND<\/td>\n<td>\u30c7\u30b8\u30bf\u30eb\u63a5\u5730\u3002Degital GrouND\u3002<\/td>\n<\/tr>\n<tr>\n<td>12bit<\/td>\n<td>2^12\u306e\u5206\u89e3\u80fd\u3002\u57fa\u6e96\u96fb\u57273.3V\u306e\u5834\u5408\u30013.3 \/ 4096 = 0.8mV\u3054\u3068\u306e\u5909\u5316\u3092\u8aad\u3081\u308b\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Rasberry Pi GPIO<\/h4>\n<p>SPI\u3067\u5229\u7528\u3067\u304d\u308b\u30d4\u30f3\u306f2\u30bb\u30c3\u30c8\u3042\u308b\u3088\u3046\u3067\u3001\u7269\u7406\u30d4\u30f319,21,23(BCM10,09,11)\u306835,38,40(BCM19,20,21)\u3092\u4f7f\u3046\u3002\u3042\u3068\u7269\u7406\u30d4\u30f324,26(BCM8,7)\u3067\u3069\u3063\u3061\u4f7f\u3046\u304b\u6c7a\u3081\u308b\u3002\u7269\u7406\u30d4\u30f311,12\u3082SPI\u306b\u4f7f\u3048\u308b\u307f\u305f\u3044\u3060\u3051\u3069\u3088\u304f\u5206\u304b\u3063\u3066\u306a\u3044\u3002\u901a\u5e38\u306f\u7269\u7406\u30d4\u30f319,21,23,24\u3092\u4f7f\u3048\u3070\u826f\u3055\u3052\u3002<\/p>\n<table width=\"760\">\n<tbody>\n<tr>\n<td width=\"72\">SPI<\/td>\n<td width=\"688\">Serial Peripheral Interface\u3002\u901a\u4fe1\u65b9\u5f0f\u306e\u4e00\u3064\u3002<\/td>\n<\/tr>\n<tr>\n<td>MOSI<\/td>\n<td>Master Out Slave In\u3002\u30e9\u30ba\u30d1\u30a4\u2192IC\u3078\u30c7\u30fc\u30bf\u3092\u9001\u308b\u3002IC\u306eDIN\u306b\u7e4b\u3050\u3002<\/td>\n<\/tr>\n<tr>\n<td>MISO<\/td>\n<td>Master In Slave Out\u3002IC\u2192\u30e9\u30ba\u30d1\u30a4\u3078\u30c7\u30fc\u30bf\u3092\u9001\u308b\u3002IC\u306eDOUT\u306b\u7e4b\u3050\u3002<\/td>\n<\/tr>\n<tr>\n<td>SCLK<\/td>\n<td>Serial CLocK\u3002\u30af\u30ed\u30c3\u30af\u2026IC\u3068\u30e9\u30ba\u30d1\u30a4\u306e\u5468\u671f\u3092\u5408\u308f\u305b\u308b\u611f\u3058\u3067\u4f7f\u308f\u308c\u308b\u307f\u305f\u3044\u306a\u3002IC\u306eCLK\u3068\u7e4b\u3050\u3002<\/td>\n<\/tr>\n<tr>\n<td>CE0, CE1<\/td>\n<td>Chip Enable\u30020\u30681\u3067\u4f7f\u3044\u305f\u3044\u306e\u3092\u9078\u3076\u3002IC\u306eCS\/SHDN\u3068\u7e4b\u3050\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u305d\u306e\u4ed6<\/h4>\n<table width=\"1266\">\n<tbody>\n<tr>\n<td width=\"107\">\u30b7\u30f3\u30b0\u30eb\u30a8\u30f3\u30c9<\/td>\n<td width=\"1159\">\u30b0\u30e9\u30a6\u30f3\u30c9\uff080V\uff09\u3092\u57fa\u6e96\u306b\u4fe1\u53f7\u306e\u96fb\u5727\u30ec\u30d9\u30eb\u3067LOW\u3068 HIGH\u304c\u6c7a\u307e\u308b\u4fe1\u53f7\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5dee\u52d5<\/td>\n<td>\u4e00\u3064\u306e\u4fe1\u53f7\u5f53\u305f\u308a\u5fc5\u305a2\u672c\u306e\u4fe1\u53f7\u304c\u4f7f\u308f\u308c\u308b\u3002\u4e8c\u3064\u306e\u4fe1\u53f7\u306e\u96fb\u4f4d\u5dee\u304c\u4fe1\u53f7\u30ec\u30d9\u30eb\u306b\u306a\u308b\u3002\u4f8b\u3048\u3070\u5dee\u304c\u30d7\u30e9\u30b9\u3067\u3042\u308c\u3070HIGH\u3001\u30de\u30a4\u30ca\u30b9\u3067\u3042\u308c\u3070LOW\u306e\u3088\u3046\u306b\u8a8d\u8b58\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>LSB<\/td>\n<td>\u6700\u4e0b\u4f4d\u30d3\u30c3\u30c8\u3002Least Significant Bit\u3002<\/td>\n<\/tr>\n<tr>\n<td>MSB<\/td>\n<td>\u6700\u4e0a\u4f4d\u30d3\u30c3\u30c8\u3002Most Significant Bit\u3002<\/td>\n<\/tr>\n<tr>\n<td>baud<\/td>\n<td>\u5909\u8abf\u901f\u5ea6\u5358\u4f4d\u3002\u30dc\u30fc\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u914d\u7dda<\/h3>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/wiri.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-657\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/wiri-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/wiri-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/wiri-768x576.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/wiri.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3057\u305f\u3002\u7dda\u304c\u3044\u3063\u3071\u3044\u3067\u6c5a\u3044\u306a\u3041\u3002<\/p>\n<h3>SPI\u901a\u4fe1\u306e\u624b\u9806<\/h3>\n<p>\u30e9\u30ba\u30d1\u30a4-IC\u306fMaster-Slave\u306e\u95a2\u4fc2\u306b\u3042\u308b\u3001\u3042\u3001SM\u3060\u306d\u3002Master\u306eChipSelect(SlaveSelect)\u304c\u8907\u6570\u3042\u308c\u3070IC\u306f\u8907\u6570\u7e4b\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002Master\u304c\u901a\u4fe1\u306e\u5236\u5fa1\u3092\u884c\u3046\u3002<\/p>\n<ol>\n<li>CS\u306f\u5f85\u6a5f\u72b6\u614b\u306e\u5834\u5408HIGH\u306b\u306a\u3063\u3066\u308b\u3002<\/li>\n<li>\u4f7f\u7528\u3057\u305f\u3044CS\u3092LOW\u306b\u3059\u308b\u3068\u901a\u4fe1\u304c\u958b\u59cb\u3055\u308c\u308b\u3002<\/li>\n<li>SCLK\u306eL\u30fbH\u3092\u5207\u308a\u66ff\u3048\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30c7\u30fc\u30bf\u304c1bit\u305a\u3064\u3084\u308a\u53d6\u308a\u3055\u308c\u308b\u3002<\/li>\n<li>Master\u2192Slave\u306e\u5834\u5408MOSI\u3001Slave\u2192Master\u306e\u5834\u5408MISO\u304c\u4f7f\u308f\u308c\u308b\u3002\u4fe1\u53f7\u306e\u9806\u756a\u306f\u3001\u4f8b\u3048\u3070&#8221;10110010&#8243;\u3063\u3066\u30c7\u30fc\u30bf\u306e\u5834\u54081\u21920\u21921\u21921\u21920\u21920\u21921\u21920\u306e\u9806\u3067\u3084\u308a\u53d6\u308a\u3055\u308c\u308b\u3002<\/li>\n<li>\u3084\u308a\u53d6\u308a\u304c\u7d42\u308f\u308b\u3068CS\u3092HIGH\u306b\u3057\u3066\u5f85\u6a5f\u72b6\u614b\u306b\u623b\u3057\u3066\u7d42\u308f\u308a\u3002<\/li>\n<\/ol>\n<p>\u3081\u3061\u3083\u3081\u3061\u3083\u3056\u3063\u304f\u308a\u3053\u3093\u306a\u611f\u3058\u307f\u305f\u3044\u3002<\/p>\n<h3>MCP3208\u3068\u306e\u30c7\u30fc\u30bf\u306e\u3084\u308a\u53d6\u308a<\/h3>\n<p>\u982d\u306e\u4e2d\u304c\u3053\u3093\u304c\u3089\u304c\u3063\u3066\u308b\u3002\u3048\u30fc\u3068\u3001\u4e0a\u8a183\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u306b\u5408\u308f\u305b\u3064\u3064\u3001<\/p>\n<ul>\n<li>Master\u2192Slave\u306b\u958b\u59cb\u30d3\u30c3\u30c8+\u5236\u5fa1\u30d3\u30c3\u30c8\u3067\u8a085bit\u9001\u4fe1\u3059\u308b\u3002\u958b\u59cb\u30d3\u30c3\u30c8\u306f1\u3001\u5236\u5fa1\u30d3\u30c3\u30c8\u306e\u69cb\u6210\u306f\u3001\u30b7\u30f3\u30b0\u30eb\u30a8\u30f3\u30c9or\u5dee\u52d5\u306e\u9078\u629e\u30671bit\u3001D2\u30fbD1\u30fbD0\u306e3bit\u3067CH0\uff5eCH7\u3092\u9078\u629e\u3059\u308b(\u4e0b\u56f3)\u3002<\/li>\n<li>D0\u304c\u9001\u4fe1\u3057\u7d42\u308f\u308b\u3068\u30011.5\u30af\u30ed\u30c3\u30af\u306e\u30a2\u30ca\u30ed\u30b0\u5165\u529b\u30b5\u30f3\u30d7\u30eb\u6642\u9593\u304c\u5165\u308a\u305d\u3053\u306f\u4e0d\u5b9a\u30d3\u30c3\u30c8\u306b\u306a\u308b\u3001\u305d\u306e\u6b21\u306e\u30af\u30ed\u30c3\u30af\u304b\u3089Slave\u2192Master\u306b\u30c7\u30fc\u30bf\u304c13bit\u9001\u4fe1\u3055\u308c\u308b\u3002\u6700\u521d\u306bnull\u306e1bit\u3001\u305d\u306e\u6b21\u304b\u308912bit\u5206\u304c\u30a2\u30ca\u30ed\u30b0\/\u30c7\u30b8\u30bf\u30eb\u5909\u63db\u3057\u305f\u30c7\u30fc\u30bf\u3002<\/li>\n<\/ul>\n<p>\u3053\u3053\u307e\u3067\u306e\u30a4\u30e1\u30fc\u30b8<\/p>\n<table width=\"764\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"99\">\u30af\u30ed\u30c3\u30af<\/td>\n<td style=\"text-align: center;\" width=\"35\">1<\/td>\n<td style=\"text-align: center;\" width=\"35\">2<\/td>\n<td style=\"text-align: center;\" width=\"35\">3<\/td>\n<td style=\"text-align: center;\" width=\"35\">4<\/td>\n<td style=\"text-align: center;\" width=\"35\">5<\/td>\n<td style=\"text-align: center;\" width=\"35\">6<\/td>\n<td style=\"text-align: center;\" width=\"35\">7<\/td>\n<td style=\"text-align: center;\" width=\"35\">8<\/td>\n<td style=\"text-align: center;\" width=\"35\">9<\/td>\n<td style=\"text-align: center;\" width=\"35\">10<\/td>\n<td style=\"text-align: center;\" width=\"35\">11<\/td>\n<td style=\"text-align: center;\" width=\"35\">12<\/td>\n<td style=\"text-align: center;\" width=\"35\">13<\/td>\n<td style=\"text-align: center;\" width=\"35\">14<\/td>\n<td style=\"text-align: center;\" width=\"35\">15<\/td>\n<td style=\"text-align: center;\" width=\"35\">16<\/td>\n<td style=\"text-align: center;\" width=\"35\">17<\/td>\n<td style=\"text-align: center;\" width=\"35\">18<\/td>\n<td style=\"text-align: center;\" width=\"35\">19<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">MOSI(DIN)<\/td>\n<td style=\"text-align: center;\">\u958b\u59cb<\/td>\n<td style=\"text-align: center;\">\u30b7\u5dee<\/td>\n<td style=\"text-align: center;\">D2<\/td>\n<td style=\"text-align: center;\">D1<\/td>\n<td style=\"text-align: center;\">D0<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">MISO(DOUT)<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\">null<\/td>\n<td style=\"text-align: center;\">B11<\/td>\n<td style=\"text-align: center;\">B10<\/td>\n<td style=\"text-align: center;\">B9<\/td>\n<td style=\"text-align: center;\">B8<\/td>\n<td style=\"text-align: center;\">B7<\/td>\n<td style=\"text-align: center;\">B6<\/td>\n<td style=\"text-align: center;\">B5<\/td>\n<td style=\"text-align: center;\">B4<\/td>\n<td style=\"text-align: center;\">B3<\/td>\n<td style=\"text-align: center;\">B2<\/td>\n<td style=\"text-align: center;\">B1<\/td>\n<td style=\"text-align: center;\">B0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3067\u3001\u3053\u308c\u30928\u30d3\u30c3\u30c8\u3054\u3068\u306b\u533a\u5207\u3089\u306a\u3044\u3068\u306a\u3089\u306a\u3044\u307f\u305f\u3044\u3002\u7406\u7531\u306f\u77e5\u308a\u307e\u305b\u3093\u3002\u4eca\u5168\u90e8\u306719bit\u306a\u306e\u30678\u306e\u500d\u6570\u3067\u300116\u30d3\u30c3\u30c8\u3060\u3068\u6ea2\u308c\u3061\u3083\u3046\u306e\u306724\u30d3\u30c3\u30c8\u306b\u3059\u308b\u3002\u30b1\u30c4\u5408\u308f\u305b\u306b\u3059\u308b\u3088\u3046\u3067\u3001\u5148\u982d\u30920\u30d5\u30a3\u30eb\u3059\u308b\u3002\u3053\u308c\u3082\u7406\u7531\u306f\u77e5\u308a\u307e\u305b\u3093\u3002\u6271\u3044\u3084\u3059\u304f\u306a\u308b\u304b\u3089\u307f\u305f\u3044\u306a\u8a71\u3089\u3057\u3044\u3002\u3059\u308b\u3068<\/p>\n<table width=\"809\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"99\">\u30af\u30ed\u30c3\u30af<\/td>\n<td style=\"text-align: center;\" width=\"20\"><span style=\"background-color: #ffcc99;\">1<\/span><\/td>\n<td style=\"text-align: center;\" width=\"20\"><span style=\"background-color: #ffcc99;\">2<\/span><\/td>\n<td style=\"text-align: center;\" width=\"20\"><span style=\"background-color: #ffcc99;\">3<\/span><\/td>\n<td style=\"text-align: center;\" width=\"20\"><span style=\"background-color: #ffcc99;\">4<\/span><\/td>\n<td style=\"text-align: center;\" width=\"20\"><span style=\"background-color: #ffcc99;\">5<\/span><\/td>\n<td style=\"text-align: center;\" width=\"42\"><span style=\"background-color: #ffcc99;\">6<\/span><\/td>\n<td style=\"text-align: center;\" width=\"40\"><span style=\"background-color: #ffcc99;\">7<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #ffcc99;\">8<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #ccffcc;\">9<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #ccffcc;\">10<\/span><\/td>\n<td style=\"text-align: center;\" width=\"28\"><span style=\"background-color: #ccffcc;\">11<\/span><\/td>\n<td style=\"text-align: center;\" width=\"34\"><span style=\"background-color: #ccffcc;\">12<\/span><\/td>\n<td style=\"text-align: center;\" width=\"38\"><span style=\"background-color: #ccffcc;\">13<\/span><\/td>\n<td style=\"text-align: center;\" width=\"38\"><span style=\"background-color: #ccffcc;\">14<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #ccffcc;\">15<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #ccffcc;\">16<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #99ccff;\">17<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #99ccff;\">18<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #99ccff;\">19<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #99ccff;\">20<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #99ccff;\">21<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #99ccff;\">22<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #99ccff;\">23<\/span><\/td>\n<td style=\"text-align: center;\" width=\"30\"><span style=\"background-color: #99ccff;\">24<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">MOSI(DIN)<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">\u958b\u59cb<\/td>\n<td style=\"text-align: center;\">\u30b7\u5dee<\/td>\n<td style=\"text-align: center;\">D2<\/td>\n<td style=\"text-align: center;\">D1<\/td>\n<td style=\"text-align: center;\">D0<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<td style=\"text-align: center;\">x<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">MISO(DOUT)<\/td>\n<td style=\"text-align: center;\">?<\/td>\n<td style=\"text-align: center;\">?<\/td>\n<td style=\"text-align: center;\">?<\/td>\n<td style=\"text-align: center;\">?<\/td>\n<td style=\"text-align: center;\">?<\/td>\n<td style=\"text-align: center;\">?<\/td>\n<td style=\"text-align: center;\">?<\/td>\n<td style=\"text-align: center;\">?<\/td>\n<td style=\"text-align: center;\">?<\/td>\n<td style=\"text-align: center;\">?<\/td>\n<td style=\"text-align: center;\">?<\/td>\n<td style=\"text-align: center;\">null<\/td>\n<td style=\"text-align: center;\">B11<\/td>\n<td style=\"text-align: center;\">B10<\/td>\n<td style=\"text-align: center;\">B9<\/td>\n<td style=\"text-align: center;\">B8<\/td>\n<td style=\"text-align: center;\">B7<\/td>\n<td style=\"text-align: center;\">B6<\/td>\n<td style=\"text-align: center;\">B5<\/td>\n<td style=\"text-align: center;\">B4<\/td>\n<td style=\"text-align: center;\">B3<\/td>\n<td style=\"text-align: center;\">B2<\/td>\n<td style=\"text-align: center;\">B1<\/td>\n<td style=\"text-align: center;\">B0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u3046\u306a\u308b\u3002x\u306f0\u30681\u306e\u3069\u3063\u3061\u3067\u3082\u3044\u3044\u3002?\u306f\u4e0d\u5b9a\u3002\u307b\u3093\u3068\u306f\u30af\u30ed\u30c3\u30af\u306e\u4e0b\u964d\u90e8\u3067\u30c7\u30fc\u30bf\u3092\u9001\u308b\u304b\u4e0a\u6607\u90e8\u3067\u30c7\u30fc\u30bf\u3092\u9001\u308b\u304b\u3068\u304b\u3001\u30af\u30ed\u30c3\u30af\u306e\u57fa\u6e96\u306fLow\u304bHigh\u304b\u3068\u304b\u95a2\u4fc2\u304c\u3042\u308b\u306e\u3067\u3001\u3053\u3046\u3044\u3046\u8868\u3067\u306e\u66f8\u304d\u65b9\u306f\u3042\u3093\u307e\u3088\u304f\u306a\u3044\u307f\u305f\u3044\u3002\u307e\u3041\u3001\u3053\u308c\u3092\u53c2\u8003\u306b\u3001\u30e9\u30ba\u30d1\u30a4\u306eGPIO\u3092\u64cd\u4f5c\u3059\u308b\u3088\u3046\u5b9f\u88c5\u3057\u3066\u3044\u304f\u611f\u3058\u306b\u306a\u308b\u3002\u4ffa\u306b\u305d\u3053\u307e\u3067\u3067\u304d\u308b\u306e\u3060\u308d\u3046\u304b\u3002<\/p>\n<div id=\"attachment_650\" style=\"width: 200px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-650\" class=\"size-medium wp-image-650\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit1-190x300.png\" alt=\"\" width=\"190\" height=\"300\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit1-190x300.png 190w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit1.png 394w\" sizes=\"auto, (max-width: 190px) 100vw, 190px\" \/><\/a><p id=\"caption-attachment-650\" class=\"wp-caption-text\">\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u3088\u308a<\/p><\/div>\n<div id=\"attachment_651\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit2.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-651\" class=\"size-medium wp-image-651\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit2-300x178.png\" alt=\"\" width=\"300\" height=\"178\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit2-300x178.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit2-768x456.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit2-1024x608.png 1024w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit2.png 1315w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-651\" class=\"wp-caption-text\">\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u3088\u308a<\/p><\/div>\n<div id=\"attachment_652\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit3.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-652\" class=\"size-medium wp-image-652\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit3-300x137.png\" alt=\"\" width=\"300\" height=\"137\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit3-300x137.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit3-768x350.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit3-1024x466.png 1024w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/bit3.png 1318w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-652\" class=\"wp-caption-text\">\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u3088\u308a<\/p><\/div>\n<h3>Rasberry Pi \u306eSPI\u3092\u6709\u52b9\u5316<\/h3>\n<pre class=\"shell\">$ sudo raspi-config<\/pre>\n<p>5 Interfacing Options\u2192P4 SPI\u2192Yes\u3002<\/p>\n<pre class=\"shell\">$ ls \/dev\/spi*<\/pre>\n<p>\u3067\u3001\/dev\/spidev0.0\u3068\/dev\/spidev0.1\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u3088\u3044\u3002<\/p>\n<h3>pigpio\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u5b9f\u88c5<\/h3>\n<p>\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3001web\u4e0a\u306e\u60c5\u5831\u304c\u4ed6\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u6bd4\u3079\u3066\u5c11\u306a\u3044\u6c17\u304c\u3059\u308b\u2026\u3002\u898b\u69d8\u898b\u771f\u4f3c\u3067\u66f8\u3044\u3066\u307f\u308b\u3002\u3067\u304d\u305fpy\u30d5\u30a1\u30a4\u30eb\u306f$ sudo chmod \u3067\u9069\u5207\u306a\u6a29\u9650\u4ed8\u3051\u308b\u3002<\/p>\n<pre class=\"python\">import pigpio\r\npi = pigpio.pi()\r\nh = pi.spi_open(0, 50000, 0)\r\n\r\nif not pi.connected:\r\n   exit(0)\r\n\r\n(count, rx_data) = pi.spi_xfer(h, [6, 0, 0])\r\nprint(count)\r\nprint(bin(rx_data[1]))\r\nprint(bin(rx_data[2]))\r\n\r\npi.spi_close(h)\r\npi.stop()<\/pre>\n<p>\u3068\u308a\u3042\u3048\u305a\u3053\u3093\u306a\u611f\u3058\u3002\u3067\u5b9f\u884c\u3002<\/p>\n<pre class=\"shell\">3\r\n0b0\r\n0b0<\/pre>\n<p>0\u3057\u304b\u8fd4\u3063\u3066\u3053\u306a\u3044\u2026\u3002\u306a\u3093\u3067\u3060\u30fc\u3001\u898b\u5f53\u304c\u3064\u304b\u306a\u3044\u306a\u3002\u30a8\u30e9\u30fc\u306f\u8d77\u304d\u3066\u306a\u3044\u306e\u306b\u306a\u3001\u30c1\u30c3\u30d7\u304c\u30a4\u30ab\u308c\u3066\u3093\u306e\u304b\u306a\u3002\u306a\u3093\u3060\u308d\u3046\u306a\u3093\u3060\u308d\u3046\u3001\u3068\u3044\u308d\u3044\u308d\u8a66\u3057\u305f\u7d50\u679c<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/breic.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-661\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/breic-300x200.png\" alt=\"\" width=\"300\" height=\"200\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/breic-300x200.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/breic-768x512.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/breic.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>IC\u304c\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u306b\u3061\u3083\u3093\u3068\u523a\u3055\u3063\u3066\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u30a4\u30ab\u308c\u3066\u3093\u306e\u306f\u4ffa\u306e\u30a2\u30bf\u30de\u3067\u3057\u305f\u3002\u3055\u3041\u3001\u3064\u3044\u3067\u306b<\/p>\n<pre class=\"python\">bi = rx_data[1] &lt;&lt; 8 | rx_data[2]\r\n\r\nprint(bi)\r\nprint(bin(bi))<\/pre>\n<p>\u306a\u3069\u3068\u8ffd\u8a18\u3057\u3001\u518d\u5ea6\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<pre class=\"shell\">3\r\n0b1011\r\n0b1001010\r\n2890\r\n0b101101001010<\/pre>\n<p>\u3046\u3072\u3087\u30fc\u3061\u3083\u3093\u3068\u51fa\u305f!\u3084\u3063\u305f\u305c!<\/p>\n<h4>4\u884c\u76ee<\/h4>\n<p><a href=\"http:\/\/abyz.me.uk\/rpi\/pigpio\/python.html#spi_open\">spi_open(spi_channel, baud, spi_flags)<\/a>\u3067SPI\u306e\u63a5\u7d9a\u3092\u3059\u308b\u3002<\/p>\n<ul>\n<li>spi_channnel\n<ul>\n<li>\u914d\u7dda\u3057\u305fCEx\u306b\u5408\u308f\u305b\u3066\u6307\u5b9a\u30020-2\u3002<\/li>\n<\/ul>\n<\/li>\n<li>baud\n<ul>\n<li>\u5909\u63db\u901f\u5ea6\u6307\u5b9a\u3001\u5358\u4f4dbps\u3002\u3053\u3053\u3067\u306f50kbps\u2026\u306a\u306e\u304b\u306a\u3002<\/li>\n<\/ul>\n<\/li>\n<li>spi_flags<\/li>\n<\/ul>\n<blockquote><p>spi_flags consists of the least significant 22 bits.<\/p>\n<p><code>21\u00a020\u00a019\u00a018\u00a017\u00a016\u00a015\u00a014\u00a013\u00a012\u00a011\u00a010\u00a0\u00a09\u00a0\u00a08\u00a0\u00a07\u00a0\u00a06\u00a0\u00a05\u00a0\u00a04\u00a0\u00a03\u00a0\u00a02\u00a0\u00a01\u00a0\u00a00<br \/>\nb\u00a0\u00a0b\u00a0\u00a0b\u00a0\u00a0b\u00a0\u00a0b\u00a0\u00a0b\u00a0\u00a0R\u00a0\u00a0T\u00a0\u00a0n\u00a0\u00a0n\u00a0\u00a0n\u00a0\u00a0n\u00a0\u00a0W\u00a0\u00a0A\u00a0u2\u00a0u1\u00a0u0\u00a0p2\u00a0p1\u00a0p0\u00a0\u00a0m\u00a0\u00a0m<br \/>\n<\/code><br \/>\nmm defines the SPI mode.<\/p>\n<p>WARNING: modes 1 and 3 do not appear to work on the auxiliary SPI.<\/p>\n<p><code>Mode\u00a0POL\u00a0PHA<br \/>\n0\u00a0\u00a0\u00a0\u00a00\u00a0\u00a0\u00a00<br \/>\n1\u00a0\u00a0\u00a0\u00a00\u00a0\u00a0\u00a01<br \/>\n2\u00a0\u00a0\u00a0\u00a01\u00a0\u00a0\u00a00<br \/>\n3\u00a0\u00a0\u00a0\u00a01\u00a0\u00a0\u00a01<br \/>\n<\/code><br \/>\npx is 0 if CEx is active low (default) and 1 for active high.<\/p>\n<p>ux is 0 if the CEx GPIO is reserved for SPI (default) and 1 otherwise.<\/p>\n<p>A is 0 for the main SPI, 1 for the auxiliary SPI.<\/p>\n<p>W is 0 if the device is not 3-wire, 1 if the device is 3-wire. Main SPI only.<\/p>\n<p>nnnn defines the number of bytes (0-15) to write before switching the MOSI line to MISO to read data. This field is ignored if W is not set. Main SPI only.<\/p>\n<p>T is 1 if the least significant bit is transmitted on MOSI first, the default (0) shifts the most significant bit out first. Auxiliary SPI only.<\/p>\n<p>R is 1 if the least significant bit is received on MISO first, the default (0) receives the most significant bit first. Auxiliary SPI only.<\/p>\n<p>bbbbbb defines the word size in bits (0-32). The default (0) sets 8 bits per word. Auxiliary SPI only.<\/p>\n<p>The\u00a0<a href=\"http:\/\/abyz.me.uk\/rpi\/pigpio\/python.html#spi_read\">spi_read<\/a>,\u00a0<a href=\"http:\/\/abyz.me.uk\/rpi\/pigpio\/python.html#spi_write\">spi_write<\/a>, and\u00a0<a href=\"http:\/\/abyz.me.uk\/rpi\/pigpio\/python.html#spi_xfer\">spi_xfer<\/a>\u00a0functions transfer data packed into 1, 2, or 4 bytes according to the word size in bits.<\/p>\n<p>For bits 1-8 there will be one byte per character. For bits 9-16 there will be two bytes per character. For bits 17-32 there will be four bytes per character.<\/p>\n<p>Multi-byte transfers are made in least significant byte first order.<\/p>\n<p>E.g. to transfer 32 11-bit words data should contain 64 bytes.<\/p>\n<p>E.g. to transfer the 14 bit value 0x1ABC send the bytes 0xBC followed by 0x1A.<\/p>\n<p>The other bits in flags should be set to zero.<\/p>\n<p><b><small>Example<\/small><\/b><\/p>\n<p><code>#\u00a0open\u00a0SPI\u00a0device\u00a0on\u00a0channel\u00a01\u00a0in\u00a0mode\u00a03\u00a0at\u00a050000\u00a0bits\u00a0per\u00a0second<\/code><\/p>\n<p>h\u00a0=\u00a0pi.spi_open(1,\u00a050000,\u00a03)<\/p><\/blockquote>\n<p>\u8272\u3005\u8a2d\u5b9a\u300222bit\u309210\u9032\u6570\u306b\u5909\u63db\u3057\u3066\u6307\u5b9a\u3002<\/p>\n<h4>6-7\u884c\u76ee<\/h4>\n<p><a href=\"http:\/\/abyz.me.uk\/rpi\/pigpio\/code\/MAX6675_py.zip\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/a>\u306b\u3042\u3063\u305f\u306e\u3067\u4e00\u5fdc\u5165\u308c\u3066\u308b\u3002\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u304c\u78ba\u7acb\u3057\u3066\u306a\u304b\u3063\u305f\u3089\u51e6\u7406\u3092\u7d42\u3048\u308b\u3002<\/p>\n<h4>9\u884c\u76ee<\/h4>\n<p><a href=\"http:\/\/abyz.me.uk\/rpi\/pigpio\/python.html#spi_xfer\">spi_xfer(handle, data)<\/a>\u3067\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057\u3066\u623b\u308a\u5024\u3092\u5f97\u308b\u3002<\/p>\n<ul>\n<li>handle\n<ul>\n<li>4\u884c\u76ee\u306e\u623b\u308a\u5024\u3002<\/li>\n<\/ul>\n<\/li>\n<li>data\n<ul>\n<li>\u9001\u4fe1\u30c7\u30fc\u30bf\u3002n\u9032\u6570\u3067\u306e\u5f62\u5f0f\u6df7\u5728\u5927\u4e08\u592b\u307f\u305f\u3044\u3002[]\u306e\u30ea\u30b9\u30c8\u4f7f\u3048\u308b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>count\u306frx_data\u306e\u8981\u7d20\u6570\u3002\u3067\u3001\u3053\u306e\u6642\u70b9\u3067\u306e\u3001\u623b\u308a\u5024\u683c\u7d0d\u3057\u305frx_data\u306e\u30a4\u30e1\u30fc\u30b8\u304c<\/p>\n<table width=\"535\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"55\">rx_data<\/td>\n<td style=\"text-align: center;\" colspan=\"8\" width=\"160\">[0]<\/td>\n<td style=\"text-align: center;\" colspan=\"8\" width=\"160\">[1]<\/td>\n<td style=\"text-align: center;\" colspan=\"8\" width=\"160\">[2]<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u30d0\u30a4\u30c8<\/td>\n<td style=\"text-align: center;\" colspan=\"8\">1<\/td>\n<td style=\"text-align: center;\" colspan=\"8\">2<\/td>\n<td style=\"text-align: center;\" colspan=\"8\">3<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u30d3\u30c3\u30c8<\/td>\n<td style=\"text-align: center;\">8<\/td>\n<td style=\"text-align: center;\">7<\/td>\n<td style=\"text-align: center;\">6<\/td>\n<td style=\"text-align: center;\">5<\/td>\n<td style=\"text-align: center;\">4<\/td>\n<td style=\"text-align: center;\">3<\/td>\n<td style=\"text-align: center;\">2<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">8<\/td>\n<td style=\"text-align: center;\">7<\/td>\n<td style=\"text-align: center;\">6<\/td>\n<td style=\"text-align: center;\">5<\/td>\n<td style=\"text-align: center;\">4<\/td>\n<td style=\"text-align: center;\">3<\/td>\n<td style=\"text-align: center;\">2<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">8<\/td>\n<td style=\"text-align: center;\">7<\/td>\n<td style=\"text-align: center;\">6<\/td>\n<td style=\"text-align: center;\">5<\/td>\n<td style=\"text-align: center;\">4<\/td>\n<td style=\"text-align: center;\">3<\/td>\n<td style=\"text-align: center;\">2<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u30c7\u30fc\u30bf<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<h4>15\u884c\u76ee<\/h4>\n<p>rx_data[0]\u306f\u306a\u3093\u3082\u5165\u3063\u3066\u306a\u3044\u306e\u3067\u4f7f\u308f\u306a\u3044\u300212bit\u306e\u60c5\u5831\u304crx_data[1]\u306e\u4e0b\u4f4d4bit\u3001rx_data[2]\u306e8bit\u306b\u5206\u304b\u308c\u3066\u308b\u306e\u3067\u305d\u308c\u3092\u7d50\u5408\u3059\u308b\u3002<\/p>\n<div>\n<ul>\n<li>rx_data[1] &lt;&lt; 8\n<ul>\n<li>rx_data[1]\u306e\u30c7\u30fc\u30bf\u30928\u6841\u5de6\u30b7\u30d5\u30c8\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<table width=\"449\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"73\">\u30d3\u30c3\u30c8<\/td>\n<td style=\"text-align: center;\" width=\"28\">16<\/td>\n<td style=\"text-align: center;\" width=\"28\">15<\/td>\n<td style=\"text-align: center;\" width=\"28\">14<\/td>\n<td style=\"text-align: center;\" width=\"28\">13<\/td>\n<td style=\"text-align: center;\" width=\"28\">12<\/td>\n<td style=\"text-align: center;\" width=\"28\">11<\/td>\n<td style=\"text-align: center;\" width=\"28\">10<\/td>\n<td style=\"text-align: center;\" width=\"20\">9<\/td>\n<td style=\"text-align: center;\" width=\"20\">8<\/td>\n<td style=\"text-align: center;\" width=\"20\">7<\/td>\n<td style=\"text-align: center;\" width=\"20\">6<\/td>\n<td style=\"text-align: center;\" width=\"20\">5<\/td>\n<td style=\"text-align: center;\" width=\"20\">4<\/td>\n<td style=\"text-align: center;\" width=\"20\">3<\/td>\n<td style=\"text-align: center;\" width=\"20\">2<\/td>\n<td style=\"text-align: center;\" width=\"20\">1<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">rx_data[1]<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<ul>\n<li>| rx_data[2]\n<ul>\n<li>\u2191\u306e\u30b7\u30d5\u30c8\u3057\u305f\u30c7\u30fc\u30bf\u3068\u8ad6\u7406\u548c\u3092\u53d6\u308b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<table width=\"449\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"73\">\u30d3\u30c3\u30c8<\/td>\n<td style=\"text-align: center;\" width=\"28\">16<\/td>\n<td style=\"text-align: center;\" width=\"28\">15<\/td>\n<td style=\"text-align: center;\" width=\"28\">14<\/td>\n<td style=\"text-align: center;\" width=\"28\">13<\/td>\n<td style=\"text-align: center;\" width=\"28\">12<\/td>\n<td style=\"text-align: center;\" width=\"28\">11<\/td>\n<td style=\"text-align: center;\" width=\"28\">10<\/td>\n<td style=\"text-align: center;\" width=\"20\">9<\/td>\n<td style=\"text-align: center;\" width=\"20\">8<\/td>\n<td style=\"text-align: center;\" width=\"20\">7<\/td>\n<td style=\"text-align: center;\" width=\"20\">6<\/td>\n<td style=\"text-align: center;\" width=\"20\">5<\/td>\n<td style=\"text-align: center;\" width=\"20\">4<\/td>\n<td style=\"text-align: center;\" width=\"20\">3<\/td>\n<td style=\"text-align: center;\" width=\"20\">2<\/td>\n<td style=\"text-align: center;\" width=\"20\">1<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">rx_data[1]<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">rx_data[2]<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">bin<\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u305d\u3046\u3059\u3063\u3068bin\u306b\u7d50\u5408\u30c7\u30fc\u30bf\u304c\u5165\u308b\u3068\u3002\u3084\u3063\u3066\u3066\u3088\u304b\u3063\u305f\u57fa\u672c\u60c5\u5831\u6280\u8853\u8005\u8a66\u9a13\u30022\u9032\u6570\u304b\u308910\u9032\u6570\u306b\u5909\u63db\u3057\u306a\u3044\u3068\u99c4\u76ee\u304b\u306a\u30fc\u3063\u3066\u601d\u3063\u3066\u305f\u3089\u3001print()\u3057\u305f\u3089\u306a\u3093\u304b\u5909\u63db\u3055\u308c\u305f\u3002\u3075\u30fc\u3093\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u660e\u308b\u3055\u3068\u6570\u5024\u306e\u30ed\u30b0\u53d6\u3063\u3066\u3001\u30b3\u30fc\u30c9\u4e0a\u3067\u95be\u5024\u3092\u8a2d\u5b9a\u3057\u3066\u3042\u3052\u308a\u3083\u3044\u3044\u3093\u3060\u306a\u3002\u3068\u308a\u3042\u3048\u305aAD\u5909\u63db\u306f\u3053\u3053\u307e\u3067\u30fc\u3002\u6b21\u306fLED\u30b5\u30fc\u30af\u30eb\u30e9\u30a4\u30c8\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3002<\/p>\n<h2>\u305d\u3046\u3044\u3048\u3070\u62b5\u6297\u30bb\u30c3\u30c8\u3092\u8cb7\u3063\u305f<\/h2>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/reg-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-632\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/reg-1-300x197.png\" alt=\"\" width=\"300\" height=\"197\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/reg-1-300x197.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/reg-1-768x505.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/reg-1.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>eBay\u3067<a href=\"https:\/\/www.ebay.com\/sch\/i.html?_from=R40&amp;_trksid=m570.l1313&amp;_nkw=resistor&amp;_sacat=0\">resistor\u3068\u304b\u3067\u691c\u7d22<\/a>\u3059\u308b\u3068\u91d1\u5c5e\u76ae\u819c\u62b5\u6297\u3067\u3044\u308d\u3093\u306a\u62b5\u6297\u5024\u306e\u3084\u3064\u304c\u8cb7\u3048\u308b\u300250values500pcs\u304b\u30641\/2W\u3067900\u5186\u3050\u3089\u3044\u3060\u3063\u305f\u3002\u6d77\u5916\u304b\u3089\u306a\u306e\u306b\u9001\u6599\u7121\u6599\u3060\u3057\u3001\u3059\u3052\u3048\u306a\u3002\u305f\u3060\u3001\u30b7\u30e7\u30c3\u30d7\u306e\u8aac\u660e\u3059\u308b\u30bb\u30c3\u30c8\u5185\u8a33\u304c<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/FA1646331603C753CAD9D2639D3613D2C993FD1323D2665616CBD2A616C6339BCC8366CACC5346CECEF583.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-631\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/FA1646331603C753CAD9D2639D3613D2C993FD1323D2665616CBD2A616C6339BCC8366CACC5346CECEF583-300x224.jpg\" alt=\"\" width=\"300\" height=\"224\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/FA1646331603C753CAD9D2639D3613D2C993FD1323D2665616CBD2A616C6339BCC8366CACC5346CECEF583-300x224.jpg 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2019\/08\/FA1646331603C753CAD9D2639D3613D2C993FD1323D2665616CBD2A616C6339BCC8366CACC5346CECEF583.jpg 429w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3060\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u5b9f\u969b\u5c4a\u3044\u305f\u306e\u306f<\/p>\n<table style=\"height: 424px;\" width=\"795\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"43\"><span style=\"font-size: 18px;\">1.2<\/span><\/td>\n<td style=\"text-align: center;\" width=\"43\"><span style=\"font-size: 18px;\">1.5<\/span><\/td>\n<td style=\"text-align: center;\" width=\"43\"><span style=\"font-size: 18px;\">1.8<\/span><\/td>\n<td style=\"text-align: center;\" width=\"43\"><span style=\"font-size: 18px;\">6.8<\/span><\/td>\n<td style=\"text-align: center;\" width=\"43\"><span style=\"font-size: 18px;\">10<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">18<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">20<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">33<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">36<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">43<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">47<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">56<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">68<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">100<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">270<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">300<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">390<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">470<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">680<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">1k<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">1.2k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">1.5k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">2k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">2.4k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">2.7k<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">3k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">3.3k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">4.7k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">5.6k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">6.8k<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">8.2k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">9.1k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">10k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">15k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">18k<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">22k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">27k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">33k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">39k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">47k<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">68k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">82k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">100k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">150k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">180k<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">200k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">220k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">300k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">330k<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-size: 18px;\">1M<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3067\u3042\u308a\u3001\u4e00\u81f4\u7387\u306f\u3001\u307e\u3055\u304b\u306e44%\u3060\u3063\u305f\u3002\u306a\u306e\u3067\u305d\u3046\u3044\u3046\u306e\u304c\u6c17\u306b\u306a\u308b\u4eba\u306f\u4f7f\u308f\u306a\u3044\u307b\u3046\u304c\u3044\u3044\u3068\u601d\u3046\u3002<\/p>\n<h2>\u53c2\u8003<\/h2>\n<p><a href=\"http:\/\/www.kotaden.com\/stage3_4_index.html\">http:\/\/www.kotaden.com\/stage3_4_index.html<\/a><\/p>\n<p><a href=\"https:\/\/ja.wikipedia.org\/wiki\/%E5%88%86%E5%9C%A7%E5%9B%9E%E8%B7%AF\">https:\/\/ja.wikipedia.org\/wiki\/%E5%88%86%E5%9C%A7%E5%9B%9E%E8%B7%AF<\/a><\/p>\n<p><a href=\"http:\/\/startelc.com\/elc\/Works\/elc_W_CdsTr.html\">http:\/\/startelc.com\/elc\/Works\/elc_W_CdsTr.html<\/a><\/p>\n<p><a href=\"https:\/\/iot.keicode.com\/electronics\/photocell-led-1.php\">https:\/\/iot.keicode.com\/electronics\/photocell-led-1.php<\/a><\/p>\n<p><a href=\"https:\/\/okwave.jp\/qa\/q7748734.html\">https:\/\/okwave.jp\/qa\/q7748734.html<\/a><\/p>\n<p><a href=\"https:\/\/eleking.net\/study\/s-dccircuit\/sd-combined.html\">https:\/\/eleking.net\/study\/s-dccircuit\/sd-combined.html<\/a><\/p>\n<p><a href=\"https:\/\/www.renesas.com\/jp\/ja\/support\/technical-resources\/engineer-school\/electronic-circuits-02-diodes-transistors-fets.html\">https:\/\/www.renesas.com\/jp\/ja\/support\/technical-resources\/engineer-school\/electronic-circuits-02-diodes-transistors-fets.html<\/a><\/p>\n<p><a href=\"https:\/\/jp.rs-online.com\/web\/generalDisplay.html?id=ideas-and-advice\/ic-package-guide\">https:\/\/jp.rs-online.com\/web\/generalDisplay.html?id=ideas-and-advice\/ic-package-guide<\/a><\/p>\n<p><a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/21298b.pdf\">http:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/21298b.pdf<\/a><\/p>\n<p><a href=\"https:\/\/www.raspberrypi.org\/documentation\/hardware\/raspberrypi\/spi\/\">https:\/\/www.raspberrypi.org\/documentation\/hardware\/raspberrypi\/spi\/<\/a><\/p>\n<p><a href=\"https:\/\/www.cqpub.co.jp\/dwm\/contents\/0053\/dwm005300950.pdf\">https:\/\/www.cqpub.co.jp\/dwm\/contents\/0053\/dwm005300950.pdf<\/a><\/p>\n<p><a href=\"https:\/\/qiita.com\/ozwk\/items\/a427ed858aa9afba9aca\">https:\/\/qiita.com\/ozwk\/items\/a427ed858aa9afba9aca<\/a><\/p>\n<p><a href=\"https:\/\/synapse.kyoto\/glossary\/glossary.php?word=SPI\">https:\/\/synapse.kyoto\/glossary\/glossary.php?word=SPI<\/a><\/p>\n<p><a href=\"http:\/\/raspberrypi.sblo.jp\/article\/111197332.html\">http:\/\/raspberrypi.sblo.jp\/article\/111197332.html<\/a><\/p>\n<p><a href=\"http:\/\/arakik10.hatenablog.com\/entry\/2018\/10\/27\/152206\">http:\/\/arakik10.hatenablog.com\/entry\/2018\/10\/27\/152206<\/a><\/p>\n<p><a href=\"http:\/\/abyz.me.uk\/rpi\/pigpio\/python.html#spi_xfer\">http:\/\/abyz.me.uk\/rpi\/pigpio\/python.html#spi_xfer<\/a><\/p>\n<p><a href=\"https:\/\/decafish.blog.so-net.ne.jp\/2016-12-11\">https:\/\/decafish.blog.so-net.ne.jp\/2016-12-11<\/a><\/p>\n<p><a href=\"https:\/\/www.denshi.club\/pc\/raspi\/5raspberry-pi-zeroiot8a-d5mcp3208.html\">https:\/\/www.denshi.club\/pc\/raspi\/5raspberry-pi-zeroiot8a-d5mcp3208.html<\/a><\/p>\n<p><a href=\"https:\/\/decafish.blog.so-net.ne.jp\/2016-12-16\">https:\/\/decafish.blog.so-net.ne.jp\/2016-12-16<\/a><\/p>\n<p><a href=\"https:\/\/www.denshi.club\/pc\/raspi\/5-mcp3208.html\">https:\/\/www.denshi.club\/pc\/raspi\/5-mcp3208.html<\/a><\/p>\n<p><a href=\"https:\/\/qiita.com\/umeda_takumi\/items\/29cf4ecd7f9c33f79336\">https:\/\/qiita.com\/umeda_takumi\/items\/29cf4ecd7f9c33f79336<\/a><\/p>\n<p><a href=\"https:\/\/codeday.me\/jp\/qa\/20181218\/76730.html\">https:\/\/codeday.me\/jp\/qa\/20181218\/76730.html<\/a><\/p>\n<p><a href=\"https:\/\/qiita.com\/7shi\/items\/41d262ca11ea16d85abc\">https:\/\/qiita.com\/7shi\/items\/41d262ca11ea16d85abc<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5149\u30bb\u30f3\u30b5\u30fc \u5149\u30bb\u30f3\u30b5\u30fc\u30b9\u30a4\u30c3\u30c1\u30ad\u30c3\u30c8\u3092\u8cb7\u3063\u305f\u306f\u3044\u3044\u3082\u306e\u306e\u3001\u8aac\u660e\u66f8\u898b\u3066\u3082\u4f7f\u3044\u65b9\u304c\u305c\u3093\u305c\u3093\u308f\u304b\u3089\u306a\u3044\u3002\u306a\u306e\u3067\u8ae6\u3081\u3066\u4e00\u304b\u3089\u65b9\u6cd5\u3092\u691c\u8a0e\u3057\u3066\u307f\u308b\u3002\u3069\u3093\u306a\u65b9\u6cd5\u304c\u3042\u308b\u306e\u304b\u306a\u30fc\u3068\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308d \u30d5\u30a9\u30c8\u30ec\u30b8\u30b9\u30bf\u3092\u4f7f\u3046 \u30d5\u30a9\u30c8\u30c8\u30e9\u30f3\u30b8\u30b9\u30bf &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2019\/08\/17\/629\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":661,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[58,49,54],"class_list":["post-629","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8","tag-led","tag-raspberry-pi-zero-wh","tag-54"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=629"}],"version-history":[{"count":15,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/629\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/629\/revisions\/669"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media\/661"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}