{"id":29455,"date":"2017-04-22T08:53:40","date_gmt":"2017-04-22T06:53:40","guid":{"rendered":"http:\/\/www.makerslide-machines.com\/?p=29455"},"modified":"2018-08-12T16:27:21","modified_gmt":"2018-08-12T14:27:21","slug":"en-2-use-rgb-led-with-webduino-smart","status":"publish","type":"post","link":"http:\/\/www.makerslide-machines.xyz\/old\/2017\/04\/22\/en-2-use-rgb-led-with-webduino-smart\/","title":{"rendered":"2 &#8211; Utiliser la DEL RGB de la carte Webduino smart"},"content":{"rendered":"<p>[:en][et_pb_section admin_label=\u00a0\u00bbsection\u00a0\u00bb][et_pb_row admin_label=\u00a0\u00bbrow\u00a0\u00bb][et_pb_column type=\u00a0\u00bb4_4&Prime;][et_pb_post_title admin_label=\u00a0\u00bbTitre du poste\u00a0\u00bb title=\u00a0\u00bbon\u00a0\u00bb meta=\u00a0\u00bbon\u00a0\u00bb author=\u00a0\u00bbon\u00a0\u00bb date=\u00a0\u00bbon\u00a0\u00bb categories=\u00a0\u00bbon\u00a0\u00bb comments=\u00a0\u00bboff\u00a0\u00bb featured_image=\u00a0\u00bboff\u00a0\u00bb featured_placement=\u00a0\u00bbbelow\u00a0\u00bb parallax_effect=\u00a0\u00bbon\u00a0\u00bb parallax_method=\u00a0\u00bbon\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb text_color=\u00a0\u00bbdark\u00a0\u00bb text_background=\u00a0\u00bboff\u00a0\u00bb text_bg_color=\u00a0\u00bbrgba(255,255,255,0.9)\u00a0\u00bb module_bg_color=\u00a0\u00bbrgba(255,255,255,0)\u00a0\u00bb title_all_caps=\u00a0\u00bboff\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb] [\/et_pb_post_title][et_pb_text admin_label=\u00a0\u00bbTexte\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb]<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29460 alignleft\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/smart-blink.gif\" alt=\"smart-blink\" width=\"400\" height=\"329\" \/><\/p>\n<p>The Webduino Smart development board has a built-in micro <strong>RGB<\/strong> (<span style=\"color: #ff0000;\"><strong>red<\/strong><\/span>, <strong><span style=\"color: #008000;\">green<\/span><\/strong> and <span style=\"color: #0000ff;\"><strong>blue<\/strong><\/span>) <strong>LED<\/strong> (common cathode).<\/p>\n<p>The default pin numbers for <strong><span style=\"color: #ff0000;\">red<\/span><\/strong>, <strong><span style=\"color: #008000;\">green<\/span><\/strong>, and <strong><span style=\"color: #0000ff;\">blue<\/span><\/strong> are <span style=\"color: #ff0000;\"><strong>15<\/strong><\/span>, <strong><span style=\"color: #008000;\">12<\/span><\/strong>, and <span style=\"color: #0000ff;\"><strong>13<\/strong><\/span> respectively.<br \/>\nTherefore, Webduino Smart is able to create lights with various colors directly.<\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #ff0000;\">Instruction of Webduino Blockly<\/span><\/h3>\n<p><strong>To start blockly go to<\/strong>\u00a0<a href='http:\/\/blockly.webduino.io' class='small-button smallblue'>blockly.webduino.io<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>First, add a <strong><span style=\"color: #ff00ff;\">\u00ab\u00a0Smart\u00a0\u00bb block from the \u00ab\u00a0Board\u00a0\u00bb menu and select \u00ab\u00a0WebSocket\u00a0\u00bb<\/span><\/strong>. ( <strong>the web address of the webduino blockly <span style=\"color: #ff0000;\">must begin with http and not https<\/span><\/strong> )<br \/>\nThen, key in the <strong>IP address of development board<\/strong>. (please refer to <span style=\"text-decoration: underline; background-color: #ffffff; color: #0000ff;\"><strong><a style=\"background-color: #ffffff; color: #0000ff; text-decoration: underline;\" href=\"http:\/\/www.makerslide-machines.com\/2017\/04\/22\/en-introduction-to-webduino-smart\/\">webduino introduction and setup<\/a><\/strong><\/span> \u00a0for the IP address)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29461\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/smart-03-02.jpg\" alt=\"smart-03-02\" width=\"850\" height=\"309\" \/><\/p>\n<p><strong>Add a RGB LE<\/strong>D (common cathode) <strong><span style=\"color: #0000ff;\">block from the \u00ab\u00a0Components\u00a0\u00bb menu.<\/span> <\/strong><br \/>\n<strong>Set the pin numbers to 15 for red, 12 for green, and 13 for blue. <\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29462\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/smart-03-03.jpg\" alt=\"smart-03-03\" width=\"800\" height=\"139\" \/><\/p>\n<p>Under the Web Demo menu <strong><span style=\"color: #008000;\">add \u00ab\u00a0Click Button<\/span><\/strong>, Do\u00a0\u00bb blocks to the stack. Then connect \u00ab\u00a0RGBLED Set Color\u00a0\u00bb blocks to those.<br \/>\nSelect different colors in the blocks for the <span style=\"color: #008000;\"><strong>buttons 1 through 5<\/strong><\/span>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29463\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/smart-03-04.jpg\" alt=\"smart-03-04\" width=\"800\" height=\"349\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][et_pb_comments admin_label=\u00a0\u00bbCommentaires\u00a0\u00bb show_avatar=\u00a0\u00bbon\u00a0\u00bb show_reply=\u00a0\u00bbon\u00a0\u00bb show_count=\u00a0\u00bboff\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb custom_button=\u00a0\u00bboff\u00a0\u00bb button_letter_spacing=\u00a0\u00bb0&Prime; button_use_icon=\u00a0\u00bbdefault\u00a0\u00bb button_icon_placement=\u00a0\u00bbright\u00a0\u00bb button_on_hover=\u00a0\u00bbon\u00a0\u00bb button_letter_spacing_hover=\u00a0\u00bb0&Prime;] [\/et_pb_comments][\/et_pb_column][\/et_pb_row][\/et_pb_section][:fr][et_pb_section admin_label=\u00a0\u00bbsection\u00a0\u00bb][et_pb_row admin_label=\u00a0\u00bbrow\u00a0\u00bb][et_pb_column type=\u00a0\u00bb4_4&Prime;][et_pb_post_title admin_label=\u00a0\u00bbTitre du poste\u00a0\u00bb title=\u00a0\u00bbon\u00a0\u00bb meta=\u00a0\u00bbon\u00a0\u00bb author=\u00a0\u00bbon\u00a0\u00bb date=\u00a0\u00bbon\u00a0\u00bb categories=\u00a0\u00bbon\u00a0\u00bb comments=\u00a0\u00bboff\u00a0\u00bb featured_image=\u00a0\u00bboff\u00a0\u00bb featured_placement=\u00a0\u00bbbelow\u00a0\u00bb parallax_effect=\u00a0\u00bbon\u00a0\u00bb parallax_method=\u00a0\u00bbon\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb text_color=\u00a0\u00bbdark\u00a0\u00bb text_background=\u00a0\u00bboff\u00a0\u00bb text_bg_color=\u00a0\u00bbrgba(255,255,255,0.9)\u00a0\u00bb module_bg_color=\u00a0\u00bbrgba(255,255,255,0)\u00a0\u00bb title_all_caps=\u00a0\u00bboff\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb] [\/et_pb_post_title][et_pb_text admin_label=\u00a0\u00bbTexte\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb]<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29460 alignleft\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/smart-blink.gif\" alt=\"smart-blink\" width=\"400\" height=\"329\" \/><\/p>\n<p>La carte Webduino smart poss\u00e8de une DEL <strong>RGB<\/strong> (<span style=\"color: #ff0000;\"><strong>red<\/strong><\/span>, <strong><span style=\"color: #008000;\">green<\/span><\/strong> and <span style=\"color: #0000ff;\"><strong>blue<\/strong><\/span>) interne, cette DEL <strong>RGB<\/strong> poss\u00e8de 4 broches, une broche cathode commune aux trois couleurs reli\u00e9e au moins.<\/p>\n<p>Les broches anodes par d\u00e9faut\u00a0 <strong><span style=\"color: #ff0000;\">red<\/span><\/strong>, <strong><span style=\"color: #008000;\">green<\/span><\/strong>, and <strong><span style=\"color: #0000ff;\">blue<\/span><\/strong> sont <span style=\"color: #ff0000;\"><strong>15<\/strong><\/span>, <strong><span style=\"color: #008000;\">12<\/span><\/strong>, and <span style=\"color: #0000ff;\"><strong>13<\/strong><\/span> respectivement.<br \/>\nWebduino smart est capable de cr\u00e9er une grande vari\u00e9t\u00e9 de couleurs en programmant des valeurs diff\u00e9rentes aux 3 broches <strong>RGB<\/strong>.<\/p>\n<h3><span style=\"color: #ff0000;\">Programmation de la carte avec Webduino Blockly<\/span><\/h3>\n<p>Webduino Blockly est un langage de programmation visuel adapt\u00e9 aux d\u00e9butants, la programmation se fait en d\u00e9pla\u00e7ant des blocs comme avec Scratch.<\/p>\n<p><strong>Pour commencer \u00e0 programmer, allez \u00e0 cette adresse<\/strong> <a href='http:\/\/blockly.webduino.io' class='small-button smallblue'>blockly.webduino.io<\/a><\/p>\n<p><span style=\"text-decoration: underline; color: #ff0000;\"><strong>Attention :<\/strong><\/span> <span style=\"color: #000000;\">l&rsquo;adresse peut \u00eatre <strong>blockly.webduino.io<\/strong> ou <span style=\"text-decoration: underline;\"><strong>http:\/\/blockly.webduino.io<\/strong><\/span> mais ne doit pas commencer par <span style=\"color: #ff0000;\"><strong>https<\/strong><\/span><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31173\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/debut-adresse.jpg\" alt=\"debut-adresse\" width=\"822\" height=\"103\" \/><\/p>\n<p><strong><span style=\"color: #0000ff; background-color: #ffff99;\">D&rsquo;abord pour d\u00e9marrer un programme vous devez s\u00e9lectionner le bloc \u00ab\u00a0<span style=\"color: #ff00ff;\">Board<\/span>\u00a0\u00bb (carte \u00e9lectronique)<\/span><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31171 alignleft\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/choisir-la-carte-smart.jpg\" alt=\"choisir-la-carte-smart\" width=\"403\" height=\"119\" \/><\/p>\n<p>Choisissez la carte \u00e9lectronique \u00ab\u00a0<strong>Smart<\/strong>\u00a0\u00bb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31172\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/websocket.jpg\" alt=\"websocket\" width=\"440\" height=\"86\" \/><\/p>\n<p>Il faut ensuite utiliser le protocole de communication \u00ab\u00a0<span style=\"color: #ff00ff;\"><strong>WebSocket<\/strong><\/span>\u00a0\u00bb afin de pouvoir faire communiquer les objets avec le web.<\/p>\n<p>Tapez alors\u00a0 <strong>l&rsquo;adresse IP de la carte<\/strong>. (se r\u00e9f\u00e9rer \u00e0 <span style=\"text-decoration: underline; background-color: #ffffff; color: #0000ff;\"><strong><a style=\"background-color: #ffffff; color: #0000ff; text-decoration: underline;\" href=\"http:\/\/www.makerslide-machines.com\/2017\/04\/22\/en-introduction-to-webduino-smart\/\">webduino introduction et param\u00e9trage<\/a><\/strong><\/span> pour l&rsquo;adresse IP)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29461\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/smart-03-02.jpg\" alt=\"smart-03-02\" width=\"850\" height=\"309\" \/><\/p>\n<p><strong>Ajoutez un bloc DEL RGB<\/strong> ( cathode commune) <strong><span style=\"color: #0000ff;\">venant du menu \u00ab\u00a0Composants\u00a0\u00bb<\/span> <\/strong><br \/>\n<strong>Mettre les num\u00e9ros de broche \u00e0 15 pour le rouge, 12 pour le vert, et 13 pour le bleu. <\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29462\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/smart-03-03.jpg\" alt=\"smart-03-03\" width=\"800\" height=\"139\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31174\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/bouton-demo.jpg\" alt=\"bouton-demo\" width=\"680\" height=\"337\" \/><\/p>\n<p><strong><span style=\"text-decoration: underline;\"><span style=\"background-color: #ffff99; color: #339966; text-decoration: underline;\">Pour ajouter des boutons de test \u00e0 votre programme, il faut :<\/span><\/span><\/strong><br \/>\n<strong>1<\/strong> ) Activer \u00ab\u00a0<strong>Web D\u00e9mo<\/strong>\u00a0\u00bb<br \/>\n<strong>2<\/strong> ) Choisir \u00ab\u00a0<strong>Click Button<\/strong>\u00a0\u00bb<br \/>\n<strong>3<\/strong> ) Le bloc \u00ab\u00a0<strong>Click Button<\/strong>\u00a0\u00bb appara\u00eet maintenant dans la liste des composants<br \/>\n<strong>4<\/strong> ) Vous pouvez maintenant glisser ce bloc dans votre programme.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29463\" src=\"http:\/\/www.makerslide-machines.com\/wp-content\/uploads\/2017\/04\/smart-03-04.jpg\" alt=\"smart-03-04\" width=\"800\" height=\"349\" \/><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Ajoutez 5 boutons qui activeront chacun une couleur diff\u00e9rente<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][et_pb_comments admin_label=\u00a0\u00bbCommentaires\u00a0\u00bb show_avatar=\u00a0\u00bbon\u00a0\u00bb show_reply=\u00a0\u00bbon\u00a0\u00bb show_count=\u00a0\u00bboff\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb custom_button=\u00a0\u00bboff\u00a0\u00bb button_letter_spacing=\u00a0\u00bb0&Prime; button_use_icon=\u00a0\u00bbdefault\u00a0\u00bb button_icon_placement=\u00a0\u00bbright\u00a0\u00bb button_on_hover=\u00a0\u00bbon\u00a0\u00bb button_letter_spacing_hover=\u00a0\u00bb0&Prime;] [\/et_pb_comments][\/et_pb_column][\/et_pb_row][\/et_pb_section][:]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[:en][et_pb_section admin_label=\u00a0\u00bbsection\u00a0\u00bb][et_pb_row admin_label=\u00a0\u00bbrow\u00a0\u00bb][et_pb_column type=\u00a0\u00bb4_4&Prime;][et_pb_post_title admin_label=\u00a0\u00bbTitre du poste\u00a0\u00bb title=\u00a0\u00bbon\u00a0\u00bb meta=\u00a0\u00bbon\u00a0\u00bb author=\u00a0\u00bbon\u00a0\u00bb date=\u00a0\u00bbon\u00a0\u00bb categories=\u00a0\u00bbon\u00a0\u00bb comments=\u00a0\u00bboff\u00a0\u00bb featured_image=\u00a0\u00bboff\u00a0\u00bb featured_placement=\u00a0\u00bbbelow\u00a0\u00bb parallax_effect=\u00a0\u00bbon\u00a0\u00bb parallax_method=\u00a0\u00bbon\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb text_color=\u00a0\u00bbdark\u00a0\u00bb text_background=\u00a0\u00bboff\u00a0\u00bb text_bg_color=\u00a0\u00bbrgba(255,255,255,0.9)\u00a0\u00bb module_bg_color=\u00a0\u00bbrgba(255,255,255,0)\u00a0\u00bb title_all_caps=\u00a0\u00bboff\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb] [\/et_pb_post_title][et_pb_text admin_label=\u00a0\u00bbTexte\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb] The Webduino Smart development board has a built-in micro RGB (red, green and blue) LED (common cathode). The default pin numbers for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[89],"tags":[],"class_list":["post-29455","post","type-post","status-publish","format-standard","hentry","category-internet-des-objets"],"_links":{"self":[{"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/posts\/29455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/comments?post=29455"}],"version-history":[{"count":1,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/posts\/29455\/revisions"}],"predecessor-version":[{"id":33011,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/posts\/29455\/revisions\/33011"}],"wp:attachment":[{"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/media?parent=29455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/categories?post=29455"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/tags?post=29455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}