{"id":2747,"date":"2018-06-13T19:55:38","date_gmt":"2018-06-13T19:55:38","guid":{"rendered":"http:\/\/ioarvanit.gr\/?p=2747"},"modified":"2022-05-01T20:30:35","modified_gmt":"2022-05-01T20:30:35","slug":"%ce%b1%cf%85%cf%84%cf%8c%ce%bc%ce%b1%cf%84%ce%bf-%cf%8c%cf%87%ce%b7%ce%bc%ce%b1-%cf%80%ce%bf%cf%85-%ce%b1%ce%ba%ce%bf%ce%bb%ce%bf%cf%85%ce%b8%ce%b5%ce%af-%ce%bc%ce%b1%cf%8d%cf%81%ce%b7-%ce%b3%cf%81","status":"publish","type":"post","link":"http:\/\/ioarvanit.gr\/en\/archives\/2747","title":{"rendered":"Line follower with Arduino"},"content":{"rendered":"<p>An Arduino project implemented in the Robotics club &#8220;<a href=\"http:\/\/ppf.edu.gr\/hackers\/\" target=\"_blank\" rel=\"noopener\">Young Hackers<\/a>&#8221; in our school (Experimental Elementary School of Florina).<!--more--><\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/W8mv3RNTY24\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<p>Bill of materials:<\/p>\n<ul>\n<li>1 Arduino Uno<\/li>\n<li>2 dc gear motors with wheels<\/li>\n<li>1 L293D driver for controlling the motors<\/li>\n<li>1 Infrared Obstacle Avoidance Sensor<\/li>\n<li>1 Infrared Tracking sensor<\/li>\n<li>2 battery cases and \u0391\u0391\u0391 batteries<\/li>\n<li>1 switch<\/li>\n<li>Jumper wires<\/li>\n<li>1 Breadboard<\/li>\n<\/ul>\n<p>At first we used a pre-cut plexiglass frame for our vehicle. Later on our students designed and made their own frame using cardboard and a table tennis ball along with a 3d printed design (<a href=\"https:\/\/www.thingiverse.com\/thing:1728714\" target=\"_blank\" rel=\"noopener\">https:\/\/www.thingiverse.com\/thing:1728714<\/a>) as a castor wheel.<\/p>\n<p>In order to connect the two motors to Arduino and the L293D driver we followed instructions students found on line and are depicted in the following image.<\/p>\n<p><a href=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Screenshot_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-2749\" src=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Screenshot_1.png\" alt=\"\" width=\"616\" height=\"278\" srcset=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Screenshot_1.png 704w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Screenshot_1-300x136.png 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/a><\/p>\n<p>We connected the two motors to PWM pins in Arduino so as to control the speed (0-255 values) and not just their state (on-off).<\/p>\n<p>The schematic and program was made using <a href=\"https:\/\/www.tinkercad.com\/\" target=\"_blank\" rel=\"noopener\">tinkercad<\/a> where all our students have accounts. You can see the final design and program here: <a href=\"https:\/\/www.tinkercad.com\/things\/0ZTQYQ60tYK\" target=\"_blank\" rel=\"noopener\">https:\/\/www.tinkercad.com\/things\/0ZTQYQ60tYK<\/a><\/p>\n<p><a href=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Final-design.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-large wp-image-2750\" src=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Final-design-1024x463.png\" alt=\"\" width=\"660\" height=\"298\" srcset=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Final-design-1024x463.png 1024w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Final-design-300x136.png 300w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Final-design-768x348.png 768w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Final-design.png 1920w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Final-program.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-2751\" src=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Final-program.png\" alt=\"\" width=\"397\" height=\"755\" srcset=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Final-program.png 397w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/Final-program-158x300.png 158w\" sizes=\"auto, (max-width: 397px) 100vw, 397px\" \/><\/a>Our students presented the line follower on various festivals and exhibitions at the end of the year.<\/p>\n<figure id=\"attachment_2766\" aria-describedby=\"caption-attachment-2766\" style=\"width: 660px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0404.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-2766\" src=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0404-1024x686.jpg\" alt=\"\" width=\"660\" height=\"442\" srcset=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0404-1024x686.jpg 1024w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0404-300x201.jpg 300w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0404-768x514.jpg 768w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0404.jpg 1800w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/a><figcaption id=\"caption-attachment-2766\" class=\"wp-caption-text\">The final result<\/figcaption><\/figure>\n<figure id=\"attachment_2778\" aria-describedby=\"caption-attachment-2778\" style=\"width: 1000px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0014_web.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2778\" src=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0014_web.jpg\" alt=\"\" width=\"1000\" height=\"669\" srcset=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0014_web.jpg 1000w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0014_web-300x201.jpg 300w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0014_web-768x514.jpg 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><figcaption id=\"caption-attachment-2778\" class=\"wp-caption-text\">Cardboard frame<\/figcaption><\/figure>\n<figure id=\"attachment_2779\" aria-describedby=\"caption-attachment-2779\" style=\"width: 1000px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0015_web.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2779\" src=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0015_web.jpg\" alt=\"\" width=\"1000\" height=\"669\" srcset=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0015_web.jpg 1000w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0015_web-300x201.jpg 300w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0015_web-768x514.jpg 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><figcaption id=\"caption-attachment-2779\" class=\"wp-caption-text\">Cardboard frame<\/figcaption><\/figure>\n<figure id=\"attachment_2780\" aria-describedby=\"caption-attachment-2780\" style=\"width: 1000px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0026_web.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2780\" src=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0026_web.jpg\" alt=\"\" width=\"1000\" height=\"669\" srcset=\"http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0026_web.jpg 1000w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0026_web-300x201.jpg 300w, http:\/\/ioarvanit.gr\/wp-content\/uploads\/2018\/06\/DSC_0026_web-768x514.jpg 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><figcaption id=\"caption-attachment-2780\" class=\"wp-caption-text\">Plexiglass frame<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u03a4\u03bf \u03b1\u03c5\u03c4\u03bf\u03ba\u03b9\u03bd\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf \u03cc\u03c7\u03b7\u03bc\u03b1 \u03c4\u03bf \u03bf\u03c0\u03bf\u03af\u03bf \u03b1\u03ba\u03bf\u03bb\u03bf\u03c5\u03b8\u03b5\u03af \u03bc\u03b9\u03b1 \u03bc\u03b1\u03cd\u03c1\u03b7 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ae \u03b5\u03af\u03bd\u03b1\u03b9 \u03bc\u03b9\u03b1 \u03c3\u03c5\u03bd\u03b7\u03b8\u03b9\u03c3\u03bc\u03ad\u03bd\u03b7 \u03b4\u03c1\u03b1\u03c3\u03c4\u03b7\u03c1\u03b9\u03cc\u03c4\u03b7\u03c4\u03b1 \u03bc\u03b5 \u03c4\u03b1 Lego Mindstorms \u03ba\u03b1\u03b9 \u03c4\u03b7\u03bd \u03ad\u03c7\u03c9 \u03b1\u03be\u03b9\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03b5\u03b9 \u03bc\u03b5 \u03c4\u03c1\u03bf\u03c0\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03b5\u03b9\u03c2 \u03c0\u03bf\u03bb\u03bb\u03ad\u03c2 \u03c6\u03bf\u03c1\u03ad\u03c2 \u03c3\u03c4\u03bf \u03bc\u03ac\u03b8\u03b7\u03bc\u03b1. \u0391\u03c5\u03c4\u03ae \u03c4\u03b7 \u03c6\u03bf\u03c1\u03ac \u03c3\u03c4\u03bf \u03c0\u03bb\u03b1\u03af\u03c3\u03b9\u03bf \u03c4\u03bf\u03c5 \u039f\u03bc\u03af\u03bb\u03bf\u03c5 \u00ab\u039c\u03b9\u03ba\u03c1\u03bf\u03af \u03a7\u03ac\u03ba\u03b5\u03c1\u00bb \u03c0\u03bf\u03c5 \u03bb\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03b5\u03af \u03c3\u03c4\u03bf \u03a0\u03b5\u03b9\u03c1\u03b1\u03bc\u03b1\u03c4\u03b9\u03ba\u03cc \u0394\u03b7\u03bc\u03bf\u03c4\u03b9\u03ba\u03cc \u03a3\u03c7\u03bf\u03bb\u03b5\u03af\u03bf \u03a6\u03bb\u03ce\u03c1\u03b9\u03bd\u03b1\u03c2, \u03b4\u03bf\u03ba\u03b9\u03bc\u03ac\u03c3\u03b1\u03bc\u03b5 \u03bc\u03b5 \u03c4\u03b1 \u03c0\u03b1\u03b9\u03b4\u03b9\u03ac \u03bd\u03b1 \u03c5\u03bb\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03bf\u03c5\u03bc\u03b5 \u03c4\u03bf \u03b1\u03c5\u03c4\u03cc\u03bc\u03b1\u03c4\u03bf \u03cc\u03c7\u03b7\u03bc\u03b1 \u03bc\u03b5 \u03c4\u03b7\u03bd \u03c7\u03c1\u03ae\u03c3\u03b7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2766,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[67],"tags":[44],"class_list":["post-2747","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-school-projects","tag-arduino","has-thumbnail"],"translation":{"provider":"WPGlobus","version":"3.0.0","language":"en","enabled_languages":["el","en"],"languages":{"el":{"title":true,"content":true,"excerpt":false},"en":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"http:\/\/ioarvanit.gr\/en\/wp-json\/wp\/v2\/posts\/2747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ioarvanit.gr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ioarvanit.gr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ioarvanit.gr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ioarvanit.gr\/en\/wp-json\/wp\/v2\/comments?post=2747"}],"version-history":[{"count":17,"href":"http:\/\/ioarvanit.gr\/en\/wp-json\/wp\/v2\/posts\/2747\/revisions"}],"predecessor-version":[{"id":3484,"href":"http:\/\/ioarvanit.gr\/en\/wp-json\/wp\/v2\/posts\/2747\/revisions\/3484"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/ioarvanit.gr\/en\/wp-json\/wp\/v2\/media\/2766"}],"wp:attachment":[{"href":"http:\/\/ioarvanit.gr\/en\/wp-json\/wp\/v2\/media?parent=2747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ioarvanit.gr\/en\/wp-json\/wp\/v2\/categories?post=2747"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ioarvanit.gr\/en\/wp-json\/wp\/v2\/tags?post=2747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}