{"id":5255,"date":"2018-09-06T12:03:32","date_gmt":"2018-09-06T10:03:32","guid":{"rendered":"https:\/\/blog.generationrobots.com\/?p=5255"},"modified":"2023-03-29T10:17:30","modified_gmt":"2023-03-29T08:17:30","slug":"teleoperer-le-robot-educatif-mbot-avec-un-module-xbee","status":"publish","type":"post","link":"https:\/\/www.generationrobots.com\/blog\/fr\/teleoperer-le-robot-educatif-mbot-avec-un-module-xbee\/","title":{"rendered":"T\u00e9l\u00e9op\u00e9rer le robot \u00e9ducatif mBot avec un module Xbee"},"content":{"rendered":"\n<html>\n <body>\n  <p>\n   Ce tutoriel est un exemple de mise en application d\u2019un protocole s\u00e9rie pour commander le robot \u00e9ducatif mBot. Vous pouvez vous approprier le code pour mieux l&rsquo;int\u00e9grer \u00e0 vos projets (ou par exemple, dans les \u00e9preuves de la\n   <a class=\"catalogue\" href=\"\/blog\/fr\/robocup-2018-a-montreal-premier-jour-de-competitions\/\" title=\"Robocup 2018 \u00e0 Montr\u00e9al \u2013 Premier jour de comp\u00e9titions\">\n    Robocup Jr\n   <\/a>\n   ).\n  <\/p>\n  \n  <div class=\"wp-block-image\">\n  <figure class=\"aligncenter\">\n   <a href=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/mbot-robocup-jr-maze.jpg\">\n    <img fetchpriority=\"high\" decoding=\"async\" width=\"740\" height=\"360\" alt=\"mbot-robocup-jr-maze\" class=\"wp-image-5266\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/mbot-robocup-jr-maze.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/mbot-robocup-jr-maze.jpg 740w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/mbot-robocup-jr-maze-300x146.jpg 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/>\n   <\/a>\n   <figcaption class=\"wp-element-caption\">\n    Le robot mBot est tr\u00e8s utilis\u00e9 dans les \u00e9preuves de la Robocup Jr\n   <\/figcaption>\n  <\/figure>\n  <\/div>\n  \n  <p>\n   La t\u00e9l\u00e9op\u00e9ration d\u2019un robot avec une puce XBee pr\u00e9sente 2 gros avantages :\n  <\/p>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    Par rapport au pilotage avec du WiFi ou du BlueTooth, sa\n    <strong>\n     mise en place\n    <\/strong>\n    est beaucoup plus simple\n   <\/li>\n   \n   \n   <li>\n    Avec le module XBee, vous allez pouvoir faire\n    <strong>\n     remonter les informations\n    <\/strong>\n    en provenance des diff\u00e9rents capteurs du mBot, ce que ne permet pas la t\u00e9l\u00e9op\u00e9ration depuis l\u2019application MakeBlock pour mBot.\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-comment-va-fonctionner-notre-montage\">\n   Comment va fonctionner notre montage ?\n  <\/h2>\n  \n  <div class=\"wp-block-image\">\n  <figure class=\"aligncenter\">\n   <a href=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbee-arduino-grove-systeme.jpg\">\n    <img decoding=\"async\" width=\"582\" height=\"147\" alt=\"xbee-arduino-grove-systeme\" class=\"wp-image-5267\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbee-arduino-grove-systeme.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-arduino-grove-systeme.jpg 582w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-arduino-grove-systeme-300x76.jpg 300w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/>\n   <\/a>\n  <\/figure>\n  <\/div>\n  \n  <p>\n   Le syst\u00e8me est compos\u00e9 de 2 modules Xbee (un qui aura le r\u00f4le d\u2019\u00e9metteur et l\u2019autre de r\u00e9cepteur), d\u2019un robot p\u00e9dagogique mBot et d\u2019un module qui enverra la commande.\n  <\/p>\n  \n  \n  <p>\n   Dans ce tutoriel, ce dernier module sera compos\u00e9 d\u2019une carte Arduino UNO et d\u2019un joystick Grove. Ce syst\u00e8me peut \u00eatre remplac\u00e9 par une manette Arbotix Commander, qui embarque d\u00e9j\u00e0 une puce XBee !\n  <\/p>\n  \n  \n  <p>\n   C\u00f4t\u00e9 code, nous allons adapter le code d\u00e9j\u00e0 existant pour la manette Arbotix Commander au syst\u00e8me Arduino + Joystick.\n  <\/p>\n  \n  \n  <p>\n   La trame d\u2019envoi des donn\u00e9es utilis\u00e9e ici est compos\u00e9e de 8 octets :\n  <\/p>\n  \n  \n  <figure class=\"wp-block-table\">\n   <table>\n    <tbody>\n     <tr>\n      <th>\n       Index (n\u00b0 octet)\n      <\/th>\n      <th>\n       Description\n      <\/th>\n      <th>\n       Exemple\n      <\/th>\n     <\/tr>\n     <tr>\n      <td>\n       0\n      <\/td>\n      <td>\n       nouveau paquet (0xff)\n      <\/td>\n      <td>\n       1111 1111 (dec: -1)\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       1\n      <\/td>\n      <td>\n       joystick droit V\n      <\/td>\n      <td>\n       0100 0000 (dec: 64)\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       2\n      <\/td>\n      <td>\n       joystick droit H\n      <\/td>\n      <td>\n       0000 0000 (dec: 0)\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       3\n      <\/td>\n      <td>\n       joystick gauche V\n      <\/td>\n      <td>\n       0000 0000 (dec: 0)\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       4\n      <\/td>\n      <td>\n       joystick gauche H\n      <\/td>\n      <td>\n       0000 0000 (dec: 0)\/td&gt;\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       5\n      <\/td>\n      <td>\n       \u00e9tats des boutons\n      <\/td>\n      <td>\n       0000 0000 (dec: 0)\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       6\n      <\/td>\n      <td>\n       extra\n      <\/td>\n      <td>\n       0000 0000 (dec: 0)\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       7\n      <\/td>\n      <td>\n       s\u00e9curit\u00e9\n      <\/td>\n      <td>\n       0000 0000 (dec: 0)\n      <\/td>\n     <\/tr>\n    <\/tbody>\n   <\/table>\n  <\/figure>\n  \n  \n  <p>\n   Ici, nous avons envoy\u00e9 sur le second octet (index 1) 64 en d\u00e9cimal, ce qui se traduit en 0100 0000 en binaire.\n  <\/p>\n  \n  \n  <p>\n   Dans notre syst\u00e8me\n   <em>\n    carte Arduino + joystick\n   <\/em>\n   , nous utiliserons un seul joystick, les seules donn\u00e9es importantes sont donc l\u2019octet 0 (nouveau paquet), 1 (joystick droit V &#8211; Vertical), 2 (joystick droit H &#8211; Horizontal) et 7 (s\u00e9curit\u00e9).\n  <\/p>\n  \n  \n  <p>\n   Pour traduire les valeurs des joysticks en commande moteurs, voil\u00e0 les formules math\u00e9matiques que vous allez utiliser :\n  <\/p>\n  \n  \n  <p>\n   <em>\n    Vitesse du moteur droit = joystick droit V &#8211; joystick droit H\n   <\/em>\n   <br\/>\n   <em>\n    Vitesse du moteur gauche = joystick droit V + joystick droit H\n   <\/em>\n  <\/p>\n  \n  \n  <p>\n   Ce qui nous donne donc, en utilisant le paquet envoy\u00e9 pr\u00e9c\u00e9demment :\n  <\/p>\n  \n  \n  <p>\n   <em>\n    Vitesse du moteur droit = 64 &#8211; 0 = 64\n   <\/em>\n   <br\/>\n   <em>\n    Vitesse du moteur gauche = 64 +0 = 64\n   <\/em>\n  <\/p>\n  \n  \n  <p>\n   Le robot ira donc tout droit.\n  <\/p>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-logiciels-librairies-firmware-donc-vous-aurez-besoin-pour-ce-tutoriel\">\n   Logiciels, librairies, firmware donc vous aurez besoin pour ce tutoriel\n  <\/h2>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    <a class=\"catalogue\" href=\"https:\/\/www.arduino.cc\/en\/Guide\/Windows\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"IDE Arduino\">\n     IDE Arduino\n    <\/a>\n   <\/li>\n   \n   \n   <li>\n    <a class=\"catalogue\" href=\"https:\/\/www.poppy-project.org\/?lang=fr\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"Logiciel XCTU\">\n     Logiciel XCTU\n    <\/a>\n   <\/li>\n   \n   \n   <li>\n    <a class=\"catalogue\" href=\"https:\/\/github.com\/Makeblock-official\/Makeblock-Libraries\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"Librairies MakeBlock\">\n     Librairies MakeBlock\n    <\/a>\n   <\/li>\n   \n   \n   <li>\n    <a class=\"catalogue\" href=\"https:\/\/github.com\/generationrobots-lab\/mbot_XBee_control\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"Firmware mBot et Arduino\">\n     Firmware mBot et Arduino\n    <\/a>\n   <\/li>\n   \n   \n   <li>\n    <a class=\"catalogue\" href=\"\/media\/Commander.zip\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"Firmware Arbotix Commander\">\n     Firmware Arbotix Commander\n    <\/a>\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-configuration-des-puces-xbee\">\n   Configuration des puces XBee\n  <\/h2>\n  \n  <div class=\"wp-block-image\">\n  <figure class=\"aligncenter\">\n   <a href=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbee-explorer-usb-sparkfun.jpg\">\n    <img decoding=\"async\" width=\"150\" height=\"150\" alt=\"xbee-explorer-usb-sparkfun\" class=\"wp-image-5268\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbee-explorer-usb-sparkfun-150x150.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-explorer-usb-sparkfun-150x150.jpg 150w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-explorer-usb-sparkfun-300x300.jpg 300w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-explorer-usb-sparkfun-140x140.jpg 140w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-explorer-usb-sparkfun.jpg 338w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/>\n   <\/a>\n  <\/figure>\n  <\/div>\n  \n  <p>\n   Chaque puce XBee doit \u00eatre configur\u00e9e \u00e0 l\u2019aide du\n   <a class=\"catalogue\" href=\"https:\/\/www.poppy-project.org\/?lang=fr\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"Logiciel XCTU\">\n    logiciel XCTU\n   <\/a>\n   . R\u00e9p\u00e9ter les \u00e9tapes de configuration ci-dessous autant de fois qu\u2019il y a de puces XBee.\n   <br\/>\n   1. Connectez votre puce XBee \u00e0 l\u2019ordinateur via le XBee explorer USB.\n   <br\/>\n   2. Connectez-vous \u00e0 la puce XBee avec le logiciel XCTU. La vid\u00e9o ci-dessous vous explique comment faire.\n  <\/p>\n  \n  \n  <p class=\"has-text-align-center\">\n   <iframe allowfullscreen=\"allowfullscreen\" frameborder=\"0\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/gmemn4EkA2A\" width=\"560\">\n   <\/iframe>\n  <\/p>\n  \n  \n  <p>\n   3. R\u00e9glez ensuite les param\u00e8tres pour chacun des XBees utilis\u00e9s (aidez-vous du tableau ci-dessous) :\n  <\/p>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    S\u00e9lectionnez le XBee \u00e0 gauche\n    <strong>\n     <span style=\"color: #ff0000;\">\n      (1)\n     <\/span>\n    <\/strong>\n    et aller dans l\u2019onglet configuration\n    <strong>\n     <span style=\"color: #ff0000;\">\n      (2)\n     <\/span>\n    <\/strong>\n   <\/li>\n   \n   \n   <li>\n    Changez l\u2019id du XBee (il faut qu\u2019il soit unique) et l\u2019adresse de destination\n    <strong>\n     <span style=\"color: #ff0000;\">\n      (3)\n     <\/span>\n    <\/strong>\n   <\/li>\n   \n   \n   <li>\n    V\u00e9rifiez son channel ainsi que le baud rate (identiques entre tous les XBee qui doivent communiquer entre eux)\n    <strong>\n     <span style=\"color: #ff0000;\">\n      (3)\n     <\/span>\n    <\/strong>\n   <\/li>\n   \n   \n   <li>\n    Cliquez sur \u201cWrite\u201d pour enregistrer\n    <span style=\"color: #ff0000;\">\n     <strong>\n      (4)\n     <\/strong>\n    <\/span>\n   <\/li>\n   \n  <\/ul>\n  \n  <div class=\"wp-block-image\">\n  <figure class=\"aligncenter\">\n   <a href=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbee-chiffres.jpg\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"1091\" height=\"647\" alt=\"xbee-chiffres\" class=\"wp-image-5264\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbee-chiffres.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-chiffres.jpg 1091w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-chiffres-300x178.jpg 300w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-chiffres-768x455.jpg 768w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-chiffres-1024x607.jpg 1024w\" sizes=\"(max-width: 1091px) 100vw, 1091px\" \/>\n   <\/a>\n  <\/figure>\n  <\/div>\n  \n  <figure class=\"wp-block-table\">\n   <table>\n    <tbody>\n     <tr>\n      <th>\n       XBee connect\u00e9 \u00e0\n      <\/th>\n      <th>\n       Channel\n      <\/th>\n      <th>\n       Destination address\n      <\/th>\n      <th>\n       Source address\n      <\/th>\n      <th>\n       Interface data rate\n      <\/th>\n     <\/tr>\n     <tr>\n      <td>\n       mBot\n      <\/td>\n      <td>\n       C\n      <\/td>\n      <td>\n       2\n      <\/td>\n      <td>\n       1\n      <\/td>\n      <td>\n       38400\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       USB PC\n      <\/td>\n      <td>\n       C\n      <\/td>\n      <td>\n       1\n      <\/td>\n      <td>\n       2\n      <\/td>\n      <td>\n       38400\n      <\/td>\n     <\/tr>\n    <\/tbody>\n   <\/table>\n  <\/figure>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-connexions-a-effectuer-sur-le-robot-mbot\">\n   Connexions \u00e0 effectuer sur le robot mBot\n  <\/h2>\n  \n  <div class=\"wp-block-image\">\n  <figure class=\"aligncenter\">\n   <a href=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbee-10.jpg\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"1010\" height=\"431\" alt=\"xbee-10\" class=\"wp-image-5263\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbee-10.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-10.jpg 1010w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-10-300x128.jpg 300w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-10-768x328.jpg 768w\" sizes=\"(max-width: 1010px) 100vw, 1010px\" \/>\n   <\/a>\n  <\/figure>\n  <\/div>\n  \n  <p>\n   Vous trouverez dans le tableau ci-dessous, le r\u00e9capitulatif des diff\u00e9rents raccordements entre le microcontr\u00f4leur du robot mBot et la XBee explorer USB.\n  <\/p>\n  \n  \n  <figure class=\"wp-block-table\">\n   <table>\n    <tbody>\n     <tr>\n      <th>\n       XBee\n      <\/th>\n      <th>\n       mBot\n      <\/th>\n     <\/tr>\n     <tr>\n      <td>\n       5V\n      <\/td>\n      <td>\n       5V\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       GND\n      <\/td>\n      <td>\n       GND\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       RX\n      <\/td>\n      <td>\n       10\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       TX\n      <\/td>\n      <td>\n       9\n      <\/td>\n     <\/tr>\n    <\/tbody>\n   <\/table>\n  <\/figure>\n  \n  \n  <p>\n   <span style=\"text-decoration: underline;\">\n    <strong>\n     Le port 2 du robot mBot est utilis\u00e9 par la puce XBee, ne rien brancher dessus !\n    <\/strong>\n   <\/span>\n  <\/p>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-connexions-a-faire-sur-la-carte-arduino\">\n   Connexions \u00e0 faire sur la carte Arduino\n  <\/h2>\n  \n  <div class=\"wp-block-image\">\n  <figure class=\"aligncenter\">\n   <a href=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbeet-arduino-mbot-connexion.jpg\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"461\" alt=\"xbeet-arduino-mbot-connexion\" class=\"wp-image-5261\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbeet-arduino-mbot-connexion.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbeet-arduino-mbot-connexion.jpg 707w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbeet-arduino-mbot-connexion-300x196.jpg 300w\" sizes=\"(max-width: 707px) 100vw, 707px\" \/>\n   <\/a>\n  <\/figure>\n  <\/div>\n  <div class=\"wp-block-image\">\n  <figure class=\"aligncenter\">\n   <a href=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbee-arduino-mbot-connexion-2.jpg\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"322\" alt=\"xbee-arduino-mbot-connexion-2\" class=\"wp-image-5265\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2018\/09\/xbee-arduino-mbot-connexion-2.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-arduino-mbot-connexion-2.jpg 602w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2018\/09\/xbee-arduino-mbot-connexion-2-300x160.jpg 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/>\n   <\/a>\n  <\/figure>\n  <\/div>\n  \n  <p>\n   Vous trouverez dans le tableau ci-dessous, le r\u00e9capitulatif des diff\u00e9rents raccordements entre la carte Arduino, la puce XBee et le joystick Grove.\n  <\/p>\n  \n  \n  <figure class=\"wp-block-table\">\n   <table>\n    <tbody>\n     <tr>\n      <th>\n       XBee\n      <\/th>\n      <th>\n       Joystick\n      <\/th>\n      <th>\n       Arduino\n      <\/th>\n     <\/tr>\n     <tr>\n      <td>\n       Vcc\n      <\/td>\n      <td>\n       &#8211;\n      <\/td>\n      <td>\n       3v3\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       GND\n      <\/td>\n      <td>\n       GND\n      <\/td>\n      <td>\n       GND\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       RX\n      <\/td>\n      <td>\n       &#8211;\n      <\/td>\n      <td>\n       9\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       TX\n      <\/td>\n      <td>\n       &#8211;\n      <\/td>\n      <td>\n       10\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       &#8211;\n      <\/td>\n      <td>\n       Y\n      <\/td>\n      <td>\n       A1\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       &#8211;\n      <\/td>\n      <td>\n       X\n      <\/td>\n      <td>\n       A0\n      <\/td>\n     <\/tr>\n     <tr>\n      <td>\n       &#8211;\n      <\/td>\n      <td>\n       Key (unused)\n      <\/td>\n      <td>\n       &#8211;\n      <\/td>\n     <\/tr>\n    <\/tbody>\n   <\/table>\n  <\/figure>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-installez-le-firmware-de-la-carte-arduino\">\n   Installez le firmware de la carte Arduino\n  <\/h2>\n  \n  \n  <ol class=\"wp-block-list\">\n   \n   <li>\n    Connectez votre Arduino au pc via un c\u00e2ble USB.\n   <\/li>\n   \n   \n   <li>\n    Ouvrez le fichier Arduino_code.ino (lien de t\u00e9l\u00e9chargement dans les pr\u00e9requis)\n   <\/li>\n   \n   \n   <li>\n    Changez le type de la carte ainsi que le port s\u00e9rie en fonction de ce que vous utilisez\n   <\/li>\n   \n   \n   <li>\n    T\u00e9l\u00e9versez sur la carte (ctrl + U)\n   <\/li>\n   \n  <\/ol>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-installez-le-firmware-du-robot-mbot\">\n   Installez le firmware du robot mBot\n  <\/h2>\n  \n  \n  <ol class=\"wp-block-list\">\n   \n   <li>\n    Connectez le mBot au pc via un c\u00e2ble USB B\n   <\/li>\n   \n   \n   <li>\n    Ouvrez l\u2019IDE Arduino et installez la librairie Makeblock (aide)\n   <\/li>\n   \n   \n   <li>\n    Ouvrez le fichier Mbot_code.ino (lien de t\u00e9l\u00e9chargement dans les pr\u00e9requis)\n   <\/li>\n   \n   \n   <li>\n    Toujours dans l\u2019IDE Arduino, changez le type de la carte et s\u00e9lectionnez tool -&gt; board -&gt; arduino uno\n   <\/li>\n   \n   \n   <li>\n    T\u00e9l\u00e9verser sur la carte (ctrl + U)\n   <\/li>\n   \n  <\/ol>\n  \n  \n  <p>\n   Une fois le firmware correctement install\u00e9, red\u00e9marrez le robot. C&rsquo;est la derni\u00e8re \u00e9tape !\n  <\/p>\n  \n <\/body>\n<\/html>","protected":false},"excerpt":{"rendered":"<p>Ce tutoriel est un exemple de mise en application d\u2019un protocole s\u00e9rie pour commander le robot \u00e9ducatif mBot. Vous pouvez vous approprier le code pour mieux l&rsquo;int\u00e9grer \u00e0 vos projets (ou par exemple, dans les \u00e9preuves de la Robocup Jr ). La t\u00e9l\u00e9op\u00e9ration d\u2019un robot avec une puce XBee pr\u00e9sente 2 gros avantages : Comment[&#8230;]<br \/> <a class=\"button\" href=\"https:\/\/www.generationrobots.com\/blog\/fr\/teleoperer-le-robot-educatif-mbot-avec-un-module-xbee\/\" style=\"float:right;\">Read this article &gt;&gt;<\/a><\/p>\n","protected":false},"author":188,"featured_media":5273,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1128],"tags":[],"class_list":["post-5255","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-education"],"_links":{"self":[{"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/posts\/5255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/users\/188"}],"replies":[{"embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/comments?post=5255"}],"version-history":[{"count":12,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/posts\/5255\/revisions"}],"predecessor-version":[{"id":13123,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/posts\/5255\/revisions\/13123"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/media\/5273"}],"wp:attachment":[{"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/media?parent=5255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/categories?post=5255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/tags?post=5255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}