{"id":143,"date":"2021-07-11T17:45:48","date_gmt":"2021-07-11T17:45:48","guid":{"rendered":"http:\/\/imported-87"},"modified":"2021-07-11T17:45:48","modified_gmt":"2021-07-11T17:45:48","slug":"accendere-e-spegnere-un-led-con-un-telecomando","status":"publish","type":"post","link":"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/","title":{"rendered":"Accendere e spegnere un LED con un telecomando"},"content":{"rendered":"<p><span style=\"font-family: times new roman, times; font-size: 12pt;\"><em>&nbsp;<\/em>Decodificheremo i segnali provenienti da un telecomando qualsiasi che trasmetta con frequenza di 38 kHz e utilizzeremo gli stessi segnali per comandare Arduino a distanza per accendere e spegnere un LED.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/images\/Arduino\/accendere-e-spegnere-un-led-con-un-telecomando\/Accendere_e_spegnere_un_LED_con_un_telecomando_html_14020de9472199d9.png\" alt=\"Accendere e spegnere un LED con un telecomando html 14020de9472199d9\" width=\"400\" height=\"300\" style=\"display: block; margin: 50px auto;\" \/><\/p>\n<p><span style=\"font-family: courier new, courier; font-size: 12pt;\">Utilizzeremo la libreria <strong>IR.remote.h<\/strong> ed un TL1838, che \u00e8 un componente elettronico economico che rileva segnali a raggi infrarossi (<strong>IR<\/strong>).<\/span><\/p>\n<p><span style=\"font-family: courier new, courier; font-size: 12pt;\">In figura, i 3 pin del ricevitore IR, sono collegati<\/span><span style=\"font-family: courier new, courier; font-size: 12pt;\">, nell\u2019ordine da destra verso sinistra<\/span><span style=\"font-family: courier new, courier; font-size: 12pt;\"> rispettivamente ai 5 V, al GND ed alla porta A0 di Arduino.<\/span><\/p>\n<hr class=\"system-pagebreak\" title=\"Decodifica dei segnali provenienti dal telecomando\" \/>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\"><strong><span style=\"font-family: courier new, courier;\">Decodifica dei segnali provenienti dal telecomando<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp; Utilizziamo questo sketch:<\/span><\/p>\n<p><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">#include <span style=\"font-size: 12pt; font-family: courier new, courier;\"><span style=\"font-size: x-small;\">&lt;<span style=\"font-size: 12pt;\">IRremote.h&gt; <\/span><\/span><\/span><span style=\"font-size: 10pt; color: #000000;\">\/\/ carica la libreria per ricezione di dati IR<\/span><\/span><span style=\"font-family: courier new, courier; font-size: 10pt;\"><\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">IRrecv ricevitore(A0); <\/span><span style=\"font-family: courier new, courier; font-size: 10pt; color: #000000;\">\/\/ Crea un oggetto ricevente da noi battezzato \u201cricevitore\u201d: impostiamo il pin A0 per la ricezione dei dati<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">decode_results codice_tasto; <span style=\"font-size: 10pt; color: #000000;\">\/\/ ed il segnale che decodificher\u00e0 lo dovr\u00e0 salvare nella variabile codice_tasto<\/span><\/span><\/code><\/p>\n<p><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">void setup()<\/span><\/code><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">{<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">  Serial.begin(9600);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">  ricevitore.enableIRIn();<span style=\"font-size: 10pt; color: #000000;\"> \/\/ Attiva la ricezione<\/span><\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">}<\/span><\/code><\/p>\n<p><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">void loop() {<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">  if (ricevitore.decode(&amp;codice_tasto)) {<br \/><\/span><span style=\"color: #000000; font-size: 10pt;\">\/* Tenta di ricevere un segnale IR.Restituisce vero se un segnale \u00e8 stato ricevuto, falso altrimenti. Quando un segnale \u00e8 stato ricevuto, immagazzina l'informazioneall'interno della variabile \"codice_tasto\". *\/<\/span><\/code><br \/><code><span style=\"font-size: 12pt;\">  Serial.println(codice_tasto.value, HEX);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">  ricevitore.resume(); <span style=\"font-size: 10pt; color: #000000;\">\/* Va eseguita dopo il comando di ricezione per resettare il ricevitore e prepararlo a ricevere il segnale successivo *\/<\/span><\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">  }<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">}<\/span><\/code><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">Primo passo<\/span><\/strong><\/p>\n<p><span style=\"font-family: courier new, courier; font-size: 12pt;\">Carichiamo lo schizzo ed apriamo il monitor seriale;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">Secondo passo<\/span><\/strong><\/p>\n<p><span style=\"font-family: courier new, courier; font-size: 12pt;\">Premiamo un pulsante del telecomando e leggiamo il valore che appare sulla finestra del monitor seriale.<\/span><br \/><span style=\"font-family: courier new, courier; font-size: 12pt;\">Per utilizzare i valori scritti nel serial monitor basta <strong>aggiungere 0x<\/strong> prima della sigla del valore nello sketch.<\/span><\/p>\n<hr class=\"system-pagebreak\" title=\"Accensione del LED 13\" \/>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">Accensione del LED 13<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">#include <span style=\"font-family: courier new, courier; font-size: 12pt;\"> <span style=\"font-size: 12pt; font-family: courier new, courier;\"><span style=\"font-size: x-small;\">&lt;<span style=\"font-size: 12pt;\">IRremote.h&gt; <\/span><\/span><\/span><\/span><\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">IRrecv ricevitore(A0);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">decode_results codice_tasto;<\/span><span style=\"font-family: courier new, courier; font-size: 12pt;\"><\/span><\/code><\/p>\n<p><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">void setup()<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">{<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; pinMode(13,OUTPUT);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; Serial.begin(9600);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; ricevitore.enableIRIn(); \/\/ attiva la ricezione<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">}<\/span><\/code><\/p>\n<p><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">void loop() {<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; if (ricevitore.decode(&amp;codice_tasto)) <span style=\"text-decoration: underline;\">{ <\/span><\/span><span style=\"font-family: courier new, courier; font-size: 12pt;\"><\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; Serial.println(codice_tasto.value, HEX);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; ricevitore.resume(); <\/span><span style=\"font-family: courier new, courier; font-size: 12pt;\"><\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; if ( codice_tasto.value == 0x804E58A7)<span style=\"font-family: courier new, courier; font-size: 12pt;\">{<\/span>&nbsp; \/\/tasto 1 sul telecomando<\/span><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; <\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; digitalWrite(13, HIGH); \/\/ accende il LED<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; }<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; if ( codice_tasto.value == 0x804EF807)<span style=\"font-family: courier new, courier; font-size: 12pt;\">{<\/span> \/\/tasto 2 sul telecomando<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp; &nbsp;&nbsp; digitalWrite(13, LOW); \/\/ spegne il LED<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; &nbsp; }<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; }<\/span><\/code><br \/><code><span style=\"text-decoration: underline;\"><span style=\"font-family: courier new, courier; font-size: 12pt;\">}<\/span><\/span><\/code><br \/><span style=\"font-family: courier new, courier; font-size: 12pt;\"><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-family: courier new, courier; font-size: 14pt;\">Analisi del codice<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">linea 1:<\/span><\/strong><\/p>\n<p><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">#include <span style=\"font-family: courier new, courier; font-size: 12pt;\"> <span style=\"font-size: 12pt; font-family: courier new, courier;\"><span style=\"font-size: x-small;\">&lt;<span style=\"font-size: 12pt;\">IRremote.h&gt; <\/span><\/span><\/span><\/span><\/span><\/code><br \/><span style=\"font-family: courier new, courier; font-size: 12pt;\">includo la libreria IRemote nel mio sketch.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">linea 2:<\/span><\/strong><\/p>\n<p><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">IRrecv ricevitore(A0);<\/span><\/code><br \/><span style=\"font-family: courier new, courier; font-size: 12pt;\">inizializzo la libreria Iremote; dichiaro che il pin A0 \u00e8 il \u201creceiver\u201d ovvero il pin da cui la libreria legger\u00e0 il segnale dal sensore,<\/span><br \/><span style=\"font-family: courier new, courier; font-size: 12pt;\">il pin A0 viene collegato al piedino OUT del sensore:<\/span><br \/><span style=\"font-family: courier new, courier; font-size: 12pt;\"><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">linea 3:<\/span><\/strong><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">decode_results codice_tasto;<\/span><span style=\"font-family: courier new, courier; font-size: 12pt;\"><\/span><\/code><br \/><span style=\"font-family: courier new, courier; font-size: 12pt;\">decodifico il risultato che Arduino riceve dal sensore per ottenere un valore numerico utilizzabile nel confronto.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">Costruisco la funzione setup()<\/span><\/strong><\/p>\n<ul>\n<li><span style=\"font-family: courier new, courier; font-size: 12pt;\">attivo la comunicazione seriale per vedere i valori letti dal sensore sulla Serial Monitor di Arduino quando premo un tasto sul telecomando<\/span><\/li>\n<li><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;utilizzo il metodo <\/span><span style=\"font-family: courier new, courier; font-size: 12pt;\"><code>ricevitore.enableIRIn();<\/code><\/span><span style=\"font-family: courier new, courier; font-size: 12pt;\"><\/span><span style=\"font-family: courier new, courier; font-size: 12pt;\"> della libreria IRemote perch\u00e8 legga i valori provenienti dal sensore<\/span><\/li>\n<li><span style=\"font-family: courier new, courier; font-size: 12pt;\">imposto, mediante il comando <code>pinMode(13, OUTPUT);<\/code> l\u2019utilizzo del pin 13 di Arduino come output per pilotare il led<\/span><span style=\"font-family: courier new, courier; font-size: 12pt;\"><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">Costruisco la funzione loop()<\/span><\/strong><\/p>\n<ul>\n<li><span style=\"font-family: courier new, courier; font-size: 12pt;\">quando il sensore riceve un segnale proveniente dal mio telecomando scrive sul monitor seriale il valore rilevato<\/span><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">Serial.println(results.value, HEX);<\/span><\/code><br \/><span style=\"font-family: courier new, courier; font-size: 12pt;\">e prosegue mettendo il sensore nuovamente in modalit\u00e0 di ascolto: <\/span><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">ricevitore.resume();<\/span><\/code><\/li>\n<li><span style=\"font-family: courier new, courier; font-size: 12pt;\">se viene premuto il tasto 1, per cui il valore letto dal sensore sar\u00e0 uguale a 804E58A7 , porta l\u2019uscita del pin 13 ad HIGH ( 1 ) ed il LED si accender\u00e0<\/span><\/li>\n<li><span style=\"font-family: courier new, courier; font-size: 12pt;\">se viene premuto il tasto 2 , per cui il valore letto dal sensore sar\u00e0 uguale a 804EF807, porta l\u2019uscita del pin 9 a LOW ( 0 ) ed il LED si spegner\u00e0<\/span><\/li>\n<\/ul>\n<p><em><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">I codici dei tasti vanno aggiornati con quelli ottenuti con il telecomando in nostro possesso.<\/span><\/strong><\/em><\/p>\n<p><span style=\"font-family: courier new, courier; font-size: 12pt;\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;Decodificheremo i segnali provenienti da un telecomando qualsiasi che trasmetta con frequenza di 38 kHz e utilizzeremo gli stessi segnali per comandare Arduino a distanza per accendere e spegnere un [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_EventAllDay":false,"_EventTimezone":"","_EventStartDate":"","_EventEndDate":"","_EventStartDateUTC":"","_EventEndDateUTC":"","_EventShowMap":false,"_EventShowMapLink":false,"_EventURL":"","_EventCost":"","_EventCostDescription":"","_EventCurrencySymbol":"","_EventCurrencyCode":"","_EventCurrencyPosition":"","_EventDateTimeSeparator":"","_EventTimeRangeSeparator":"","_EventOrganizerID":[],"_EventVenueID":[],"_OrganizerEmail":"","_OrganizerPhone":"","_OrganizerWebsite":"","_VenueAddress":"","_VenueCity":"","_VenueCountry":"","_VenueProvince":"","_VenueState":"","_VenueZip":"","_VenuePhone":"","_VenueURL":"","_VenueStateProvince":"","_VenueLat":"","_VenueLng":"","_VenueShowMap":false,"_VenueShowMapLink":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-giochi-di-luce-con-arduino"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Accendere e spegnere un LED con un telecomando - PugliaSOS2.0<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Accendere e spegnere un LED con un telecomando - PugliaSOS2.0\" \/>\n<meta property=\"og:description\" content=\"&nbsp;Decodificheremo i segnali provenienti da un telecomando qualsiasi che trasmetta con frequenza di 38 kHz e utilizzeremo gli stessi segnali per comandare Arduino a distanza per accendere e spegnere un [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/\" \/>\n<meta property=\"og:site_name\" content=\"PugliaSOS2.0\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-11T17:45:48+00:00\" \/>\n<meta name=\"author\" content=\"PugliaSOS\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Scritto da\" \/>\n\t<meta name=\"twitter:data1\" content=\"PugliaSOS\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/11\\\/accendere-e-spegnere-un-led-con-un-telecomando\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/11\\\/accendere-e-spegnere-un-led-con-un-telecomando\\\/\"},\"author\":{\"name\":\"PugliaSOS\",\"@id\":\"http:\\\/\\\/130.110.14.181\\\/#\\\/schema\\\/person\\\/1e219b3d8de394c7d6969b52c116f336\"},\"headline\":\"Accendere e spegnere un LED con un telecomando\",\"datePublished\":\"2021-07-11T17:45:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/11\\\/accendere-e-spegnere-un-led-con-un-telecomando\\\/\"},\"wordCount\":378,\"articleSection\":[\"Giochi di luce con Arduino\"],\"inLanguage\":\"it-IT\"},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/11\\\/accendere-e-spegnere-un-led-con-un-telecomando\\\/\",\"url\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/11\\\/accendere-e-spegnere-un-led-con-un-telecomando\\\/\",\"name\":\"Accendere e spegnere un LED con un telecomando - PugliaSOS2.0\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/130.110.14.181\\\/#website\"},\"datePublished\":\"2021-07-11T17:45:48+00:00\",\"author\":{\"@id\":\"http:\\\/\\\/130.110.14.181\\\/#\\\/schema\\\/person\\\/1e219b3d8de394c7d6969b52c116f336\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/11\\\/accendere-e-spegnere-un-led-con-un-telecomando\\\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/11\\\/accendere-e-spegnere-un-led-con-un-telecomando\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/11\\\/accendere-e-spegnere-un-led-con-un-telecomando\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/130.110.14.181\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Accendere e spegnere un LED con un telecomando\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/130.110.14.181\\\/#website\",\"url\":\"http:\\\/\\\/130.110.14.181\\\/\",\"name\":\"PugliaSOS2.0\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/130.110.14.181\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/130.110.14.181\\\/#\\\/schema\\\/person\\\/1e219b3d8de394c7d6969b52c116f336\",\"name\":\"PugliaSOS\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0f3d85b8e8409fc2c484f438be7de4caf93659f326adbb248e8a1ac5c2e16fd6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0f3d85b8e8409fc2c484f438be7de4caf93659f326adbb248e8a1ac5c2e16fd6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0f3d85b8e8409fc2c484f438be7de4caf93659f326adbb248e8a1ac5c2e16fd6?s=96&d=mm&r=g\",\"caption\":\"PugliaSOS\"},\"url\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/author\\\/pugliasos\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Accendere e spegnere un LED con un telecomando - PugliaSOS2.0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/","og_locale":"it_IT","og_type":"article","og_title":"Accendere e spegnere un LED con un telecomando - PugliaSOS2.0","og_description":"&nbsp;Decodificheremo i segnali provenienti da un telecomando qualsiasi che trasmetta con frequenza di 38 kHz e utilizzeremo gli stessi segnali per comandare Arduino a distanza per accendere e spegnere un [&hellip;]","og_url":"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/","og_site_name":"PugliaSOS2.0","article_published_time":"2021-07-11T17:45:48+00:00","author":"PugliaSOS","twitter_card":"summary_large_image","twitter_misc":{"Scritto da":"PugliaSOS","Tempo di lettura stimato":"3 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/#article","isPartOf":{"@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/"},"author":{"name":"PugliaSOS","@id":"http:\/\/130.110.14.181\/#\/schema\/person\/1e219b3d8de394c7d6969b52c116f336"},"headline":"Accendere e spegnere un LED con un telecomando","datePublished":"2021-07-11T17:45:48+00:00","mainEntityOfPage":{"@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/"},"wordCount":378,"articleSection":["Giochi di luce con Arduino"],"inLanguage":"it-IT"},{"@type":"WebPage","@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/","url":"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/","name":"Accendere e spegnere un LED con un telecomando - PugliaSOS2.0","isPartOf":{"@id":"http:\/\/130.110.14.181\/#website"},"datePublished":"2021-07-11T17:45:48+00:00","author":{"@id":"http:\/\/130.110.14.181\/#\/schema\/person\/1e219b3d8de394c7d6969b52c116f336"},"breadcrumb":{"@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/11\/accendere-e-spegnere-un-led-con-un-telecomando\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/130.110.14.181\/"},{"@type":"ListItem","position":2,"name":"Accendere e spegnere un LED con un telecomando"}]},{"@type":"WebSite","@id":"http:\/\/130.110.14.181\/#website","url":"http:\/\/130.110.14.181\/","name":"PugliaSOS2.0","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/130.110.14.181\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"},{"@type":"Person","@id":"http:\/\/130.110.14.181\/#\/schema\/person\/1e219b3d8de394c7d6969b52c116f336","name":"PugliaSOS","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/secure.gravatar.com\/avatar\/0f3d85b8e8409fc2c484f438be7de4caf93659f326adbb248e8a1ac5c2e16fd6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0f3d85b8e8409fc2c484f438be7de4caf93659f326adbb248e8a1ac5c2e16fd6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0f3d85b8e8409fc2c484f438be7de4caf93659f326adbb248e8a1ac5c2e16fd6?s=96&d=mm&r=g","caption":"PugliaSOS"},"url":"http:\/\/130.110.14.181\/index.php\/author\/pugliasos\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":0,"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"wp:attachment":[{"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}