{"id":887,"date":"2020-03-25T12:08:03","date_gmt":"2020-03-25T11:08:03","guid":{"rendered":"http:\/\/www.ardpylab.fr\/?page_id=887"},"modified":"2020-05-16T10:22:05","modified_gmt":"2020-05-16T08:22:05","slug":"temperatures-activite-2","status":"publish","type":"page","link":"https:\/\/www.ardpylab.fr\/?page_id=887","title":{"rendered":"Temp\u00e9ratures &#8211; Activit\u00e9 2"},"content":{"rendered":"\n<h2 style=\"text-align: center;\"><em>\u201d <\/em><span style=\"text-decoration: underline;\"><em>Alarme sonore par d\u00e9passement de temp\u00e9rature<\/em><\/span> <em>\u201d<br><br><\/em><\/h2>\n\n\n\n<h4>&nbsp;<\/h4>\n<h4><strong><span style=\"color: #3366ff;\">. <span style=\"text-decoration: underline;\">Objectif<\/span><\/span><\/strong><\/h4>\n<p>L\u2019objectif de cette activit\u00e9 est de r\u00e9aliser une alarme sonore et visuelle qui se d\u00e9clenchera lorsque la temp\u00e9rature mesur\u00e9e par le capteur TMP 36 ou LM 35 de notre <a href=\"https:\/\/www.ardpylab.fr\/?page_id=839\" data-wplink-url-error=\"true\">circuit d&rsquo;\u00e9tude<\/a> est sup\u00e9rieure \u00e0 une valeur seuil \u00e0 d\u00e9finir, permettant, par exemple, de pr\u00e9venir un utilisateur du d\u00e9passement de la temp\u00e9rature d\u2019utilisation d\u2019un mat\u00e9riel.<br><br><\/p>\n\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\" style=\"border: 3px solid #eeeeee; padding: 3px; margin: 3px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-944 size-full\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/circuittemp.bmp\" alt=\"\" width=\"900\" height=\"477\"><\/figure>\n<\/div>\n<p>&nbsp;<\/p>\n\n\n\n<p>Il suffit pour cela de reprendre le programme de l\u2019activit\u00e9 pr\u00e9c\u00e9dente, auquel nous allons ajouter le code de l\u2019alarme sonore et visuelle d\u00e9j\u00e0 vu.<\/p>\n<p>Les mesures de temp\u00e9rature commencent apr\u00e8s un appui sur le bouton poussoir et sont arr\u00eat\u00e9es en appuyant de nouveau sur celui-ci.<\/p>\n\n\n\n<p>\u00a0<\/p>\n<h4><span style=\"color: #3366ff;\"><strong><a id=\"prog\"><\/a>. <span style=\"text-decoration: underline;\">Le programme<\/span><\/strong><\/span><\/h4>\n<p><a href=\"https:\/\/www.ardpylab.fr\/downloads\/temperatures\/activity2.zip\" data-wplink-url-error=\"true\">Le code de l&rsquo;activit\u00e9<\/a> pourra \u00eatre modifi\u00e9 pour voir l\u2019influence des variables (seuil de temp\u00e9rature, fr\u00e9quence de l\u2019onde sonore, dur\u00e9e d\u2019\u00e9mission, dur\u00e9e de silence).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.ardpylab.fr\/downloads\/temperatures\/Activity2\/Activity2.ino\"><img loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"498\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/image-94.png\" alt=\"\" class=\"wp-image-888\" srcset=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/image-94.png 563w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/image-94-300x265.png 300w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.ardpylab.fr\/downloads\/temperatures\/Activity2\/Activity2.ino\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"993\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/image-95.png\" alt=\"\" class=\"wp-image-889\" srcset=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/image-95.png 560w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/image-95-169x300.png 169w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/figure>\n\n\n\n<p><strong><u><br>D\u00e9roulement du programme<\/u><\/strong><strong>&nbsp;:<\/strong><\/p>\n<p>&#8211;&nbsp; D\u00e9claration des constantes et variables :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"408\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2-1024x408.png\" alt=\"\" class=\"wp-image-892\" srcset=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2-1024x408.png 1024w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2-300x119.png 300w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2-768x306.png 768w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2-1536x611.png 1536w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2.png 1894w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>&#8211; Initialisation des entr\u00e9es et sorties :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"200\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2b-1024x200.png\" alt=\"\" class=\"wp-image-894\" srcset=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2b-1024x200.png 1024w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2b-300x59.png 300w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2b-768x150.png 768w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2b-1536x301.png 1536w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2b.png 1748w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>&#8211; Fonction principale en boucle :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2l-595x1024.jpg\" alt=\"\" class=\"wp-image-895\" width=\"782\" height=\"1346\" srcset=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2l-595x1024.jpg 595w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2l-174x300.jpg 174w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2l-768x1321.jpg 768w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2l-893x1536.jpg 893w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/temp2l-1191x2048.jpg 1191w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/figure>\n\n\n\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>R\u00e9sultats dans le moniteur s\u00e9rie&nbsp;:<\/strong><\/span><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"337\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/tempms.png\" alt=\"\" class=\"wp-image-897\" srcset=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/tempms.png 552w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/tempms-300x183.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/figure><\/div>\n\n\n\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/p>\n\n\n<div  class=\"grids-section grids-is-stretch\" style=\"--_gs-gap-desktop:0px 0px;--_gs-m-desktop:0 0 0 0;--_gs-p-desktop:0 0 0 0;--_gs-bg-desktop:transparent none;--_gs-bg-xp-desktop:0px;--_gs-zi-desktop:auto;--_gs-d-desktop:block;--_gs-mw-desktop:calc(100% - 0 - 0);--_gs-gap-tablet:0px 0px;--_gs-m-tablet:0 0 0 0;--_gs-p-tablet:0 0 0 0;--_gs-bg-tablet:transparent none;--_gs-bg-xp-tablet:0px;--_gs-zi-tablet:auto;--_gs-d-tablet:block;--_gs-mw-tablet:calc(100% - 0 - 0);--_gs-gap-mobile:0px 0px;--_gs-m-mobile:0 0 0 0;--_gs-p-mobile:0 0 0 0;--_gs-bg-mobile:transparent none;--_gs-bg-xp-mobile:0px;--_gs-zi-mobile:auto;--_gs-d-mobile:block;--_gs-mw-mobile:calc(100% - 0 - 0);--_gs-columns:2;--_gs-rows:1\"><div class=\"grids-s-w_i\">\n<div class=\"grids-area\" style=\"--_ga-column:1\/2;--_ga-row:1\/2;--_ga-m-desktop:0 0 0 0;--_ga-p-desktop:0 0 0 0;--_ga-bg-desktop:transparent none;--_ga-zi-desktop:auto;--_ga-d-desktop:flex;--_ga-mw-desktop:calc(100% - 0 - 0);--_ga-m-tablet:0 0 0 0;--_ga-p-tablet:0 0 0 0;--_ga-bg-tablet:transparent none;--_ga-zi-tablet:auto;--_ga-d-tablet:flex;--_ga-mw-tablet:calc(100% - 0 - 0);--_ga-m-mobile:0 0 0 0;--_ga-p-mobile:0 0 0 0;--_ga-bg-mobile:transparent none;--_ga-zi-mobile:auto;--_ga-d-mobile:flex;--_ga-mw-mobile:calc(100% - 0 - 0)\">\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-large\"><a href=\"https:\/\/www.ardpylab.fr\/?page_id=856\"><img loading=\"lazy\" decoding=\"async\" width=\"50\" height=\"28\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/moins.jpg\" alt=\"\" class=\"wp-image-107\"\/><\/a><\/figure><\/div>\n\n<\/div>\n\n<div class=\"grids-area\" style=\"--_ga-column:2\/3;--_ga-row:1\/2;--_ga-m-desktop:0 0 0 0;--_ga-p-desktop:0 0 0 0;--_ga-bg-desktop:transparent none;--_ga-zi-desktop:auto;--_ga-d-desktop:flex;--_ga-mw-desktop:calc(100% - 0 - 0);--_ga-m-tablet:0 0 0 0;--_ga-p-tablet:0 0 0 0;--_ga-bg-tablet:transparent none;--_ga-zi-tablet:auto;--_ga-d-tablet:flex;--_ga-mw-tablet:calc(100% - 0 - 0);--_ga-m-mobile:0 0 0 0;--_ga-p-mobile:0 0 0 0;--_ga-bg-mobile:transparent none;--_ga-zi-mobile:auto;--_ga-d-mobile:flex;--_ga-mw-mobile:calc(100% - 0 - 0)\">\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large\"><a href=\"https:\/\/www.ardpylab.fr\/?page_id=911\"><img loading=\"lazy\" decoding=\"async\" width=\"50\" height=\"28\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/plus.jpg\" alt=\"\" class=\"wp-image-106\"\/><\/a><\/figure><\/div>\n\n<\/div>\n<\/div><\/div>\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u201d Alarme sonore par d\u00e9passement de temp\u00e9rature \u201d &nbsp; . Objectif L\u2019objectif de cette activit\u00e9 est de r\u00e9aliser une alarme sonore et visuelle qui se d\u00e9clenchera lorsque la temp\u00e9rature mesur\u00e9e par le capteur TMP 36 ou LM 35 de notre circuit d&rsquo;\u00e9tude est sup\u00e9rieure \u00e0 une valeur seuil \u00e0 d\u00e9finir, permettant, par exemple, de pr\u00e9venir [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-887","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=\/wp\/v2\/pages\/887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=887"}],"version-history":[{"count":1,"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=\/wp\/v2\/pages\/887\/revisions"}],"predecessor-version":[{"id":5152,"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=\/wp\/v2\/pages\/887\/revisions\/5152"}],"wp:attachment":[{"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}