        <style>
            #donation_buttons td{
                border:medium none;
                background: inherit !important;
            }
            #donation_buttons table{               
                border:medium none;
                margin: auto;
                width: auto;
            }
        </style>
        {"id":316,"date":"2015-09-02T23:59:51","date_gmt":"2015-09-02T23:59:51","guid":{"rendered":"http:\/\/rogerbit.com\/wprb\/?p=316"},"modified":"2017-03-11T19:18:44","modified_gmt":"2017-03-11T19:18:44","slug":"brazo-mecanico-con-arduino-servos-y-potenciometros","status":"publish","type":"post","link":"https:\/\/rogerbit.com\/wprb\/2015\/09\/brazo-mecanico-con-arduino-servos-y-potenciometros\/","title":{"rendered":"Brazo mec\u00e1nico con arduino servos y potenciometros"},"content":{"rendered":"<p><iframe loading=\"lazy\" width=\"1160\" height=\"653\" src=\"https:\/\/www.youtube.com\/embed\/xdcbqgPGznk?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>En este video pueden ver el funcionamiento de un brazo mec\u00e1nico construido con piezas del legendario juego &#8220;super mec 5&#8221; de la firma &#8220;Rasti&#8221;. En el podr\u00e1n ver su funcionamiento y como con unos potenciometros conectados al arduino y tres servos levantaran una caja y la subiran encima de otro, se agradece suscribirse a mi canal de youtube en\u00a0<a href=\"https:\/\/www.youtube.com\/c\/Carlosvolt\">https:\/\/www.youtube.com\/c\/Carlosvolt<\/a>\u00a0tambien puedes unirte a mi grupo en facebook\u00a0<a href=\"https:\/\/www.facebook.com\/groups\/407445649459365\/\">https:\/\/www.facebook.com\/groups\/407445649459365\/<\/a>\u00a0les dejo tambi\u00e9n el c\u00f3digo fuente a continuaci\u00f3n<\/p>\n<pre class=\"lang:arduino decode:true\" title=\"C\u00f3digo Fuente\">#include &lt;Servo.h&gt;\r\nServo ServoUno;\r\nServo ServoDos;\r\nServo ServoTres;\r\nint pot0 = 0;\r\nint val0;\r\nint pot1 = 1;\r\nint val1;\r\nint pot2 = 2;\r\nint val2;\r\nvoid setup()\r\n{\r\nServoUno.attach(9);\r\nServoDos.attach(10);\r\nServoTres.attach(11);\r\n}\r\n\r\nvoid loop()\r\n{\r\nval0 = analogRead(pot0);\r\nval0 = map(val0, 0 ,1023, 0, 180);\r\nServoUno.write(val0);\r\ndelay(15);\r\n\r\nval1 = analogRead(pot1);\r\nval1 = map(val1, 0 ,1023, 0, 180);\r\nServoDos.write(val1);\r\ndelay(15);\r\n\r\nval2 = analogRead(pot2);\r\nval2 = map(val2, 0 ,1023, 0, 180);\r\nServoTres.write(val2);\r\ndelay(15);\r\n\r\n}<\/pre>\n<h3><span style=\"color: #3366ff;\"><strong>Circuito<\/strong><\/span><\/h3>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2015\/09\/brozo_robotico.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-2033\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2015\/09\/brozo_robotico-300x217.jpg\" alt=\"brozo_robotico\" width=\"300\" height=\"217\" srcset=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2015\/09\/brozo_robotico-300x217.jpg 300w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2015\/09\/brozo_robotico-768x556.jpg 768w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2015\/09\/brozo_robotico-600x434.jpg 600w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2015\/09\/brozo_robotico.jpg 793w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>[wysija_form id=&#8221;1&#8243;]<\/p>\n<div class=\"page-sidebar widget\" id=\"donation_buttons\"><form action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\" target=\"_blank\" ><input type=\"hidden\" name=\"business\" value=\"donacion@rogerbit.com\"><input type=\"hidden\" name=\"bn\" value=\"mbjtechnolabs_SP\"><input type=\"hidden\" name=\"cmd\" value=\"_donations\"><input type=\"hidden\" name=\"item_name\" value=\"Ayuda a RogerBit.com\"><input type=\"hidden\" name=\"item_number\" value=\"www.rogerbit.com\"><input type=\"hidden\" class=\"set_donation_button_amount\" name=\"amount\" value=\"1\"><table ><tbody><tr><td><label for=\"rogerBit necesita de tu ayuda para seguir existiendo :-)\">rogerBit necesita de tu ayuda para seguir existiendo :-)<\/label><\/td><\/tr><\/tbody><\/table><table ><tbody><tr><td><input style=\"margin-top:10px;\" type=\"image\" name=\"submit\" border=\"0\" src=\"https:\/\/www.paypal.com\/en_US\/i\/btn\/btn_donateCC_LG.gif\" alt=\"PayPal - The safer, easier way to pay online\"><\/td><\/tr><\/tbody><\/table><input type=\"hidden\" name=\"currency_code\" value=\"USD\"><input type=\"hidden\" name=\"notify_url\" value=\"https:\/\/rogerbit.com\/wprb\/?Donation_Button&#038;action=ipn_handler\"><\/form><\/div>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>En este video pueden ver el funcionamiento de un brazo mec\u00e1nico construido con piezas del legendario juego &#8220;super mec 5&#8221; de la firma &#8220;Rasti&#8221;. En el podr\u00e1n ver su funcionamiento y como con unos potenciometros conectados al arduino y tres servos levantaran una caja y la subiran encima de otro, se agradece suscribirse a mi [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":319,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[45,63,62,31,64,30],"_links":{"self":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/316"}],"collection":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/comments?post=316"}],"version-history":[{"count":5,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/316\/revisions"}],"predecessor-version":[{"id":2034,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/316\/revisions\/2034"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/media\/319"}],"wp:attachment":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/media?parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/categories?post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/tags?post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}