{"id":7013,"date":"2020-09-22T17:07:40","date_gmt":"2020-09-22T15:07:40","guid":{"rendered":"https:\/\/blog.generationrobots.com\/?p=7013"},"modified":"2023-03-29T10:54:37","modified_gmt":"2023-03-29T08:54:37","slug":"piloter-un-servomoteur-dynamixel-depuis-un-pc-via-bluetooth","status":"publish","type":"post","link":"https:\/\/www.generationrobots.com\/blog\/fr\/piloter-un-servomoteur-dynamixel-depuis-un-pc-via-bluetooth\/","title":{"rendered":"Piloter un servomoteur Dynamixel depuis un PC via Bluetooth"},"content":{"rendered":"\n<html>\n <body>\n  <p>\n   Ce tutoriel vous propose d&rsquo;apprendre \u00e0 piloter facilement vos servomoteurs Dynamixel de Robotis \u00e0 votre ordinateur gr\u00e2ce \u00e0 une liaison Bluetooth. Cette manipulation vous permettra de r\u00e9aliser vos tests facilement tout en vous \u00e9pargnant les connexions filaires\n  <\/p>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-materiel-requis\">\n   Mat\u00e9riel\u00a0requis\n  <\/h2>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    Alimentation 12V\/5A.\n   <\/li>\n   \n   \n   <li>\n    Module BT-410 Dongle.\n   <\/li>\n   \n   \n   <li>\n    Module BT-410 Slave.\n   <\/li>\n   \n   \n   <li>\n    Servomoteur Dynamixel (ici un MX-28).\n   <\/li>\n   \n   \n   <li>\n    OpenCM9.04.\n   <\/li>\n   \n   \n   <li>\n    OpenCM485\n   <\/li>\n   \n   \n   <li>\n    C\u00e2ble 3 (ou 4) pins pour Dynamixel.\n   <\/li>\n   \n   \n   <li>\n    C\u00e2ble micro USB.\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-software-requis\">\n   Software\u00a0requis\n  <\/h2>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    Arduino IDE\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-installation\">\n   Installation\n  <\/h2>\n  \n  \n  <h3 class=\"wp-block-heading\" id=\"h-branchements\">\n   Branchements\u00a0:\n  <\/h3>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    Brancher la carte\n    <a aria-label=\" (opens in a new tab)\" href=\"\/fr\/401596-carte-de-controle-open-source-cm904-a-pour-servomoteur-dynamixel.html\" rel=\"noreferrer noopener\" target=\"_blank\">\n     OpenCM9.04\n    <\/a>\n    \u00e0 la carte\n    <a aria-label=\" (opens in a new tab)\" href=\"\/fr\/402014-carte-dextension-opencm-485.html\" rel=\"noreferrer noopener\" target=\"_blank\">\n     OpenCM485\n    <\/a>\n    EXP.\n   <\/li>\n   \n   \n   <li>\n    Connecter le\n    <a href=\"\/fr\/169-servomoteurs-dynamixel\">\n     servomoteur\n    <\/a>\n    \u00e0 la carte OpenCM485 EXP via le c\u00e2ble 3 (ou 4) pins Dynamixel.\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <figure class=\"wp-block-image aligncenter size-large\">\n   <img fetchpriority=\"high\" decoding=\"async\" width=\"384\" height=\"384\" alt=\"Carte Open CM9.04 branch\u00e9e \u00e0 la carte OpenCM485 et au servomoteur\" class=\"wp-image-7015\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2020\/06\/comment-piloter-un-servomoteur-Dynamixel-depuis-un-PC-via-Bluetooth-1.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/06\/comment-piloter-un-servomoteur-Dynamixel-depuis-un-PC-via-Bluetooth-1.jpg 384w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/06\/comment-piloter-un-servomoteur-Dynamixel-depuis-un-PC-via-Bluetooth-1-300x300.jpg 300w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/06\/comment-piloter-un-servomoteur-Dynamixel-depuis-un-PC-via-Bluetooth-1-150x150.jpg 150w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/06\/comment-piloter-un-servomoteur-Dynamixel-depuis-un-PC-via-Bluetooth-1-140x140.jpg 140w\" sizes=\"(max-width: 384px) 100vw, 384px\" \/>\n  <\/figure>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    Brancher le\n    <a href=\"\/fr\/402343-module-bluetooth-bt-410-esclave.html\">\n     BT-410 Slave\n    <\/a>\n    \u00e0 la carte OpenCM9.04 sur le port UART.\n   <\/li>\n   \n   \n   <li>\n    Connecter la carte OpenCM9.04 au PC via le c\u00e2ble micro USB.\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <figure class=\"wp-block-image aligncenter size-large\">\n   <img decoding=\"async\" width=\"686\" height=\"366\" alt=\"Etape 2 :photo du branchement de la BT-410 Slave \u00e0 la carte Open CM9.04\" class=\"wp-image-7016\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2020\/06\/comment-piloter-un-servomoteur-Dynamixel-depuis-un-PC-via-Bluetooth-2.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/06\/comment-piloter-un-servomoteur-Dynamixel-depuis-un-PC-via-Bluetooth-2.jpg 686w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/06\/comment-piloter-un-servomoteur-Dynamixel-depuis-un-PC-via-Bluetooth-2-300x160.jpg 300w\" sizes=\"(max-width: 686px) 100vw, 686px\" \/>\n  <\/figure>\n  \n  \n  <p>\n   La carte OpenCM9.04 est allum\u00e9e et le module BT-410 clignote en bleu.\n  <\/p>\n  \n  \n  <h3 class=\"wp-block-heading\" id=\"h-logiciel\">\n   Logiciel\u00a0:\n  <\/h3>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    T\u00e9l\u00e9charger le logiciel\n    <a href=\"https:\/\/www.arduino.cc\/en\/main\/software\" rel=\"noreferrer noopener\" target=\"_blank\">\n     Arduino IDE\n    <\/a>\n    .\n   <\/li>\n   \n   \n   <li>\n    Lancer Arduino.IDE, aller dans\n    <em>\n     Fichier\n    <\/em>\n    , puis\n    <em>\n     Pr\u00e9f\u00e9rences\n    <\/em>\n    .\n   <\/li>\n   \n   \n   <li>\n    Dans\n    <em>\n     Pr\u00e9f\u00e9rences\n    <\/em>\n    , ins\u00e9rer le lien suivant dans la fen\u00eatre\n    <em>\n     URL de gestionnaire de cartes suppl\u00e9mentaires\n    <\/em>\n    : https:\/\/raw.githubusercontent.com\/ROBOTIS-GIT\/OpenCM9.04\/master\/arduino\/opencm_release\/package_opencm9.04_index.json\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <figure class=\"wp-block-image aligncenter size-large\">\n   <img decoding=\"async\" width=\"512\" height=\"288\" alt=\"\" class=\"wp-image-7370\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2020\/09\/img-3.png\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-3.png 512w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-3-300x169.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/>\n  <\/figure>\n  \n  \n  <p>\n   Cliquer sur\n   <em>\n    Valider\n   <\/em>\n   .\n  <\/p>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    Aller dans\n    <em>\n     Outils\n    <\/em>\n    , puis\n    <em>\n     Type de carte\n    <\/em>\n    et cliquer sur\n    <em>\n     Gestionnaire de carte\n    <\/em>\n    .\n   <\/li>\n   \n   \n   <li>\n    Rechercher la section\n    <em>\n     OpenCM9.04 by ROBOTIS\n    <\/em>\n    , puis cliquer sur\n    <em>\n     Installer\n    <\/em>\n    .\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <figure class=\"wp-block-image aligncenter size-large\">\n   <img loading=\"lazy\" decoding=\"async\" width=\"509\" height=\"512\" alt=\"\" class=\"wp-image-7371\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2020\/09\/img-4.png\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-4.png 509w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-4-298x300.png 298w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-4-150x150.png 150w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-4-140x140.png 140w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/>\n  <\/figure>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    Fermer le logiciel Arduino.IDE, puis le lancer \u00e0 nouveau.\n   <\/li>\n   \n   \n   <li>\n    Aller dans\n    <em>\n     Outils\n    <\/em>\n    , puis\n    <em>\n     Type de carte\n    <\/em>\n    . Dans la liste, s\u00e9lectionner\n    <em>\n     OpenCM9.04 Board\n    <\/em>\n    .\n   <\/li>\n   \n   \n   <li>\n    Aller dans\n    <em>\n     Outils\n    <\/em>\n    , puis\n    <em>\n     Port\n    <\/em>\n    . S\u00e9lectionner le port correspondant \u00e0 la carte OpenCM9.04.\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-fonctionnement\">\n   Fonctionnement\n  <\/h2>\n  \n  \n  <h3 class=\"wp-block-heading\" id=\"h-setup\">\n   Setup\n  <\/h3>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    Lancer Arduino.IDE.\n   <\/li>\n   \n   \n   <li>\n    Aller dans\n    <em>\n     Fichier\n    <\/em>\n    ?\n    <em>\n     Exemples\n    <\/em>\n    ?\n    <em>\n     OpenCM9.04\n    <\/em>\n    ?\n    <em>\n     08_DynamixelWorkbench\n    <\/em>\n    , puis cliquer sur\n    <em>\n     h_Position\n    <\/em>\n    .\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <figure class=\"wp-block-image aligncenter size-large\">\n   <img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"384\" alt=\"\" class=\"wp-image-7372\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2020\/09\/img-5.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-5.jpg 512w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-5-300x225.jpg 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/>\n  <\/figure>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    Une nouvelle fen\u00eatre s\u2019ouvre avec le setup requis pour commander le servomoteur.\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <h3 class=\"wp-block-heading\" id=\"h-programme\">\n   Programme\n  <\/h3>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    \u00c9crire le programme voulu.\n   <\/li>\n   \n   \n   <li>\n    T\u00e9l\u00e9verser le programme dans la carte OpenCM9.04.\n   <\/li>\n   \n   \n   <li>\n    D\u00e9brancher la carte OpenCM9.04 du PC.\n   <\/li>\n   \n   \n   <li>\n    Alimenter la carte OpenCM485 EXP \u00e0 l\u2019aide de l\u2019alimentation 12V\/5A et actionner l\u2019interrupteur.\n   <\/li>\n   \n   \n   <li>\n    Brancher le module\n    <a aria-label=\" (opens in a new tab)\" href=\"\/fr\/403363-module-usb-bluetooth-bt-410.html\" rel=\"noreferrer noopener\" target=\"_blank\">\n     BT-410 Dongle\n    <\/a>\n    sur le PC. Approcher les deux modules afin de les pairer. Les modules sont synchronis\u00e9s lorsque le clignotement cesse.\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <figure class=\"wp-block-image aligncenter size-large\">\n   <img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"162\" alt=\"\" class=\"wp-image-7373\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2020\/09\/img-6.png\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-6.png 512w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-6-300x95.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/>\n  <\/figure>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    Depuis le logiciel Arduino.IDE, aller dans\n    <em>\n     Outils\n    <\/em>\n    ,\n    <em>\n     Port\n    <\/em>\n    et s\u00e9lectionner le port correspondant au module BT-410 Dongle.\n   <\/li>\n   \n   \n   <li>\n    Ouvrir le moniteur s\u00e9rie afin de communiquer avec la carte OpenCM9.04. Le moniteur doit \u00eatre r\u00e9gl\u00e9 sur 57600 bauds.\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-exemples-de-programmes\">\n   Exemples de programmes\n  <\/h2>\n  \n  \n  <h3 class=\"wp-block-heading\" id=\"h-commander-le-servomoteur\">\n   Commander le servomoteur\n  <\/h3>\n  \n  \n  <p>\n   Permet de choisir la position du servomoteur entre la position 0 et la position 4095\n  <\/p>\n  \n  \n  <ol class=\"wp-block-list\">\n   \n   <li>\n    Entrer la ligne de code \u00ab\n    <em>\n     int Position_du_servomoteur\u00a0;\n    <\/em>\n    \u00bb en dessous de la ligne de code \u00ab\n    <em>\n     DynamixelWorkbench dxl_wb;\n    <\/em>\n    \u00bb.\n   <\/li>\n   \n   \n   <li>\n    Dans la fonction\n    <em>\n     void setup()\n    <\/em>\n    , entrer la ligne de code\u00a0\u00ab\n    <em>\n     Serial2.begin(57600);\n    <\/em>\n    \u00bb.\n   <\/li>\n   \n   \n   <li>\n    Dans la fonction\n    <em>\n     void loop()\n    <\/em>\n    , entrer les lignes de code suivante\u00a0:\n   <\/li>\n   \n  <\/ol>\n  \n  \n  <figure class=\"wp-block-image aligncenter size-large\">\n   <img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"357\" alt=\"\" class=\"wp-image-7374\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2020\/09\/img-7.png\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-7.png 512w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-7-300x209.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/>\n  <\/figure>\n  \n  \n  <h3 class=\"wp-block-heading\" id=\"h-enchainement-de-positions\">\n   Enchainement de positions\n  <\/h3>\n  \n  \n  <p>\n   Permet de lancer une s\u00e9rie de positions pr\u00e9d\u00e9finies quand une commande sp\u00e9cifique est donn\u00e9e (ici, la commande est \u00ab\u00a01\u00a0\u00bb).\n  <\/p>\n  \n  \n  <ol class=\"wp-block-list\">\n   \n   <li>\n    Entrer la ligne de code \u00ab\n    <em>\n     int Lancement_du_programme\u00a0;\n    <\/em>\n    \u00bb en dessous de la ligne de code \u00ab\n    <em>\n     DynamixelWorkbench dxl_wb;\n    <\/em>\n    \u00bb.\n   <\/li>\n   \n   \n   <li>\n    Dans la fonction\n    <em>\n     void setup()\n    <\/em>\n    , entrer la ligne de code\u00a0\u00ab\n    <em>\n     Serial2.begin(57600);\n    <\/em>\n    \u00bb.\n   <\/li>\n   \n   \n   <li>\n    Dans la fonction\n    <em>\n     void loop()\n    <\/em>\n    , entrer les lignes de code suivante\u00a0:\n   <\/li>\n   \n  <\/ol>\n  \n  \n  <figure class=\"wp-block-image aligncenter size-large\">\n   <img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"313\" alt=\"\" class=\"wp-image-7375\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2020\/09\/img-8.png\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-8.png 512w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2020\/09\/img-8-300x183.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/>\n  <\/figure>\n  \n <\/body>\n<\/html>","protected":false},"excerpt":{"rendered":"<p>Ce tutoriel vous propose d&rsquo;apprendre \u00e0 piloter facilement vos servomoteurs Dynamixel de Robotis \u00e0 votre ordinateur gr\u00e2ce \u00e0 une liaison Bluetooth. Cette manipulation vous permettra de r\u00e9aliser vos tests facilement tout en vous \u00e9pargnant les connexions filaires Mat\u00e9riel\u00a0requis Software\u00a0requis Installation Branchements\u00a0: La carte OpenCM9.04 est allum\u00e9e et le module BT-410 clignote en bleu. Logiciel\u00a0: Cliquer[&#8230;]<br \/> <a class=\"button\" href=\"https:\/\/www.generationrobots.com\/blog\/fr\/piloter-un-servomoteur-dynamixel-depuis-un-pc-via-bluetooth\/\" style=\"float:right;\">Read this article &gt;&gt;<\/a><\/p>\n","protected":false},"author":188,"featured_media":7376,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10527],"tags":[],"class_list":["post-7013","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides-et-tutoriels"],"_links":{"self":[{"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/posts\/7013","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=7013"}],"version-history":[{"count":5,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/posts\/7013\/revisions"}],"predecessor-version":[{"id":12777,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/posts\/7013\/revisions\/12777"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/media\/7376"}],"wp:attachment":[{"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/media?parent=7013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/categories?post=7013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/tags?post=7013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}