DFR0028

DFR0028 Datasheet


Digital Tilt Sensor SKU:DFR0028

Part Datasheet
DFR0028 DFR0028 DFR0028 (pdf)
PDF Datasheet Preview
Digital Tilt Sensor SKU:DFR0028

Contents
• 1 Introduction
• 2 Specification
• 3 Connection Diagram
o Sample Code

Introduction

The DFRobot Tilt Sensor is a digital tilt switch. It could be used as a simple tilt sensor. Simple plug to our IO/Sensor Expansion board, you can make amazing interactive projects. The dedicated sensor expansion boards with the Arduino, in combination, can achieve very interesting and an interactive work.

Specification
• Supply Voltage 3.3V to 5V
• Interface Digital
• Size:22x30mm

Connection Diagram

Sample Code
int ledPin = 13 int switcher = 3;
// Connect LED to pin 13 // Connect Tilt sensor to Pin3
void setup pinMode ledPin, OUTPUT pinMode switcher, INPUT ;
// Set digital pin 13 to output mode // 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 gered
// Turn off LED when the sensor is not trig

Powered By DFRobot 2008-2017
More datasheets: BXRC-30E10K0-L-02 | BXRC-35G10K0-L-03 | BXRC-27E10K0-L-02 | BXRC-27G10K0-L-02 | BXRC-40E10K0-L-02 | BXRC-35E10K0-L-02 | BXRC-30G10K0-L-02 | BXRC-40G10K0-L-02 | 2360 | 13170


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived DFR0028 Datasheet file may be downloaded here without warranties.

Datasheet ID: DFR0028 508602