{"id":5961,"date":"2018-09-29T05:14:13","date_gmt":"2018-09-29T05:14:13","guid":{"rendered":"http:\/\/betaweblog.education\/?p=5961"},"modified":"2018-09-29T05:14:13","modified_gmt":"2018-09-29T05:14:13","slug":"creando-un-robot-humanoide-paso-1-los-brazos","status":"publish","type":"post","link":"https:\/\/irisfernandez.com.ar\/betaweblog\/index.php\/2018\/09\/29\/creando-un-robot-humanoide-paso-1-los-brazos\/","title":{"rendered":"Creando un robot humanoide &#8211; paso 1: los brazos"},"content":{"rendered":"<p>Hoy comenc\u00e9 con el armado de una robota humanoide.<br \/>\nComo primer paso me concentr\u00e9 en el armado de los brazos.<br \/>\nUtilic\u00e9 dos motores para uno de los dos brazos, bas\u00e1ndome en la idea de <a href=\"http:\/\/www.web-robotica.com\/arduino\/sencillo-brazo-robotizado-con-2-servos-y-controlado-con-arduino-tutorial-paso-a-paso#more-425\">web-robotica.com<\/a><\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/_qkW6ibOyR4\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u00bfC\u00f3mo lo hice?<br \/>\nPegando con cinta, atando con alambre, un\u00ed los motores al cuerpo (una botella vac\u00eda de lavandina), y conect\u00e9 los motores de la siguiente manera:<\/p>\n<ul>\n<li>Cable rojo: positivo<\/li>\n<li>Cable marr\u00f3n: negativo<\/li>\n<li>Cable anaranado: pin pwm<\/li>\n<\/ul>\n<p>Tom\u00e9 el ejemplo &#8220;sweep&#8221; del Arduino IDE y lo modifiqu\u00e9 para tres motores, quedando as\u00ed:<\/p>\n<pre>void setup() {\nmyservo.attach(9); \/\/ attaches the servo on pin 9 to the servo object\nmyservo2.attach(10); \/\/ attaches the servo on pin 9 to the servo object\nmyservo3.attach(11); \/\/ attaches the servo on pin 9 to the servo object\n}\n\nvoid loop() {\nfor (pos = 0; pos &lt;= 90; pos += 1) { \/\/ goes from 0 degrees to 180 degrees\n\/\/ in steps of 1 degree\nmyservo.write(pos); \/\/ tell servo to go to position in variable 'pos'\ndelay(25); \/\/ waits 15ms for the servo to reach the position\n}\nfor (pos = 0; pos &lt;= 90; pos += 1) { \/\/ goes from 0 degrees to 180 degrees\n\/\/ in steps of 1 degree\nmyservo2.write(pos); \/\/ tell servo to go to position in variable 'pos'\ndelay(25); \/\/ waits 15ms for the servo to reach the position\n}\nfor (pos = 90; pos &gt;= 0; pos -= 1) { \/\/ goes from 180 degrees to 0 degrees\nmyservo.write(pos); \/\/ tell servo to go to position in variable 'pos'\ndelay(25); \/\/ waits 15ms for the servo to reach the position\n}\nfor (pos = 90 ; pos &gt;= 0; pos -= 1) { \/\/ goes from 180 degrees to 0 degrees\nmyservo2.write(pos); \/\/ tell servo to go to position in variable 'pos'\ndelay(25); \/\/ waits 15ms for the servo to reach the position\n}\nfor (pos = 90 ; pos &gt;= 0; pos -= 1) { \/\/ goes from 180 degrees to 0 degrees\nmyservo3.write(pos); \/\/ tell servo to go to position in variable 'pos'\ndelay(25); \/\/ waits 15ms for the servo to reach the position\n}\nfor (pos = 0; pos &lt;= 90; pos += 1) { \/\/ goes from 0 degrees to 180 degrees\n\/\/ in steps of 1 degree\nmyservo3.write(pos); \/\/ tell servo to go to position in variable 'pos'\ndelay(25); \/\/ waits 15ms for the servo to reach the position\n}\n}\n<\/pre>\n<p>Los &#8220;ojos&#8221; son parte de una lectora de CD que desarm\u00e9 para sacarle el motor. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hoy comenc\u00e9 con el armado de una robota humanoide. Como primer paso me concentr\u00e9 en el armado de los brazos. Utilic\u00e9 dos motores para uno de los dos brazos, bas\u00e1ndome en la idea de web-robotica.com \u00bfC\u00f3mo lo hice? Pegando con cinta, atando con alambre, un\u00ed los motores al cuerpo (una botella vac\u00eda de lavandina), y &hellip; <a href=\"https:\/\/irisfernandez.com.ar\/betaweblog\/index.php\/2018\/09\/29\/creando-un-robot-humanoide-paso-1-los-brazos\/\" class=\"more-link\">Continuar leyendo<span class=\"screen-reader-text\"> &#8220;Creando un robot humanoide &#8211; paso 1: los brazos&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,3],"tags":[21,34],"class_list":["post-5961","post","type-post","status-publish","format-standard","hentry","category-arduino","category-cultura-libre","tag-arduino","tag-servo-motor"],"_links":{"self":[{"href":"https:\/\/irisfernandez.com.ar\/betaweblog\/index.php\/wp-json\/wp\/v2\/posts\/5961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irisfernandez.com.ar\/betaweblog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irisfernandez.com.ar\/betaweblog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irisfernandez.com.ar\/betaweblog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/irisfernandez.com.ar\/betaweblog\/index.php\/wp-json\/wp\/v2\/comments?post=5961"}],"version-history":[{"count":0,"href":"https:\/\/irisfernandez.com.ar\/betaweblog\/index.php\/wp-json\/wp\/v2\/posts\/5961\/revisions"}],"wp:attachment":[{"href":"https:\/\/irisfernandez.com.ar\/betaweblog\/index.php\/wp-json\/wp\/v2\/media?parent=5961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irisfernandez.com.ar\/betaweblog\/index.php\/wp-json\/wp\/v2\/categories?post=5961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irisfernandez.com.ar\/betaweblog\/index.php\/wp-json\/wp\/v2\/tags?post=5961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}