{"id":177,"date":"2025-05-04T11:21:38","date_gmt":"2025-05-04T14:21:38","guid":{"rendered":"http:\/\/192.168.0.52\/?p=177"},"modified":"2025-05-29T16:32:21","modified_gmt":"2025-05-29T19:32:21","slug":"servo-motor-com-potenciometro","status":"publish","type":"post","link":"https:\/\/jorgecarneirob.ddns.net\/index.php\/2025\/05\/04\/servo-motor-com-potenciometro\/","title":{"rendered":"Servo Motor com potenci\u00f4metro"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full wp-duotone-unset-1\"><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"539\" src=\"http:\/\/192.168.0.52\/wp-content\/uploads\/2025\/05\/image-9.png\" alt=\"\" class=\"wp-image-178\" srcset=\"https:\/\/jorgecarneirob.ddns.net\/wp-content\/uploads\/2025\/05\/image-9.png 639w, https:\/\/jorgecarneirob.ddns.net\/wp-content\/uploads\/2025\/05\/image-9-300x253.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/figure>\n\n\n\n<p>YouTube: <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"10 - Controlando Servo Motor com Potenci\u00f4metro: Um Tutorial Completo com Arduino\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/FMOh6cX1Zh0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>C\u00f3digo:<\/p>\n\n\n\n<p>\/\/ C++ code<br>\/\/<\/p>\n\n\n\n<h1 class=\"wp-block-heading has-small-font-size\">include<\/h1>\n\n\n\n<h1 class=\"wp-block-heading has-small-font-size\">define potenciometro A0<\/h1>\n\n\n\n<p>Servo servo1;<br>float sensor;<br>float valor;<\/p>\n\n\n\n<p>void setup()<br>{<br>pinMode(potenciometro, INPUT);<br>servo1.attach(3);<br>servo1.write(0);<br>Serial.begin(9600);<br>}<\/p>\n\n\n\n<p>void loop()<br>{<br>sensor = analogRead(potenciometro);<br>valor = (map(sensor, 0, 1023, 0, 180));<br>Serial.print(&#8220;Valor do pot\u00eanciometro \u00e9: &#8220;);<br>Serial.println(valor);<br>servo1.write(valor);<br>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>YouTube: C\u00f3digo: \/\/ C++ code\/\/ include define potenciometro A0 Servo servo1;float sensor;float valor; void setup(){pinMode(potenciometro, INPUT);servo1.attach(3);servo1.write(0);Serial.begin(9600);} void loop(){sensor = analogRead(potenciometro);valor = (map(sensor, 0, 1023, 0, 180));Serial.print(&#8220;Valor do pot\u00eanciometro \u00e9: &#8220;);Serial.println(valor);servo1.write(valor);}<\/p>\n","protected":false},"author":1,"featured_media":178,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[59],"tags":[87,86,44,95,68,89,91,45,85,79,92,84,90,43,93,78,80,72,88,69,81,70,76,94,67,96,83,74],"class_list":["post-177","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","tag-angulo","tag-aprendizado","tag-arduino","tag-biblioteca-servo","tag-circuito-eletronico","tag-controle-analogico","tag-controle-de-posicao","tag-diy","tag-educacao","tag-eletronica-basica","tag-funcao-map","tag-hobby","tag-interface-analogica","tag-maker","tag-mapeamento","tag-mecatronica","tag-movimento","tag-passo-a-passo","tag-potenciometro","tag-programacao-arduino","tag-projeto-de-eletronica","tag-projeto-pratico","tag-robotica","tag-serial-monitor","tag-servo-motor","tag-servo-shield","tag-stem","tag-tutorial-arduino"],"jetpack_featured_media_url":"https:\/\/jorgecarneirob.ddns.net\/wp-content\/uploads\/2025\/05\/image-9.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":2,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":203,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/177\/revisions\/203"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/media\/178"}],"wp:attachment":[{"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jorgecarneirob.ddns.net\/index.php\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}