{"id":2593,"date":"2019-11-22T15:13:25","date_gmt":"2019-11-22T06:13:25","guid":{"rendered":"http:\/\/androiphone.uvs.jp\/?p=2593"},"modified":"2020-06-19T12:21:53","modified_gmt":"2020-06-19T03:21:53","slug":"%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a4-sg90%e3%82%b5%e3%83%bc%e3%83%9c%e3%83%a2%e3%83%bc%e3%82%bf%e5%81%bd%e5%93%81%e3%82%92%e3%81%a4%e3%81%8b%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/androiphone.uvs.jp\/?p=2593","title":{"rendered":"[\u30e9\u30ba\u30d1\u30a4] SG90\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf(\u507d\u54c1)\u3092\u3064\u304b\u3063\u3066\u307f\u305f"},"content":{"rendered":"<p>\u307e\u305f\u3082\u3084\u3001\u5927\u9678\u304b\u3089\u683c\u5b89\u90e8\u54c1\u304c\u5c4a\u3044\u305f\u3002SG90\u3068\u3044\u3046\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u3002\u4e0b\u306e\u30ea\u30f3\u30af\u306f\u30a2\u30de\u30be\u30f3\u306e\u53c2\u8003\u30ea\u30f3\u30af\u3067\u3059\u306e\u3067\u5b9f\u969b\u306b\u8cb7\u3063\u305f\u306e\u3068\u306f\u9055\u3044\u307e\u3059<br \/>\n<iframe style=\"width: 120px; height: 240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&amp;t=dinagon-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B016FKJJ8M&amp;linkId=f4bce1236384d7309c660b3b0b5c93e7&amp;bc1=000000&amp;lt1=_blank&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\"><br \/>\n<\/iframe><\/p>\n<p>\u3053\u306e\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u5c4a\u3044\u3066\u304b\u3089\u3001\u8abf\u3079\u3066\u5206\u304b\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u507d\u9020\u54c1\u304c\u5927\u91cf\u306b\u51fa\u3066\u3044\u3066\u898b\u5206\u3051\u65b9\u3082\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u3002\u3053\u3093\u306a\u3093\u3001\u4e8b\u524d\u306b\u306f\u308f\u304b\u3089\u306a\u3044\u3088\u306dw\u3002<strong><span style=\"font-size: 18pt; color: #ff0000;\">\u7570\u69d8\u306b\u5b89\u3044\u304b\u3089\u5acc\u306a\u4e88\u611f\u306f\u30d0\u30b7\u30d0\u30b7\u3059\u308b\u3051\u3069\u30fb\u30fb\u30fb<\/span><\/strong><\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/home.umemoto.org\/merchandise\/towerpro\/sg90\" data-lkc-id=\"757\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=home.umemoto.org\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">home.umemoto.org<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">1 User<\/div> <div class=\"lkc-sns-po\">3 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/androiphone.uvs.jp\/wp-content\/uploads\/pz-linkcard\/cache\/311f75f0627ad804401c8c68393916241e80b4fa792e6a9def7e5b8962f72605.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">home - Tower Pro SG90, SG92R \u4fb5\u5bb3\u54c1\u306e\u5224\u5b9a\u65b9\u6cd5<\/div><div class=\"lkc-url\" title=\"https:\/\/home.umemoto.org\/merchandise\/towerpro\/sg90\">https:\/\/home.umemoto.org\/merchandise\/towerpro\/sg90<\/div><div class=\"lkc-excerpt\">\u3053\u306e\u30da\u30fc\u30b8\u3067\u306f\u3001Tower Pro \u30d6\u30e9\u30f3\u30c9\u5546\u54c1\u306e\u3046\u3061\u3001SG90\u304a\u3088\u3073SG92R\u306e\u771f\u8d0b\u306e\u5224\u5b9a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3054\u6848\u5185\u3044\u305f\u3057\u307e\u3059\u3002\u5224\u5b9a\u6cd5\u306b\u3064\u3044\u3066\u3001\u4e0b\u8a18\u4ee5\u5916\u306e\u8a73\u7d30\u306f\u3001\u958b\u793a\u3044\u305f\u3057\u3066\u304a\u308a\u307e\u305b\u3093\u3002\u500b\u5225\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u3044\u305f\u3060\u3051\u308c\u3070\u3001\u5199\u771f\u307e\u305f\u306f\u73fe\u7269\u3067\u9451\u5b9a\u3092\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002SG90\u304a\u3088\u3073SG92R\u306e\u771f\u8d0b\u5224\u5b9a\u6cd5\u4ee5\u4e0b\u3001\u5f53\u8a72\u30d6\u30e9\u30f3\u30c9\u306e\u4ee3\u8868\u7684\u306a\u5546\u54c1\u3067\u3042\u308b\u3001\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u300cSG90\u300d\u3092\u4f8b\u306b\u3001\u507d\u9020\u54c1\u306e\u771f\u8d0b\u5224\u5b9a\u306e\u8981\u70b9\u306b\u3064\u3044\u3066\u3054\u6848\u5185\u3044\u305f\u3057\u307e\u3059\u3002SG92R\u306b\u3064\u3044\u3066\u306f\u3001\u7b50\u4f53\u3068\u30ae\u30a2\u306e\u6a39\u8102\u306e\u8272\u304c\u7570\u306a\u308b\u307b\u304b\u306f\u3001\u4e0b\u8a18\u3068\u540c\u69d8\u306e\u65b9\u6cd5\u3067\u771f\u8d0b\u306e\u5224\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<blockquote><p>\u771f\u6b63\u54c1\u306b\u306f\u3001\u300cTower pro\u300d\u306e\u5546\u6a19\u304c\u3001\u30b1\u30fc\u30b9\u4e0a\u90e8\u306b\u30a8\u30f3\u30dc\u30b9\uff08\u6d6e\u304d\u51fa\u3057\uff09\u3067\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p><\/blockquote>\n<p>\u306a\u308b\u307b\u3069\u30fb\u30fb\u30fb\u8abf\u3079\u3066\u307f\u308b\u3068\u30fb\u30fb\u30fb<\/p>\n<p><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0812-scaled-e1574383814698.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2594\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0812-scaled-e1574383814698-246x300.jpg\" alt=\"\" width=\"246\" height=\"300\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0812-scaled-e1574383814698-246x300.jpg 246w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0812-scaled-e1574383814698-839x1024.jpg 839w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0812-scaled-e1574383814698-768x937.jpg 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0812-scaled-e1574383814698.jpg 1216w\" sizes=\"auto, (max-width: 246px) 100vw, 246px\" \/><\/a><\/p>\n<p><strong><span style=\"font-size: 18pt; color: #ff0000;\">\u3042\u308a\u307e\u305b\u30fc\u30fc\u30fc\u3093\uff01\uff01<\/span><\/strong>w\u507d\u9020\u54c1\u3067\u3059\u3002\u307e\u3041\u5b89\u304b\u3063\u305f\u3057\u306d\u3047\u3002\u4eca\u5ea6\u304b\u3089\u6c17\u3092\u4ed8\u3051\u3066\u8cb7\u3044\u307e\u3059\u3002\u307e\u3041\u3001\u3053\u306e\u307e\u307e\u7d42\u308f\u3063\u3066\u3082\u3064\u307e\u3089\u306a\u3044\u306e\u3067\u507d\u9020\u54c1\u306e\u691c\u8a3c\u3092\u9032\u3081\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30af\u30ea\u54c1\u3060\u3051\u3069\u4e00\u5fdc\u6b63\u898f\u54c1\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u3092\u898b\u3066\u307f\u308b<\/p>\n<p><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-22_10-2-54_No-00.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2597\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-22_10-2-54_No-00-300x164.png\" alt=\"\" width=\"300\" height=\"164\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-22_10-2-54_No-00-300x164.png 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-22_10-2-54_No-00.png 462w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-22_10-3-13_No-00.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2598\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-22_10-3-13_No-00-300x212.png\" alt=\"\" width=\"269\" height=\"190\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-22_10-3-13_No-00-300x212.png 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/SnapCrab_NoName_2019-11-22_10-3-13_No-00.png 616w\" sizes=\"auto, (max-width: 269px) 100vw, 269px\" \/><\/a>(\u629c\u7c8b)<\/p>\n<p>PWM\u4fe1\u53f7\u306f5V\u306a\u306e\u306d\u3002\u30e9\u30ba\u30d1\u30a4\u306f3.3V\u3060\u304b\u3089\u30ed\u30b8\u30c3\u30af\u30ec\u30d9\u30eb\u30b3\u30f3\u30d0\u30fc\u30bf\u3092\u304b\u307e\u305d\u3046\u3002VCC\u306b\u30825V\u3001PWM\u306f\u30ed\u30b8\u30c3\u30af\u30ec\u30d9\u30eb\u30b3\u30f3\u30d0\u30fc\u30bf\u3092\u304b\u307e\u305b\u3066GPIO\u306b\u3064\u306a\u3052\u308b\u3002\u4eca\u56de\u306fGPIO12\u306b\u3064\u306a\u3050<\/p>\n<p><a href=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0810-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2596\" src=\"http:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0810-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0810-300x225.jpg 300w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0810-1024x768.jpg 1024w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0810-768x576.jpg 768w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0810-1536x1152.jpg 1536w, https:\/\/androiphone.uvs.jp\/wp-content\/uploads\/2019\/11\/img_0810-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><iframe style=\"width: 120px; height: 240px;\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&amp;t=dinagon-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B07DW7X4GS&amp;linkId=df4b28e2e8e5794f6b409807f905a2c7&amp;bc1=000000&amp;lt1=_blank&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><br \/>\n<\/iframe><\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u691c\u7d22\u3057\u3066\u4e00\u756a\u591a\u304b\u3063\u305f\u3001L\u30c1\u30ab\u3067\u304a\u306a\u3058\u307fRPi.GPIO\u3092\u4f7f\u3063\u305f\u65b9\u6cd5\u3067PWM\u5236\u5fa1\u3057\u3066\u307f\u305f\u3002<\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/ossyaritoori.hatenablog.com\/entry\/2019\/04\/22\/Raspberry_Pi_Mouse%E3%81%A7%E3%82%B5%E3%83%BC%E3%83%9C%E3%83%A2%E3%83%BC%E3%82%BF%EF%BC%88SG90%EF%BC%89%E3%82%92%E5%8B%95%E3%81%8B%E3%81%99\" data-lkc-id=\"758\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=ossyaritoori.hatenablog.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">\u7c97\u5927\u30e1\u30e2\u7f6e\u304d\u5834<\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/androiphone.uvs.jp\/wp-content\/uploads\/pz-linkcard\/cache\/780287c828dd9895cd9c0da7f30df3a0c8e6aa855be64f0c22b10712f9bf48eb.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Raspberry Pi Mouse\u3067\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\uff08SG90\uff09\u3092\u52d5\u304b\u3059 - \u7c97\u5927\u30e1\u30e2\u7f6e\u304d\u5834<\/div><div class=\"lkc-url\" title=\"https:\/\/ossyaritoori.hatenablog.com\/entry\/2019\/04\/22\/Raspberry_Pi_Mouse%E3%81%A7%E3%82%B5%E3%83%BC%E3%83%9C%E3%83%A2%E3%83%BC%E3%82%BF%EF%BC%88SG90%EF%BC%89%E3%82%92%E5%8B%95%E3%81%8B%E3%81%99\">https:\/\/ossyaritoori.hatenablog.com\/entry\/2019\/04\/22\/Raspberry_Pi_Mouse\u3067\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\uff08SG90\uff09\u3092\u52d5\u304b\u3059<\/div><div class=\"lkc-excerpt\">Raspberry Pi Mouse\u4e0a\u3067\u306eGPIO\u306e\u914d\u7dda \u30e9\u30ba\u30d9\u30ea\u30fc\u30d1\u30a4\u3067SG90\u3092\u5236\u5fa1\u3059\u308b SG90\u7528\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9 \u30af\u30e9\u30b9 \u5ba3\u4f1d\u67a0 Raspberry Pi Mouse\u4e0a\u3067\u306eGPIO\u306e\u914d\u7dda SG90\u306f\u30e9\u30ba\u30d1\u30a4\u4e0a\u306eGPIO\u30dd\u30fc\u30c8\u3092\u7528\u3044\u3066\u5236\u5fa1\u3057\u307e\u3059\u304c\uff0c\u30e9\u30ba\u30d1\u30a4\u30de\u30a6\u30b9\u3067\u306f\u305d\u306e\u30dd\u30fc\u30c8\u306f\u8986\u3044\u96a0\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002 \u3057\u304b\u3057\uff0c\u5916\u306e\u30c7\u30d0\u30a4\u30b9\u3092\u7e4b\u3052\u306a\u3044\u304b\u3068\u3044\u3046\u3068\u305d\u3046\u3067\u3082\u306a\u304f\uff0c\u4ee5\u4e0b\u306e\u5199\u771f\u306e\u7b87\u6240\u306b\u63a5\u7d9a\u53ef\u80fd\u306a\u30dd\u30a4\u30f3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002 \u672c\u4f53\u53f3\u624b\u5074\u306b\u30d4\u30f3\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u3053\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u82f1\u5b57\u306f\u4ee5\u4e0b\u306eGPIO\u756a\u53f7\uff08\u30d4\u30f3\u756a\u53f7\u3067\u306f\u306a\u3044\uff09\u3068\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002 SDA \u2192 GPIO2 SCL \u2192 GPIO3 TXD \u2192 GPIO14 RX\u2026<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p>\u3068\u3044\u3046\u304b\u3001\u3044\u3064\u3082\u306e\u3053\u3068\u3067\u624b\u629c\u304d\u3060\u304c\u30fb\u30fb\u30fb\u4e0a\u306e\u30b5\u30a4\u30c8\u69d8\u304c\u4f5c\u3063\u3066\u304f\u308c\u305f<strong><em><span style=\"color: #000000;\">SG90servo<\/span><\/em><\/strong>\u306e\u30af\u30e9\u30b9\u3092\u4f7f\u308f\u305b\u3066\u3082\u3089\u3063\u305f\u3002\u5b9f\u884c\u90e8\u5206\u3067\u3001\u30af\u30e9\u30b9\u306b\u8ffd\u8a18\u3057\u305f\u306e\u306f\u4e0b\u306e\u90e8\u5206<\/p>\n<pre class=\"lang:python decode:true\">sg90 = SG90servo(12)\r\n\r\nwhile True:\r\n\r\n    sg90.servo_deg(-90)\r\n    time.sleep(3)\r\n    sg90.servo_deg(0)\r\n    time.sleep(3)\r\n    sg90.servo_deg(90)\r\n    time.sleep(3)\r\n<\/pre>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/_ayxtywZLp0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u3084\u306f\u308a\u3001\u30d4\u30af\u30d4\u30af\u3057\u305f\u308a\u52d5\u4f5c\u304c\u4e0d\u5b89\u5b9a\u3002<span style=\"font-size: 18pt;\"><strong><span style=\"color: #ff0000;\">\u3046\u30fc\u3093\u3001\u30d1\u30af\u30ea\u54c1\u3060\u304b\u3089\uff1fw<\/span><\/strong><\/span>\u3002<\/p>\n<p>\u3061\u3087\u3063\u3068\u3001\u3053\u3053\u3067PWM\u306b\u3064\u3044\u3066\u3002PWM\u306b\u306f\u30bd\u30d5\u30c8PWM\u3068\u30cf\u30fc\u30c9PWM\u304c\u3042\u3063\u3066\u3001RPi.GPIO\u306f\u30bd\u30d5\u30c8PWM\u3089\u3057\u3044\u3093\u3060\u3051\u3069\u3001\u3069\u3046\u3082\u30d1\u30eb\u30b9\u306e\u7cbe\u5ea6\u304c\u30e9\u30ba\u30d1\u30a4\u306e\u8ca0\u8377\u306b\u3088\u3063\u3066\u82e5\u5e72\u5909\u5316\u3059\u308b\u3089\u3057\u3044\u3002\u3053\u308c\u306b\u3088\u308a\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u306e\u7570\u5e38\u52d5\u4f5c\u304c\u8d77\u3053\u308b\u3053\u3068\u304c\u591a\u3044\u3088\u3046\u3060\u3002<\/p>\n<p>\u5bfe\u7167\u7684\u306b\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2PWM\u3063\u3066\u306e\u3082\u3042\u3063\u3066\u3053\u308c\u306f\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\u304c\u751f\u6210\u3059\u308b\u30d1\u30eb\u30b9\u3092\u7528\u3044\u308b\u306e\u3067\u7cbe\u5ea6\u306f\u3068\u3066\u3082\u826f\u3044\u3002\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u691c\u8a3c\u306b\u306f\u518d\u5ea6\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2PWM\u3067\u5236\u5fa1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u30022\u3064\u306e\u65b9\u6cd5\u304c\u3042\u3063\u3066WiringPi\u3068pigpio\u306e\u3069\u3061\u3089\u304b\u3092\u4f7f\u3046\u3089\u3057\u3044\u3002<\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/qiita.com\/s417-lama\/items\/0ef64a7af3fcf6a56cc5\" data-lkc-id=\"759\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=qiita.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">Qiita<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-po\">17 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fqiita.com%2Fs417-lama%2Fitems%2F0ef64a7af3fcf6a56cc5?w=100\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Raspberry Pi\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2PWM\u3092pigpio\u3067\u51fa\u529b\u3059\u308b - Qiita<\/div><div class=\"lkc-url\" title=\"https:\/\/qiita.com\/s417-lama\/items\/0ef64a7af3fcf6a56cc5\">https:\/\/qiita.com\/s417-lama\/items\/0ef64a7af3fcf6a56cc5<\/div><div class=\"lkc-excerpt\">pigpio\u3067\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2PWM\u306f\u3042\u307e\u308a\u307e\u3068\u307e\u3063\u305f\u60c5\u5831\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u7c21\u5358\u306b\u307e\u3068\u3081\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u74b0\u5883Raspberry Pi Zero WRaspbian Stretch Lite (Kernel version: 4...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p>\u4eca\u56de\u306f\u3001pigpio\u3092\u4f7f\u3063\u3066\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2PWM\u3067\u5236\u5fa1\u3057\u3088\u3046\u3068\u601d\u3046(\u7406\u7531\u306f\u305f\u3060\u5358\u306b\u6587\u732e\u304c\u591a\u304b\u3063\u305f\u3060\u3051w)\u3002\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2PWM\u3092\u4f7f\u3046\u306b\u3042\u305f\u3063\u3066\u3001\u4e0a\u306e\u30b5\u30a4\u30c8\u306b\u3082\u3042\u308b\u3088\u3046\u306b\u3001\u30d4\u30f3\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u3002GPIO12\u3092\u5229\u7528\u3057\u305f\u306e\u306f\u3001\u305d\u3046\u3044\u3046\u7406\u7531\u304b\u3089\u3067\u3059\u3002\u305f\u3060\u3057\u3001RPi.GPIO\u3067\u306fGPIO12\u3067\u3082\u3001\u30bd\u30d5\u30c8PWM\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u6a21\u69d8\u3002<\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><div class=\"lkc-unlink\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=hakengineer.xyz\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">\u5b9a\u5e74\u307e\u3067\u6ce3\u304f\u3093\u3058\u3083\u306a\u3044<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-po\">3 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/androiphone.uvs.jp\/wp-content\/uploads\/pz-linkcard\/cache\/9dd4ed36584ba357965518ca5b473d48a1a3ea75d6ef3c2f6620acfaf7ad0924.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Raspberry Pi 3 pigpio\u3092\u4f7f\u3063\u3066SG90\u30b5\u30fc\u30dc\u3092\u52d5\u304b\u3059<\/div><div class=\"lkc-url\" title=\"https:\/\/hakengineer.xyz\/2018\/02\/03\/post-993\/\"><strike>https:\/\/hakengineer.xyz\/2018\/02\/03\/post-993\/<\/strike><\/div><div class=\"lkc-excerpt\">\u521d\u3081\u306bSG90\u30b5\u30fc\u30dc\u75282\u8ef8\u30ab\u30e1\u30e9\u30de\u30a6\u30f3\u30c8\u3092\u7d44\u307f\u7acb\u3066\u3066\u3001\u3044\u3056\u52d5\u304b\u3059\u304b\u306a\u3068\u601d\u3063\u305f\u3089\u3001\u305d\u3082\u305d\u3082SG90\u30b5\u30fc\u30dc\u3092\u307e\u3068\u3082\u306b\u52d5\u304b\u3057\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308aSG90\u30b5\u30fc\u30dc\u3092pigpio\u3067\u52d5\u304b\u305d\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u53c2\u8003\u30b5\u30a4\u30c8\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8\u69d8\u3092\u53c2\u8003<\/div><\/div><div class=\"clear\"><\/div><\/div><\/div><\/div><\/div>\n<p>\u4e0a\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3001pigpio\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u30ab\u30fc\u30cd\u30eb\u3092\u5b9f\u884c(sudo pigpiod\u3092\u53e9\u304f\u3060\u3051)\u3059\u308c\u3070\u6e96\u5099\u5b8c\u4e86\u3002\u53c2\u8003\u30b5\u30a4\u30c8\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u305f\u3051\u3069\u3001\u5fae\u5999\u306b\u89d2\u5ea6\u304c\u30ba\u30ec\u308b\u305f\u3081\u30ad\u30e3\u30ea\u30d6\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u3057\u3066\u6570\u5024\u3092\u88dc\u6b63\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3001\u307e\u304c\u3044\u54c1\u304c\u539f\u56e0\u306a\u306e\u304b\u3001\u500b\u4f53\u5dee\u306a\u306e\u304b\u306f\u308f\u304b\u308a\u307e\u305b\u3093w\u3002\u4f7f\u3046\u524d\u306b\u8abf\u6574\u3057\u305f\u307b\u3046\u304c\u3088\u3055\u305d\u3046\u30fb\u30fb\u30fb\u3002<\/p>\n<pre class=\"lang:python decode:true\">#!\/usr\/bin\/python\r\n# -*- coding: utf-8 -*-\r\n \r\nimport pigpio\r\nimport time\r\n \r\npi = pigpio.pi()\r\n\r\nwhile True:\r\n    #\u3053\u3053\u3067-90\r\n    pi.set_servo_pulsewidth(12, 700)\r\n    time.sleep(3)\r\n    #\u3053\u3053\u30670\r\n    pi.set_servo_pulsewidth(12, 1520)\r\n    time.sleep(3)\r\n    #\u3053\u3053\u306790\r\n    pi.set_servo_pulsewidth(12, 2440)\r\n    time.sleep(3)<\/pre>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/9fGDvnPCa6U\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u52d5\u4f5c\u5185\u5bb9\u306fRPi.GPIO\u306e\u30bd\u30d5\u30c8PWM\u306e\u5185\u5bb9\u3068\u4e00\u7dd2\u3002\u30d4\u30af\u30d4\u30af\u3057\u305f\u308a\u3001\u632f\u52d5\u3059\u308b\u6319\u52d5\u304c\u306a\u304f\u306a\u3063\u305f\u3002\u3053\u306e\u3053\u3068\u304b\u3089\u30bd\u30d5\u30c8\u30a6\u30a8\u30a2PWM\u304c\u539f\u56e0\u3067\u52d5\u4f5c\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u3063\u3066\u305f\u3068\u8003\u3048\u3089\u308c\u308b\u306d\u3002\u4e00\u5fdc\u3001\u30ed\u30b8\u30c3\u30af\u30ec\u30d9\u30eb\u306b\u95a2\u3057\u3066\u306fPWM\u4fe1\u53f7\u30925V\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u554f\u984c\u306a\u3044\u3068\u306f\u601d\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u305f\u3082\u3084\u3001\u5927\u9678\u304b\u3089\u683c\u5b89\u90e8\u54c1\u304c\u5c4a\u3044\u305f\u3002SG90\u3068\u3044\u3046\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u3002\u4e0b\u306e\u30ea\u30f3\u30af\u306f\u30a2\u30de\u30be\u30f3\u306e\u53c2\u8003\u30ea\u30f3\u30af\u3067\u3059\u306e\u3067\u5b9f\u969b\u306b\u8cb7\u3063\u305f\u306e\u3068\u306f\u9055\u3044\u307e\u3059 \u3053\u306e\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u5c4a\u3044\u3066\u304b\u3089\u3001\u8abf\u3079\u3066\u5206\u304b\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u507d\u9020\u54c1\u304c\u5927\u91cf\u306b\u51fa\u3066\u3044\u3066\u898b\u5206\u3051\u65b9\u3082\u63b2\u8f09 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2595,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"http:\/\/androiphone.uvs.jp\/?p=2593","footnotes":""},"categories":[58,56,72],"tags":[],"class_list":["post-2593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-raspberry-pi","category-sg90","ja"],"_links":{"self":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/2593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2593"}],"version-history":[{"count":9,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/2593\/revisions"}],"predecessor-version":[{"id":3359,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/2593\/revisions\/3359"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/media\/2595"}],"wp:attachment":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}