{"id":537,"date":"2018-12-27T15:08:50","date_gmt":"2018-12-27T12:08:50","guid":{"rendered":"http:\/\/www.aydiner.gen.tr\/?page_id=537"},"modified":"2024-09-22T13:36:13","modified_gmt":"2024-09-22T10:36:13","slug":"arduino-ile-servo-motor-kontrolu-nasil-yapilir","status":"publish","type":"page","link":"https:\/\/www.aydiner.gen.tr\/index.php\/arduino-ile-servo-motor-kontrolu-nasil-yapilir\/","title":{"rendered":"ARDU\u0130NO \u0130LE SERVO MOTOR KONTROL\u00dc NASIL YAPILIR?"},"content":{"rendered":"<p><a href=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2018\/12\/arduino-servo-motor.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-538 size-medium\" src=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2018\/12\/arduino-servo-motor-300x181.png\" alt=\"\" width=\"300\" height=\"181\" data-id=\"538\" srcset=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2018\/12\/arduino-servo-motor-300x181.png 300w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2018\/12\/arduino-servo-motor-600x363.png 600w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2018\/12\/arduino-servo-motor-768x464.png 768w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2018\/12\/arduino-servo-motor-1024x619.png 1024w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2018\/12\/arduino-servo-motor.png 1320w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Servo motorlar 0 ile 180 derece aras\u0131nda 1 derece hassasiyetiyle d\u00f6nebilen motorlard\u0131r. Bu \u00f6zellikleri nedeniyle bir \u00e7ok projede kullan\u0131lmaktad\u0131r. Servo motorlar\u0131n arduino kart\u0131na ba\u011flamak i\u00e7in 3 farkl\u0131 renk kablosundan k\u0131rm\u0131z\u0131 renk kablo arduinonun 5V pinine, kahverengi olan\u0131 GND pinine, turuncu olan\u0131 ise ardunionun 3,5,6,9,10 veya 11 numaral\u0131 pinlerinden birisine ba\u011flan\u0131r.<\/p>\n<p>Servo motorlar\u0131n \u00e7al\u0131\u015fabilmesi i\u00e7in gereken k\u00fct\u00fcphane dosyas\u0131 arduino kurulumunda otomatik olarak y\u00fcklendi\u011fi i\u00e7in herhangi bir k\u00fct\u00fcphane kurulumuna gerek olmamaktad\u0131r. Servo motor i\u00e7in gerekli k\u00fct\u00fcphane dosyas\u0131 #include&lt;Servo.h&gt; kodu ile eklenir.<\/p>\n<p><!--more--><\/p>\n<pre class=\"lang:default decode:true \">\/\/Servo motor \u00e7al\u0131\u015fmas\u0131  i\u00e7in gerekli k\u00fct\u00fcphane dosyas\u0131n\u0131 ekledik.\r\n#include&lt;Servo.h&gt;\r\n \r\nServo motor; \/\/motor ad\u0131nda bir servo nesnesi olu\u015fturduk.\r\n \r\nvoid setup() {\r\nmotor.attach(3); \/\/ Servo motorun data pinini arduino 3 numaral\u0131 \r\n\/\/pine ba\u011flad\u0131\u011f\u0131m\u0131z\u0131 belirttik.\r\n}\r\n \r\nvoid loop() {\r\nmotor.write(90); \/\/ Servo motora a\u00e7\u0131 de\u011feri olarak 90 dereceye d\u00f6nd\u00fcrd\u00fck.\r\n}<\/pre>\n<p>Servo motorlar 0 ile 180 derece a\u00e7\u0131lar\u0131nda d\u00f6nebilen motorlar oldu\u011fundan,\u00a0motor.write(a\u00e7\u0131)\u00a0komutunda a\u00e7\u0131 yerine 0-180 aras\u0131 bir de\u011fer yazarak servo motorunuzu hareket ettirebilirsiniz.<\/p>\n<p>A\u015fa\u011f\u0131daki \u00f6rnekte is servo motorumuzun 0 ile 180 derece a\u00e7\u0131 aral\u0131\u011f\u0131nda birer a\u00e7\u0131l\u0131k de\u011fi\u015fimle s\u00fcrekli ileri ve geri d\u00f6nmesini sa\u011flayabiliriz.<\/p>\n<pre class=\"lang:default decode:true \">#include&lt;Servo.h&gt;\r\nServo motor;\r\nint aci;\r\n \r\nvoid setup() {\r\n motor.attach(3);\r\n}\r\n \r\nvoid loop() {\r\n \r\nfor(aci=0;aci&lt;=180;aci+=1){\r\nmotor.write(aci);\r\ndelay(100);\r\n}\r\nfor(aci=180;aci&gt;=0;aci-=1){\r\nmotor.write(aci);\r\ndelay(100);\r\n}\r\n \r\n}<\/pre>\n<p><span style=\"color: #ffffff;\">https:\/\/fmovieshd.mov\/<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Servo motorlar 0 ile 180 derece aras\u0131nda 1 derece hassasiyetiyle d\u00f6nebilen motorlard\u0131r. Bu \u00f6zellikleri nedeniyle bir \u00e7ok projede kullan\u0131lmaktad\u0131r. Servo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-537","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/pages\/537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/comments?post=537"}],"version-history":[{"count":1,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/pages\/537\/revisions"}],"predecessor-version":[{"id":2438,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/pages\/537\/revisions\/2438"}],"wp:attachment":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/media?parent=537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}