{"id":3860,"date":"2020-04-28T12:37:38","date_gmt":"2020-04-28T10:37:38","guid":{"rendered":"http:\/\/www.ardpylab.fr\/?page_id=3860"},"modified":"2020-05-11T19:13:22","modified_gmt":"2020-05-11T17:13:22","slug":"installation-darduino-lab","status":"publish","type":"page","link":"https:\/\/www.ardpylab.fr\/?page_id=3860","title":{"rendered":"Installation d&rsquo;ARDUINO LAB"},"content":{"rendered":"\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3905 size-full\" style=\"border: 3px solid #eeeeee; padding: 3px; margin: 3px;\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/04\/arduinolab-logo3.png\" alt=\"\" width=\"203\" height=\"153\"><\/figure>\n<\/div>\n\n\n\n<p><strong><br \/>Python<\/strong> \u00e9tant un langage de programmation interpr\u00e9t\u00e9, pour faire fonctionner <strong>ARDUINO LAB<\/strong>, il faut qu\u2019un interpr\u00e9teur<strong> Python <\/strong>soit install\u00e9.<\/p>\n<p>ARDUINO LAB n\u00e9cessite au minimum la version 3.7 de <strong>Python<\/strong> et l\u2019installation des biblioth\u00e8ques suivantes\u00a0:<\/p>\n<p style=\"padding-left: 40px;\">&#8211; <strong>pyfirmata<\/strong> (pour contr\u00f4ler l\u2019Arduino selon le protocole <strong>Firmata Standard<\/strong>)<\/p>\n<p style=\"padding-left: 40px;\">&#8211; <strong>pymata-express<\/strong> (pour contr\u00f4ler l\u2019Arduino selon le protocole <strong>Firmata Express)<\/strong><\/p>\n<p style=\"padding-left: 40px;\"><strong>&#8211; asyncio <\/strong>(pour la programmation asynchrone)<\/p>\n<p style=\"padding-left: 40px;\">&#8211; <strong>matplotlib<\/strong> (pour tracer et visualiser des donn\u00e9es sous formes de graphiques)<\/p>\n<p style=\"padding-left: 40px;\">&#8211; <strong>numpy<\/strong> (pour le calcul scientifique)<\/p>\n<p style=\"padding-left: 40px;\">&#8211; <strong>Pillow<\/strong> (pour le traitement des images)<\/p>\n<p style=\"padding-left: 40px;\">&#8211; <strong>scipy <\/strong>(pour le traitement des donn\u00e9es)<\/p>\n<p style=\"padding-left: 40px;\">&#8211; <strong>PyMuPDF <\/strong>(pour l\u2019affichage des documents PDF)<\/p>\n<p><br \/>Une fois l\u2019environnement de travail configur\u00e9 et apr\u00e8s avoir t\u00e9l\u00e9charg\u00e9 puis d\u00e9compress\u00e9 le fichier <strong>\u201d<a href=\"https:\/\/www.ardpylab.fr\/downloads-py\/arduinolab\/ArduinoLab.zip\">ArduinoLab.zip<\/a>\u201d <\/strong>qui contient tous les fichiers et dossiers n\u00e9cessaire \u00e0 son fonctionnement,<strong> ARDUINO LAB <\/strong>est d\u00e9marr\u00e9 \u00e0 l\u2019aide du fichier <strong>\u201dMain.py\u201d<\/strong> situ\u00e9 dans le dossier principal <strong>\u201dArduinoLab\u201d<\/strong> du programme\u00a0:<\/p>\n\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3868 aligncenter\" style=\"border: 3px solid #eeeeee; padding: 3px; margin: 3px;\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/04\/arduinolab-img3.png\" alt=\"\" width=\"534\" height=\"510\" srcset=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/04\/arduinolab-img3.png 755w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/04\/arduinolab-img3-300x286.png 300w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/figure>\n<\/div>\n<p>&nbsp;<\/p>\n\n\n\n<p><strong><u>Attention<\/u><\/strong><strong>&nbsp;:<\/strong><\/p>\n<p>L\u2019emplacement du dossier d\u00e9compress\u00e9 <strong>\u201dArduinoLab\u201d<\/strong> n\u2019a pas d\u2019importance, mais tous les fichiers et dossiers contenus dans ce dossier ne doivent en aucun cas \u00eatre modifi\u00e9s ou d\u00e9plac\u00e9s.&nbsp;<\/p>\n<p><strong><u><br>Remarques<\/u><\/strong>&nbsp;<strong>:<\/strong><\/p>\n<p>Le dossier principal <strong>\u201dArduinoLab\u201d<\/strong> du programme&nbsp;contient un dossier nomm\u00e9 <strong>\u201dvenv\u201d <\/strong>dans lequel se situe un environnement virtuel de programmation avec les biblioth\u00e8ques indispensables cit\u00e9es ci-dessus.&nbsp;<\/p>\n<p>Cet environnement de programmation peut \u00eatre utilis\u00e9 comme interpr\u00e9teur du programme. Dans ce cas, m\u00eame si l\u2019installation d\u2019une distribution <strong>Python<\/strong> (3.7 au minimum) est indispensable, les biblioth\u00e8ques dont <strong>ARDUINO LAB<\/strong> d\u00e9pendent n\u2019auront pas \u00e0 \u00eatre ajout\u00e9es \u00e0 la distribution originale install\u00e9e.&nbsp;<\/p>\n<p>L\u2019utilisation de l\u2019environnement de programmation virtuel pour le fonctionnement d\u2019<strong>ARDUINO LAB <\/strong>se configure par l\u2019interm\u00e9diaire d\u2019un environnement de d\u00e9veloppement Python (IDE), par exemple, <a href=\"https:\/\/www.jetbrains.com\/fr-fr\/pycharm\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>PyCharm<\/strong><\/a>.&nbsp;<\/p>\n<p>Ainsi dans <strong>PyCharm<\/strong>, apr\u00e8s avoir ouvert le dossier d\u2019<strong>ARDUINO LAB<\/strong>, il suffit d\u2019indiquer dans les r\u00e9glages que l\u2019environnement virtuel est l\u2019interpr\u00e9teur du projet<strong>&nbsp;:<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3871 size-large\" style=\"border: 3px solid #eeeeee; padding: 3px; margin: 3px;\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/04\/arduinolab-img4-1024x633.png\" alt=\"\" width=\"720\" height=\"445\" srcset=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/04\/arduinolab-img4-1024x633.png 1024w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/04\/arduinolab-img4-300x185.png 300w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/04\/arduinolab-img4-768x474.png 768w, https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/04\/arduinolab-img4.png 1133w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n<\/div>\n\n\n\n<p>Il faudra cependant au pr\u00e9alable modifier le fichier \u201d<strong>pyvenv.cfg<\/strong>\u201d situ\u00e9 dans le dossier <strong>\u201dArduinoLab\/venv\/\u201d <\/strong>pour indiquer le chemin d\u2019installation de la distribution Python&nbsp;:<\/p>\n\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3876 aligncenter\" style=\"border: 3px solid #eeeeee; padding: 3px; margin: 3px;\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/04\/arduinolab-img5.png\" alt=\"\" width=\"519\" height=\"181\" \/><\/figure>\n<\/div>\n<p>\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 is-resized\"><a href=\"https:\/\/www.ardpylab.fr\/?page_id=273\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ardpylab.fr\/wp-content\/uploads\/2020\/03\/moins.jpg\" alt=\"\" class=\"wp-image-107\" width=\"50\" height=\"28\"\/><\/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=3885\"><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>Python \u00e9tant un langage de programmation interpr\u00e9t\u00e9, pour faire fonctionner ARDUINO LAB, il faut qu\u2019un interpr\u00e9teur Python soit install\u00e9. ARDUINO LAB n\u00e9cessite au minimum la version 3.7 de Python et l\u2019installation des biblioth\u00e8ques suivantes\u00a0: &#8211; pyfirmata (pour contr\u00f4ler l\u2019Arduino selon le protocole Firmata Standard) &#8211; pymata-express (pour contr\u00f4ler l\u2019Arduino selon le protocole Firmata Express) &#8211; [&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-3860","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=\/wp\/v2\/pages\/3860","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=3860"}],"version-history":[{"count":1,"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=\/wp\/v2\/pages\/3860\/revisions"}],"predecessor-version":[{"id":5058,"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=\/wp\/v2\/pages\/3860\/revisions\/5058"}],"wp:attachment":[{"href":"https:\/\/www.ardpylab.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}