{"id":1601,"date":"2020-01-02T10:15:28","date_gmt":"2020-01-02T10:15:28","guid":{"rendered":"http:\/\/mikrobotik.com\/wp2\/?p=1601"},"modified":"2020-01-08T04:52:20","modified_gmt":"2020-01-08T04:52:20","slug":"proteus-arduino-kutuphanelerinde-sorun","status":"publish","type":"post","link":"https:\/\/www.mikrobotik.com\/wp2\/2020\/01\/02\/proteus-arduino-kutuphanelerinde-sorun\/","title":{"rendered":"Proteus Arduino k\u00fct\u00fcphanelerinde sorun."},"content":{"rendered":"<p>Proteusta Arduino sim\u00fcle etmek i\u00e7in Atmega 328 entegre se\u00e7ilip sim\u00fcle edilebilir. Fakat ba\u011flant\u0131lar\u0131 yaparken a\u015fa\u011f\u0131daki gibi bir model oldu\u011funda bizim i\u00e7in kolayl\u0131k olacakt\u0131r.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1603 lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2020\/01\/Arduino-Library-for-Proteus-1.jpg\" alt=\"\" width=\"377\" height=\"264\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 377px; --smush-placeholder-aspect-ratio: 377\/264;\" \/><\/p>\n<p>Bu kolayl\u0131\u011f\u0131n yan\u0131 s\u0131ra bu tip modellerde \u00e7\u0131kabilecek sorunlar ise programlama yaparken size vakit kaybettirebilecektir. Nitekim bende de \u00f6yle oldu.<br \/>\nProblem yaz\u0131l\u0131msal seri kullan\u0131ld\u0131\u011f\u0131nda ortaya \u00e7\u0131k\u0131yordu. Program olarak Arduino ide de bulunan \u00f6rnek program kullan\u0131ld\u0131.<\/p>\n<p>Program\u0131n yapt\u0131\u011f\u0131 i\u015f donan\u0131msal seri porta bir bilgi g\u00f6nderdi\u011finizde bunu yaz\u0131l\u0131msal seri olarak bildiriyor. Yaz\u0131l\u0131msal seri olarak bir bilgi geldi\u011finde ise bunu donan\u0131msal seri k\u0131sm\u0131nda g\u00f6sterebiliyor. Basit bir program.<br \/>\nFakat arduino uno k\u00fct\u00fcphanesinde yaz\u0131l\u0131msal seri olarak Rx=10. pin Tx=11. pin olarak kulland\u0131m. Bu \u015fekilde kullan\u0131mda yaz\u0131l\u0131msal seri bilgi g\u00f6nderiyor fakat bilgi alam\u0131yordu.<br \/>\n\u0130\u015fin bir ba\u015fka boyutu ise bilgi gelmesini beklemek i\u00e7in WHILE d\u00f6ng\u00fcs\u00fc kurdu\u011funuzda sanki bilgi gelmi\u015f gibi bu sat\u0131rlar\u0131 atl\u0131yordu.<br \/>\nTabii ki bu da program\u0131m\u0131 tekrar tekrar g\u00f6zden ge\u00e7irmeme sebep oldu. Sonras\u0131nda, \u00f6nceden DS1307 RTC k\u00fct\u00fcphanesinde de ayn\u0131 \u015fey ba\u015f\u0131ma geldi\u011finden proteusun ATMEGA 328 entegresiyle kontrol etmek istedim. Sorunun UNO k\u00fct\u00fcphanesinde oldu\u011funu g\u00f6rd\u00fcm.<br \/>\n( DS1307 de SQW ucu \u00e7al\u0131\u015fm\u0131yordu. )<\/p>\n<p><span style=\"line-height: 1.6471;\">Sizlerde bu tip k\u00fct\u00fcphanelere \u015f\u00fcpheyle yakla\u015f\u0131n demiyorum. \u00c7\u00fcnk\u00fc bir \u00e7ok programda kulland\u0131m sorun yaratmam\u0131\u015ft\u0131. Yine de akl\u0131n\u0131zda bulunsun istedim program\u0131n\u0131zdan eminseniz, proteusun sonradan olu\u015fturulmu\u015f k\u00fct\u00fcphanelerini kullan\u0131yorsan\u0131z, ger\u00e7ek proteus modellerini deneyin derim.\u00a0<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Benim kulland\u0131\u011f\u0131m proteus k\u00fct\u00fcphanelerini bu linklerden alm\u0131\u015ft\u0131m.<\/span><br \/>\n<a href=\"https:\/\/320volt.com\/proteus-arduino-library\/\" target=\"_blank\" rel=\"noopener\">1. link : Proteus K\u00fct\u00fcphanesi<\/a><\/p>\n<p><a href=\"https:\/\/www.theengineeringprojects.com\/2015\/12\/arduino-library-proteus-simulation.html\" target=\"_blank\" rel=\"noopener\">2. link : Proteus K\u00fct\u00fcphanesi<\/a><\/p>\n<p><iframe width=\"640\" height=\"360\" data-src=\"https:\/\/www.youtube.com\/embed\/DGPKqz2Lzd0\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"allowfullscreen\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe><\/p>\n<p><span style=\"color: #ff0000;\">Kulland\u0131\u011f\u0131m Arduino program\u0131 budur.<\/span><\/p>\n<pre class=\"height-set:true height:300 lang:arduino decode:true \" title=\"Proteusta Arduino yaz\u0131l\u0131msal seri test program\">\/*\r\n  Software serial multple serial test\r\n\r\n Receives from the hardware serial, sends to software serial.\r\n Receives from software serial, sends to hardware serial.\r\n\r\n The circuit:\r\n * RX is digital pin 10 (connect to TX of other device)\r\n * TX is digital pin 11 (connect to RX of other device)\r\n\r\n Note:\r\n Not all pins on the Mega and Mega 2560 support change interrupts,\r\n so only the following can be used for RX:\r\n 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69\r\n\r\n Not all pins on the Leonardo and Micro support change interrupts,\r\n so only the following can be used for RX:\r\n 8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).\r\n\r\n created back in the mists of time\r\n modified 25 May 2012\r\n by Tom Igoe\r\n based on Mikal Hart's example\r\n\r\n This example code is in the public domain.\r\n\r\n *\/\r\n#include &lt;SoftwareSerial.h&gt;\r\n\r\nSoftwareSerial mySerial(10, 11); \/\/ RX, TX\r\n\r\nvoid setup() {\r\n  \/\/ Open serial communications and wait for port to open:\r\n  Serial.begin(9600);\r\n  while (!Serial) {\r\n    ; \/\/ wait for serial port to connect. Needed for native USB port only\r\n  }\r\n\r\n\r\n  Serial.println(\"Goodnight moon!\");\r\n\r\n  \/\/ set the data rate for the SoftwareSerial port\r\n  mySerial.begin(9600);\r\n  mySerial.println(\"Hello, world?\");\r\n}\r\n\r\nvoid loop() { \/\/ run over and over\r\n  if (mySerial.available()) {\r\n    Serial.write(mySerial.read());\r\n    \/\/mySerial.println(\"Hello, world?\");\r\n  }\r\n  if (Serial.available()) {\r\n    mySerial.write(Serial.read());\r\n  }\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Proteusta Arduino sim\u00fcle etmek i\u00e7in Atmega 328 entegre se\u00e7ilip sim\u00fcle edilebilir. Fakat ba\u011flant\u0131lar\u0131 yaparken a\u015fa\u011f\u0131daki gibi bir model oldu\u011funda bizim i\u00e7in kolayl\u0131k olacakt\u0131r. Bu kolayl\u0131\u011f\u0131n yan\u0131 s\u0131ra bu tip modellerde&#8230; <\/p>\n","protected":false},"author":1,"featured_media":1608,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,13],"tags":[],"class_list":["post-1601","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-proteus","category-puf"],"_links":{"self":[{"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/posts\/1601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/comments?post=1601"}],"version-history":[{"count":3,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/posts\/1601\/revisions"}],"predecessor-version":[{"id":1605,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/posts\/1601\/revisions\/1605"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/media\/1608"}],"wp:attachment":[{"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/media?parent=1601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/categories?post=1601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/tags?post=1601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}