{"id":1126,"date":"2018-01-16T11:23:49","date_gmt":"2018-01-16T13:23:49","guid":{"rendered":"https:\/\/arduxop.com.br\/loja\/produto\/ky-002-vibration-switch-module\/"},"modified":"2024-07-25T07:58:42","modified_gmt":"2024-07-25T11:58:42","slug":"ky-002-vibration-switch-module","status":"publish","type":"product","link":"https:\/\/arduxop.com.br\/loja\/produto\/ky-002-vibration-switch-module\/","title":{"rendered":"KY-002 Sensor De Vibra\u00e7\u00e3o Sw-420"},"content":{"rendered":"<p>The Vibration module is connect to pin 10 of the ArduinoConnecting to the ArduinoPin &#8211; = GND, connect to GND of the ArduinoPin (middel pin) +5 v, connect to Arduino +5Pin S signal, connect to Arduino pin 10When there is vibration the Arduino LED on pin 13 flashes.&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Example code&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-int Led = 13 ;\/\/ define LED Interfaceint Shock = 10; \/\/ define the vibration sensor interfaceint val; \/\/ define numeric variables valvoid setup (){ pinMode (Led, OUTPUT) ; \/\/ define LED as output interface pinMode (Shock, INPUT) ; \/\/ output interface defines vibration sensor}void loop (){ val = digitalRead (Shock) ; \/\/ read digital interface is assigned a value of 3 val if (val == HIGH) \/\/ When the shock sensor detects a signal, LED flashes { digitalWrite (Led, LOW); } else { digitalWrite (Led, HIGH); }}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Vibration module is connect to pin 10 of the ArduinoConnecting to the ArduinoPin &#8211; = GND, connect to GND of the ArduinoPin (middel pin) +5 v, connect to Arduino +5Pin S signal, connect to Arduino pin 10When there is vibration the Arduino LED on pin 13 flashes.&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Example code&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-int Led = 13 ;\/\/ define LED [&hellip;]<\/p>\n","protected":false},"featured_media":1127,"template":"","meta":[],"product_brand":[],"product_cat":[178],"product_tag":[],"class_list":{"0":"post-1126","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-sensores","8":"entry","9":"has-media","11":"first","12":"instock","13":"sold-individually","14":"purchasable","15":"product-type-simple","16":"has-product-nav","17":"col","18":"span_1_of_3","19":"owp-content-center","20":"owp-thumbs-layout-horizontal","21":"owp-btn-normal","22":"owp-tabs-layout-horizontal"},"_links":{"self":[{"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/product\/1126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/media\/1127"}],"wp:attachment":[{"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/media?parent=1126"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/product_brand?post=1126"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/product_cat?post=1126"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/product_tag?post=1126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}