Skip to content
Dispatch window open · order before 14:00 GMT
Free UK delivery on most orders | Cardiff, UK
§ SHIELDS AND ACCESSORIES

Mercury Type Open Tilt Sensor - Arduino KY-017

SKU ARD-SHI-073
£3.49

Microphone Voice Sound Sensor Module For Arduino

Description

Mercury switch module and a digital interface, built-in 13 LED build a simple circuit to produce tilt warning lamp 13 comes with digital interfaces of the LED, the mercury tilt switch sensor interface to access digital 3, when the tilt switch sensor senses a key signal, LED lights, otherwise off.

Working voltage: 3.3V~5V

Digital switch output (0 & 1)

High sensitivity

With fixed bolt hole for easy installation

Works with Official for arduino Boards

Application: For for arduino DIY project

Material PCB

Dimensions: 31 x 15 x 8 mm / 1.22 x 0.59 x 0.31 inch

Weight: 2 g / 0.07 oz

Color: Black

Pins:

Arduino GND --> Pin - of module

Arduino 5 --> Pin middel of module

Arduino 3 --> pin S of module

Example Code

-----

//KY017 Mercury open optical module

int Led = 13 ;// define LED Interface

int buttonpin = 3; // define the mercury tilt switch sensor interface

int val ;// define numeric variables val

void setup ()

{

pinMode (Led, OUTPUT) ;// define LED as output interface

pinMode (buttonpin, INPUT) ;// define the mercury tilt switch sensor output interface

}

void loop ()

{

val = digitalRead (buttonpin) ;// read the values assigned to the digital interface 3 val

if (val == HIGH) // When the mercury tilt switch sensor detects a signal, LED flashes

{

digitalWrite (Led, HIGH);

}

else

{

digitalWrite (Led, LOW);

}

}

------

Please note the brand name may vary.

What you will receive

1 x Arduino KY-017 Mercury open optical module

Mercury Type Open Tilt Sensor - Arduino KY-017
Mercury Type Open Tilt Sensor – Arduino KY-017

31 in stock