{"id":60,"date":"2019-10-12T20:21:33","date_gmt":"2019-10-12T11:21:33","guid":{"rendered":"http:\/\/drroot.page\/wp\/?p=60"},"modified":"2019-10-12T20:23:15","modified_gmt":"2019-10-12T11:23:15","slug":"pc%e9%80%a3%e5%8b%95%e5%9e%8busb%e3%82%b9%e3%82%bf%e3%83%b3%e3%82%ac%e3%83%b3%e5%88%b6%e4%bd%9c%e3%81%ae%e8%a3%8f%e5%81%b4","status":"publish","type":"post","link":"https:\/\/drroot.page\/wp\/?p=60","title":{"rendered":"PC\u9023\u52d5\u578bUSB\u30b9\u30bf\u30f3\u30ac\u30f3\u5236\u4f5c\u306e\u88cf\u5074"},"content":{"rendered":"<h1>\u99ac\u9e7f\u2193<\/h1>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/pV74kFKMdzw\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<h1>\u5236\u4f5c\u306e\u88cf\u5074<\/h1>\n<p>PC\u3068\u9023\u52d5\u3057\u3066\u52d5\u304f\u30b9\u30bf\u30f3\u30ac\u30f3\u306f\u3069\u3046\u5236\u4f5c\u3057\u305f\u304b\u306e\u8a71\u3002<br \/>\n\u30b9\u30bf\u30f3\u30ac\u30f3\u306fUSB\u304b\u3089\u96fb\u6e90\u3092\u53d6\u3063\u3066\u308b\u306e\u3067\u5a01\u529b\u306f\u5927\u3057\u305f\u3053\u3068\u7121\u3044\u304c\u3001\u305d\u308c\u3067\u3082\u5168\u304f\u96fb\u6c17\u3092\u77e5\u3089\u306a\u3044\u4eba\u304c\u6271\u3046\u306e\u306f\u5371\u306a\u3044\u306e\u3067\u624b\u9806\u30ec\u30d9\u30eb\u3067\u306e\u8a73\u7d30\u306f\u66f8\u304b\u306a\u3044\u3002<br \/>\n\u52ff\u8ad6\u4e00\u5207\u306e\u8cac\u4efb\u306f\u53d6\u308c\u306a\u3044\u3002<\/p>\n<p><!--more--><\/p>\n<h2>\u5168\u4f53<\/h2>\n<p><a href=\"https:\/\/drroot.page\/wp\/wp-content\/uploads\/2019\/10\/ae8c09d03b9772ed3caa7a722d26ec55.png\"><img decoding=\"async\" src=\"https:\/\/drroot.page\/wp\/wp-content\/uploads\/2019\/10\/ae8c09d03b9772ed3caa7a722d26ec55.png\" alt=\"\" \/><\/a><br \/>\n\u307e\u305a\u3042\u308a\u3075\u308c\u305f\u51b7\u9670\u6975\u7ba1\u30a4\u30f3\u30d0\u30fc\u30bf\uff0b\u30b3\u30c3\u30af\u30af\u30ed\u30d5\u30c8\u30fb\u30a6\u30a9\u30eb\u30c8\u30f3\u56de\u8def\u306e\u30b9\u30bf\u30f3\u30ac\u30f3\u3092\u4f5c\u308b\u3002<br \/>\n\u30de\u30a4\u30b3\u30f3\u306f\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u3067PC\u3068\u30b3\u30de\u30f3\u30c9\u3092\u53d7\u3051\u53d6\u308a\u3001\u30b3\u30de\u30f3\u30c9\u306e\u5185\u5bb9\u306b\u5fdc\u3058\u3066MOSFET\u3092\u30aa\u30f3\u30aa\u30d5\u3055\u305b\u3066\u30b9\u30bf\u30f3\u30ac\u30f3\u3092\u99c6\u52d5\u3055\u305b\u308b\u3002<\/p>\n<p>\u4e00\u65b9PC\u5074\u306f\u30b2\u30fc\u30e0\u306e\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u304b\u3089\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u3092\u5b9f\u884c\u3055\u305b\u308b\u305f\u3081\u3001\u307e\u305a\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u304b\u3089Socket\u901a\u4fe1\u3067\u81ea\u4f5c\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u308b\u3002<br \/>\n\u81ea\u4f5c\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306fSocket\u30b5\u30fc\u30d0\u30fc\u517c\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3060\u3002<br \/>\n\u4ed5\u7d44\u307f\u306f\u3044\u305f\u3063\u3066\u5358\u7d14\u3060\u304c\u3001\u8272\u3005\u306a\u6a5f\u80fd\u3092\u4e26\u5217\u306b\u52d5\u304b\u3057\u3066\u3044\u308b\u306e\u3067\u7d50\u69cb\u3081\u3093\u3069\u304f\u3055\u3044\u3002<\/p>\n<h2>\u30b9\u30bf\u30f3\u30ac\u30f3\u5236\u4f5c<\/h2>\n<p>\u30b9\u30bf\u30f3\u30ac\u30f3\u5236\u4f5c\u306f\u96fb\u5b50\u5de5\u4f5c\u306b\u304a\u3044\u3066\u3042\u308a\u3075\u308c\u305f\u30c6\u30fc\u30de\u306a\u306e\u3067\u3053\u3053\u3067\u306f\u8a73\u7d30\u306f\u7701\u304f\u3002<br \/>\n\u51b7\u9670\u6975\u7ba1\u30a4\u30f3\u30d0\u30fc\u30bf\u3067\u76f4\u6d415V\u3092\u4ea4\u6d41600V\u7a0b\u5ea6\u306b\u5909\u63db\u3057\u3001\u3055\u3089\u306b\u305d\u308c\u309215\u6bb5\u306e\u30b3\u30c3\u30af\u30af\u30ed\u30d5\u30c8\u30fb\u30a6\u30a9\u30eb\u30c8\u30f3(\u4ee5\u4e0bCW)\u56de\u8def\u3067\u6607\u5727\u3059\u308b\u3002<br \/>\n\u51b7\u9670\u6975\u7ba1\u30a4\u30f3\u30d0\u30fc\u30bf\u306f<a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gM-11545\/\">\u79cb\u6708\u96fb\u5b50\u3067\u3082\u53d6\u308a\u6271\u3044\u304c\u3042\u308b<\/a>\u304c\u3001\u3053\u3044\u3064\u304c\u304b\u306a\u308a\u8ca7\u5f31\u3067\u308d\u304f\u306a\u96fb\u6d41\u304c\u53d6\u308a\u51fa\u305b\u306a\u304b\u3063\u305f\u3002<br \/>\n\u305d\u3053\u3067aitendo\u306e\u30a4\u30f3\u30d0\u30fc\u30bf\u3092\u63a1\u7528\u3002<br \/>\n<a href=\"http:\/\/www.aitendo.com\/product\/1733\">http:\/\/www.aitendo.com\/product\/1733<\/a><br \/>\n\u3053\u308c\u306f\u4f7f\u3048\u308b\u4ee3\u7269\u3060\u3063\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001CW\u56de\u8def\u306b\u7528\u3044\u308b\u9ad8\u8010\u5727\u306e\u30b3\u30f3\u30c7\u30f3\u30b5\u3082\u5fae\u5999\u306b\u5165\u624b\u6027\u304c\u60aa\u3044\u306e\u3060\u304c\u3001\u3044\u3044\u611f\u3058\u306e\u5024\u6bb5\u3068\u5728\u5eab\u304caitendo\u306b\u63c3\u3063\u3066\u3044\u308b\u3002<br \/>\n<a href=\"http:\/\/www.aitendo.com\/product\/11256\">http:\/\/www.aitendo.com\/product\/11256<\/a><br \/>\nCW\u56de\u8def\u306e\u30b3\u30f3\u30c7\u30f3\u30b5\u306f\u5165\u529b\u96fb\u5727\u306e\u4e8c\u500d\u306e\u8010\u5727\u304c\u5fc5\u8981\u304b\u3064\u3001\u5bb9\u91cf\u304c\u5a01\u529b\u306b\u76f4\u7d50\u3059\u308b\u306e\u3067\u3001\u3053\u3053\u306f3kV4700pF\u306e\u3082\u306e\u3092\u63a1\u7528\u3002<br \/>\n\u51b7\u9670\u6975\u7ba1\u306e\u5165\u529b\u90e8\u306b\u30d1\u30ef\u30fcMOSFET(P-ch)\u306e\u30c9\u30ec\u30a4\u30f3\u3092\u7e4b\u3052\u3070\u5b8c\u6210\u3060\u3002<\/p>\n<h2>\u30b9\u30bf\u30f3\u30ac\u30f3\u5236\u5fa1\u90e8<\/h2>\n<p>\u30de\u30a4\u30b3\u30f3\u306fLPC11U35\u3092\u63a1\u7528\u3002\u9ad8\u96fb\u5727\u3092\u6271\u3046\u306e\u3067\u3001\u3046\u3063\u304b\u308a\u3076\u3063\u58ca\u3057\u3066\u3082\u75db\u304f\u306a\u3044\u3088\u3046\u5b89\u3044\u3082\u306e\u3092\u9078\u3093\u3060\u3002<br \/>\n\u3053\u3044\u3064\u306e\u4f7f\u3044\u65b9\u306f\u904e\u53bb\u8a18\u4e8b\u3092\u53c2\u7167\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"BgRf81XtoX\"><p><a href=\"https:\/\/drroot.page\/wp\/?p=47\">PlatformIO\u3067LPC11u35\u306bUSBDevice\u3092\u4e57\u305b\u308b<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;PlatformIO\u3067LPC11u35\u306bUSBDevice\u3092\u4e57\u305b\u308b&#8221; &#8212; \u843d\u80c6\u304c\u3089\u304f\u305f\u5de5\u52d9\u5e97\" src=\"https:\/\/drroot.page\/wp\/?p=47&#038;embed=true#?secret=Q1GiJl4Lo2#?secret=BgRf81XtoX\" data-secret=\"BgRf81XtoX\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u30de\u30a4\u30b3\u30f3\u306e\u52d5\u4f5c\u96fb\u5727\u304c3.3V\u3067\u3001\u30b9\u30bf\u30f3\u30ac\u30f3\u306b\u306f5v\u3092\u4f9b\u7d66\u3059\u308b\u306e\u3067\u3001<br \/>\n\u30b9\u30a4\u30c3\u30c1\u30f3\u30b0\u7528\u306eP-MOSFET\u3068\u306f\u5225\u306b\u30ec\u30d9\u30eb\u5909\u63db\u7528\u306eN-MOSFET\u3092\u4f7f\u3046\u3002<br \/>\n<a href=\"https:\/\/drroot.page\/wp\/wp-content\/uploads\/2019\/10\/cc4f4e0a39e73120a2defce416b93b04.png\"><img decoding=\"async\" src=\"https:\/\/drroot.page\/wp\/wp-content\/uploads\/2019\/10\/cc4f4e0a39e73120a2defce416b93b04.png\" alt=\"\" \/><\/a><br \/>\n\u30de\u30a4\u30b3\u30f3\u306e\u5236\u5fa1\u30d4\u30f3\u30920\u306b\u3059\u308c\u3070\u30b9\u30bf\u30f3\u30ac\u30f3\u304c\u30aa\u30f3\u306b\u306a\u308b\u3002<br \/>\n\u305f\u3060\u3057\u30b9\u30bf\u30f3\u30ac\u30f3\u306b\u5168\u3066\u306e\u96fb\u6d41\u3092\u6301\u3063\u3066\u3044\u304b\u308c\u308b\u3068\u5236\u5fa1\u4e0d\u80fd\u306b\u9665\u308b\u306e\u3067\u3001<br \/>\n\u304a\u307e\u3058\u306a\u3044\u304c\u3066\u30895v\u3068GND\u306e\u9593\u306b\u5927\u304d\u3081\u306e\u30b3\u30f3\u30c7\u30f3\u30b5\u3092\u633f\u3057\u3066\u304a\u3044\u305f\u3002\u7121\u3044\u3088\u304b\u30de\u30b7\u3060\u308d\u591a\u5206\u3002<\/p>\n<p>\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u304b\u3089\u30bd\u30b1\u30c3\u30c8\u3092\u98db\u3070\u3059\u65b9\u6cd5\u3082\u904e\u53bb\u8a18\u4e8b\u53c2\u7167\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"2HYDZjltNQ\"><p><a href=\"https:\/\/drroot.page\/wp\/?p=55\">BizHawk\u30a8\u30df\u30e5\u304b\u3089Socket\u3092\u98db\u3070\u3059\u65b9\u6cd5<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;BizHawk\u30a8\u30df\u30e5\u304b\u3089Socket\u3092\u98db\u3070\u3059\u65b9\u6cd5&#8221; &#8212; \u843d\u80c6\u304c\u3089\u304f\u305f\u5de5\u52d9\u5e97\" src=\"https:\/\/drroot.page\/wp\/?p=55&#038;embed=true#?secret=57HSzc8NEf#?secret=2HYDZjltNQ\" data-secret=\"2HYDZjltNQ\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u306f.NET\u74b0\u5883\u306a\u3089\u7c21\u5358\u306b\u4f7f\u3048\u308b\u306e\u3067\u3001\u3055\u304f\u3063\u3068\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre><code class=\"language-csharp \">static void Main(string[] args)\n        {\n            SerialPort serial = new SerialPort();\n            TcpListener tcp;\n            const int PORT = 22222;\n            IPAddress IP = IPAddress.Parse(\"127.0.0.1\");\n\n            \/\/\u30b9\u30bf\u30f3\u30ac\u30f3\u306e\u3055\u3055\u3063\u3066\u308b\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3092\u9078\u3076\n            Console.WriteLine(\"select serial port index.\");\n            var names = SerialPort.GetPortNames();\n            int idx = 0;\n            foreach (var item in names)\n            {\n                Console.WriteLine($\"{idx++}...{item}\");\n            }\n\n            \/\/\u30b7\u30ea\u30a2\u30eb\u958b\u3051\u308b\n            var num = int.Parse(Console.ReadLine());\n            if (num &lt; names.Length)\n            {\n                serial.PortName = names[num];\n                serial.BaudRate = 9600;\n                serial.Open();\n            }\n\n            \/\/127.0.0.1\u306b22222\u306e\u30bd\u30b1\u30c3\u30c8\u30b5\u30fc\u30d0\u3092\u5efa\u3066\u308b\n            tcp = new TcpListener(IP, PORT);\n\n            \/\/\u53d7\u4ed8\u958b\u59cb\n            Console.Write(\"Waiting for a connection... \");\n            tcp.Start();\n            var cli = tcp.AcceptTcpClient();    \/\/\u3053\u3053\u3067\u6b62\u307e\u308b BizHawk\u8d77\u52d5\u3067\u5148\u306b\u884c\u304f\n            Console.WriteLine(\"Connected!\");\n\n            \/\/\u8aad\u307f\u8fbc\u307f\u30eb\u30fc\u30d7\n            var nstr = cli.GetStream();\n            try\n            {\n                while (cli.Connected)\n                {\n                    byte[] buf = new byte[1024];\n                    var cnt = nstr.Read(buf, 0, 1024);\n                    var str = Encoding.UTF8.GetString(buf, 0, cnt);\n\n                    Console.WriteLine($\"Received : {str}\");\n                    serial.Write(str);    \/\/\u3068\u308a\u3042\u3048\u305a\u4e38\u6295\u3052\n                    Console.Write(serial.ReadExisting());\n                }\n            }\n            catch (Exception ex)\n            {\n                \/\/USB\u304c\u5f15\u3063\u3053\u629c\u3051\u305f\u308a\u3059\u308b\u3068\u4f8b\u5916\u5410\u3044\u3066\u3053\u3053\u306b\u6765\u308b\n                \/\/\u2026\u306e\u3067\u3001\u30ad\u30e3\u30c3\u30c1\u3060\u3051\u3057\u3066\u898b\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u3059\u308b\n            }\n\n            if (serial.IsOpen) serial.Close();\n\n        }\n<\/code><\/pre>\n<p>\u3042\u3068\u306f\u30de\u30a4\u30b3\u30f3\u306b\u300c\u53d7\u3051\u53d6\u3063\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3054\u3068\u306b\u4e00\u5b9a\u6642\u9593\u51fa\u529b\u30d4\u30f3\u3092\u30aa\u30f3\u306b\u3059\u308b\u300d\u30d7\u30ed\u30b0\u30e9\u30e0\u66f8\u3051\u3070\u51fa\u6765\u4e0a\u304c\u308a\u3002<br \/>\n\u3053\u308c\u3067\u30ad\u30df\u3082\u4eca\u65e5\u304b\u3089\u30d5\u30eb\u30b7\u30f3\u30af\u30ed\u3060\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u99ac\u9e7f\u2193 \u5236\u4f5c\u306e\u88cf\u5074 PC\u3068\u9023\u52d5\u3057\u3066\u52d5\u304f\u30b9\u30bf\u30f3\u30ac\u30f3\u306f\u3069\u3046\u5236\u4f5c\u3057\u305f\u304b\u306e\u8a71\u3002 \u30b9\u30bf\u30f3\u30ac &hellip; <a href=\"https:\/\/drroot.page\/wp\/?p=60\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/drroot.page\/wp\/index.php?rest_route=\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/drroot.page\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/drroot.page\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/drroot.page\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/drroot.page\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=60"}],"version-history":[{"count":15,"href":"https:\/\/drroot.page\/wp\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/drroot.page\/wp\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/drroot.page\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/drroot.page\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/drroot.page\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}