Skip to main content

Menu

Ball Tilt Switch Module Arduino Compatible

ARD2-2220
Arduino Compatible Ball Tilt Switch Module

$3.95

QTYPrice
1 $3.95

Description

This Arduino compatible ball tilt switch module can detect when it is tilted thru a switch closure triggered by a metal rollerball. It works because a ball flows into the gap between two electrodes and completes the circuit when the module is tilted at an angle.

Test Code

int Led = 13; // define LED Interface
int buttonpin = 3; // define the tilt switch sensor interfaces
int val; // define numeric variables val

void setup () {
pinMode(Led, OUTPUT); // define LED as output interface
pinMode(buttonpin, INPUT); // define the output interface tilt switch sensor
}

void loop () {
val = digitalRead(buttonpin); // digital interface will be assigned a value of 3 to read val

// When the tilt sensor detects a signal when the switch, LED flashes
if (val == HIGH) {
digitalWrite(Led, HIGH);
}
else {
digitalWrite(Led, LOW);
}
}

Features

  • Completes circuit when the module is tilted
  • LED lights up when tilt switch is activated

Specifications

Output

Digital Signal

Board Colour

Black

Material

PCB

Resources

You Might Also Like

All prices are in Australian Dollars and include GST. GST will be removed from your order if you are ordering from outside Australia.
Products may differ from pictured.
All trademarks and trade names are the properties of their respective owners. Wiltronics disclaims any proprietary interest in trademarks and trade names other than its own.

Ball Tilt Switch Module Arduino Compatible

ARD2-2220

$3.95

We use cookies to ensure you have the best experience on our site. If you continue to use this site you consent to the use of these cookies. OK

Find out more in our Privacy Policy