{"id":1509,"date":"2018-05-05T15:01:27","date_gmt":"2018-05-05T06:01:27","guid":{"rendered":"https:\/\/www.dogrow.net\/elecronics\/?p=1509"},"modified":"2024-11-23T07:57:23","modified_gmt":"2024-11-22T22:57:23","slug":"blog26","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/elecronics\/blog26\/","title":{"rendered":"(26) \u3010\u9023\u8f091-5\u3011\u30de\u30a4\u30b3\u30f3\u3067\u96fb\u5b50\u5de5\u4f5c\u5165\u9580\uff1a\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u3092\u5efb\u3059"},"content":{"rendered":"<h1 class=\"my_h\">1. \u3084\u3063\u3066\u307f\u305f\u3044\u3053\u3068<\/h1>\n<p>Raspberry Pi\u306e \u30cf\u30fc\u30c9\u30a6\u30a7\u30a2 PWM\u3092\u4f7f\u3063\u3066\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u3092\u5efb\u3057\u3066\u307f\u305f\u3044\u3002<\/p>\n<h1 class=\"my_h\">2. \u30cf\u30fc\u30c9PWM vs \u30bd\u30d5\u30c8PWM<\/h1>\n<h3 class=\"my_h\">(1) \u30cf\u30fc\u30c9PWM<\/h3>\n<p>PWM\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\uff08\uff1dPWM\u5c02\u7528\u306eH\/W\uff09\u3067\u5236\u5fa1\u3059\u308b\u305f\u3081\u3001\u6307\u5b9a\u3057\u305f\u30d1\u30eb\u30b9\u5e45\u3092\u5b89\u5b9a\u3057\u3066\u7dad\u6301\u3067\u304d\u308b\u3002<\/p>\n<h3 class=\"my_h\">(2) \u30bd\u30d5\u30c8PWM<\/h3>\n<p>CPU\u3067\u5236\u5fa1\u3059\u308b\u305f\u3081\u3001CPU\u304c\u9ad8\u8ca0\u8377\u72b6\u614b\u306e\u3068\u304d\u306b PWM\u5468\u6ce2\u6570\u304c\u72c2\u3063\u305f\u308a\u30d1\u30eb\u30b9\u5e45\u304c\u5e83\u304c\u3063\u305f\u308a\u3059\u308b\u3002<\/p>\n<h3 class=\"my_h\">(3) \u3069\u3061\u3089\u304c\u3088\u3044\u306e\u304b\uff1f<\/h3>\n<p>\u76ee\u7684\u306b\u5fdc\u3058\u3066\u4f7f\u3044\u5206\u3051\u308c\u3070\u3088\u3044\u3002<\/p>\n<p>LED\u70b9\u706f\u306e\u660e\u308b\u3055\u3092 PWM\u3067\u5236\u5fa1\u3059\u308b\u5834\u5408\u3001\u591a\u5c11\u30d1\u30eb\u30b9\u5e45\u304c\u3076\u308c\u3066\u3082\u4eba\u306e\u76ee\u306b\u306f\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3002<br \/>\n\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u3092 PWM\u3067\u5236\u5fa1\u3059\u308b\u5834\u5408\u3001\u30d1\u30eb\u30b9\u5e45\u304c\u4e00\u5b9a\u3067\u306a\u3044\u3068\u56de\u8ee2\u89d2\u5ea6\u304c\u5c0f\u523b\u307f\u306b\u3076\u308c\u3066\u3057\u307e\u3046\u3002<\/p>\n<h1 class=\"my_h\">3. \u30d1\u30fc\u30c4\u3092\u8abf\u9054<\/h1>\n<h3 class=\"my_h\">(1) \u30e2\u30fc\u30bf\u30fc\u3092\u8cfc\u5165<\/h3>\n<p>\u79cb\u6708\u3055\u3093\u3067\u4e00\u756a\u5b89\u3044\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u3092\u8cfc\u5165\u3057\u305f\u3002<br \/>\n<a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gM-08761\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/elecronics\/wp-content\/uploads\/2018\/05\/001-4.png\" alt=\"\" \/><\/a><\/p>\n<h3 class=\"my_h\">(2) \u30e2\u30fc\u30bf\u30fc\u306e\u4ed5\u69d8<\/h3>\n<p>\u3053\u306e\u30e2\u30fc\u30bf\u30fc\u306e\u4ed5\u69d8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<br \/>\n<a href=\"https:\/\/akizukidenshi.com\/goodsaffix\/SG90_a.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/elecronics\/wp-content\/uploads\/2018\/05\/002-4.png\" alt=\"\"  \/><br \/>\nhttps:\/\/akizukidenshi.com\/goodsaffix\/SG90_a.pdf<\/a><\/p>\n<p>\u307e\u3068\u3081\u308b\u3068\u4ee5\u4e0b\u306e\u901a\u308a\u3002<br \/>\n\u30fb\u5468\u6ce2\u6570 : 50Hz\uff081\u5468\u671f\u304c 20ms\uff09<br \/>\n\u30fbDuty Cycle 0.50ms : \uff0d\uff19\uff10\u5ea6\u56de\u8ee2<br \/>\n\u30fbDuty Cycle 1.45ms : \u3000\u3000\uff10\u5ea6\u56de\u8ee2<br \/>\n\u30fbDuty Cycle 2.40ms : \uff0b\uff19\uff10\u5ea6\u56de\u8ee2<br \/>\n\u30fb\u96fb\u5727 : 4.8V \uff5e 5V<br \/>\n\u30fb\u56de\u8ee2\u901f\u5ea6 : 0.1s \/ 60\u5ea6<\/p>\n<h1 class=\"my_h\">4. \u8a2d\u8a08<\/h1>\n<h3 class=\"my_h\">(1) GPIO\u306f\u3069\u3046\u4f7f\u3046\uff1f<\/h3>\n<p>\u30e9\u30ba\u30d1\u30a4\u516c\u5f0f\u30da\u30fc\u30b8\u306e\u60c5\u5831\u306b\u3088\u308c\u3070\u3001\u30cf\u30fc\u30c9PWM\u3092\u4f7f\u3044\u305f\u3051\u308c\u3070 GPIO12,13,18,19\u3092\u4f7f\u3048\u3068\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\n<a href=\"https:\/\/www.raspberrypi.org\/documentation\/usage\/gpio\/README.md\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/elecronics\/wp-content\/uploads\/2018\/05\/003-4.png\" alt=\"\"  \/><br \/>\nhttps:\/\/www.raspberrypi.org\/documentation\/usage\/gpio\/README.md<\/a><\/p>\n<p>\u306a\u306e\u3067&#8230;<br \/>\n\u4eca\u56de\u306f <span class=\"my_fc_deeppink my_fs_big3\">GPIO12<\/span> \u3092\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u5236\u5fa1\u306e\u305f\u3081\u306e PWM\u4fe1\u53f7\u7dda\u3068\u3057\u3066\u4f7f\u3046\u3002<\/p>\n<p><span class=\"my_fc_crimson\">\u3067\u3082&#8230;<br \/>\nGPIO12\u306e\u96fb\u5727\u306f 3.3V\u3060\u3002<br \/>\n\u4e0a\u8a18\u306e\u30e2\u30fc\u30bf\u30fc\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306b\u306f PWM\u4fe1\u53f7\u7dda\u306e\u96fb\u5727\u306f 4.8V \uff5e 5V\u3068\u66f8\u3044\u3066\u3042\u308b\u304c\u3088\u3044\u306e\u304b\uff1f<\/span><\/p>\n<h3 class=\"my_h\">(2) \u30e2\u30fc\u30bf\u30fc\u306f\u5225\u96fb\u6e90\u3067\u99c6\u52d5\u3059\u308b\u3002<\/h3>\n<p>\u6d88\u8cbb\u96fb\u529b\u306e\u5927\u304d\u306a\u30e2\u30fc\u30bf\u30fc\u306e\u96fb\u6e90\u3092\u30e9\u30ba\u30d1\u30a4\u304b\u3089\u53d6\u308b\u3068\u3001\u30e9\u30ba\u30d1\u30a4\u306b\u5927\u304d\u306a\u96fb\u6d41\u304c\u6d41\u308c\u3066\u58ca\u308c\u3066\u3057\u307e\u3046\u304b\u3082&#8230;<\/p>\n<p><span class=\"my_fc_crimson\">\u3053\u306e\u5236\u9650\u5024\u306f\u3069\u3053\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u304b\uff1f<\/span><\/p>\n<p>\u516c\u5f0f\u30da\u30fc\u30b8\u3067\u306f\u898b\u3064\u3051\u3089\u308c\u306a\u304b\u3063\u305f\u304c\u3001\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8\uff08\u2193\uff09\u3067\u306f<br \/>\n<a href=\"https:\/\/elinux.org\/RPi_Low-level_peripherals#Power_pins\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/elinux.org\/RPi_Low-level_peripherals#Power_pins<\/a><br \/>\n\u30fb3.3V\u306e\u30d4\u30f3\u304b\u3089\u306f\u5408\u8a08 50mA<br \/>\n\u30fb5V\u306e\u30d4\u30f3\u304b\u3089\u306f\u5408\u8a08 1A \u304b\u3089\u30e9\u30ba\u30d1\u30a4\u306e\u52d5\u4f5c\u306b\u5fc5\u8981\u306a\u5206\u3092\u5f15\u3044\u305f\u6b8b\u308a\u3060\u3051<br \/>\n\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u3002<\/p>\n<p><span class=\"my_fc_crimson\">50mA\u3068\u3044\u3063\u305f\u3089 LED x 3\u500b\u3057\u304b\u7e4b\u3052\u3061\u3083\u30c0\u30e1\u3063\u3066\u3053\u3068\u304b\uff1f<\/span><\/p>\n<p>\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u306e\u3067&#8230;<br \/>\n\u6d88\u8cbb\u96fb\u529b\u306e\u5927\u304d\u306a\u30c7\u30d0\u30a4\u30b9\u3092\u99c6\u52d5\u3059\u308b\u3068\u304d\u306b\u306f\u3001\u30e9\u30ba\u30d1\u30a4\u3068\u306f\u5225\u306b\u96fb\u6e90\u3092\u7528\u610f\u3057\u305f\u65b9\u304c\u3088\u3055\u305d\u3046\u3060\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30e2\u30fc\u30bf\u30fc\u99c6\u52d5\u7528\u306b <span class=\"my_fc_deeppink my_fs_big3\">5V\u306e\u96fb\u6e90\u3092\u5225\u306b\u7528\u610f<\/span> \u3057\u3088\u3046\u3002<\/p>\n<h1 class=\"my_h\">5. \u5b9f\u88c5<\/h1>\n<p>\u30fb\u30e9\u30ba\u30d1\u30a4\u3068\u306f\u5225\u306b\u3001\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u7528\u306b 5V\u306e\u96fb\u6e90\u3092\u7528\u610f\u3059\u308b\u3002<br \/>\n\u30fb\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u306e GND\u3092 \u30e9\u30ba\u30d1\u30a4\u5074\u306e GND\u306b\u7e4b\u3050\u3002\uff08GND\u306e\u96fb\u4f4d\u3092\u5171\u901a\u306b\u3059\u308b\u305f\u3081\uff09<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/elecronics\/wp-content\/uploads\/2018\/05\/005-2.png\" alt=\"\" \/><\/p>\n<h1 class=\"my_h\">6. \u30de\u30a4\u30b3\u30f3\u3067\u5236\u5fa1\u3057\u3066\u307f\u308b\uff01<\/h1>\n<p>\u4eca\u56de\u3082 <a href=\"https:\/\/www.dogrow.net\/elecronics\/blog23\/\">(23) \u30101-3\u3011\u30de\u30a4\u30b3\u30f3\u3067\u96fb\u5b50\u5de5\u4f5c\u5165\u9580\uff1aLED\u70b9\u6ec5<\/a> \u3068\u540c\u3058\u3088\u3046\u306b <a href=\"https:\/\/sourceforge.net\/projects\/raspberry-gpio-python\/\" target=\"_blank\" rel=\"noopener noreferrer\">RPi.GPIO<\/a> \u3092\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<h3 class=\"my_h\">(1) \u30bf\u30fc\u30df\u30ca\u30eb\u3092\u8d77\u52d5\u3057\u3001Python3\u3092\u5b9f\u884c\u3059\u308b\u3002<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npython3\r\n<\/pre>\n<h3 class=\"my_h\">(2) \u5fc5\u8981\u306a Python\u30e2\u30b8\u30e5\u30fc\u30eb\uff08\uff1d\u30d1\u30c3\u30b1\u30fc\u30b8\uff09\u3092\u8aad\u307f\u8fbc\u3080\u3002<\/h3>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport RPi.GPIO as GPIO\r\n<\/pre>\n<h3 class=\"my_h\">(3) GPIO\u3092\u521d\u671f\u5316\u3059\u308b\u3002<\/h3>\n<p>GPIO\u5236\u5fa1\u95a2\u6570\u3067\u5236\u5fa1\u5bfe\u8c61\u306e\u30d4\u30f3\u3092\u6307\u5b9a\u3059\u308b\u969b\u306b\u3001\u30d4\u30f3\u756a\u53f7\u3067\u306f\u306a\u304f GPIO\u756a\u53f7\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u306b\u3059\u308b\u3002<br \/>\n\u30fb\u30d4\u30f3\u756a\u53f7\u6307\u5b9a\uff1a GPIO.BOARD<br \/>\n\u30fbGPIO\u756a\u53f7\u6307\u5b9a\uff1a GPIO.BCM<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nGPIO.setmode(GPIO.BCM)\r\n<\/pre>\n<p>GPIO12\u3092\u51fa\u529b\u30dd\u30fc\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nGPIO.setup(12, GPIO.OUT)\r\n<\/pre>\n<p>GPIO12\u3092 PWM\uff0850Hz\uff09\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\npwm = GPIO.PWM(12, 50)\r\npwm.start(0)\r\n<\/pre>\n<h3 class=\"my_h\">(4) \u30e2\u30fc\u30bf\u30fc\u3092\u5efb\u3059\u3002<\/h3>\n<p class=\"my_fw_bold my_fs_big1\">0\u5ea6<\/p>\n<p>\u524d\u8ff0\u306e\u30e2\u30fc\u30bf\u30fc\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306b\u5f93\u3048\u3070\u3001<br \/>\n\u30fb0\u5ea6\u306e Duty Cycle\u306f 1.45ms<br \/>\n\u30fb\u5468\u6ce2\u6570 50Hz\uff08\uff1d20ms\uff09<\/p>\n<p>\u306a\u306e\u3067\u3001\u8a2d\u5b9a\u3059\u308b\u30d1\u30eb\u30b9\u5e45\u306f&#8230;<br \/>\n1.45 \/ 20 = 7.25[%]<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\npwm.ChangeDutyCycle(7.25)\r\n<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/elecronics\/wp-content\/uploads\/2018\/05\/010-3.png\" alt=\"\" \/><br \/>\n\u3053\u3053\u3092\u30db\u30fc\u30e0\u30dd\u30b8\u30b7\u30e7\u30f3\u3068\u3057\u3066\u8a18\u61b6\u3059\u308b\u3002<\/p>\n<hr class=\"my_mgT_3rem\">\n<p class=\"my_fw_bold my_fs_big1\">+90\u5ea6<\/p>\n<p>\u524d\u8ff0\u306e\u30e2\u30fc\u30bf\u30fc\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306b\u5f93\u3048\u3070<br \/>\n\u30fb+90\u5ea6\u306e Duty Cycle\u306f 2.4ms<br \/>\n\u30fb\u5468\u6ce2\u6570 50Hz\uff08\uff1d20ms\uff09<\/p>\n<p>\u306a\u306e\u3067\u3001\u8a2d\u5b9a\u3059\u308b\u30d1\u30eb\u30b9\u5e45\u306f&#8230;<br \/>\n2.4 \/ 20 = 12[%]<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\npwm.ChangeDutyCycle(12)\r\n<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/elecronics\/wp-content\/uploads\/2018\/05\/011-2.png\" alt=\"\" \/><br \/>\n\u534a\u6642\u8a08\u5468\u308a\u306b 90\u5ea6\u56de\u8ee2\u3057\u305f\u3002<\/p>\n<hr class=\"my_mgT_3rem\">\n<p class=\"my_fw_bold my_fs_big1\">-90\u5ea6<\/p>\n<p>\u524d\u8ff0\u306e\u30e2\u30fc\u30bf\u30fc\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306b\u5f93\u3048\u3070\u3001<br \/>\n\u30fb-90\u5ea6\u306e Duty Cycle\u306f 0.5ms<br \/>\n\u30fb\u5468\u6ce2\u6570 50Hz\uff08\uff1d20ms\uff09<\/p>\n<p>\u306a\u306e\u3067\u3001\u8a2d\u5b9a\u3059\u308b\u30d1\u30eb\u30b9\u5e45\u306f&#8230;<br \/>\n0.5 \/ 20 = 2.5[%]<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\npwm.ChangeDutyCycle(2.5)\r\n<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/elecronics\/wp-content\/uploads\/2018\/05\/012-2.png\" alt=\"\" \/><br \/>\n\u6642\u8a08\u5468\u308a\u306b 180\u5ea6\u56de\u8ee2\u3057\u305f\u3002<\/p>\n<hr class=\"my_mgT_3rem\">\n<p class=\"my_fw_bold my_fs_big1\">+45\u5ea6<\/p>\n<p>\u524d\u8ff0\u306e\u30e2\u30fc\u30bf\u30fc\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306b\u5f93\u3048\u3070\u3001<br \/>\n\u30fb0\u5ea6\u306e Duty Cycle\u306f 1.45ms<br \/>\n\u30fb+90\u5ea6\u306e Duty Cycle\u306f 2.4ms<br \/>\n\u30fb\u5468\u6ce2\u6570 50Hz\uff08\uff1d20ms\uff09<\/p>\n<p>\u306a\u306e\u3067\u3001\u30d1\u30eb\u30b9\u5e45\u306f&#8230;<br \/>\n+45\u5ea6\u306e Duty Cycle\u306f<br \/>\n(2.4 &#8211; 1.45) \/ 90 x 45 + 1.45 = 1.925[ms] <span class=\"my_fc_crimson\">\u203b\u30ea\u30cb\u30a2\u3060\u3068\u3059\u308c\u3070<\/span><\/p>\n<p>\u306a\u306e\u3067\u3001\u8a2d\u5b9a\u3059\u308b\u30d1\u30eb\u30b9\u5e45\u306f&#8230;<br \/>\n1.925 \/ 20 = 9.6[%]<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\npwm.ChangeDutyCycle(9.6)\r\n<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/elecronics\/wp-content\/uploads\/2018\/05\/013-2.png\" alt=\"\" \/><br \/>\n\u78ba\u304b\u306b 45\u5ea6\u306e\u4f4d\u7f6e\u307e\u3067\u56de\u8ee2\u3057\u305f\u3002<\/p>\n<h3 class=\"my_h\">(5) \u7d42\u4e86\u51e6\u7406<\/h3>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\npwm.stop()\r\nGPIO.cleanup()\r\n<\/pre>\n<p class=\"my_fc_red my_fs_big6\" style=\"margin-top:6rem;margin-bottom:2rem;\">\u554f\u984c\u767a\u751f\uff01<\/p>\n<p>\u610f\u56f3\u3057\u305f\u901a\u308a\u3001\u78ba\u304b\u306b\u30e2\u30fc\u30bf\u30fc\u306f\u6307\u5b9a\u3057\u305f\u89d2\u5ea6\u306b\u56de\u8ee2\u3057\u3066\u304f\u308c\u305f\u3002<\/p>\n<p>\u3067\u3082&#8230;<\/p>\n<p class=\"my_fc_red my_fs_big4\">\u52dd\u624b\u306b\u52d5\u304f&#8230;<\/p>\n<p>\u30d3\u30ea\u30d3\u30ea\u3068\u97f3\u3092\u7acb\u3066\u3066\u632f\u52d5\u3057\u305f\u308a\u3001\u7a81\u7136\u8c6a\u5feb\u306b 180\u5ea6\u56de\u8ee2\u3057\u305f\u308a\u3059\u308b\u3002<br \/>\n\u30d1\u30eb\u30b9\u306e\u7acb\u3061\u4e0a\u304c\u308a\u30bf\u30a4\u30df\u30f3\u30b0\u3084\u5e45\u306a\u3069\u6642\u9593\u8ef8\u65b9\u5411\u3067\u4e71\u308c\u308b <span class=\"my_fc_red my_fs_big4\">\u30b8\u30c3\u30bf<\/span> \u3068\u3044\u3046\u3084\u3064\u304b\uff1f<\/p>\n<p><span class=\"my_fc_crimsonBBig\">ToDo: AC\u30a2\u30c0\u30d7\u30bf\u30fc\u304c 5V 1.5A\u306e\u7269\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u3002\u96fb\u6d41\u5024 2A\u306a\u3069\u306e\u5927\u304d\u306a\u7269\u306b\u5909\u66f4\u3057\u3066\u8a66\u3057\u3066\u307f\u308b\u3002<\/span><\/p>\n<p>\u56de\u308a\u3059\u304e\u3066\u632f\u308a\u5207\u3063\u3066\u623b\u3063\u3066\u3053\u306a\u304f\u3082\u306a\u3063\u305f\u3002<br \/>\n\u30e2\u30fc\u30bf\u30fc\u304c\u52d5\u304b\u306a\u304f\u306a\u308a\u300c\u58ca\u308c\u305f\u304b&#8230;\u300d\u3068\u899a\u609f\u3057\u305f\u304c\u3001<span class=\"my_fc_crimson\">\u3053\u308c\u306f\u7121\u7406\u3084\u308a\u624b\u3067\u56de\u3057\u3066\u5fa9\u65e7\u3055\u305b\u305f\u3002<\/span><\/p>\n<p class=\"my_fc_red my_fs_big4\">\u3072\u3087\u3063\u3068\u3057\u3066\u30bd\u30d5\u30c8PWM\u3067\u52d5\u3044\u3066\u3044\u308b\uff1f<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nRPi.GPIO.PWM(12, 50)\r\n<\/pre>\n<p><span class=\"my_fc_crimson\">RPi.GPIO\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u3053\u306e\u4f7f\u3044\u65b9\u3067\u306f\u3001\u30cf\u30fc\u30c9 PWM\u5236\u5fa1\u3092\u3057\u3066\u304f\u308c\u3066\u3044\u306a\u3044\uff1f<\/span><\/p>\n<p>\u30aa\u30b7\u30ed\u3067 PWM\u4fe1\u53f7\u7dda\u3092\u8997\u304d\u898b\u308b\u3068 20ms\u5468\u671f\u3067\u30d1\u30eb\u30b9\u304c\u6d41\u308c\u3001\u30d1\u30eb\u30b9\u5e45\u304c\u4e71\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u306f\u898b\u3048\u306a\u3044\u3002<br \/>\n\u3053\u3093\u306a\u72b6\u614b\u3067\u3082\u4e0d\u5b89\u5b9a\uff06\u8c6a\u5feb\u306b\u56de\u8ee2\u3057\u305f\u308a\u3059\u308b\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/elecronics\/wp-content\/uploads\/2018\/05\/014-1.png\" alt=\"\" \/><\/p>\n<p>\u30fb\u30d1\u30eb\u30b9\u5e45\u304c\u4e00\u5b9a\u7bc4\u56f2\u304b\u3089\u306f\u307f\u51fa\u3057\u305f\u3068\u304d\u3001<br \/>\n\u30fb\u4fe1\u53f7\u306e\u7acb\u3061\u4e0a\u304c\u308a\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u305a\u308c\u305f\u3068\u304d\u3001<br \/>\n\u306b\u30c8\u30ea\u30ac\u30fc\u3092\u304b\u3051\u3066\u30aa\u30b7\u30ed\u306e\u8868\u793a\u3092\u505c\u6b62\u3055\u305b\u3066\u307f\u305f\u3044\u304c\u3001\u3067\u304d\u306a\u3044&#8230;<br \/>\n<span class=\"my_fc_crimson\">\u30bd\u30d5\u30c8PWM\u3067\u672c\u5f53\u306b\u304a\u304b\u3057\u306a\u4fe1\u53f7\u3092\u51fa\u529b\u3057\u3066\u3044\u308b\u306e\u304b\uff1f \u304c\u78ba\u8a8d\u3067\u304d\u306a\u3044&#8230;<\/span><\/p>\n<h3 class=\"my_h\">(5) \u30cf\u30fc\u30c9\u30a6\u30a7\u30a2PWM\u3067\u30e2\u30fc\u30bf\u30fc\u3092\u5efb\u3059\u3002<span class=\"my_fc_red\">\u3010\u4ed5\u5207\u308a\u76f4\u3057\u3011<\/span><\/h3>\n<p>RPi.GPIO\u306e\u4e2d\u8eab\u3092\u672a\u78ba\u8a8d\u3060\u304c\u3001RPi.GPIO.PWM() \u306f\u30bd\u30d5\u30c8PWM\u3067\u3042\u308b\u3053\u3068\u306f\u307b\u307c\u9593\u9055\u3044\u306a\u3044\u3002<\/p>\n<p>\u305d\u3053\u3067&#8230;<br \/>\n<span class=\"my_fc_deeppink\">wiringpi<\/span> \u3067\u30cf\u30fc\u30c9 PWM\u304c\u51fa\u6765\u308b\u3068\u3044\u3046\u60c5\u5831\u306b\u8fbf\u308a\u4ed8\u304d\u3001\u3053\u308c\u3092\u8a66\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>Super User\u3067 Python\u3092\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo python\r\n<\/pre>\n<p>Python Shell\u3067\u4ee5\u4e0b\u3092\u6253\u3061\u8fbc\u3080\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport wiringpi\r\n\r\nwiringpi.wiringPiSetupGpio()\r\nwiringpi.pinMode(18, wiringpi.GPIO.PWM_OUTPUT)\r\nwiringpi.pwmSetMode(wiringpi.GPIO.PWM_MODE_MS)\r\nwiringpi.pwmSetRange(1024)\r\nwiringpi.pwmSetClock(375)\r\n\r\nwiringpi.pwmWrite(18, 74) # 0deg. (1024 x 7.25% = 74)\r\n\r\nwiringpi.pwmWrite(18, 123) # +90deg. (1024 x 12% = 123)\r\n\r\nwiringpi.pwmWrite(18, 26) # -90deg. (1024 x 2.5% = 26)\r\n<\/pre>\n<p>\u30fbPWM_MODE_MS : PWM\u5468\u6ce2\u6570\u56fa\u5b9a\u30e2\u30fc\u30c9\u3092\u9078\u629e\u3059\u308b\u3002 <a href=\"https:\/\/www.slideshare.net\/YoshimotoYukiyoshi\/raspberry-pipwm\" target=\"_blank\" rel=\"noopener noreferrer\">\u53c2\u8003\u60c5\u5831<\/a><br \/>\n\u30fbpwmSetRange(1024) : Duty Cycle = 100% \u306e\u3068\u304d\u306b 1024\u3068\u3059\u308b\u3002<br \/>\n\u30fbpwmSetClock(375) : PWM\u5468\u6ce2\u6570 = \u30e9\u30ba\u30d1\u30a4\u5185\u8535PWM\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u52d5\u4f5c\u30af\u30ed\u30c3\u30af\u5468\u6ce2\u6570{19.2MHz} \/ (PWM\u4fe1\u53f7\u306e\u5468\u6ce2\u6570{50Hz} x \u30ec\u30f3\u30b8{1024})<\/p>\n<p>\u4eca\u5ea6\u306f\u30e2\u30fc\u30bf\u30fc\u304c <span class=\"my_fc_deeppink my_fs_big3\">\u30d4\u30bf\u30c3<\/span> \u3068\u6b62\u307e\u308a\u3001\u30d3\u30ea\u30d3\u30ea\u3057\u3073\u308c\u305f\u3088\u3046\u306a\u52d5\u304d\u306f\u5168\u304f\u898b\u305b\u306a\u3044\u3002<br \/>\n\u3053\u308c\u304c\u30cf\u30fc\u30c9 PWM\u306e\u5b89\u5b9a\u611f\u3060\u3002\u3059\u3070\u3089\u3057\u3044\uff01<\/p>\n<h3 class=\"my_h\">(6) \u3082\u3057\u81ea\u5206\u3067\u3061\u3083\u3093\u3068\u4f5c\u308a\u305f\u3051\u308c\u3070&#8230;<\/h3>\n<p>\u30e9\u30ba\u30d1\u30a4\u306b\u642d\u8f09\u3055\u308c\u3066\u3044\u308b\u30de\u30a4\u30b3\u30f3\u306e\u4ed5\u69d8\u66f8\u3092\u898b\u3066\u3001PWM\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30c9\u30e9\u30a4\u30d0\u3092\u81ea\u4f5c\u3059\u308b\u3002\uff08P.138 \uff5e\uff09<br \/>\n<a href=\"https:\/\/www.raspberrypi.org\/app\/uploads\/2012\/02\/BCM2835-ARM-Peripherals.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"my_border_1px\" src=\"https:\/\/www.dogrow.net\/elecronics\/wp-content\/uploads\/2018\/05\/080.png\" alt=\"\"  \/><br \/>\nhttps:\/\/www.raspberrypi.org\/app\/uploads\/2012\/02\/BCM2835-ARM-Peripherals.pdf<\/a><\/p>\n<p><a href=\"http:\/\/wiringpi.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">wiringpi<\/a> \u306e\u4e2d\u3067\u306f\u3053\u306e\u5236\u5fa1\u3092\u3057\u3066\u3044\u308b\u306e\u3060\u308d\u3046\u304b\u3089\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u8eab\u3092\u8997\u3044\u3066\u5236\u5fa1\u65b9\u6cd5\u3092\u7406\u89e3\u3059\u308b\u306e\u3082\u3088\u3044\u3002<\/p>\n<p>\u3044\u3064\u304b\u4f59\u88d5\u304c\u51fa\u6765\u305f\u3089\u3084\u3063\u3066\u307f\u3088\u3046\u3002<\/p>\n<h1 class=\"my_h\">\u30107\u3011Raspberry Pi 5\u3067\u306e\u5b9f\u88c5 (2024.11.23\u8ffd\u8a18)<\/h1>\n<h3 class=\"my_h\">(1) \u611a\u76f4\u306b\u624b\u52d5\u3067PWM\u5236\u5fa1\u3059\u308b\u5834\u5408<\/h3>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport lgpio\r\nimport time\r\n\r\nSERVO_PIN = 12\r\nchip = lgpio.gpiochip_open(0)\r\nlgpio.gpio_claim_output(chip, SERVO_PIN)\r\n\r\n# PWM\u4fe1\u53f7\u3092\u624b\u52d5\u3067\u751f\u6210\r\n# - frequency  : PWM\u5468\u6ce2\u6570\uff08Hz\uff09\r\n# - duty_cycle : \u30c7\u30e5\u30fc\u30c6\u30a3\u30b5\u30a4\u30af\u30eb\uff080\u301c100\uff09\r\n# - duration   : PWM\u4fe1\u53f7\u3092\u51fa\u529b\u3059\u308b\u6642\u9593\uff08\u79d2\uff09\r\ndef generate_pwm(chip, pin, frequency, duty_cycle, duration):\r\n    period    = 1.0 \/ frequency                # \u5468\u671f\uff08\u79d2\uff09\r\n    high_time = period * (duty_cycle \/ 100.0)  # HIGHT\u306e\u6642\u9593\r\n    low_time  = period - high_time             # LOW  \u306e\u6642\u9593\r\n    \r\n    end_time = time.time() + duration\r\n    while time.time() &lt; end_time:\r\n        lgpio.gpio_write(chip, pin, 1); time.sleep(high_time)\r\n        lgpio.gpio_write(chip, pin, 0); time.sleep(low_time)\r\n\r\n# \u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u3092\u6307\u5b9a\u3057\u305f\u89d2\u5ea6\u306b\u79fb\u52d5\r\n# - angle: 0\u301c180\u5ea6\u306e\u7bc4\u56f2\u3067\u6307\u5b9a\r\ndef set_angle(angle):\r\n    pulse_width = 0.5 + (angle \/ 180.0 * 1.9)  # 0\u5ea6=0.5ms, 180\u5ea6=2.4ms \u2192 \u7bc4\u56f2\u306f 1.9\r\n    duty_cycle  = (pulse_width \/ 20.0) * 100   # \u5468\u6ce2\u657050Hz\uff08\u5468\u671f20ms\uff09\r\n    print(f&quot;(PW, DC) = (%.3f, %.3f)&quot; % (pulse_width, duty_cycle))\r\n    generate_pwm(chip, SERVO_PIN, 50, duty_cycle, 0.5)  # 50Hz\u3067PWM\u751f\u6210\r\n\r\ntry:\r\n    while True:\r\n        print(&quot;0\u5ea6\u306b\u79fb\u52d5&quot;)\r\n        set_angle(0)\r\n        time.sleep(1)\r\n        \r\n        print(&quot;90\u5ea6\u306b\u79fb\u52d5&quot;)\r\n        set_angle(90)\r\n        time.sleep(1)\r\n        \r\n        print(&quot;180\u5ea6\u306b\u79fb\u52d5&quot;)\r\n        set_angle(180)\r\n        time.sleep(1)\r\n        \r\nexcept KeyboardInterrupt:\r\n    print(&quot;\u7d42\u4e86\u3057\u307e\u3059&quot;)\r\n\r\nfinally:\r\n    lgpio.gpiochip_close(chip)\r\n<\/pre>\n<h3 class=\"my_h\">(2) gpiozero\u30d1\u30c3\u30b1\u30fc\u30b8\u306ePWM\u5236\u5fa1\u30af\u30e9\u30b9\u3092\u5229\u7528\u3059\u308b\u5834\u5408<\/h3>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nfrom gpiozero import PWMOutputDevice\r\nfrom time import sleep\r\n\r\n# GPIO12\u3092PWM\u30c7\u30d0\u30a4\u30b9\u3068\u3057\u3066\u8a2d\u5b9a\r\nservo = PWMOutputDevice(12, frequency=50)  # \u5468\u6ce2\u657050Hz\uff08SG-90\u306f50Hz\u3067\u52d5\u4f5c\uff09\r\n\r\n# \u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u3092\u6307\u5b9a\u3057\u305f\u89d2\u5ea6\u306b\u79fb\u52d5\r\n#  - angle: 0\u301c180\u5ea6\u306e\u7bc4\u56f2\u3067\u6307\u5b9a\r\ndef set_angle(angle):\r\n    # \u30d1\u30eb\u30b9\u5e45\u3092\u30c7\u30e5\u30fc\u30c6\u30a3\u30b5\u30a4\u30af\u30eb\u306b\u5909\u63db (500us\u301c2400us\u30922.5%\u301c12.0%\u306b\u30de\u30c3\u30d4\u30f3\u30b0)\r\n    duty_cycle = (500 + (angle \/ 180.0) * 1900) \/ 20000.0\r\n    servo.value = duty_cycle  # \u30c7\u30e5\u30fc\u30c6\u30a3\u30b5\u30a4\u30af\u30eb\u3092\u8a2d\u5b9a\r\n    sleep(0.5)  # \u30b5\u30fc\u30dc\u306e\u79fb\u52d5\u5f85\u6a5f\r\n    servo.off()  # \u632f\u52d5\u9632\u6b62\u306e\u305f\u3081PWM\u4fe1\u53f7\u3092\u505c\u6b62\r\n\r\ntry:\r\n    while True:\r\n        print(&quot;0\u5ea6\u306b\u79fb\u52d5&quot;)\r\n        set_angle(0)\r\n        sleep(1)\r\n\r\n        print(&quot;90\u5ea6\u306b\u79fb\u52d5&quot;)\r\n        set_angle(90)\r\n        sleep(1)\r\n\r\n        print(&quot;180\u5ea6\u306b\u79fb\u52d5&quot;)\r\n        set_angle(180)\r\n        sleep(1)\r\n\r\nexcept KeyboardInterrupt:\r\n    print(&quot;\u7d42\u4e86\u3057\u307e\u3059&quot;)\r\nfinally:\r\n    servo.off()\r\n<\/pre>\n<h1 class=\"my_h\">\u30108\u3011\u6240\u611f<\/h1>\n<p>\u4eca\u56de\u306f\u30e2\u30fc\u30bf\u30fc\u304c\u304a\u304b\u3057\u306a\u6319\u52d5\u3092\u898b\u305b\u305f\u306e\u3067\u3001\u4e0d\u826f\u54c1\u306a\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u7591\u3063\u3066\u3057\u307e\u3063\u305f\u3002<br \/>\n\u5b9f\u969b\u306b\u306f\u30e9\u30ba\u30d1\u30a4\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2 PWM\u306e\u4e0d\u5b89\u5b9a\u3055\u304c\u30e2\u30fc\u30bf\u30fc\u306e\u8aa4\u4f5c\u52d5\u3068\u306a\u3063\u3066\u8868\u308c\u3066\u3044\u305f\u3002<br \/>\n<span class=\"my_fc_crimson my_fw_bold\">\u203b\u8fd1\u3044\u3046\u3061\u306b\u300c5V\u51fa\u529b\u6607\u5727DCDC\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc\u300d\u3092\u4f7f\u3063\u3066PWM\u4fe1\u53f7\u306e\u96fb\u5727\u3092\u4e0a\u3052\u3066\u5b9f\u9a13\u3057\u3066\u307f\u3088\u3046\u3002<\/span><\/p>\n<p>\u305d\u308c\u306b\u6bd4\u3079\u3066\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2 PWM\u306f\u5b89\u5b9a\u611f\u304c\u3059\u3070\u3089\u3057\u3044\uff01<br \/>\n\u3044\u3064\u304b\u30e9\u30b8\u30b3\u30f3\u30ab\u30fc\u306e\u30b9\u30c6\u30a2\u30ea\u30f3\u30b0\u306b\u4f7f\u3063\u3066\u307f\u305f\u3044\u3002<\/p>\n<p>\u307e\u305f\u3001PWM\u3092\u4f7f\u3048\u3070\u3001\u30a2\u30ca\u30ed\u30b0\u30c7\u30d0\u30a4\u30b9\u3092\u30c7\u30b8\u30bf\u30eb\u4fe1\u53f7\u3067\u5236\u5fa1\u3067\u304d\u308b\u3002<br \/>\n\u4f8b\u3048\u3070\u3001<br \/>\n\u30fbLED\u306e\u660e\u308b\u3055\u3092\u597d\u304d\u306b\u5909\u3048\u308b\u3002<br \/>\n\u30fb\u30e2\u30fc\u30bf\u30fc\u306e\u56de\u8ee2\u901f\u5ea6\u3092\u597d\u304d\u306b\u5909\u3048\u308b\u3002<br \/>\n\u306a\u3069\u3001\u5404\u30c7\u30d0\u30a4\u30b9\u306b\u5165\u529b\u3059\u308b\u96fb\u5727\u3092\u5909\u3048\u306a\u304f\u3066\u3082\u5236\u5fa1\u3067\u304d\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u3044\u3064\u304b\u304d\u3063\u3068\u4f55\u304b\u306e\u5f79\u306b\u7acb\u3064\u3060\u308d\u3046\u3002<\/p>\n<p>\u3044\u3064\u304b\u304d\u3063\u3068\u30e9\u30b8\u30b3\u30f3\u304c\u4f5c\u308a\u305f\u304f\u306a\u308b\u306f\u305a&#8230;<\/p>\n\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-format=\"fluid\"\n     data-ad-layout-key=\"-fb+5w+4e-db+86\"\n     data-ad-client=\"ca-pub-0629873272207301\"\n     data-ad-slot=\"9529643655\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n<h1 class=\"my_h\">\u53c2\u8003\u60c5\u5831<\/h1>\n<p>\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 m(_ _)m<br \/>\n<a href=\"https:\/\/www.slideshare.net\/YoshimotoYukiyoshi\/raspberry-pipwm\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.slideshare.net\/YoshimotoYukiyoshi\/raspberry-pipwm<\/a><\/p>\n<h1 class=\"my_h\">\u9023\u8f09<\/h1>\n<p>Raspberry Pi\u306e\u521d\u671f\u8a2d\u5b9a\u304b\u3089\u7c21\u5358\u306a\u52d5\u4f5c\u5b9f\u9a13\u307e\u3067\u3001\u4ee5\u4e0b\u306f\u30de\u30a4\u30b3\u30f3\u5236\u5fa1\u5165\u9580\u306e\u9023\u8f09\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/www.dogrow.net\/elecronics\/blog21\/\" rel=\"noopener noreferrer\">(21) \u3010\u9023\u8f091-1\u3011\u30de\u30a4\u30b3\u30f3\u3067\u96fb\u5b50\u5de5\u4f5c\u5165\u9580\uff1a\u9078\u5b9a<\/a><br \/>\n<a href=\"https:\/\/www.dogrow.net\/elecronics\/blog22\/\" rel=\"noopener noreferrer\">(22) \u3010\u9023\u8f091-2\u3011\u30de\u30a4\u30b3\u30f3\u3067\u96fb\u5b50\u5de5\u4f5c\u5165\u9580\uff1a\u30e9\u30ba\u30d1\u30a4\u521d\u671f\u8a2d\u5b9a<\/a><br \/>\n<a href=\"https:\/\/www.dogrow.net\/elecronics\/blog23\/\" rel=\"noopener noreferrer\">(23) \u3010\u9023\u8f091-3\u3011\u30de\u30a4\u30b3\u30f3\u3067\u96fb\u5b50\u5de5\u4f5c\u5165\u9580\uff1aLED\u70b9\u6ec5<\/a><br \/>\n<a href=\"https:\/\/www.dogrow.net\/elecronics\/blog24\/\" rel=\"noopener noreferrer\">(24) \u3010\u9023\u8f091-4\u3011\u30de\u30a4\u30b3\u30f3\u3067\u96fb\u5b50\u5de5\u4f5c\u5165\u9580\uff1a\u6642\u5831\u3092\u4f5c\u308b<\/a><br \/>\n<a href=\"https:\/\/www.dogrow.net\/elecronics\/blog26\/\" rel=\"noopener noreferrer\">(26) \u3010\u9023\u8f091-5\u3011\u30de\u30a4\u30b3\u30f3\u3067\u96fb\u5b50\u5de5\u4f5c\u5165\u9580\uff1a\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u3092\u5efb\u3059<\/a><br \/>\n<a href=\"https:\/\/www.dogrow.net\/elecronics\/blog27\/\" rel=\"noopener noreferrer\">(27) \u3010\u9023\u8f091-6\u3011\u30de\u30a4\u30b3\u30f3\u3067\u96fb\u5b50\u5de5\u4f5c\u5165\u9580\uff1a\u5408\u6210\u97f3\u58f0\u3067\u6642\u5831<\/a>\u3000<span class=\"my_fc_deeppinkBBig\">\u2190\u6b21\u56de<\/span><\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u3084\u3063\u3066\u307f\u305f\u3044\u3053\u3068 Raspberry Pi\u306e \u30cf\u30fc\u30c9\u30a6\u30a7\u30a2 PWM\u3092\u4f7f\u3063\u3066\u30b5\u30fc\u30dc\u30e2\u30fc\u30bf\u30fc\u3092\u5efb\u3057\u3066\u307f\u305f\u3044\u3002 2. \u30cf\u30fc\u30c9PWM vs \u30bd\u30d5\u30c8PWM (1) \u30cf\u30fc\u30c9PWM PWM\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\uff08\uff1dPWM\u5c02\u7528\u306eH\/W\uff09\u3067\u5236\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/elecronics\/blog26\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,17,19,21],"tags":[],"class_list":["post-1509","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","category-17","category-micom","category-21"],"views":15371,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/elecronics\/wp-json\/wp\/v2\/posts\/1509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/elecronics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/elecronics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/elecronics\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/elecronics\/wp-json\/wp\/v2\/comments?post=1509"}],"version-history":[{"count":129,"href":"https:\/\/www.dogrow.net\/elecronics\/wp-json\/wp\/v2\/posts\/1509\/revisions"}],"predecessor-version":[{"id":3324,"href":"https:\/\/www.dogrow.net\/elecronics\/wp-json\/wp\/v2\/posts\/1509\/revisions\/3324"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/elecronics\/wp-json\/wp\/v2\/media?parent=1509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/elecronics\/wp-json\/wp\/v2\/categories?post=1509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/elecronics\/wp-json\/wp\/v2\/tags?post=1509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}