{"id":87238,"date":"2020-02-13T15:20:28","date_gmt":"2020-02-13T14:20:28","guid":{"rendered":"http:\/\/fabnum.tech\/?p=87238"},"modified":"2020-03-11T10:54:17","modified_gmt":"2020-03-11T09:54:17","slug":"arduino-viji05","status":"publish","type":"post","link":"https:\/\/fabnum.tech\/index.php\/2020\/02\/13\/arduino-viji05\/","title":{"rendered":"Portfolio Viji #5 \u2013 Arduino"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column width=\u00a0\u00bb1\/2&Prime;][vc_column_text]<b>Arduino<\/b><\/p>\n<p>Arduino est un outil tr\u00e8s compliqu\u00e9 pour moi.Alors j\u2019ai utilis\u00e9 le code void setup() et void loop() c\u2019est la base et des led et des fils c\u2019est tout .Arduino le code de base c&rsquo;est le c++.<\/p>\n<p><span id=\"p4\">J&rsquo;ai utilis\u00e9 4 boutons pour allumer 4 LED et \u00e7a marche bien. Mais les fils \u00e0 connecter sur la carte, c&rsquo;est compliqu\u00e9 pour moi.<br \/>\n<\/span>[\/vc_column_text][\/vc_column][vc_column width=\u00a0\u00bb1\/2&Prime;][vc_single_image media=\u00a0\u00bb87835&Prime; media_width_percent=\u00a0\u00bb100&Prime; css_animation=\u00a0\u00bbzoom-in\u00a0\u00bb animation_speed=\u00a0\u00bb100&Prime; animation_delay=\u00a0\u00bb100&Prime;][\/vc_column][\/vc_row][vc_row][vc_column width=\u00a0\u00bb1\/2&Prime;][vc_single_image media=\u00a0\u00bb87832&Prime; media_width_percent=\u00a0\u00bb100&Prime;][\/vc_column][vc_column width=\u00a0\u00bb1\/2&Prime;][vc_column_text]<\/p>\n<h3><strong>Mesurer une distance<\/strong><\/h3>\n<p class=\"text-justify\">Parfois quand on r\u00e9alise un projet, on a besoin de mesurer des distances, d\u00e9tecter des obstacles, etc. En robotique par exemple, il est tr\u00e8s classique d&rsquo;avoir un capteur de distance sur l&rsquo;avant du robot pour \u00e9viter de se prendre un mur en pleine face.<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column width=\u00a0\u00bb1\/2&Prime;][vc_column_text]<strong> Le grand classique Blink<\/strong><\/p>\n<p><span id=\"p34\">Ce programme est une base et utilise <strong>2 LED<\/strong> sur 5 et 8 <span id=\"38\" class=\"s-bl\">lignes <\/span>.<\/span><span id=\"p35\"> Nous n&rsquo;impl\u00e9menterons que les deux fonctions <span id=\"40\" class=\"s-rg\"><strong>setup()<\/strong><\/span> et <strong><span id=\"41\" class=\"s-rg\">loop(<\/span>)<\/strong>.<\/span><span id=\"p36\"> Le <strong><span id=\"42\" class=\"s-rg\">main()<\/span><\/strong> est g\u00e9n\u00e9r\u00e9 par le compilateur.<\/span><span id=\"p37\"> Le grand classique <span id=\"44\">Blink<\/span>.<\/span><\/p>\n<p><strong>\u00a0<\/strong>[\/vc_column_text][\/vc_column][vc_column width=\u00a0\u00bb1\/2&Prime;][vc_single_image media=\u00a0\u00bb87837&Prime; media_width_percent=\u00a0\u00bb100&Prime; css_animation=\u00a0\u00bbzoom-in\u00a0\u00bb animation_speed=\u00a0\u00bb100&Prime; animation_delay=\u00a0\u00bb100&Prime;][\/vc_column][\/vc_row][vc_row][vc_column width=\u00a0\u00bb1\/2&Prime;][vc_single_image media=\u00a0\u00bb87844&Prime; media_width_percent=\u00a0\u00bb100&Prime; css_animation=\u00a0\u00bbzoom-in\u00a0\u00bb animation_speed=\u00a0\u00bb100&Prime; animation_delay=\u00a0\u00bb100&Prime;][\/vc_column][vc_column width=\u00a0\u00bb1\/2&Prime;][vc_column_text]<\/p>\n<h3>Utilisation du servomoteur SG90<\/h3>\n<p>Ce type de servomoteur peut \u00eatre branch\u00e9 directement sur l\u2019Arduino. Pour piloter un servomoteur, Arduino fournit une librairie de nom \u2018<strong>Servo<\/strong>\u2019 qui simplifie l\u2019utilisation de celui-ci. Ce servomoteur \u00e0 une amplitude de 0\u00b0 \u00e0 180\u00b0; bon nous essayions\u00a0 de le positionner \u00e0 180\u00b0 avec ce programme .[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column width=\u00a0\u00bb1\/2&Prime;][vc_column_text]Arduino Arduino est un outil tr\u00e8s compliqu\u00e9 pour moi.Alors j\u2019ai utilis\u00e9 le code void setup() et void loop() c\u2019est [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":86881,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[126],"tags":[],"class_list":["post-87238","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vijayalakshmi-p9"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/fabnum.tech\/wp-content\/uploads\/2020\/02\/Arduino-logo.jpg","_links":{"self":[{"href":"https:\/\/fabnum.tech\/index.php\/wp-json\/wp\/v2\/posts\/87238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fabnum.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fabnum.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fabnum.tech\/index.php\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/fabnum.tech\/index.php\/wp-json\/wp\/v2\/comments?post=87238"}],"version-history":[{"count":13,"href":"https:\/\/fabnum.tech\/index.php\/wp-json\/wp\/v2\/posts\/87238\/revisions"}],"predecessor-version":[{"id":89129,"href":"https:\/\/fabnum.tech\/index.php\/wp-json\/wp\/v2\/posts\/87238\/revisions\/89129"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fabnum.tech\/index.php\/wp-json\/wp\/v2\/media\/86881"}],"wp:attachment":[{"href":"https:\/\/fabnum.tech\/index.php\/wp-json\/wp\/v2\/media?parent=87238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fabnum.tech\/index.php\/wp-json\/wp\/v2\/categories?post=87238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fabnum.tech\/index.php\/wp-json\/wp\/v2\/tags?post=87238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}