Ky 017 Mercury Medallion Module For Uno R3
Rs. 29.00 Rs. 35.00
- Product Code: SEN-VIB
- SKU -
- Availability: In Stock
- For Bulk Order
9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS: | |
Operating Voltage | 3.3V to 5.5V |
Length (mm) | 22 |
Width (mm) | 24 |
Height (mm) | 25 |
Weight (gm) | 2 |
Shipment Weight | 0.03 kg |
Shipment Dimensions | 10 × 10 × 10 cm |
OVERVIEW:
-This module consists of a mercury switch, a 680Ω resistor and a LED that will light up when tilt is detected.
-The mercury ball will open/close the circuit when the module is rotated
PACKAGE INCLUDES:
1 PCS x Ky 017 Mercury Sensor
//SOURCE CODE TAKEN FROM BELOW LINK
//https://sensorkit.en.joy-it.net/index.php?title=KY-017_Tilt_switch_module
int Led = 13 ;// Declaration of the LED output pin
int Sensor = 10; // Declaration of the sensor input pin
int val; // temporary variable
void setup ()
{
pinMode (Led, OUTPUT) ; // Initialization output pin
pinMode (Sensor, INPUT) ; // Initialization sensor pin
}
void loop ()
{
val = digitalRead (Sensor) ; // The active signal at the sensor will be read
if (val == HIGH) // If a signal was noticed, the LED will be on.
{
digitalWrite (Led, LOW);
}
else
{
digitalWrite (Led, HIGH);
}
}
15 days