

ANGEEK 5 Pcs KY 020 Incline Switch Module Tilt Switch Module for Arduino AVR PIC
About this item
- Material: PCB
- Operating voltage: 3.3 V - 5 V.
- KY-020 Tilt Switch Module for Arduino AVR PIC
- Tilt switch module and digital 13 interface with built-in LED to build a simple circuit and make tilt indicator light.
- Use the LED of the digital 13 interface to connect the tilt sensor to the digital 3 interface. When the tilt switch sensor detects a key signal, the LED is on and vice versa.
Product description
<p>Feature: </p><p>Routine source code: </p><p>- int LED = 13; // define LED interface </p><p>- int button field = 3; // Define the interfaces of the tilt switch sensor </p><p>- int val; // Define numeric variables val </p><p>- void setup () </p><p>- { </p><p>- pinMode (Led, OUTPUT); // Define LED as output interface </p><p>pinMode (buttonpin, INPUT); // Define the tilt sensor of the output interface </p><p>- } </p><p>Blank loop (). </p><p>- { </p><p>- val = digitalRead (buttonpin); // The digital interface gets the value 3 to read val </p><p>- if (val == HIGH) // If the tilt sensor detects a signal when the switch flashes, the LED flashes </p><p>- { </p><p>- DigitalWrite (Led, High); </p><p>- } </p><p>Otherwise </p><p>- { </p><p>- digitalWrite (Led, LOW); </p><p>- } </p><p>- } </p><p>Box contents: </p><p>KY-020 Toggle Switch Module Pack of 5 </p>
Product details
Customer reviews
What customers say about Bigamart
10 Trustpilot reviews total, with 2 shown at a time.
I wrote to Bigamart's customer support and they accompanied the process of reshipping the item until it finally arrived. I felt a genuine effort to solve the problem till it was finally solved.
The package was here in Australia from England in a few days โ so quick! Something was missing and they refunded it straight away. Pretty happy with these guys.
You might also like
Similar items


MissBirdler Boost Converter DC-DC Step-Up from 3V-5V 3A Will 5V for Arduino DIY

ARCELI 5pcs mini DC to DC 1.8V-5V to 3.3V Step Up Down Power Supply Buck Boost Module

Pemenol IIC UART SPI TTL 4 Channel Logic Level Converter Bi-Directional 5 V 3.3 V for Arduino Raspberry pi Micro Controller (Pack of 6)
