Welcome to KZY Electronic Technology Co., Ltd
You are here:Home >> Products >> Sensor Module

Products

Products

Contact us

Contact: Louis
WhatsappWeChat : +86 18617158103
Tel: +86 18617158103
Direct: +86-0755-22235249
Made in china store: https://fut688.en.made-in-china.com/
Alibaba store: https://fut688.en.made-in-china.com/
Website: www.kzyeducabot.com
Add: Room 301, 3rd Floor, Zhengtong Pioneer Park, No. 12, Liuyuepuxia Road, Henggang Street Office, Longgang District, Shenzhen, Guangdong Province, China

Sensor Module

Factory Wholesale Free Shipping 10pcs/lot Mercury switch module KY-017 sensor

Factory Wholesale Free Shipping 10pcs/lot Mercury switch module KY-017 sensor

Mercury switch module KY-017 Mercury Sensor diy Starter Kit 

Smart Electronics 3pin KY-017 Mercury Switch Module for DIY Kit

Mercury open optical sensor module

product description:
Made of high-quality materials, these modules are crafted with high strength and durability for long-term use. They are also stable and reliable in terms of professional design performance. Suitable for development and application, these digital temperature sensor modules are ideal for DIY projects.
Mercury switch module and digital 13 interface with LED to build a simple circuit to produce tilting lights
As the digital 13 interface comes with an LED, the mercury tilt switch sensor is connected to the digital 3 interface. When the mercury tilt switch sensor has a button signal, the LED light is on, and vice versa.

Regular source code:
Int Led = 13; //Define the LED interface
Int buttonpin = 3; //Define the mercury tilt switch sensor interface
Int val; / / define the numeric variable val
Void setup()
{
pinMode (Led, OUTPUT); / / define the LED as an output interface
pinMode(buttonpin, INPUT); // Define the mercury tilt switch sensor as the output interface
}
Void loop()
{
Val = digitalRead(buttonpin); //Write the value of digital interface 3 to val
If(val == HIGH)//The LED flashes when the mercury tilt switch sensor detects a signal
{
digitalWrite(Led,HIGH);
}
other
  • Factory Wholesale Free Shipping 10pcs/lot Mercury switch module KY-017 sensor

    Mercury switch module KY-017 Mercury Sensor diy Starter Kit 

    Smart Electronics 3pin KY-017 Mercury Switch Module for DIY Kit

    Mercury open optical sensor module

    product description:
    Made of high-quality materials, these modules are crafted with high strength and durability for long-term use. They are also stable and reliable in terms of professional design performance. Suitable for development and application, these digital temperature sensor modules are ideal for DIY projects.
    Mercury switch module and digital 13 interface with LED to build a simple circuit to produce tilting lights
    As the digital 13 interface comes with an LED, the mercury tilt switch sensor is connected to the digital 3 interface. When the mercury tilt switch sensor has a button signal, the LED light is on, and vice versa.

    Regular source code:
    Int Led = 13; //Define the LED interface
    Int buttonpin = 3; //Define the mercury tilt switch sensor interface
    Int val; / / define the numeric variable val
    Void setup()
    {
    pinMode (Led, OUTPUT); / / define the LED as an output interface
    pinMode(buttonpin, INPUT); // Define the mercury tilt switch sensor as the output interface
    }
    Void loop()
    {
    Val = digitalRead(buttonpin); //Write the value of digital interface 3 to val
    If(val == HIGH)//The LED flashes when the mercury tilt switch sensor detects a signal
    {
    digitalWrite(Led,HIGH);
    }
    other
    {
    digitalWrite(Led,LOW);
    }
  • Please submit your basic information, we will contact you as soon as possible!

    *

    *

    *

    *

Related products

Copyright 2022 KZY Electronic Technology Co., Ltd  All Rights Reserved  
Web Design—Tiandixin