{"id":136,"date":"2021-07-10T17:44:28","date_gmt":"2021-07-10T17:44:28","guid":{"rendered":"http:\/\/imported-80"},"modified":"2021-07-10T17:44:28","modified_gmt":"2021-07-10T17:44:28","slug":"semaforo-unidirezionale-a-tre-tempi","status":"publish","type":"post","link":"http:\/\/130.110.14.181\/index.php\/2021\/07\/10\/semaforo-unidirezionale-a-tre-tempi\/","title":{"rendered":"Semaforo unidirezionale a tre tempi"},"content":{"rendered":"<p>Con tre LED ed Arduino viene simulato il funzionamento di un semaforo italiano unidirezionale.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/images\/Arduino\/semaforo-unidirezionale-a-tre-tempi\/Semaforo_unidirezionale_a_tre_tempi_html_962f9972702d7438.png\" alt=\"Semaforo unidirezionale a tre tempi html 962f9972702d7438\" width=\"400\" height=\"339\" style=\"display: block; margin-left: auto; margin-right: auto;\" \/><\/p>\n<p>&nbsp;<span style=\"font-size: 14pt;\"><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">Componenti<\/span><\/strong><\/span><\/p>\n<ul>\n<li><span style=\"font-family: courier new, courier; font-size: 12pt;\">3 Resistenze 220 \u03a9<br \/><\/span><\/li>\n<li><span style=\"font-family: courier new, courier; font-size: 12pt;\">3 LED (rosso, giallo e verde)<\/span><\/li>\n<li><span style=\"font-family: courier new, courier; font-size: 12pt;\">4 Cavetti MM<br \/><\/span><\/li>\n<\/ul>\n<p><span style=\"font-size: 14pt;\"><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">Cablaggio<\/span><\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/images\/Arduino\/semaforo-unidirezionale-a-tre-tempi\/Semaforo_unidirezionale_a_tre_tempi_html_429a8e493bb17855.png\" alt=\"Semaforo unidirezionale a tre tempi html 429a8e493bb17855\" width=\"400\" height=\"210\" style=\"display: block; margin-left: auto; margin-right: auto;\" \/><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">Linguaggio naturale<\/span><\/strong><\/span><\/p>\n<p><code><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">inizializzazione<\/span><\/strong><\/code><\/p>\n<p><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; inizio<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; disponi i pin digitali 11,12 e 13 per l\u2019OUTPUT;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; fine<\/span><\/code><\/p>\n<p><code><strong><span style=\"font-family: courier new, courier; font-size: 12pt;\">ciclo<\/span><\/strong><\/code><\/p>\n<p><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; inizio<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; porta il pin digitale 13 al potenziale pi\u00f9 alto;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; aspetta 3000 ms;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; porta il pin digitale 13 al potenziale pi\u00f9 basso;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; aspetta 400 ms;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; porta il pin digitale 11 al potenziale pi\u00f9 alto;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; aspetta 1000 ms;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; &nbsp; porta il pin digitale 11 al potenziale pi\u00f9 basso;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; &nbsp; aspetta 400 ms;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; &nbsp; porta il pin digitale 12 al potenziale pi\u00f9 alto;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; &nbsp; aspetta 3000 ms;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; porta il pin digitale 12 al potenziale pi\u00f9 basso;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp;&nbsp;&nbsp; aspetta 400 ms;<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; fine<\/span><\/code><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-family: courier new, courier; font-size: 14pt;\">Il codice<\/span><\/strong><\/p>\n<p><img decoding=\"async\" src=\"\/images\/Arduino\/semaforo-unidirezionale-a-tre-tempi\/Semaforo_unidirezionale_a_tre_tempi_html_1825917a53f7bffe.png\" alt=\"Semaforo unidirezionale a tre tempi html 1825917a53f7bffe\" style=\"margin-right: 100px; margin-left: 100px; float: left;\" \/><\/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;\">&nbsp; pinMode(13, OUTPUT);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; pinMode(11, OUTPUT);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; pinMode(12, OUTPUT);<\/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; digitalWrite(13, HIGH);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; delay(3000);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; digitalWrite(13, LOW);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; delay(400);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; digitalWrite(11, HIGH);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; delay(3000);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; digitalWrite(11, LOW);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; delay(400);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; digitalWrite(12, HIGH);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; delay(1000);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; digitalWrite(12, LOW);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">&nbsp; delay(400);<\/span><\/code><br \/><code><span style=\"font-family: courier new, courier; font-size: 12pt;\">}<\/span><\/code><\/p>\n<p><span style=\"font-family: courier new, courier; font-size: 12pt;\"><\/span><\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>Con tre LED ed Arduino viene simulato il funzionamento di un semaforo italiano unidirezionale. &nbsp; &nbsp;Componenti 3 Resistenze 220 \u03a9 3 LED (rosso, giallo e verde) 4 Cavetti MM Cablaggio [&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-136","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>Semaforo unidirezionale a tre tempi - 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\/10\/semaforo-unidirezionale-a-tre-tempi\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Semaforo unidirezionale a tre tempi - PugliaSOS2.0\" \/>\n<meta property=\"og:description\" content=\"Con tre LED ed Arduino viene simulato il funzionamento di un semaforo italiano unidirezionale. &nbsp; &nbsp;Componenti 3 Resistenze 220 \u03a9 3 LED (rosso, giallo e verde) 4 Cavetti MM Cablaggio [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/130.110.14.181\/index.php\/2021\/07\/10\/semaforo-unidirezionale-a-tre-tempi\/\" \/>\n<meta property=\"og:site_name\" content=\"PugliaSOS2.0\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-10T17:44:28+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=\"1 minuto\" \/>\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\\\/10\\\/semaforo-unidirezionale-a-tre-tempi\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/10\\\/semaforo-unidirezionale-a-tre-tempi\\\/\"},\"author\":{\"name\":\"PugliaSOS\",\"@id\":\"http:\\\/\\\/130.110.14.181\\\/#\\\/schema\\\/person\\\/1e219b3d8de394c7d6969b52c116f336\"},\"headline\":\"Semaforo unidirezionale a tre tempi\",\"datePublished\":\"2021-07-10T17:44:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/10\\\/semaforo-unidirezionale-a-tre-tempi\\\/\"},\"wordCount\":36,\"articleSection\":[\"Giochi di luce con Arduino\"],\"inLanguage\":\"it-IT\"},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/10\\\/semaforo-unidirezionale-a-tre-tempi\\\/\",\"url\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/10\\\/semaforo-unidirezionale-a-tre-tempi\\\/\",\"name\":\"Semaforo unidirezionale a tre tempi - PugliaSOS2.0\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/130.110.14.181\\\/#website\"},\"datePublished\":\"2021-07-10T17:44:28+00:00\",\"author\":{\"@id\":\"http:\\\/\\\/130.110.14.181\\\/#\\\/schema\\\/person\\\/1e219b3d8de394c7d6969b52c116f336\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/10\\\/semaforo-unidirezionale-a-tre-tempi\\\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/10\\\/semaforo-unidirezionale-a-tre-tempi\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/130.110.14.181\\\/index.php\\\/2021\\\/07\\\/10\\\/semaforo-unidirezionale-a-tre-tempi\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/130.110.14.181\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Semaforo unidirezionale a tre tempi\"}]},{\"@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":"Semaforo unidirezionale a tre tempi - 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\/10\/semaforo-unidirezionale-a-tre-tempi\/","og_locale":"it_IT","og_type":"article","og_title":"Semaforo unidirezionale a tre tempi - PugliaSOS2.0","og_description":"Con tre LED ed Arduino viene simulato il funzionamento di un semaforo italiano unidirezionale. &nbsp; &nbsp;Componenti 3 Resistenze 220 \u03a9 3 LED (rosso, giallo e verde) 4 Cavetti MM Cablaggio [&hellip;]","og_url":"http:\/\/130.110.14.181\/index.php\/2021\/07\/10\/semaforo-unidirezionale-a-tre-tempi\/","og_site_name":"PugliaSOS2.0","article_published_time":"2021-07-10T17:44:28+00:00","author":"PugliaSOS","twitter_card":"summary_large_image","twitter_misc":{"Scritto da":"PugliaSOS","Tempo di lettura stimato":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/10\/semaforo-unidirezionale-a-tre-tempi\/#article","isPartOf":{"@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/10\/semaforo-unidirezionale-a-tre-tempi\/"},"author":{"name":"PugliaSOS","@id":"http:\/\/130.110.14.181\/#\/schema\/person\/1e219b3d8de394c7d6969b52c116f336"},"headline":"Semaforo unidirezionale a tre tempi","datePublished":"2021-07-10T17:44:28+00:00","mainEntityOfPage":{"@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/10\/semaforo-unidirezionale-a-tre-tempi\/"},"wordCount":36,"articleSection":["Giochi di luce con Arduino"],"inLanguage":"it-IT"},{"@type":"WebPage","@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/10\/semaforo-unidirezionale-a-tre-tempi\/","url":"http:\/\/130.110.14.181\/index.php\/2021\/07\/10\/semaforo-unidirezionale-a-tre-tempi\/","name":"Semaforo unidirezionale a tre tempi - PugliaSOS2.0","isPartOf":{"@id":"http:\/\/130.110.14.181\/#website"},"datePublished":"2021-07-10T17:44:28+00:00","author":{"@id":"http:\/\/130.110.14.181\/#\/schema\/person\/1e219b3d8de394c7d6969b52c116f336"},"breadcrumb":{"@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/10\/semaforo-unidirezionale-a-tre-tempi\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["http:\/\/130.110.14.181\/index.php\/2021\/07\/10\/semaforo-unidirezionale-a-tre-tempi\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/130.110.14.181\/index.php\/2021\/07\/10\/semaforo-unidirezionale-a-tre-tempi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/130.110.14.181\/"},{"@type":"ListItem","position":2,"name":"Semaforo unidirezionale a tre tempi"}]},{"@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\/136","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=136"}],"version-history":[{"count":0,"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"wp:attachment":[{"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/130.110.14.181\/index.php\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}