{"id":122,"date":"2016-07-04T21:22:55","date_gmt":"2016-07-04T20:22:55","guid":{"rendered":"http:\/\/www.crazybyte007.be\/?p=122"},"modified":"2016-07-05T21:33:15","modified_gmt":"2016-07-05T20:33:15","slug":"kit-relais-pour-arduino","status":"publish","type":"post","link":"https:\/\/www.crazybyte007.be\/?p=122","title":{"rendered":"Kit relais pour Arduino"},"content":{"rendered":"<p>Kit relais FE_SRly pour arduino, composant:<\/p>\n<p>Relais SRD-05VDC-SL-C (Relais de 5V DC pour la bobine)<\/p>\n<p>R\u00e9sistance 150 hom<\/p>\n<p>Led Diode (Rouge pour indiquer pr\u00e9sence\u00a0de commande dans le pin S du Kit Relais)<\/p>\n<p>Diode 1N4007 (protection courant g\u00e9n\u00e9r\u00e9 par la bobine du relais u moment de arr\u00eater de la commande)<\/p>\n<p>&nbsp;<\/p>\n<p>Pour les Pin:<\/p>\n<p>&nbsp;<\/p>\n<p>Pin + = 5V\u00a0alimentation<\/p>\n<p>Pin &#8211; = GND<\/p>\n<p>Pin S = Commande provenant du arduino. (Dans le example pin 10 du arduino)<\/p>\n<p>&nbsp;<\/p>\n<p>Examle code:<\/p>\n<p>void setup() {<br \/>\n\/\/ initialize digital pin 10 as an output.<br \/>\npinMode(10, OUTPUT);<br \/>\n}<\/p>\n<p>\/\/ the loop function runs over and over again forever<br \/>\nvoid loop() {<br \/>\ndigitalWrite(10, HIGH); \/\/ turn the LED on (HIGH is the voltage level)<br \/>\ndelay(1000); \/\/ wait for 1 second<br \/>\ndigitalWrite(10, LOW); \/\/ turn the LED off by making the voltage LOW<br \/>\ndelay(10000); \/\/ wait for 10 second<br \/>\n}<\/p>\n<p>Pour la vid\u00e9o je change le temps de arr\u00eat du relais a 1 seg.<\/p>\n<p>&nbsp;<\/p>\n<div style=\"width: 256px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-122-1\" width=\"256\" height=\"256\" loop autoplay preload=\"auto\" controls=\"controls\"><source type=\"video\/x-flv\" src=\"http:\/\/www.crazybyte007.be\/wp-content\/uploads\/Relais-FE-SRly.flv?_=1\" \/><a href=\"http:\/\/www.crazybyte007.be\/wp-content\/uploads\/Relais-FE-SRly.flv\">http:\/\/www.crazybyte007.be\/wp-content\/uploads\/Relais-FE-SRly.flv<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kit relais FE_SRly pour arduino, composant: Relais SRD-05VDC-SL-C (Relais de 5V DC pour la bobine) R\u00e9sistance 150 hom Led Diode (Rouge pour indiquer pr\u00e9sence\u00a0de commande dans le pin S du Kit Relais) Diode 1N4007 (protection courant g\u00e9n\u00e9r\u00e9 par la bobine du relais u moment de arr\u00eater de la commande) &nbsp; Pour les Pin: &nbsp; Pin &hellip; <a href=\"https:\/\/www.crazybyte007.be\/?p=122\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;Kit relais pour Arduino&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-electronique"],"_links":{"self":[{"href":"https:\/\/www.crazybyte007.be\/index.php?rest_route=\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.crazybyte007.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.crazybyte007.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.crazybyte007.be\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.crazybyte007.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=122"}],"version-history":[{"count":10,"href":"https:\/\/www.crazybyte007.be\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":144,"href":"https:\/\/www.crazybyte007.be\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions\/144"}],"wp:attachment":[{"href":"https:\/\/www.crazybyte007.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.crazybyte007.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.crazybyte007.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}