{"id":28921,"date":"2026-05-12T16:09:56","date_gmt":"2026-05-12T16:09:56","guid":{"rendered":"https:\/\/retotech.fundacionendesa.org\/multisite\/?p=28921"},"modified":"2026-05-12T16:48:36","modified_gmt":"2026-05-12T16:48:36","slug":"3-apartat-muntatge-electronic","status":"publish","type":"post","link":"https:\/\/retotech.fundacionendesa.org\/multisite\/2026\/05\/12\/3-apartat-muntatge-electronic\/","title":{"rendered":"PROJECTE TASU &#8211; 3. Muntatge electr\u00f2nic"},"content":{"rendered":"\n<p>Primer es va fer una prova amb un sol sensor d&#8217;ultrasons. Evidentment, l&#8217;\u00fanic que s&#8217;aconseguia era saber la dist\u00e0ncia de l&#8217;objecte detectat al sensor.<\/p>\n\n\n\n<p>A continuaci\u00f3 es va provar amb un muntatge electr\u00f2nic basat en 2 sesnsors d&#8217;ultrasons. \u00c9s el que s&#8217;indica a continuaci\u00f3.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Components<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Component<\/strong><\/td><td><strong>Unitat<\/strong><\/td><\/tr><tr><td>Arduino UNO<\/td><td>1<\/td><\/tr><tr><td>Sensor d&#8217;ultrasons HC-SR04<\/td><td>2<\/td><\/tr><tr><td>Servo SG90\/MG90S<\/td><td>1<\/td><\/tr><tr><td>LED<\/td><td>2<\/td><\/tr><tr><td>Resist\u00e8ncia 220 \u03a9<\/td><td>2<\/td><\/tr><tr><td>Font externa de 5V<\/td><td>1 (Opcional, per\u00f2 recomanada)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Connexions<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Sensor esquerre <\/strong><strong>HC\u2011SR04<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Pin sensor<\/strong><\/td><td><strong>Pin Arduino<\/strong><\/td><\/tr><tr><td>VCC<\/td><td>5V<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>TRIG<\/td><td>D8<\/td><\/tr><tr><td>ECHO<\/td><td>D9<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Sensor dret <\/strong><strong>HC\u2011SR04<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Pin sensor<\/strong><\/td><td><strong>Pin Arduino<\/strong><\/td><\/tr><tr><td>VCC<\/td><td>5V<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>TRIG<\/td><td>D10<\/td><\/tr><tr><td>ECHO<\/td><td>D11<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Servomotor SG90\/MG90S:<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Cable servo<\/strong><\/td><td><strong>Pin Arduino<\/strong><\/td><\/tr><tr><td>Vermell<\/td><td>5V<\/td><\/tr><tr><td>Marr\u00f3\/Negre<\/td><td>GND<\/td><\/tr><tr><td>Taronja\/Groc<\/td><td>D6<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>LED:<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>PinLED<\/strong><\/td><td><strong>Pin Arduino<\/strong><\/td><\/tr><tr><td>Positiu<\/td><td>D5<\/td><\/tr><tr><td>Negatiu<\/td><td>GND<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Notes importants<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>El servo pot consumir pics de corrent i aix\u00f2 podria provocar que l\u2019Arduino es reinici\u00e9s. Per evitar-ho, \u00e9s recomanable alimentar el servo amb una font externa de 5V compartint GND.<\/li>\n\n\n\n<li>El GND de l\u2019Arduino i el GND de la font externa han d\u2019estar connectats.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Limitacions<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>La triangulaci\u00f3 amb 2 sensors d&#8217;ultrasons no es pot portar a terme. Es necessiten, com a m\u00ednim, 3 sensors d&#8217;ultrasons.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Muntatge electr\u00f2nic amb 3 sensors d&#8217;ultrasons (placa Arduino UNO)<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"301\" src=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Arduino-UNO.png\" alt=\"\" class=\"wp-image-28928\" srcset=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Arduino-UNO.png 586w, https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-Arduino-UNO-300x154.png 300w\" sizes=\"(max-width: 586px) 100vw, 586px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Muntatge electr\u00f2nic amb 3 sensors d&#8217;ultrasons (placa ZumCore)<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"477\" src=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-ZumCore.png\" alt=\"\" class=\"wp-image-28929\" srcset=\"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-ZumCore.png 600w, https:\/\/retotech.fundacionendesa.org\/multisite\/wp-content\/uploads\/sites\/3\/2026\/05\/TASU-ZumCore-300x239.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Primer es va fer una prova amb un sol sensor d&#8217;ultrasons. Evidentment, l&#8217;\u00fanic que s&#8217;aconseguia era saber la dist\u00e0ncia de<\/p>\n","protected":false},"author":6283,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-28921","post","type-post","status-publish","format-standard","hentry","category-blog-retotech"],"_links":{"self":[{"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/posts\/28921"}],"collection":[{"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/users\/6283"}],"replies":[{"embeddable":true,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/comments?post=28921"}],"version-history":[{"count":5,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/posts\/28921\/revisions"}],"predecessor-version":[{"id":28989,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/posts\/28921\/revisions\/28989"}],"wp:attachment":[{"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/media?parent=28921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/categories?post=28921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/retotech.fundacionendesa.org\/multisite\/wp-json\/wp\/v2\/tags?post=28921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}