Close
0%
0%

Interfacing Tilt Sensor with Arduino

A Tilt Sensor recognizes the orientation of an object and provides its output High or Low respectively.

Similar projects worth following
0 followers
The project describes how the Tilt Sensor can be interfaced with Arduino and recognizes the orientation of the object and give output as a high or low resp.

About Project

Tilt Sensor

This Mercury switch-based tilt sensor module provides high at its output pin when tilted. It needs a 5V of DC input. The switch is a three-terminal device that contains input, ground and output.

It also has a glass tube that contains two electrodes and a liquid mercury ball.

Tilt Sensor Working

1. In case of Not tilted

When the switch is in a NOT tilted position, it shows LOW output due to the liquid mercury complete the circuit by attaching the two electrodes. When the output is LOW on-board LED rest ON.

2. In the case of Tilted

When it is tilted in a specific direction or angle, the liquid mercury disrupts the contact between the metal electrodes and the circuit becomes open. Hence, we receive HIGH output in this state and the onboard LED turns off.

  • 1 × Tilt Sensor
  • 1 × Arduino UNO
  • 1 × Buzzer
  • 1 × LED (generic)
  • 1 × Register 220 Ohm

View all 6 components

  • 1
    Run a Program
    void setup() { pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, INPUT); } void loop() { if (digitalRead(4) == 1) { digitalWrite(2, HIGH); digitalWrite(3, HIGH); delay(300); digitalWrite(2, LOW); digitalWrite(3, LOW); delay(300); } }

View all instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates