{"id":123,"date":"2011-11-28T00:48:12","date_gmt":"2011-11-28T00:48:12","guid":{"rendered":"https:\/\/gamadiyo.com\/blog\/?p=123"},"modified":"2011-11-28T02:32:07","modified_gmt":"2011-11-28T02:32:07","slug":"arduino-trackbot","status":"publish","type":"post","link":"https:\/\/gamadiyo.com\/blog\/?p=123","title":{"rendered":"Arduino: TrackBot"},"content":{"rendered":"<p>I have been trying to get a stable base for a Arduino track bot. I had trouble with coming up with a good battery for powering the 2 motors. I tried using a 9V battery but it consumed the power in a few minutes. I found a good alternative by using a blackberry phone battery which is about 3.7V DC (BAT-11004-001). The power lasted fairly long time and was sufficient enough for the track bots motor. I was able to connect it as an external power to the motor shield with an on\/off switch allowing me to cut the power to the motor quickly. The code is similar to what I had before. Just a simple Ping sensor looking for the distance, backs up and turns when it senses something 8 inches away.<\/p>\n<p><a href=\"https:\/\/gamadiyo.com\/blog\/wp-content\/uploads\/2011\/11\/TrackBotPing.txt\">TrackBotPing<\/a><\/p>\n\n\t\t<style type=\"text\/css\">\n\t\t\t#gallery-1 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 25%;\n\t\t\t}\n\t\t\t#gallery-1 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-1' class='gallery galleryid-123 gallery-columns-4 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/gamadiyo.com\/blog\/?attachment_id=127'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/gamadiyo.com\/blog\/wp-content\/uploads\/2011\/11\/IMG_0811-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/gamadiyo.com\/blog\/?attachment_id=128'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/gamadiyo.com\/blog\/wp-content\/uploads\/2011\/11\/IMG_0813-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/gamadiyo.com\/blog\/?attachment_id=129'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/gamadiyo.com\/blog\/wp-content\/uploads\/2011\/11\/IMG_0816-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt><\/dl>\n\t\t\t<br style='clear: both' \/>\n\t\t<\/div>\n\n\n<div class=\"youtube-embed\" itemprop=\"video\" itemscope itemtype=\"https:\/\/schema.org\/VideoObject\">\n\t<meta itemprop=\"url\" content=\"https:\/\/www.youtube.com\/v\/uU2hXwkVpAE\" \/>\n\t<meta itemprop=\"name\" content=\"Arduino: TrackBot\" \/>\n\t<meta itemprop=\"description\" content=\"Arduino: TrackBot\" \/>\n\t<meta itemprop=\"uploadDate\" content=\"2011-11-28T00:48:12-05:00\" \/>\n\t<meta itemprop=\"thumbnailUrl\" content=\"https:\/\/i.ytimg.com\/vi\/uU2hXwkVpAE\/default.jpg\" \/>\n\t<meta itemprop=\"embedUrl\" content=\"https:\/\/www.youtube.com\/embed\/uU2hXwkVpAE\" \/>\n\t<meta itemprop=\"height\" content=\"276\" \/>\n\t<meta itemprop=\"width\" content=\"490\" \/>\n\t<iframe loading=\"lazy\" style=\"border: 0;\" class=\"youtube-player\" width=\"490\" height=\"276\" src=\"https:\/\/www.youtube.com\/embed\/uU2hXwkVpAE?modestbranding=1&fs=0&rel=0\"><\/iframe>\n<\/div>\n\n<p>Original Video<br \/>\n\n<div class=\"youtube-embed\" itemprop=\"video\" itemscope itemtype=\"https:\/\/schema.org\/VideoObject\">\n\t<meta itemprop=\"url\" content=\"https:\/\/www.youtube.com\/v\/KQkLJolHcFg\" \/>\n\t<meta itemprop=\"name\" content=\"Arduino: TrackBot\" \/>\n\t<meta itemprop=\"description\" content=\"Arduino: TrackBot\" \/>\n\t<meta itemprop=\"uploadDate\" content=\"2011-11-28T00:48:12-05:00\" \/>\n\t<meta itemprop=\"thumbnailUrl\" content=\"https:\/\/i.ytimg.com\/vi\/KQkLJolHcFg\/default.jpg\" \/>\n\t<meta itemprop=\"embedUrl\" content=\"https:\/\/www.youtube.com\/embed\/KQkLJolHcFg\" \/>\n\t<meta itemprop=\"height\" content=\"276\" \/>\n\t<meta itemprop=\"width\" content=\"490\" \/>\n\t<iframe loading=\"lazy\" style=\"border: 0;\" class=\"youtube-player\" width=\"490\" height=\"276\" src=\"https:\/\/www.youtube.com\/embed\/KQkLJolHcFg?modestbranding=1&fs=0&rel=0\"><\/iframe>\n<\/div>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been trying to get a stable base for a Arduino track bot. I had trouble with coming up with a good battery for powering the 2 motors. I tried using a 9V battery but it consumed the power in a few minutes. I found a good alternative by using a blackberry phone battery [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-arduino-2"],"_links":{"self":[{"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":0,"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"wp:attachment":[{"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gamadiyo.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}