{"id":8383,"date":"2018-02-05T19:52:43","date_gmt":"2018-02-05T18:52:43","guid":{"rendered":"http:\/\/serveiseducatius.xtec.cat\/tarragones\/?p=8383"},"modified":"2019-01-31T14:00:31","modified_gmt":"2019-01-31T13:00:31","slug":"receptor-ir-amb-comandament","status":"publish","type":"post","link":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/programes\/robotica\/receptor-ir-amb-comandament\/","title":{"rendered":"IR amb comandament"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-8302 alignright\" src=\"http:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/01\/ir-receiver-ky-022.jpg\" alt=\"\" width=\"134\" height=\"134\" srcset=\"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/01\/ir-receiver-ky-022.jpg 358w, https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/01\/ir-receiver-ky-022-150x150.jpg 150w, https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/01\/ir-receiver-ky-022-300x300.jpg 300w\" sizes=\"auto, (max-width: 134px) 100vw, 134px\" \/><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-8393 alignright\" src=\"http:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/Comandament-CarMP3_2.jpg\" alt=\"\" width=\"176\" height=\"171\" srcset=\"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/Comandament-CarMP3_2.jpg 652w, https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/Comandament-CarMP3_2-300x292.jpg 300w\" sizes=\"auto, (max-width: 176px) 100vw, 176px\" \/><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/CJu_yueT2GI\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><b>Material: <\/b><br \/>\n1 tarja Arduino UNO, 1 receptor infraroig KY-022, 3 cables Dupont, un comandament infraroig Car MP3.<\/p>\n<p><b>Descripci\u00f3:<\/b><br \/>\nExemple de funcionament d&#8217;un receptor IR KY-022 amb un comandament a dist\u00e0ncia CarMP3.<\/p>\n<ul>\n<li>En l&#8217;Arduino IDE inclourem la llibreria &lt;IRremote.h&gt;, que no est\u00e0 inclosa entre les llibreries de l&#8217;Arduino IDE i <a href=\"http:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/01\/robotica_llibreria-_IRremote-223.zip\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>caldr\u00e0 descaregar-la d&#8217;aqu\u00ed<\/strong><\/a>.<\/li>\n<li>En mBlock instal\u00b7larem la llibreria IRremote 0.1.3 de AbaddoN a Extensions\/Manage Extensions.<br \/>\n<b><\/b><\/li>\n<\/ul>\n<p>Els codis s\u00f3n els seg\u00fcents:<\/p>\n<table width=\"660\">\n<tbody>\n<tr>\n<td width=\"332\"><strong>\u00a0Tecles<\/strong><\/td>\n<td width=\"332\"><strong>\u00a0Codis amb Arduino IDE\u00a0<\/strong><\/td>\n<td width=\"332\"><strong>Codis amb ArduinoBlocks<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a0CH-<\/td>\n<td width=\"332\">\u00a00xFFA25D<\/td>\n<td width=\"332\">\n<div>16753245.00<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a0CH<\/td>\n<td width=\"332\">\u00a00xFF629D<\/td>\n<td width=\"332\">\n<div>16736925.00<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a0CH+<\/td>\n<td width=\"332\">\u00a00xFFE21D<\/td>\n<td width=\"332\">\n<div>16769565.00<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a0&lt;&lt;<\/td>\n<td width=\"332\">\u00a00xFF22DD<\/td>\n<td width=\"332\">\n<div>16720605.00<\/div>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a0&gt;&gt;<\/td>\n<td width=\"332\">\u00a00xFF02FD<\/td>\n<td width=\"332\">\n<div>16712445.00<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a0&gt;||<\/td>\n<td width=\"332\">\u00a00xFFC23D<\/td>\n<td width=\"332\">\n<div>16761405.00<\/div>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a0\u2013<\/td>\n<td width=\"332\">\u00a00xFFE01F<\/td>\n<td width=\"332\">\n<div>16769055.00<\/div>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a0+<\/td>\n<td width=\"332\">\u00a00xFFA857<\/td>\n<td width=\"332\">\n<div>16754775.00<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a0EQ<\/td>\n<td width=\"332\">\u00a00xFF906F<\/td>\n<td width=\"332\">\n<div>16748655.00<\/div>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a0100+<\/td>\n<td width=\"332\">\u00a00xFF9867<\/td>\n<td width=\"332\">\n<div>16750695.00<\/div>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a0200+<\/td>\n<td width=\"332\">\u00a00xFFB04F<\/td>\n<td width=\"332\">\n<div>16756815.00<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a00<\/td>\n<td width=\"332\">\u00a00XFF6897<\/td>\n<td width=\"332\">\n<div>16738455.00<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a01<\/td>\n<td width=\"332\">\u00a00xFF30CF<\/td>\n<td width=\"332\">\n<div>16724175.00<\/div>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a02<\/td>\n<td width=\"332\">\u00a00xFF18E7<\/td>\n<td width=\"332\">\n<div>16718055.00<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a03<\/td>\n<td width=\"332\">\u00a00xFF7A85<\/td>\n<td width=\"332\">\n<div>16743045.00<\/div>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a04<\/td>\n<td width=\"332\">\u00a00xFF10EF<\/td>\n<td width=\"332\">\n<div>16716015.00<\/div>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a05<\/td>\n<td width=\"332\">\u00a00xFF38C7<\/td>\n<td width=\"332\">\n<div>16726215.00<\/div>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a06<\/td>\n<td width=\"332\">\u00a00xFF5AA5<\/td>\n<td width=\"332\">\n<div>16734885.00<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a07<\/td>\n<td width=\"332\">\u00a00xFF42BD<\/td>\n<td width=\"332\">\n<div>16728765.00<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a08<\/td>\n<td width=\"332\">\u00a00xFF4AB5<\/td>\n<td width=\"332\">\n<div>16730805.00<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">\u00a09<\/td>\n<td width=\"332\">\u00a00xFF52AD<\/td>\n<td width=\"332\">16732845.00<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>Esquema:<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8399 alignnone\" src=\"http:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/robotica_IR_llegir-comandament.jpg\" alt=\"\" width=\"800\" height=\"533\" srcset=\"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/robotica_IR_llegir-comandament.jpg 800w, https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/robotica_IR_llegir-comandament-300x200.jpg 300w, https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/robotica_IR_llegir-comandament-768x512.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><b>Programaci\u00f3 amb ArduinoBlocks:<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9204\" src=\"http:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/robotica_IR_llegir-comandament_arduinoblocks.jpg\" alt=\"\" width=\"800\" height=\"845\" srcset=\"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/robotica_IR_llegir-comandament_arduinoblocks.jpg 800w, https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/robotica_IR_llegir-comandament_arduinoblocks-284x300.jpg 284w, https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/robotica_IR_llegir-comandament_arduinoblocks-768x811.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><b>Programaci\u00f3 amb Arduino IDE:<\/b><br \/>\n<script src=\"https:\/\/gist.github.com\/xgsxgs\/5384b734e7cb3a95d3efb3deab45ef30.js\"><\/script><\/p>\n<p><b>Desc\u00e0rregues:<\/b><\/p>\n<p><a href=\"http:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/02\/robotica_IR_llegir-comandament_arduino-ide.zip\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2773 alignleft\" src=\"http:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2016\/12\/boto_descarregues_arduino.jpg\" alt=\"Leds en cascada per Arduino IDE\" width=\"200\" height=\"47\" \/><\/a> <a href=\"http:\/\/www.arduinoblocks.com\/web\/project\/17397\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2774 alignleft\" src=\"http:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-content\/uploads\/usu549\/2018\/03\/boto_descarregues_verd.jpg\" alt=\"Web shiny buttons. Vector illustration.\" width=\"200\" height=\"47\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mostra pel monitor s\u00e8rie les dades d&#8217;un comandament<\/p>\n","protected":false},"author":1,"featured_media":8385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[197],"tags":[469,221],"class_list":["post-8383","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-robotica","tag-comunicacions","tag-sensors"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-json\/wp\/v2\/posts\/8383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-json\/wp\/v2\/comments?post=8383"}],"version-history":[{"count":3,"href":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-json\/wp\/v2\/posts\/8383\/revisions"}],"predecessor-version":[{"id":11403,"href":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-json\/wp\/v2\/posts\/8383\/revisions\/11403"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-json\/wp\/v2\/media\/8385"}],"wp:attachment":[{"href":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-json\/wp\/v2\/media?parent=8383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-json\/wp\/v2\/categories?post=8383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serveiseducatius.xtec.cat\/tarragones\/wp-json\/wp\/v2\/tags?post=8383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}