Your position: Home / Sensors

Free shipping !Keyestudio Digital Tilt Motion Sensor module for arduino

KS0025
Price:
    Please select the information you wantX
Quantity:
-
+
(970 available)
Shipping Cost:
to
Estimated Delivery Time:
Please select the country you want to ship from
  • Description
  • Reviews(70)

KS0025 (1)(1)KS0025 (2)KS0025 (3)KS0025 (4)KS0025 (6)

Introduction
 
Tilt Sensor is a digital tilt switch. It can be used as a simple tilt sensor. Simply plug it to our IO/Sensor shield; you can make amazing interactive projects. With dedicated sensor shield and Arduino board, you can achieve interesting and interactive work.
 
Specification
  • Supply Voltage: 3.3V to 5V
  • Interface: Digital

Sample Code:

int ledPin = 13; // Connect LED to pin 13

int switcher = 3; // Connect Tilt sensor to Pin3

void setup()

{

pinMode(ledPin, OUTPUT); // Set digital pin 13 to output mode

pinMode(switcher, INPUT); // Set digital pin 3 to input mode

}

void loop()

{

 

if(digitalRead(switcher)==HIGH) //Read sensor value

{

digitalWrite(ledPin, HIGH); // Turn on LED when the sensor is tilted

}

else

{

digitalWrite(ledPin, LOW); // Turn off LED when the sensor is not triggered

}

}

 

Average rating: 4.0 based on 70 reviews
Share your thoughts with other customers
Write a review
Product reviews can be carried out after the member login, please click here to login