{"id":2689,"date":"2019-10-12T00:00:06","date_gmt":"2019-10-11T22:00:06","guid":{"rendered":"https:\/\/www.breizh56.fr\/crepp2024\/?page_id=2689"},"modified":"2019-12-10T12:16:56","modified_gmt":"2019-12-10T11:16:56","slug":"atelier-arduino-debutant-2-prise-en-main-arduino-uno","status":"publish","type":"page","link":"https:\/\/www.breizh56.fr\/crepp2024\/atelier-arduino-debutant-2-prise-en-main-arduino-uno\/","title":{"rendered":"Arduino 2019-2 prise en main Arduino Uno"},"content":{"rendered":"<p align=\"center\">PROGRESSION de la S<span style=\"font-family: 'Liberation Serif', serif;\">\u00c9<\/span><span style=\"font-family: 'Liberation Serif', serif;\">ANCE n\u00b02<\/span><\/p>\n<p align=\"left\"><span style=\"font-family: 'Liberation Serif', serif;\">1- Projection <a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-1.pdf\">planche n\u00b01<\/a> \u21d2 <b>Principes g\u00e9n\u00e9raux<\/b>, utilisation de la carte Arduino ( Guy )<\/span><\/p>\n<p align=\"left\"><span style=\"font-family: 'Liberation Serif', serif;\">2- Projection<a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-2.pdf\"> planche n\u00b02<\/a> \u21d2 Notion de <b>circuit \u00e9lectrique<\/b> ( Guy )<\/span><\/p>\n<p align=\"left\"><span style=\"font-family: 'Liberation Serif', serif;\">3- Projection<a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-3.pdf\"> planche n\u00b03<\/a> \u21d2 Analogie concernant les grandeurs \u00e9lectriques ( Guy )<\/span><\/p>\n<p align=\"left\"><span style=\"font-family: 'Liberation Serif', serif;\">4- Projection <a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-4.pdf\">planche n\u00b04<\/a> \u21d2 <b>Loi d&rsquo; Ohm<\/b> ( Guy )<\/span><\/p>\n<p align=\"left\"><span style=\"font-family: 'Liberation Serif', serif;\">5- Projection <a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-5.pdf\">planche n\u00b0 5<\/a> \u21d2<b> La breadboard<\/b> ( Guy )\u00a0<\/span><\/p>\n<p align=\"left\"><span style=\"font-family: 'Liberation Serif', serif;\">6- Projection <a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-6.pdf\">planche n\u00b06<\/a> \u21d2 <b>La LED<\/b> ( Guy ) <\/span><\/p>\n<p align=\"left\"><i><\/i><span style=\"color: #000000;\"><span style=\"font-family: 'Liberation Serif', serif;\">7- Projection <a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-7.pdf\">planche n\u00b07<\/a> \u21d2<b> La r\u00e9sistance<\/b> ( Patrick )<\/span><\/span><\/p>\n<p align=\"left\"><span style=\"color: #000000;\"><span style=\"font-family: 'Liberation Serif', serif;\">8- Projection <a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-8.pdf\">planche n\u00b08<\/a> \u21d2 <b>Le bouton poussoir<\/b> ( Patrick )\u00a0<\/span><\/span><\/p>\n<p align=\"left\"><span style=\"color: #000000;\"><span style=\"font-family: 'Liberation Serif', serif;\">9- Projection <a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-9.pdf\">planche n\u00b09<\/a> \u21d2 Construire le circuit ( Patrick &#8211; Guy )\u00a0<\/span><\/span><\/p>\n<p align=\"left\"><span style=\"color: #000000;\"><span style=\"font-family: 'Liberation Serif', serif;\">10- Projection <a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-10.pdf\">planche n\u00b010<\/a> \u21d2 La carte Arduino ( Patrick )<\/span><\/span><\/p>\n<p align=\"left\"><span style=\"color: #000000;\"><span style=\"font-family: 'Liberation Serif', serif;\">11- Projection <a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-11.pdf\">planche n\u00b011<\/a> \u21d2 Construction du circuit pour faire clignoter la LED ( Patrick \u2013 Guy )<\/span><\/span><\/p>\n<p align=\"left\"><span style=\"color: #000000;\"><span style=\"font-family: 'Liberation Serif', serif;\">11 bis-<b> Chargement du logiciel IDE<\/b> dans leurs ordi \u00e0 partir du lien sur cl\u00e9 USB ( Patrick -Guy )<\/span><\/span><\/p>\n<p align=\"left\">&#8230;&#8230;<\/p>\n<p align=\"left\"><i><\/i><span style=\"color: #000000;\"><span style=\"font-family: 'Liberation Serif', serif;\">12- Projection <a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/At2-Planche-12.pdf\">planche n\u00b012<\/a> \u21d2 Faire clignoter la LED de la carte Arduino ( Patrick )<\/span><\/span><\/p>\n<p align=\"left\"><span style=\"color: #000000;\"><span style=\"font-family: 'Liberation Serif', serif;\">13- Projection du logiciel IDE \u00e0 partir de l&rsquo;ordinateur ( Patrick )<\/span><\/span><\/p>\n<p align=\"left\">&#8230;.<\/p>\n<p align=\"left\">Ouverture du Mooc Arduino:<\/p>\n<p align=\"left\">1.utilisation du <a href=\"https:\/\/codecast.france-ioi.org\/v6\/?language=fr-FR&amp;mode=arduino\">simulateur Codecast<\/a>:<\/p>\n<p><a href=\"https:\/\/codecast.france-ioi.org\/v6\/?language=fr-FR&amp;mode=arduino\">https:\/\/codecast.france-ioi.org\/v6\/?language=fr-FR&amp;mode=arduino<\/a><\/p>\n<p>2. programme Blink vue ensemble au cours de la 2e s\u00e9ance<\/p>\n<p>3. 1er TP: feu tricolore &#8211;&gt; s\u00e9ance 3<\/p>\n<p>4. <a href=\"https:\/\/eskimon.fr\/tuto-arduino-101-pr\u00e9sentation-darduino\">documentation sur la carte Arduino par Eskimo<\/a><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h5><strong>\u00a0<a href=\"https:\/\/www.breizh56.fr\/crepp2024\/wp-content\/uploads\/2019\/10\/Quelques-pr\u00e9cisions-sur-le-Lexique-Arduino.odt\">Quelques pr\u00e9cisions sur le Lexique Arduino<\/a><\/strong><\/h5>\n<p align=\"left\"><span style=\"font-family: 'Liberation Serif', serif;\"><span style=\"font-size: medium;\">Avant de d\u00e9cortiquer le programme simple \u00ab\u00a0Blink\u00a0\u00bb\u00a0:<\/span><\/span><\/p>\n<p align=\"left\"><span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\">&#8211; <\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>La broche<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> ( PIN )\u00a0:<\/span><\/span><\/p>\n<p align=\"left\"><span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\">1- Le signal qu&rsquo;elle re\u00e7oit peut prendre 2 valeurs <\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>HIGH<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> ( haut 5v par ex ) ou <\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>LOW<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> ( bas 0v ).<\/span><\/span><\/p>\n<p align=\"left\"><span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\">2- Elle peut \u00eatre affect\u00e9e de 2 \u00e9tats ( mode ) soit <\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>INPUT<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> ( entr\u00e9e ) soit <\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>OUTPUT<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> ( sortie ),<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\">INPUT, elle va <\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>recevoir<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> un signal venant d&rsquo;un capteur, bouton poussoir &#8230;.<\/span><\/span><\/li>\n<li><span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\">OUTPUT, elle va <\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>\u00e9mettre<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> un signal vers un r\u00e9cepteur ( alarme sonore, servo moteur, <\/span><span style=\"font-family: 'Liberation Serif', serif;\">LED<\/span><span style=\"font-family: 'Liberation Serif', serif;\">\u2026).<\/span><\/span><\/li>\n<\/ul>\n<p align=\"left\"><span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\">&#8211; <\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>Le programme<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> ( sketch ) \u00ab\u00a0Blink\u00a0\u00bb\u00a0:<\/span><\/span><\/p>\n<pre><span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\">\/\/ Clignotement d'une LED d<\/span><span style=\"font-family: 'Liberation Serif', serif;\">e<\/span><span style=\"font-family: 'Liberation Serif', serif;\"> fa\u00e7on automatique <\/span><\/span>\r\n\/*\r\n<span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\"><i>Tout programme comprend une <\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i><b>partie active<\/b><\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i> interpr\u00e9t\u00e9e par le logiciel et une <\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i><b>partie de commentaires. <\/b><\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i>Celle-ci est n\u00e9cessaire pour la compr\u00e9hension du programme si on a \u00e0 le reprendre par la suite. Comme cette partie est incompr\u00e9hensible par le logiciel on doit la faire pr\u00e9c\u00e9der de \/\/ ( <\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i>1<\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i> ligne <\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i>ou 2<\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i>) ou entre<\/i><\/span><\/span>\r\n\r\n<span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\"><i>*\/\u2026\/* s'il y a plus <\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i>de 2<\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i> lignes.\r\n<\/i><\/span><\/span>*\/\r\n\r\n<span style=\"font-family: 'Liberation Serif', serif;\"><span style=\"font-size: medium;\">\/\/ D\u00e9claration des constantes et variables globales<\/span><\/span>\r\n\r\n<span style=\"font-size: medium;\"><span style=\"color: #ff420e;\"><span style=\"font-family: 'Liberation Serif', serif;\">int<\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> led = 13\u00a0; \/\/ <\/span><span style=\"font-family: 'Liberation Serif', serif;\">La variable LED est un entier (<\/span><span style=\"color: #ff420e;\"><span style=\"font-family: 'Liberation Serif', serif;\"><b> int<\/b><\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> ) et l'anode ( + ) <\/span><span style=\"font-family: 'Liberation Serif', serif;\">de la LED <\/span><span style=\"font-family: 'Liberation Serif', serif;\">est raccord\u00e9e \u00e0 la broche 13<\/span><\/span>\r\n\r\n<span style=\"font-size: medium;\"><span style=\"color: #ff420e;\"><span style=\"font-family: 'Liberation Serif', serif;\">void<\/span><\/span> <span style=\"color: #ff420e;\"><span style=\"font-family: 'Liberation Serif', serif;\"><b>setup<\/b><\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> ( ) { *<\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>\/ <\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>Fonction obligatoire du programme <\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\">en langage Arduino<\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>. <\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\">Tout ce qui se<\/span><b> <\/b><span style=\"font-family: 'Liberation Serif', serif;\">trouve<\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b> entre { }<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> est pris en compte <\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>qu'une seule fois<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> au d\u00e9marrage du \/* programme.<\/span><\/span>\r\n\r\n<span style=\"font-size: medium;\"><span style=\"color: #ff420e;\"><span style=\"font-family: 'Liberation Serif', serif;\">pinMode<\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> (led, <\/span><span style=\"color: #3333ff;\"><span style=\"font-family: 'Liberation Serif', serif;\">OUTPUT<\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\">)\u00a0; \/\/ <\/span><span style=\"font-family: 'Liberation Serif', serif;\">L'\u00e9<\/span><span style=\"font-family: 'Liberation Serif', serif;\">tat ( mode ) de la broche ( pin ) concernant la LED est en sortie<\/span><\/span>\r\n\r\n<span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\">} \/\/ <\/span><span style=\"font-family: 'Liberation Serif', serif;\">Fin de la fonction setup ( )<\/span><\/span>\r\n\r\n<span style=\"font-size: medium;\"><span style=\"color: #ff420e;\"><span style=\"font-family: 'Liberation Serif', serif;\">void<\/span><\/span> <span style=\"color: #ff420e;\"><span style=\"font-family: 'Liberation Serif', serif;\"><b>loop <\/b><\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\">( ) {                  \/\/ <\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>Fonction obligatoire du programme <\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\">en langage Arduino. Tout ce qui se trouve <\/span><\/span>\r\n\r\n<span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\">                                            \/\/ <\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>entre { }<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> va se r\u00e9p\u00e9ter en boucle.<\/span><\/span>\r\n\r\n<span style=\"font-size: medium;\"><span style=\"color: #ff420e;\"><span style=\"font-family: 'Liberation Serif', serif;\">digitalWrite <\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\">(led, <\/span><span style=\"color: #0000ff;\"><span style=\"font-family: 'Liberation Serif', serif;\">HIGH<\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\">)\u00a0; \/\/ Ce qui \u00ab\u00a0<\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i><b>est \u00e9crit<\/b><\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b>\u00a0\u00bb<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> sur la broche num\u00e9rique 13 ( digitalWrite ) est \u00e0 un niveau<\/span><\/span>\r\n\r\n<span style=\"font-family: 'Liberation Serif', serif;\"><span style=\"font-size: medium;\">                                           \/\/ haut ( 5v par ex ).<\/span><\/span>\r\n\r\n<span style=\"font-size: medium;\"><span style=\"color: #dd4814;\"><span style=\"font-family: 'Liberation Serif', serif;\">delay<\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\">(1000)\u00a0;                     \/\/ La LED va rester au niveau haut ( allum\u00e9e )pendant 1000<\/span><span style=\"font-family: 'Liberation Serif', serif;\"><b> ms<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> soit 1 s. <\/span><\/span>\r\n\r\n<span style=\"font-size: medium;\"><span style=\"color: #dd4814;\"><span style=\"font-family: 'Liberation Serif', serif;\">digitalWrite<\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> (led, <\/span><span style=\"color: #0000ff;\"><span style=\"font-family: 'Liberation Serif', serif;\">LOW<\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\">)\u00a0; \/\/ Ce qui est \u00ab\u00a0<\/span><span style=\"font-family: 'Liberation Serif', serif;\"><i><b>\u00e9crit<\/b><\/i><\/span><span style=\"font-family: 'Liberation Serif', serif;\">\u00a0\u00bb sur la broche num\u00e9rique 13 ( digitalWrite ) est \u00e0 un niveaut<\/span><\/span>\r\n\r\n<span style=\"font-family: 'Liberation Serif', serif;\"><span style=\"font-size: medium;\">                                          \/\/ bas ( 0v ).<\/span><\/span>\r\n\r\n<span style=\"font-size: medium;\"><span style=\"color: #dd4814;\"><span style=\"font-family: 'Liberation Serif', serif;\">delay<\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\">(1000)\u00a0;                    \/\/ La LED va rester au niveau bas ( \u00e9teinte ) pendant 1 seconde. <\/span><\/span>\r\n\r\n<span style=\"font-family: 'Liberation Serif', serif;\"><span style=\"font-size: medium;\">}                                       \/\/ Fin de la fonction loop ( )<\/span><\/span><\/pre>\n<p align=\"left\"><span style=\"font-size: medium;\"><span style=\"font-family: 'Liberation Serif', serif;\"><b>REMARQUE<\/b><\/span><span style=\"font-family: 'Liberation Serif', serif;\">\u00a0: les couleurs <\/span><span style=\"color: #dd4814;\"><span style=\"font-family: 'Liberation Serif', serif;\">orange<\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> et<\/span><span style=\"color: #0000ff;\"><span style=\"font-family: 'Liberation Serif', serif;\"> bleues<\/span><\/span><span style=\"font-family: 'Liberation Serif', serif;\"> sont g\u00e9n\u00e9r\u00e9es automatiquement par le logiciel IDE Arduino. Elles peuvent \u00eatre diff\u00e9rentes dans d&rsquo;autres logiciels ( Tinkercad, Codecast ).<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PROGRESSION de la S\u00c9ANCE n\u00b02 1- Projection planche n\u00b01 \u21d2 Principes g\u00e9n\u00e9raux, utilisation de la carte Arduino ( Guy ) 2- Projection planche n\u00b02 \u21d2 Notion de circuit \u00e9lectrique ( Guy ) 3- Projection planche n\u00b03 \u21d2 Analogie concernant les grandeurs \u00e9lectriques ( Guy ) 4- Projection planche n\u00b04 \u21d2 Loi d&rsquo; Ohm ( Guy ) 5- Projection planche n\u00b0 [&#8230;]<\/p>\n","protected":false},"author":7,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2689","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.breizh56.fr\/crepp2024\/wp-json\/wp\/v2\/pages\/2689"}],"collection":[{"href":"https:\/\/www.breizh56.fr\/crepp2024\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.breizh56.fr\/crepp2024\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.breizh56.fr\/crepp2024\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.breizh56.fr\/crepp2024\/wp-json\/wp\/v2\/comments?post=2689"}],"version-history":[{"count":13,"href":"https:\/\/www.breizh56.fr\/crepp2024\/wp-json\/wp\/v2\/pages\/2689\/revisions"}],"predecessor-version":[{"id":2954,"href":"https:\/\/www.breizh56.fr\/crepp2024\/wp-json\/wp\/v2\/pages\/2689\/revisions\/2954"}],"wp:attachment":[{"href":"https:\/\/www.breizh56.fr\/crepp2024\/wp-json\/wp\/v2\/media?parent=2689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}