Ks0115 keyestudio EASY plug Digital Tilt Sensor Module: Difference between revisions
Jump to navigation
Jump to search
Keyestudio (talk | contribs) (Created page with "==EASY plug Digital Tilt Sensor module == <br>500px|frameless|thumb<br> ==Introduction== Tilt Sensor is a digital tilt switch. It can be used as a simpl...") |
Keyestudio (talk | contribs) No edit summary |
||
Line 40: | Line 40: | ||
} | } | ||
</pre> | </pre> | ||
==Resources == | |||
'''Datasheet''' | |||
http://www.keyestudio.com/files/index/download/id/1464069453/ | |||
==Buy from == | |||
http://www.keyestudio.com/keyestudio-easy-plug-digital-tilt-sensor-module-for-arduino-starter.html | |||
[[category:Module]] | [[category:Module]] |
Revision as of 09:43, 16 February 2017
EASY plug Digital Tilt Sensor module
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, you can achieve interesting and interactive work.
Note: this module needs to be used together with EASY plug control board.
Specification
- Interface: Easy plug
- Supply Voltage: 3.3V to 5V
- Sensor type: Digital
- Size: 39*20mm
- Weight: 5g
Connection Diagram
Sample Code
int ledPin = 13; // Connect LED to pin 13 int switcher = 10; // Connect Tilt sensor to Pin10 void setup() { pinMode(ledPin, OUTPUT); // Set digital pin 13 to output mode pinMode(switcher, INPUT); // Set digital pin 10 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 } }
Resources
Datasheet
http://www.keyestudio.com/files/index/download/id/1464069453/
Buy from
http://www.keyestudio.com/keyestudio-easy-plug-digital-tilt-sensor-module-for-arduino-starter.html