{"id":3364,"date":"2018-04-18T20:54:02","date_gmt":"2018-04-18T17:54:02","guid":{"rendered":"https:\/\/devrearsivi.com\/index.php\/?p=3364"},"modified":"2018-04-18T20:55:06","modified_gmt":"2018-04-18T17:55:06","slug":"arduino-denge-projesi","status":"publish","type":"post","link":"https:\/\/devrearsivi.com\/arduino-denge-projesi\/","title":{"rendered":"Arduino Denge Projesi"},"content":{"rendered":"
Merhabalar,\u00a0Bu g\u00fcn\u00a0 denge entegresi diyebilece\u011fimiz bir entegre ile yap\u0131lan projemizi payla\u015f\u0131yorum.<\/p>\n
\u00d6ncelikle ba\u015fl\u0131kta g\u00f6r\u00fclen \u2018gyro\u2019 demek; helikopterin kuyru\u011fundaki kaymalar\u0131 kuyru\u011fa g\u00f6nderdi\u011fi sinyallerle engelleyen bir alettir. Tork basit olarak d\u00f6nd\u00fcrme momenti, d\u00f6nd\u00fcrme kuvveti anlam\u0131na gelir. \u2018gyro stabilizer\u2019 ise denge \u00e7ubu\u011fu desek yeridir.<\/p>\n
Bu projede kullan\u0131lan MPU6050 entegresi ve e\u015flenikleri helikopter, drone ve denge robotu gibi alanlarda da kullan\u0131labilirler.<\/p>\n
Bu proje \u00e7ok basit olabilir ama gerek sens\u00f6r\u00fcn\u00fcz\u00fcn sa\u011flaml\u0131k kontrol\u00fcn\u00fc gerekse denge ile ilgili \u00e7al\u0131\u015fmalar\u0131n\u0131z\u0131 yaparken sizlere \u00f6n ayak olaca\u011f\u0131n\u0131 umuyorum.<\/p>\n
<\/p>\n
<\/p>\n
Ba\u011flant\u0131lar\u0131:<\/strong><\/p>\n Servo ba\u011flant\u0131n\u0131z kablo renklerine g\u00f6re farkl\u0131l\u0131k g\u00f6sterebilir. Ama Sinyal \u00e7\u0131k\u0131\u015f\u0131n\u0131 Arduino\u2019nun 9 nolu pinine ba\u011flamal\u0131s\u0131n\u0131z.A\u015fa\u011f\u0131da kablolar\u0131n ba\u011flant\u0131 renkleri verilmi\u015ftir.<\/p>\n Sar\u0131<\/span> :<\/b>\u00a0Sinyal Kavuni\u00e7i<\/span> :<\/b>\u00a0Sinyal Beyaz :<\/b>\u00a0Sinyal Arduino Yaz\u0131l\u0131m\u0131: 40<\/p>\n","protected":false},"excerpt":{"rendered":" MPU6050 DENGE PROJES\u0130 Merhabalar,\u00a0Bu g\u00fcn\u00a0 denge entegresi diyebilece\u011fimiz bir entegre ile yap\u0131lan projemizi payla\u015f\u0131yorum. \u00d6ncelikle…<\/p>\n","protected":false},"author":1,"featured_media":3365,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1062,467],"tags":[1114,1197,1198,1195,1196,1194],"aioseo_notices":[],"featured_image_urls":{"full":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim.jpg",800,416,false],"thumbnail":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim-150x150.jpg",150,150,true],"medium":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim-300x156.jpg",300,156,true],"medium_large":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim-768x399.jpg",640,333,true],"large":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim.jpg",640,333,false],"1536x1536":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim.jpg",800,416,false],"2048x2048":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim.jpg",800,416,false],"covernews-slider-full":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim.jpg",800,416,false],"covernews-slider-center":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim.jpg",800,416,false],"covernews-featured":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim.jpg",800,416,false],"covernews-medium":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim.jpg",540,281,false],"covernews-medium-square":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/04\/mpu6050cizim.jpg",400,208,false]},"author_info":{"display_name":"Ferhat \u00c7elik","author_link":"https:\/\/devrearsivi.com\/author\/94ferhat\/"},"category_info":"Arduino Devreler<\/a> Bitirme Tez Devreler<\/a>","tag_info":"Bitirme Tez Devreler","comment_count":"0","_links":{"self":[{"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/posts\/3364"}],"collection":[{"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/comments?post=3364"}],"version-history":[{"count":3,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/posts\/3364\/revisions"}],"predecessor-version":[{"id":3368,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/posts\/3364\/revisions\/3368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/media\/3365"}],"wp:attachment":[{"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/media?parent=3364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/categories?post=3364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/tags?post=3364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\n
\nK\u0131rm\u0131z\u0131<\/span> :<\/b>\u00a0Pozitif (+)
\nSiyah :<\/b>\u00a0Negatif(-)<\/p>\n
\nK\u0131rm\u0131z\u0131<\/span> :<\/b>\u00a0Pozitif (+)
\nKahverengi<\/span> :<\/b>\u00a0Negatif(-)<\/p>\n
\nK\u0131rm\u0131z\u0131<\/span> :<\/b>\u00a0Pozitif (+)
\nSiyah :<\/b>\u00a0Negatif(-)<\/p>\n
\n1 #include “Wire.h”
\n2 #include “I2Cdev.h”
\n3 #include “MPU6050.h”
\n4 #include “Servo.h”
\n5
\n6 MPU6050 mpu;
\n7
\n8 int16_t ax, ay, az;
\n9 int16_t gx, gy, gz;
\n10
\n11 Servo myservo;
\n12
\n13 int val;
\n14 int prevVal;
\n15
\n16 void setup()
\n17 {
\n18 Wire.begin();
\n19 Serial.begin(38400);
\n20
\n21 Serial.println(“MPU Baslatiliyor”);
\n22 mpu.initialize();
\n23 Serial.println(mpu.testConnection() ? “Baglandi” : “Baglanti Hatali”);
\n24 myservo.attach(9);
\n25 }
\n26
\n27 void loop()
\n28 {
\n29 mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
\n30
\n31 val = map(ay, -17000, 17000, 0, 179);
\n32 if (val != prevVal)
\n33 {
\n34 myservo.write(val);
\n35 prevVal = val;
\n36 }
\n37
\n38 delay(50);
\n39 }<\/p>\n