Newsletter

Melden Sie sich jetzt für den Newsletter an und profitieren Sie von Aktionen, Gutscheinen & Verlosungen.
 

Name:


Email:


Ok

Shock Module

Shock Module - Miscellaneous
Brand: Various
Product Code: AC-1129
Availability: In Stock
Price: 4,45€
Incl. 0,71€ VAT excl. shipping costs
Qty:        

Shock Module

This switch is OFF in the resting state, when the external force to touch and to achieve a proper vibration, meet the appropriate speed or from the (partial) heart, conductive pin will momentarily conduction (ON) status, make changes in electric property, and disappear when the external force electric property open (OFF) state is restored. Omnidirectional, any Angle can trigger job.

Code Sample:

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 valif (val == HIGH) // When the shock sensor detects a signal, LED flashes{
digitalWrite (Led, LOW);}else{
digitalWrite (Led, HIGH);}}

Write a review

Your Name:


Your Review:Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



Live Help