Keyestudio Digital Tilt Motion Sensor
  • Keyestudio Digital Tilt Motion Sensor

#2703: Keyestudio Digital Tilt Motion Sensor

R72.00


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

}

}

 

Product Details

  • Supply Voltage: 3.3V to 5V
  • Interface: Digital

Tutorials

Arduino Automated Plant Water Project
A simple but practical Arduino project to automatically water your plants, showing the usage of a 7-Segment Display, a Soild Moisture Sensor, a Temperature Sensor and a Relay.

Arduino Introduction
Introducing you to the awesome Arduino!

Simple Arduino RC Car/Robot
A guide to construct your own Arduino-based 2 Wheel-Drive Robot

Arduino F.A.Q
Arduino Frequently Asked Questions & Answers

Other Products in the same category

BUY

Keyestudio Digital Tilt Motion Sensor

Regular price: R72.00
Qty To Purchase:
In Stock: 7



Categories